/* Zahnarztpraxis Dr. Farrenkopf - gemeinsames Stylesheet */

:root {
  --blue: #4a8cf0;
  --blue-dark: #3a7ad9;
  --text: #444444;
  --heading: #5a5a5a;
  --muted: #777777;
  --line: #e6e6e6;
  --stripe: #f6f6f6;
  --maxw: 1040px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Lucida Grande", sans-serif;
  font-weight: 400;
  color: var(--text);
  background: #ffffff;
  line-height: 1.55;
  font-size: 17px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Kopfzeile / Navigation ---------- */
.site-header {
  padding: 22px 0 18px;
}
.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 30px;
}
.brand {
  display: flex;
  align-items: center;
  color: #3a3a3a;
}
.brand:hover { text-decoration: none; }
.brand img { height: 46px; width: auto; display: block; }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.main-nav a {
  color: var(--muted);
  font-size: 18px;
  padding: 8px 16px;
  border-radius: 6px;
  line-height: 1.2;
}
.main-nav a:hover {
  color: #333;
  background: #f2f2f2;
  text-decoration: none;
}
.main-nav a.active {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 2px 5px rgba(74, 140, 240, 0.4);
}
.main-nav a.active:hover {
  background: var(--blue-dark);
  color: #fff;
}

hr.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 34px 0;
}

/* ---------- Startseite: Slideshow ---------- */
.slideshow {
  position: relative;
  margin-top: 6px;
  overflow: hidden;
  background: #fff;
}
.slides { position: relative; width: 100%; aspect-ratio: 2835 / 868; }
.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: contain; display: block; }

.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide-nav:hover { background: rgba(0, 0, 0, 0.55); }
.slide-nav.prev { left: 14px; }
.slide-nav.next { right: 14px; }

.slide-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 9px;
}
.slide-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}
.slide-dots button.is-active { background: #fff; }

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
}

.appointment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.appointment p { margin: 0; font-size: 19px; color: #555; }

.btn-phone {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 19px;
  padding: 14px 28px;
  border-radius: 6px;
  box-shadow: 0 3px 7px rgba(74, 140, 240, 0.45);
  white-space: nowrap;
}
.btn-phone:hover { background: var(--blue-dark); color: #fff; text-decoration: none; }

.two-col {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}
.two-col > div { flex: 1; min-width: 280px; }

h2 {
  font-weight: 300;
  font-size: 30px;
  color: var(--heading);
  margin: 0 0 22px;
}
h1 {
  font-weight: 300;
  font-size: 34px;
  color: var(--heading);
  margin: 6px 0 26px;
}

.anschrift p { margin: 0 0 4px; }
.anschrift .name { font-weight: 700; color: #3a3a3a; }
.anschrift .spacer { height: 14px; }

table.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
}
table.hours th,
table.hours td {
  text-align: left;
  padding: 11px 14px;
}
table.hours thead th {
  font-weight: 700;
  color: #3a3a3a;
  border-bottom: 1px solid var(--line);
}
table.hours tbody tr:nth-child(odd) { background: var(--stripe); }
table.hours td:first-child { color: #555; }

/* ---------- Merkmale (Parken etc.) ---------- */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  text-align: center;
}
.features .feature { flex: 1; min-width: 220px; }
.feature .icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature .icon svg { width: 46px; height: 46px; stroke: var(--blue); fill: none; }
.feature h3 {
  font-weight: 400;
  font-size: 21px;
  color: var(--heading);
  margin: 0 0 12px;
  letter-spacing: 0.5px;
}
.feature p { margin: 0; color: #555; }

/* ---------- Textseiten ---------- */
.content h3 {
  font-weight: 700;
  color: #3a3a3a;
  font-size: 18px;
  margin: 26px 0 6px;
}
.content p { margin: 0 0 14px; }
.content .address-block p { margin: 0 0 2px; }
.highlight { color: #e02424; font-weight: 700; }

/* ---------- Anfahrt / Formular ---------- */
.route-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  max-width: 560px;
}
.route-box label {
  display: block;
  font-weight: 700;
  color: #3a3a3a;
  margin-bottom: 8px;
}
.route-form { display: flex; flex-wrap: wrap; gap: 12px; }
.route-form input[type="text"] {
  flex: 1;
  min-width: 220px;
  padding: 13px 14px;
  font-size: 17px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  font-family: inherit;
}
.route-form input[type="text"]:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(74, 140, 240, 0.2);
}
.btn {
  background: var(--blue);
  color: #fff;
  border: 0;
  font-size: 17px;
  padding: 13px 26px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--blue-dark); }
.btn-secondary {
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--blue);
}
.btn-secondary:hover { background: #f2f7ff; }
.route-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 12px; }
.hint { font-size: 14px; color: var(--muted); margin-top: 14px; }

.map-holder {
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.map-consent {
  padding: 40px 24px;
  text-align: center;
  background: #f6f8fc;
}
.map-consent p { margin: 0 0 16px; color: #555; }
.map-holder iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Fußzeile ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 22px 0 40px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Mobil ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .slide-nav { width: 32px; height: 32px; font-size: 20px; }
  .slide-nav.prev { left: 6px; }
  .slide-nav.next { right: 6px; }
  .slide-dots { bottom: 6px; }
  .brand img { height: 38px; }
  .appointment { justify-content: flex-start; }
  h1 { font-size: 28px; }
  h2 { font-size: 26px; }
  .main-nav a { font-size: 16px; padding: 7px 12px; }
}

/* ---------- SEO-Hilfen ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.footer-nap { margin: 0 0 6px; }
