/* ==========================================================================
   Dr. Alexandra Ruoff – Praxis für ästhetische Zahnheilkunde
   Statischer Neuaufbau nach Masterlayout (FireShot Capture 330)
   Maße: Desktop-Referenz = Container 1200 px, Fließtext 15 px / Mobil 17 px
   ========================================================================== */

:root {
  --c-header: #4d4f4a;       /* Kopfbereich */
  --c-band: #656762;         /* Leiste unter Kopf + Footer */
  --c-footer-line: #40403e;
  --c-bg-light: #ede9e6;     /* helle Sektionen */
  --c-bg-alt: #dfded9;       /* graue Sektionen (Vita, Impressionen) */
  --c-text: #666666;         /* Fließtext + Überschriften */
  --c-accent: #b95c5a;       /* U-Bahn/Trambahn, Parken */
  --c-nav: #f9ece0;          /* Menü */
  --c-nav-active: #f1ab3d;   /* Menü aktiv */
  --c-arrow-bg: #cbcac5;

  --font: Helvetica, Arial, sans-serif;
  --fs-body: 15px;
  --lh-body: 1.65;
  --fs-h2: 26px;

  --container: 1200px;
  --gutter: 72px;            /* Spaltenabstand (6 % von 1200) */
  --section-pad: 50px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--c-bg-light);
  color: var(--c-text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 .85em; }
ul { margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 50px);
  margin: 0 auto;
  padding: 0 25px;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 10px; top: -60px; z-index: 1000;
  background: #fff; color: #333; padding: 10px 16px; border-radius: 3px;
  font-weight: bold; text-decoration: none;
}
.skip-link:focus { top: 10px; }

:focus-visible { outline: 2px solid var(--c-nav-active); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header { background: var(--c-header); position: relative; z-index: 50; }
.site-header__inner {
  position: relative;
  height: 235px;
}
.logo {
  position: absolute;
  left: 25px;
  top: 160px;
  width: 300px;
  height: 60px;
  display: block;
}
.logo img { width: 300px; height: 60px; }

.main-nav { position: absolute; right: 25px; top: 191px; }
.main-nav ul { display: flex; list-style: none; margin: 0 -11px 0 0; }
.main-nav a {
  display: block;
  padding: 0 13.5px;
  font-size: 17px;
  font-weight: bold;
  line-height: 28px;
  color: var(--c-nav);
  text-decoration: none;
  transition: color .2s;
}
.main-nav a:hover,
.main-nav a.is-active,
.main-nav a[aria-current="page"] { color: var(--c-nav-active); }

.header-band { height: 30px; background: var(--c-band); }

.nav-toggle { display: none; }

/* ---------- Sektionen ---------- */
.section { padding: var(--section-pad) 0; background: var(--c-bg-light); }
.section--alt { background: var(--c-bg-alt); }


.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--gutter);
}
.row--center { align-items: center; }
.row--top { align-items: start; }

/* Überschrift mit punktierter Linie bis zum Spaltenrand */
.heading {
  display: flex;
  align-items: flex-end;
  margin: 0 0 27px;
  font-size: var(--fs-h2);
  font-weight: normal;
  line-height: 1.3;
  letter-spacing: 1px;
  color: var(--c-text);
}
.heading::after {
  content: "";
  flex: 1 1 auto;
  min-width: 20px;
  border-bottom: 1px dotted var(--c-text);
  margin: 0 0 8px 2px;
}

.end-rule {
  border: 0;
  border-top: 1px dotted var(--c-text);
  margin: 30px 0 0;
  height: 0;
  clear: both;
}

.list { list-style: none; }
.heading + .list { margin-top: -10px; }
.list + .end-rule { margin-top: 36px; }
.row--center > div:last-child { padding-bottom: 14px; }
#arzt .row > div:first-child { padding-top: 7px; }
.list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}
.list li::before {
  content: "";
  position: absolute;
  left: 9px;
  top: calc(var(--lh-body) * 1em / 2 - 2px);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--c-text);
}

.img-frame { border-radius: 3px; overflow: hidden; }
.img-frame img { width: 100%; }

.lb-link { display: block; cursor: zoom-in; position: relative; }
.lb-link img { transition: opacity .25s; }
.lb-link:hover img { opacity: .9; }

/* Willkommen */
.quote { text-align: center; font-style: italic; }
.signature { margin: 0; }
.signature img { width: 289px; height: 52px; }

/* Vita */
.portrait { width: 240px; border-radius: 3px; overflow: hidden; margin: -1px 0 0 4px; }
.portrait img { width: 240px; height: 300px; object-fit: cover; }

/* Impressionen – horizontale Galerie */
.gallery { position: relative; margin-top: 56px; }
.gallery__viewport { overflow: hidden; touch-action: pan-y; }
.gallery__track {
  display: flex;
  gap: 15px;
  transition: transform .5s cubic-bezier(.25,.8,.25,1);
  will-change: transform;
}
.gallery__item {
  flex: 0 0 auto;
  height: 300px;
  display: block;
  cursor: zoom-in;
}
.gallery__item img { height: 300px; width: auto; max-width: none; }
.gallery__item:hover img { opacity: .9; }

.gallery__arrow {
  position: absolute;
  top: 150px;
  width: 60px; height: 58px;
  margin-top: -29px;
  border: 0;
  border-radius: 3px;
  background: var(--c-arrow-bg);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, opacity .2s;
}
.gallery__arrow:hover { background: #b9b8b2; }
.gallery__arrow svg { width: 14px; height: 22px; }
.gallery__arrow--next { right: 14px; }
.gallery__arrow--prev { left: 14px; }
.gallery__arrow[hidden] { display: none; }

.gallery__dots {
  display: flex; justify-content: center; gap: 3.5px;
  margin-top: 13.5px;
  padding: 0; list-style: none;
}
.gallery__dots button {
  width: 13px; height: 13px; padding: 0;
  border: 0; border-radius: 50%;
  background: #595856; cursor: pointer;
}
.gallery__dots button[aria-current="true"] { background: #f2f1ef; }

.section--impressionen { padding-bottom: 67px; }
.section--impressionen .heading { margin-bottom: 0; }

/* Kontakt */
.house { max-width: 500px; margin: 0 auto; border-radius: 3px; overflow: hidden; }
.contact strong { color: var(--c-accent); }
.contact a[href^="tel:"], .contact a[href^="mailto:"] { text-decoration: none; }
.contact a[href^="tel:"]:hover, .contact a[href^="mailto:"]:hover { text-decoration: underline; }
.map-thumb {
  float: right;
  width: 180px;
  height: 180px;
  margin: -3px 0 0 10px;
}
.map-thumb img { width: 180px; height: 180px; object-fit: cover; }
.contact .end-rule { margin-top: 13px; }
.contact .map-clear { clear: both; }
.section--kontakt { padding-bottom: 60px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-band);
  border-top: 1px solid var(--c-footer-line);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
}
.site-footer__inner {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 50px;
}
.site-footer p { margin: 0; }
.site-footer ul { display: flex; list-style: none; }
.site-footer li + li { border-left: 1px solid rgba(255,255,255,.25); margin-left: 9px; padding-left: 9px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */
.legal { max-width: 780px; }
.legal h1 { margin-bottom: 30px; }
.legal h2 {
  font-size: 18px; font-weight: bold; letter-spacing: .3px;
  margin: 2em 0 .6em; line-height: 1.35;
}
.legal h3 { font-size: 1em; font-weight: bold; margin: 1.4em 0 .5em; }
.legal ul { list-style: disc; padding-left: 1.4em; margin: 0 0 .85em; }
.legal li { margin-bottom: .35em; }
.legal a { word-break: break-word; }
.legal .end-rule { margin-top: 40px; }
.legal-section { min-height: 60vh; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20,20,19,.92);
  padding: 50px 70px;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 3px; box-shadow: 0 10px 40px rgba(0,0,0,.4); background: #333; }
.lightbox__caption { color: #ddd; font-size: 13px; margin-top: 12px; text-align: center; }
.lightbox button {
  position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff;
  width: 48px; height: 48px; border-radius: 3px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 14px; top: 50%; margin-top: -24px; }
.lightbox__next { right: 14px; top: 50%; margin-top: -24px; }
.lightbox button[hidden] { display: none; }
.lightbox svg { width: 18px; height: 18px; }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1023px) {
  :root { --gutter: 40px; }
  .gallery__item, .gallery__item img { height: 260px; }
  .gallery__arrow { top: 130px; }
}

/* ==========================================================================
   Mobil (< 768 px) – Fließtext 16 px
   ========================================================================== */
@media (max-width: 767px) {
  :root { --fs-body: 17px; --lh-body: 1.6; --fs-h2: 24px; --section-pad: 36px; }

  .container { padding: 0 20px; }

  .site-header__inner { height: 96px; }
  .logo { left: 20px; top: 26px; width: 230px; height: 46px; }
  .logo img { width: 230px; height: 46px; }

  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    position: absolute; right: 12px; top: 24px;
    width: 48px; height: 48px; padding: 0;
    background: transparent; border: 0; cursor: pointer; color: var(--c-nav);
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 26px; height: 2px; background: currentColor; border-radius: 1px;
    position: relative; transition: transform .25s, background .25s;
  }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { top: -8px; }
  .nav-toggle span::after { top: 8px; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }

  .main-nav {
    position: absolute; left: 0; right: 0; top: 96px;
    background: var(--c-header);
    border-top: 1px solid rgba(255,255,255,.08);
    display: none;
    box-shadow: 0 12px 20px rgba(0,0,0,.18);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; margin: 0; padding: 6px 0 12px; }
  .main-nav a { padding: 12px 20px; font-size: 18px; line-height: 1.4; }

  .header-band { height: 18px; }

  .row { grid-template-columns: 1fr; row-gap: 30px; }
  .row--center { align-items: start; }

  .heading { margin-bottom: 18px; }
  .heading + .list { margin-top: -4px; }
  .row--center > div:last-child { padding-bottom: 0; }
  #arzt .row > div:first-child { padding-top: 0; }
  .portrait { margin-left: 0; }
  .gallery__arrow { top: 110px; }
  .heading::after { margin-bottom: 7px; }

  .end-rule { margin-top: 24px; }

  .quote { text-align: left; }
  .signature img { width: 240px; height: auto; }

  .portrait { width: 200px; }
  .portrait img { width: 200px; height: 250px; }

  .gallery { margin-top: 26px; }
  .gallery__item, .gallery__item img { height: 220px; }
  .gallery__arrow { width: 44px; height: 44px; margin-top: -22px; }
  .gallery__arrow--next { right: 8px; }
  .gallery__arrow--prev { left: 8px; }
  .gallery__dots { gap: 6px; margin-top: 16px; }
  .section--impressionen { padding-bottom: 40px; }

  .contact { display: flex; flex-direction: column; }
  .contact .c-parken { order: 1; }
  .map-thumb { order: 2; float: none; width: 100%; max-width: 360px; height: auto; margin: 2px 0 18px; }
  .contact .c-late { order: 3; }
  .map-thumb img { width: 100%; height: auto; object-fit: contain; border-radius: 3px; }
  .contact .end-rule { margin-top: 24px; }
  .section--kontakt { padding-bottom: 40px; }

  .site-footer { font-size: 14px; }
  .site-footer__inner { flex-direction: column; gap: 8px; padding-top: 16px; padding-bottom: 16px; text-align: center; }

  .lightbox { padding: 60px 10px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; margin-top: 0; }
  .lightbox__prev { left: calc(50% - 56px); }
  .lightbox__next { right: calc(50% - 56px); }
  .lightbox__img { max-height: calc(100vh - 180px); }
}
