/* =========================================================================
   HNO-Praxis Adnan Dilmac — Stylesheet
   Design: ruhig, klinisch-warm. Tiefes Petrol + helles Papierweiß,
   ein einziger warmer CTA-Akzent. Signatur: Audiogramm-/Schallwellen-Motiv.
   Schriften lokal gehostet (DSGVO). Keine externen Ressourcen.
   ========================================================================= */

/* ---- Fonts (lokal) ---- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---- Tokens ---- */
:root {
  --paper:   #fbfcfc;
  --mist:    #e9f1f0;
  --mist-2:  #f1f6f5;
  --ink:     #112a2c;
  --ink-soft:#3a5557;
  --petrol:  #14555b;
  --petrol-d:#0e4146;
  --aqua:    #3e97a0;
  --warm:    #d9744a;
  --warm-d:  #c4623b;
  --line:    rgba(17, 42, 44, .12);
  --line-soft: rgba(17, 42, 44, .07);
  --white:   #ffffff;

  --maxw: 1160px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 1px 2px rgba(17,42,44,.04), 0 12px 28px -16px rgba(17,42,44,.18);
  --shadow-lg: 0 2px 6px rgba(17,42,44,.05), 0 30px 60px -28px rgba(17,42,44,.28);

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--petrol); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--aqua); }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.12; color: var(--ink); margin: 0 0 .4em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
strong { font-weight: 600; }

/* Accessibility helpers */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--petrol); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; border-radius: 4px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Layout primitives ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(56px, 9vw, 116px); }
.section--mist { background: var(--mist-2); }
.eyebrow {
  font-family: var(--f-body); font-weight: 600; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--aqua);
  display: inline-flex; align-items: center; gap: .6em; margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.section-head { max-width: 56ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.lead { font-size: 1.18rem; color: var(--ink-soft); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--f-body); font-weight: 600; font-size: 1rem;
  padding: .85em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--warm { background: var(--warm); color: #fff; box-shadow: 0 10px 24px -12px rgba(217,116,74,.8); }
.btn--warm:hover { background: var(--warm-d); color: #fff; }
.btn--solid { background: var(--petrol); color: #fff; }
.btn--solid:hover { background: var(--petrol-d); color: #fff; }
.btn--ghost { background: transparent; color: var(--petrol); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--petrol); color: var(--petrol); background: rgba(20,85,91,.05); }
.btn--block { width: 100%; justify-content: center; }
.btn svg { width: 1.05em; height: 1.05em; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,252,252,.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 38px; height: 38px; flex: 0 0 auto; color: var(--petrol); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--f-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -.01em; }
.brand__sub { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-weight: 500; font-size: .97rem; color: var(--ink); text-decoration: none;
  padding: .4em 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--aqua); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav a:hover { color: var(--petrol); }
.nav a:hover::after { transform: scaleX(1); }
.header-cta { margin-left: .4rem; }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: var(--pad); right: var(--pad); top: 78px;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--white); border: 1px solid var(--line); border-radius: 16px;
    padding: .6rem; box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8em 1em; border-radius: 10px; }
  .nav a:hover { background: var(--mist); }
  .nav a::after { display: none; }
  .header-cta { margin: .4rem 0 .2rem; }
}

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; background: var(--paper); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(62,151,160,.14), transparent 70%),
    radial-gradient(50% 60% at 12% 90%, rgba(20,85,91,.10), transparent 70%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(48px, 8vw, 96px); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.3rem); letter-spacing: -.02em; }
.hero h1 em { font-style: italic; color: var(--petrol); }
.hero__lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--ink-soft); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta dt { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--aqua); font-weight: 600; }
.hero__meta dd { margin: .15rem 0 0; font-weight: 500; }

/* Hero visual: layered card + soundwave signature */
.hero__visual { position: relative; }
.hero__card {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: 26px;
  box-shadow: var(--shadow-lg); padding: clamp(22px, 3vw, 34px); position: relative; overflow: hidden;
}
.hero__card-top { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.4rem; }
.hero__card-top .dot { width: 11px; height: 11px; border-radius: 50%; background: #4caf6d; box-shadow: 0 0 0 4px rgba(76,175,109,.16); }
.hero__card-top span { font-size: .85rem; color: var(--ink-soft); font-weight: 500; }
.hero__hours { list-style: none; margin: 0; padding: 0; }
.hero__hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--line-soft); font-size: .98rem; }
.hero__hours li:last-child { border-bottom: 0; }
.hero__hours .day { color: var(--ink-soft); }
.hero__hours .time { font-weight: 600; font-variant-numeric: tabular-nums; }
.hero__hours .closed { color: var(--warm-d); }
.soundwave { display: flex; align-items: center; gap: 3px; height: 34px; margin-top: 1.2rem; }
.soundwave span { flex: 1; background: linear-gradient(var(--aqua), var(--petrol)); border-radius: 3px; opacity: .85; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 460px; }
}

/* ---- Info strip ---- */
.infostrip { background: var(--petrol); color: #eaf4f3; }
.infostrip__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden; }
.infocard { background: var(--petrol); padding: clamp(20px, 3vw, 30px); display: flex; gap: 1rem; align-items: flex-start; }
.infocard svg { width: 26px; height: 26px; color: #8fd0d2; flex: 0 0 auto; margin-top: 2px; }
.infocard h3 { color: #fff; font-family: var(--f-body); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .4rem; }
.infocard p { margin: 0; color: #d4e8e7; font-size: 1.02rem; }
.infocard a { color: #fff; font-weight: 600; text-decoration: none; }
.infocard a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 760px) { .infostrip__grid { grid-template-columns: 1fr; } }

/* ---- Services ---- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.service {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 30px); box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(62,151,160,.4); }
.service__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--mist); color: var(--petrol); margin-bottom: 1.1rem;
}
.service__icon svg { width: 26px; height: 26px; }
.service h3 { font-size: 1.28rem; margin-bottom: .5rem; }
.service p { color: var(--ink-soft); font-size: .98rem; margin: 0; }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* ---- About / doctor ---- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.about__portrait {
  position: relative; border-radius: 24px; aspect-ratio: 4 / 5;
  background: linear-gradient(150deg, var(--petrol), var(--petrol-d));
  display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow-lg);
}
.about__portrait::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 70% 20%, rgba(143,208,210,.35), transparent 70%);
}
.about__monogram { position: relative; font-family: var(--f-display); font-weight: 600; color: rgba(255,255,255,.92); font-size: clamp(3.4rem, 9vw, 6rem); letter-spacing: -.02em; }
.about__badge {
  position: absolute; bottom: 18px; left: 18px; right: 18px; z-index: 2;
  background: rgba(255,255,255,.94); border-radius: 14px; padding: 14px 16px; backdrop-filter: blur(4px);
}
.about__badge strong { display: block; font-size: 1.02rem; }
.about__badge span { font-size: .85rem; color: var(--ink-soft); }
.creds { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .7rem; }
.creds li { display: flex; gap: .7rem; align-items: flex-start; }
.creds svg { width: 20px; height: 20px; color: var(--aqua); flex: 0 0 auto; margin-top: 3px; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } .about__portrait { max-width: 360px; } }

/* ---- Hours table ---- */
.hours-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.hours-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hours-table caption { text-align: left; padding: 1rem 1.2rem; font-weight: 600; background: var(--mist); color: var(--ink); }
.hours-table th, .hours-table td { text-align: left; padding: .9rem 1.2rem; border-top: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.hours-table th[scope="row"] { font-weight: 600; color: var(--ink); width: 38%; }
.hours-table td { color: var(--ink-soft); }
.hours-table .op { color: var(--warm-d); font-weight: 600; }
.hours-table tr.is-today { background: var(--mist-2); }
.hours-table tr.is-today th { color: var(--petrol); }
.hours-note { background: var(--white); border: 1px solid var(--line-soft); border-left: 4px solid var(--warm); border-radius: var(--radius-s); padding: 1.2rem 1.3rem; box-shadow: var(--shadow); }
.hours-note h3 { font-family: var(--f-body); font-weight: 700; font-size: 1.05rem; margin-bottom: .4rem; }
.hours-note p { color: var(--ink-soft); font-size: .96rem; margin: 0 0 .6rem; }
.hours-note p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .hours-layout { grid-template-columns: 1fr; } }

/* ---- Contact / form ---- */
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact-details { display: grid; gap: 1.1rem; }
.contact-line { display: flex; gap: .9rem; align-items: flex-start; }
.contact-line svg { width: 22px; height: 22px; color: var(--aqua); flex: 0 0 auto; margin-top: 3px; }
.contact-line a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-line a:hover { color: var(--petrol); }
.contact-line span { color: var(--ink-soft); display: block; font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .15rem; }

.form-card { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: .8em .9em; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(62,151,160,.18); }
.field textarea { resize: vertical; min-height: 130px; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.consent input { margin-top: .25rem; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--petrol); }
.consent a { color: var(--petrol); }
.form-hint { font-size: .85rem; color: var(--ink-soft); background: var(--mist-2); border-radius: 10px; padding: .7rem .9rem; margin: 0 0 1.2rem; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status { margin-top: 1rem; padding: .8rem 1rem; border-radius: 10px; font-weight: 500; font-size: .95rem; display: none; }
.form-status.is-ok { display: block; background: #e6f4ec; color: #1c6b3e; }
.form-status.is-err { display: block; background: #fdece6; color: #a23b1c; }
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #c9dad9; padding-block: clamp(48px, 7vw, 80px) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-family: var(--f-body); font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #c9dad9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__sub { color: #8fb0af; }
.footer-brand p { color: #a9c2c1; margin-top: 1rem; max-width: 34ch; font-size: .95rem; }
.privacy-badge { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.2rem; font-size: .82rem; color: #8fd0d2; background: rgba(143,208,210,.1); border: 1px solid rgba(143,208,210,.25); padding: .5rem .8rem; border-radius: 999px; }
.privacy-badge svg { width: 16px; height: 16px; }
.footer-bottom { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; color: #93acab; }
.footer-bottom nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---- Legal pages ---- */
.legal { padding-block: clamp(40px, 6vw, 72px); }
.legal__inner { max-width: 800px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin-bottom: .3em; }
.legal .updated { color: var(--ink-soft); font-size: .9rem; margin-bottom: 2.4rem; }
.legal h2 { font-size: 1.5rem; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft); }
.legal h3 { font-family: var(--f-body); font-weight: 700; font-size: 1.08rem; margin-top: 1.6rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal address { font-style: normal; color: var(--ink); }
.legal a { color: var(--petrol); word-break: break-word; }
.legal .editable { background: #fff8ec; border: 1px dashed #e0a458; border-radius: 10px; padding: .9rem 1.1rem; font-size: .92rem; color: #8a5a1e; }
.backlink { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; margin-bottom: 1.6rem; }
.backlink svg { width: 18px; height: 18px; }

/* ---- Announcement bar (editierbar) ---- */
.announce { background: var(--mist); color: var(--petrol-d); text-align: center; font-size: .92rem; font-weight: 500; padding: .55rem var(--pad); border-bottom: 1px solid var(--line-soft); }
.announce strong { font-weight: 700; }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
