/* ==========================================================
   Praxis für Kieferorthopädie Dr. med. dent. Remo Schalcher
   Webdesign: wpressprofis
   ========================================================== */

/* ---------- Schrift (lokal eingebunden, kein Google-Server) ---------- */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); }

/* ---------- Farben ---------- */
:root {
  --blue: #007BC0;        /* Logofarbe – Flächen, Buttons */
  --blue-text: #006BA8;   /* Blau für Schrift auf Weiss */
  --blue-dark: #005A8C;   /* Hover, Fokus */
  --navy: #0E2A3B;        /* Fliesstext */
  --grey: #3F5D70;        /* Zweittext */
  --line: #D3E5F0;
  --line-strong: #7FA6BF;
  --accent: #5FB3E3;
  --tint-blue: #F0F6FA;
  --tint-beige: #FCF9F4;
  --white: #FFFFFF;
  --max: 1280px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-text); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 2px solid var(--blue-dark); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 12px 16px; font-weight: 600; }
.skip-link:focus { top: 16px; color: #fff; }

.kicker { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-text); }
.section-title { margin-top: 16px; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -.025em; max-width: 760px; }
.section { padding: 112px 0; }
.muted { color: var(--grey); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px; font-weight: 600; text-decoration: none; border: 1px solid var(--blue); cursor: pointer; border-radius: 0; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-white { background: #fff; color: var(--blue-text); border-color: #fff; }
.btn-white:hover { background: var(--tint-blue); color: var(--blue-dark); }
.btn-outline { background: #fff; color: var(--blue-text); }
.btn-outline:hover { background: var(--tint-blue); }
.link-underline { font-weight: 600; text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Topbar ---------- */
.topbar { background: var(--blue); color: #fff; font-size: 14px; }
.topbar .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; font-weight: 600; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .container { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--navy); line-height: 1.15; padding: 10px 0; }
.brand:hover { color: var(--navy); }
.brand img { width: 34px; height: 56px; flex: none; }
.brand-name { display: block; font-size: 23px; font-weight: 700; letter-spacing: -.02em; }
.brand-sub { display: block; font-size: 14px; color: var(--blue-text); font-weight: 500; }
.main-nav { display: flex; align-items: center; gap: 32px; font-size: 16px; font-weight: 500; }
.main-nav a { color: var(--navy); text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--blue-text); }
.main-nav .btn { height: 46px; padding: 0 20px; color: #fff; }
.nav-toggle { display: none; height: 44px; padding: 0 0 0 16px; border: 0; background: none; font-weight: 600; font-size: 16px; align-items: center; gap: 10px; cursor: pointer; color: var(--navy); }
.nav-toggle .bars { display: flex; flex-direction: column; gap: 5px; }
.nav-toggle .bars span { display: block; width: 22px; height: 2px; background: var(--navy); }

/* ---------- Hero / Slider ---------- */
.hero { position: relative; background: var(--navy); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-inner { position: relative; min-height: 720px; padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.hero-panel { flex: 0 1 600px; min-width: 0; background: var(--blue); color: #fff; padding: 44px 44px 36px; }
.hero-panel .kicker { color: #fff; }
.hero-panel h1 { margin-top: 16px; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -.03em; }
.hero-panel .hero-text { margin-top: 20px; max-width: 480px; font-size: 19px; line-height: 1.45; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero-actions .link-underline { color: #fff; }
.slider-controls { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.3); display: flex; align-items: center; gap: 16px; }
.slider-btn { width: 44px; height: 44px; border: 1px solid #fff; background: transparent; color: #fff; font-size: 18px; cursor: pointer; }
.slider-btn:hover { background: rgba(255,255,255,.15); }
.slider-dots { display: flex; gap: 8px; align-items: center; }
.slider-dot { width: 12px; height: 12px; padding: 0; border: 1px solid #fff; background: transparent; cursor: pointer; transition: width .2s; }
.slider-dot[aria-current="true"] { width: 32px; background: #fff; }
.slider-count { margin-left: auto; font-size: 14px; }

/* ---------- Formular ---------- */
.booking { flex: 0 1 420px; min-width: 0; width: 100%; background: #fff; border-top: 4px solid var(--accent); padding: 32px; }
.booking h2 { font-size: 26px; line-height: 1.2; }
.booking .intro { margin-top: 8px; font-size: 15px; color: var(--grey); }
.booking form { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: flex; flex-wrap: wrap; gap: 14px; }
.field-row .field { flex: 1 1 150px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { height: 46px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 0; font-size: 16px; color: var(--navy); background: #fff; }
.field textarea { height: auto; padding: 10px 12px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--grey); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.booking .btn { height: 54px; width: 100%; font-size: 17px; }
.hp-field { position: absolute; left: -9999px; }
.form-success[hidden], .form-body[hidden] { display: none; }
.form-success p { margin-top: 14px; color: var(--grey); }

/* ---------- Praxis ---------- */
.intro-grid { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.intro-text { flex: 1 1 420px; min-width: 0; }
.intro-text p { margin-top: 28px; max-width: 560px; }
.quote { flex: 1 1 380px; min-width: 0; margin: 0; padding: 8px 0 0 32px; border-left: 4px solid var(--accent); align-self: center; }
.quote p { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.3; font-weight: 500; color: var(--blue-text); }
.quote footer { margin-top: 16px; font-size: 15px; color: var(--grey); }
.gallery { margin-top: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.gallery button:hover img { transform: scale(1.03); }
.gallery figcaption { margin-top: 10px; font-size: 14px; color: var(--grey); }

/* ---------- Behandlungen ---------- */
.treatments { background: var(--tint-beige); }
.entry-grid { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 24px; }
.entry { min-width: 0; padding: 48px; display: flex; flex-direction: column; gap: 20px; }
.entry > img { margin: -48px -48px 12px; width: calc(100% + 96px); max-width: none; object-fit: cover; }
.entry h3 { font-size: 32px; line-height: 1.15; }
.entry-kids { flex: 3 1 480px; background: var(--blue); color: #fff; }
.entry-kids > img { aspect-ratio: 16 / 9; object-position: center 35%; }
.entry-kids .lead { font-size: 18px; max-width: 520px; }
.entry-kids p { max-width: 520px; }
.entry-kids .btn { margin-top: auto; align-self: flex-start; height: 52px; }
.entry-adults { flex: 2 1 340px; background: #fff; border: 1px solid var(--blue); }
.entry-adults > img { aspect-ratio: 4 / 3; }
.entry-adults h3 { color: var(--blue-text); }
.entry-adults .lead { font-size: 18px; }
.entry-adults .link-underline { margin-top: auto; align-self: flex-start; }
.steps-title { margin-top: 96px; font-size: 24px; }
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 32px; }
.steps li { border-top: 2px solid var(--line-strong); padding-top: 20px; margin-bottom: 28px; }
.steps li:first-child { border-top-color: var(--blue); }
.steps .num { font-size: 14px; font-weight: 700; color: var(--blue-text); }
.steps .step-title { margin-top: 8px; font-weight: 600; }
.steps .step-text { margin-top: 6px; font-size: 15px; color: var(--grey); }

/* ---------- Team ---------- */
.team { background: var(--tint-blue); }
.team-grid { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.team-grid > img { flex: 3 1 520px; min-width: 0; width: 100%; aspect-ratio: 460 / 350; object-fit: cover; }
.team-list { flex: 2 1 340px; min-width: 0; }
.team-list div { border-top: 1px solid var(--line-strong); padding: 20px 0 24px; }
.team-list div:first-child { border-top: 2px solid var(--blue); }
.team-list .name { font-size: 22px; font-weight: 600; }
.team-list .role { margin-top: 4px; font-size: 16px; color: var(--grey); }

/* ---------- Kontakt ---------- */
.contact-grid { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 48px; }
.contact-col { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.address { margin-top: 6px; font-size: 19px; }
.route-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.contact-buttons { display: flex; flex-direction: column; gap: 10px; }
.contact-btn { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; font-weight: 600; text-decoration: none; border: 1px solid var(--blue); }
.contact-btn.is-primary { background: var(--blue); color: #fff; }
.contact-btn.is-primary:hover { background: var(--blue-dark); color: #fff; }
.contact-btn.is-secondary { color: var(--blue-text); }
.contact-btn.is-secondary:hover { background: var(--tint-blue); }
.contact-btn span:last-child { overflow-wrap: anywhere; text-align: right; }
.emergency { font-size: 15px; color: var(--grey); }
.hours { margin-top: 10px; width: 100%; border-collapse: collapse; }
.hours tr { border-bottom: 1px solid var(--line); }
.hours tr:last-child { border-bottom: 0; }
.hours th { text-align: left; font-weight: 600; padding: 12px 16px 12px 0; white-space: nowrap; }
.hours td { padding: 12px 0; text-align: right; }
.map-card { flex: 1 1 320px; min-width: 0; min-height: 340px; display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--line); }
.map-card img { flex: 1; min-height: 284px; width: 100%; object-fit: cover; object-position: 45% 40%; }
.map-card .map-bar { height: 56px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; background: var(--blue); color: #fff; font-weight: 600; }
.map-card:hover .map-bar { background: var(--blue-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue); color: #fff; font-size: 14px; }
.site-footer .container { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.site-footer a { color: #fff; }
.site-footer a[aria-current="page"] { font-weight: 600; }
.footer-links { display: flex; gap: 24px; }

/* ---------- Rechtliche Seiten ---------- */
.legal { padding: 96px 0 120px; }
.legal h1 { margin-top: 16px; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -.03em; overflow-wrap: break-word; hyphens: auto; }
.legal-grid { margin-top: 64px; display: flex; flex-wrap: wrap; gap: 48px 80px; }
.legal-grid > div { flex: 1 1 340px; min-width: 0; }
.legal-layout { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.legal-aside { flex: 1 1 280px; min-width: 0; }
.legal-aside .muted { margin-top: 24px; }
.legal-body { flex: 2 1 560px; min-width: 0; max-width: 760px; }
.legal h2 { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line-strong); font-size: 20px; }
.legal h2:first-child { margin-top: 0; border-top: 2px solid var(--blue); }
.legal-body h2 { font-size: 22px; }
.legal p, .legal table { margin-top: 14px; }
.legal p + p { margin-top: 12px; }
.legal table { border-collapse: collapse; }
.legal th { text-align: left; font-weight: 500; color: var(--grey); padding: 4px 24px 4px 0; }
.legal .back { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.placeholder { color: var(--grey); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(14, 42, 59, .92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1100px, 100%); max-height: calc(100vh - 180px); width: auto; height: auto; }
.lightbox-bar { margin-top: 20px; width: min(1100px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #fff; }
.lightbox-close { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; border: 1px solid #fff; background: transparent; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.lightbox .slider-btn { width: 48px; height: 48px; font-size: 20px; }

/* ---------- Cookie-Banner ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; border-top: 4px solid var(--blue); box-shadow: 0 -8px 24px rgba(14, 42, 59, .12); }
.cookie-banner[hidden] { display: none; }
.cookie-banner .container { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.cookie-text { flex: 1 1 520px; min-width: 0; }
.cookie-text .title { font-size: 18px; font-weight: 600; }
.cookie-text p + p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--grey); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cookie-actions .btn { height: 50px; font-size: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav .btn { margin-top: 16px; border-bottom: 0; justify-content: center; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .brand-name { font-size: 18px; }
  .brand-sub { font-size: 13px; }
  .brand img { width: 26px; height: 43px; }
  .hero-inner { min-height: 0; padding-top: 220px; padding-bottom: 32px; }
  .hero-panel { padding: 28px 24px 24px; }
  .booking { padding: 24px; }
  .entry { padding: 28px; }
  .entry > img { margin: -28px -28px 8px; width: calc(100% + 56px); }
  .entry h3 { font-size: 26px; }
  .quote { padding-left: 20px; }
  .gallery { margin-top: 48px; }
  .steps-title { margin-top: 64px; }
  .legal { padding: 56px 0 80px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide, .gallery img, .slider-dot { transition: none; }
}
