/* ==========================================================================
   Salzkammergut Akustik – Stylesheet
   Farben (Kontrast gegen Weiß gemessen):
   --ink     #16211F  Text            16.3 : 1
   --muted   #4F5B58  Nebentext        6.8 : 1 (auf --bg)
   --accent  #2E5B35  Moosgrün, Aktion 7.9 : 1 (weißer Text darauf ebenso)
   --bg      #FAFAF7  Grund
   --surface #F1F0EB  Flächen / Karten
   --tint    #E5EEE2  Moosgrün hell
   Schrift: Systemschrift (SF Pro auf Apple, Segoe UI auf Windows) –
   keine externen Webfonts, daher DSGVO-unkritisch und schnell.
   ========================================================================== */

:root {
  --ink: #16211F;
  --muted: #4F5B58;
  --accent: #2E5B35;
  --accent-hover: #234629;
  --bg: #FAFAF7;
  --surface: #F1F0EB;
  --tint: #E5EEE2;
  --line: #DCDAD3;
  --white: #FFFFFF;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 28px;
  --radius-sm: 16px;
  --max: 1180px;
  --pad: clamp(20px, 5vw, 48px);
  --section: clamp(80px, 11vw, 150px);
}

*, *::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(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;          /* 18 px: bewusst groß für die Zielgruppe */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
[id] { scroll-margin-top: 84px; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 16px; color: var(--white); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }

/* ---------- Typografie ---------- */
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; font-weight: 650; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.75rem); line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.08; letter-spacing: -0.028em; }
h3 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.012em; }
p { margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.01em;
  color: var(--accent); margin-bottom: 18px;
}
.lead { font-size: clamp(1.1875rem, 1.9vw, 1.375rem); line-height: 1.55; color: var(--muted); max-width: 38em; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 1.0625rem; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); color: var(--white); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(22, 33, 31, 0.06);
}
@media (prefers-reduced-transparency: reduce) { .site-header { background: var(--bg); } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 650; font-size: 1.125rem; letter-spacing: -0.015em; }
.brand-sub { font-size: 0.8125rem; color: var(--muted); }
.brand-logo { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 1rem; }
.nav a:hover { color: var(--accent); }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; color: var(--white); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 8vw, 110px) var(--section); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { margin-bottom: 26px; }
.hero .lead { margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 1rem; }
.facts li { display: flex; align-items: center; gap: 9px; }
.facts svg { width: 20px; height: 20px; color: var(--accent); flex: none; }

.hero-visual { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--tint); aspect-ratio: 5 / 6; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: 20px; right: 20px; bottom: 20px;
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border-radius: 18px; padding: 16px 18px;
  box-shadow: 0 10px 30px rgba(22, 33, 31, 0.10);
}
.hero-badge strong { display: block; font-size: 1rem; }
.hero-badge span { font-size: 0.9375rem; color: var(--muted); }
.hero-badge .dot { width: 44px; height: 44px; border-radius: 50%; background: var(--tint); color: var(--accent); display: grid; place-items: center; flex: none; }
.hero-badge .dot svg { width: 22px; height: 22px; }

/* ---------- Sektionen ---------- */
.section { padding-block: var(--section); }
.section-alt { background: var(--white); }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head h2 { margin-bottom: 20px; }

/* Leistungen */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 34px 30px 36px;
  display: flex; flex-direction: column; gap: 14px;
}
.card-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--white); color: var(--accent); display: grid; place-items: center; margin-bottom: 8px; }
.card-icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); font-size: 1.0625rem; }
.card-feature { background: var(--accent); }
.card-feature h3, .card-feature p { color: var(--white); }
.card-feature p { opacity: 0.92; }
.card-feature .card-icon { background: rgba(255, 255, 255, 0.14); color: var(--white); }
.card-feature a { color: var(--white); font-weight: 600; margin-top: auto; }

/* Anzeichen für einen Hörtest */
.signs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; margin-bottom: clamp(64px, 9vw, 120px); }
.signs h2 { margin-bottom: 20px; }
.sign-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sign-list li {
  position: relative; padding: 20px 0 20px 48px; border-bottom: 1px solid var(--line);
  font-size: 1.1875rem; line-height: 1.45;
}
.sign-list li::before {
  content: ""; position: absolute; left: 0; top: 19px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E5B35' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.subhead { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.02em; margin-bottom: 16px; }
.steps-head { margin-bottom: clamp(36px, 5vw, 56px); }

/* Ablauf */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { border-top: 2px solid var(--ink); padding-top: 26px; }
.step-num { font-family: var(--font-display); font-size: 0.9375rem; font-weight: 600; color: var(--accent); display: block; margin-bottom: 14px; }
.step h3 { margin-bottom: 12px; }
.step p { color: var(--muted); }
.steps-cta { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }

/* Über mich */
.about-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 100px); align-items: center; }
.photo {
  border-radius: var(--radius); background: var(--surface); aspect-ratio: 4 / 5;
  display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 0.9375rem; padding: 24px;
  border: 1px dashed var(--line);
}
.photo:has(img) { padding: 0; border: 0; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(255, 255, 255, 0.92); color: var(--ink);
  font-size: 0.9375rem; font-weight: 600; padding: 8px 14px; border-radius: 999px;
}
.about-text h2 { margin-bottom: 26px; }
.about-text p + p { margin-top: 18px; }
.about-text .lead { color: var(--ink); }
.signature { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.signature strong { display: block; font-size: 1.125rem; }
.signature span { color: var(--muted); font-size: 1rem; }

/* Standort */
.visit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.visit-card { background: var(--surface); border-radius: var(--radius); padding: 32px 30px; }
.visit-card h3 { font-size: 1.0625rem; color: var(--muted); font-weight: 600; margin-bottom: 14px; letter-spacing: 0; }
.visit-card p, .visit-card dl { font-size: 1.1875rem; }
.visit-card .btn { margin-top: 22px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; }
.visit-card .hours-note { font-size: 1rem; color: var(--muted); margin-top: 14px; }

/* FAQ */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 14px; height: 14px; flex: none; margin-right: 6px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) translateY(-4px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details p { padding: 0 0 28px; color: var(--muted); max-width: 46em; }

/* Kontakt */
.contact { background: var(--ink); color: var(--white); }
.contact h2, .contact h3 { color: var(--white); }
.contact .eyebrow { color: #A9D3A0; }
.contact .lead { color: #C9D2D0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.contact-direct { display: flex; flex-direction: column; gap: 28px; margin-top: 40px; }
.contact-direct a { color: var(--white); text-decoration: none; }
.contact-direct a:hover { color: #A9D3A0; }
.contact-line span { display: block; font-size: 0.9375rem; color: #AEB9B6; margin-bottom: 4px; }
.contact-line strong { font-size: clamp(1.375rem, 2.6vw, 1.75rem); font-weight: 600; letter-spacing: -0.015em; }

.form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(26px, 4vw, 44px); }
.form h3 { color: var(--ink); margin-bottom: 8px; }
.form > p { color: var(--muted); margin-bottom: 28px; font-size: 1.0625rem; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label, .field legend { font-weight: 600; font-size: 1rem; }
.field .hint { font-weight: 400; color: var(--muted); }
fieldset.field { border: 0; padding: 0; margin: 0 0 20px; }
fieldset.field legend { margin-bottom: 10px; padding: 0; }
.field input[type="text"], .field input[type="tel"], .field textarea {
  font: inherit; font-size: 1.0625rem; color: var(--ink);
  border: 1px solid #B9B7AF; border-radius: 14px; padding: 14px 16px; min-height: 52px; background: var(--white);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--tint); border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid #B9B7AF; border-radius: 999px; font-size: 1rem; cursor: pointer; background: var(--white);
}
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; color: var(--muted); margin: 4px 0 24px; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.form .btn { width: 100%; }
.form-note { font-size: 0.9375rem; color: var(--muted); text-align: center; margin-top: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }   /* Spamschutz-Feld */
.form-status { margin-top: 16px; font-size: 1rem; color: var(--accent); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 56px 40px; font-size: 0.9375rem; color: var(--muted); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.footer-grid nav a { color: var(--muted); text-decoration: none; }
.footer-grid nav a:hover { color: var(--ink); }
.footer-legal { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- Mobile Aktionsleiste ---------- */
.mobile-bar { display: none; }

/* ---------- Rechtstexte ---------- */
.legal { padding-block: clamp(48px, 8vw, 100px) var(--section); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: 40px; }
.legal h2 { font-size: 1.5rem; letter-spacing: -0.015em; margin: 44px 0 14px; }
.legal p, .legal ul { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.placeholder { background: #FFF3C4; color: var(--ink); padding: 0 4px; border-radius: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards, .visit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .nav a:not(.btn) { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 1.0625rem; padding-bottom: 84px; }
  .site-header .wrap { min-height: 64px; }
  .brand-sub { display: none; }
  .hero-grid, .about-grid, .contact-grid, .signs { grid-template-columns: minmax(0, 1fr); }
  .sign-list li { font-size: 1.0625rem; padding: 16px 0 16px 44px; }
  .sign-list li::before { top: 14px; }
  .nav .btn { display: none; }               /* auf dem Handy übernimmt die Leiste unten */
  .brand-logo { height: 38px; }
  .hero { padding-top: 36px; }
  .hero-actions { margin-bottom: 32px; }
  .hero-visual { aspect-ratio: 16 / 11; }
  .hero-badge { left: 12px; right: 12px; bottom: 12px; padding: 12px 14px; }
  .hero-actions .btn { width: 100%; }
  .cards, .steps, .visit-grid, .gallery { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 28px 24px 30px; }
  .photo { aspect-ratio: 1 / 1; }
  .faq summary { font-size: 1.125rem; padding: 22px 0; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(250, 250, 247, 0.94);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    border-top: 1px solid rgba(22, 33, 31, 0.08);
  }
  .mobile-bar .btn { min-height: 50px; padding: 0 14px; font-size: 1rem; }
}
