/* ════════════════════════════════════════════════════════════
   OPTIK SCHINK — „Marktplatz-Wärme"
   Warmes Papier · Bordeaux (aus dem Bestands-Logo) · Honig-Akzent
   Serif-Display (System-Stack, kein CDN) + humanistische Sans
   ════════════════════════════════════════════════════════════ */

:root {
  --paper: #FBF8F2;
  --paper-deep: #F3EDE2;
  --ink: #271F1A;
  --dim: rgba(39, 31, 26, 0.72);
  --line: rgba(39, 31, 26, 0.14);
  --wine: #7C2532;
  --wine-deep: #5E1B26;
  --wine-tint: #F6E9EA;
  --honey: #8F5E12; /* WCAG AA: ≥4,7:1 auf paper und paper-deep */
  --open: #2E7D4F;
  --serif: "Charter", "Bitstream Charter", "Palatino", "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", "Avenir", "Seravek", "Segoe UI", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 0.7rem;
  --shadow: 0 12px 34px rgba(39, 31, 26, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--wine); color: #fff; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
  border-radius: 2px;
}
img { max-width: 100%; height: auto; display: block; }

/* Anker-Ziele unter dem Sticky-Header freihalten */
section[id], main[id] { scroll-margin-top: 5.5rem; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 5vw; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; color: var(--wine); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ─── Hinweis-Banner (data.js-gesteuert) ─── */
#hinweise[hidden] { display: none; }
.hinweis {
  background: var(--wine);
  color: #FDF7F0;
  padding: 0.8rem 5vw;
  font-size: 0.95rem;
  text-align: center;
}
.hinweis + .hinweis { border-top: 1px solid rgba(255, 255, 255, 0.25); }
.hinweis strong { color: #F4D9A6; font-weight: 600; }

/* ─── Header ─── */
.top {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 248, 242, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top__inner {
  display: flex; align-items: center; gap: 1.4rem;
  padding: 0.8rem 5vw;
}
.top__brand { display: flex; align-items: center; flex: 0 0 auto; }
.top__brand img { width: clamp(120px, 38vw, 190px); height: auto; }
.top__status {
  font-size: 0.78rem; font-weight: 600;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 2rem;
  padding: 0.3rem 0.85rem;
  white-space: nowrap;
}
.top__status.is-open { color: var(--open); border-color: rgba(46, 125, 79, 0.4); }
.top__status[hidden] { display: none; }
.top__nav { margin-left: auto; display: flex; gap: 1.6rem; align-items: center; }
.top__nav a {
  text-decoration: none; color: var(--dim);
  font-size: 0.93rem; font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}
.top__nav a:hover { color: var(--wine); }
.top__tel {
  background: var(--wine); color: #fff !important;
  padding: 0.55rem 1.2rem; border-radius: 2rem;
  font-weight: 600; white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.top__tel:hover { background: var(--wine-deep); transform: translateY(-1px); }
/* Öffnungsstatus im Mobile-Menü (per JS befüllt) */
.top__status--nav { display: none; }
/* kompakter Telefon-Button neben dem Burger (nur mobil sichtbar) */
.top__telmini {
  display: none;
  background: var(--wine); color: #fff;
  border-radius: 50%;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  text-decoration: none; font-size: 1.15rem;
}
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 0.5rem;
  padding: 0.5rem 0.7rem; cursor: pointer;
  font-size: 1rem; color: var(--ink); font-family: var(--sans);
}
/* Status-Pill braucht Platz — erst auf breiten Viewports zeigen */
@media (max-width: 1249px) {
  .top__status { display: none; }
}
/* Desktop-Header passt erst ab ~1140px in eine Zeile */
@media (max-width: 1139px) {
  .top__inner { gap: 0.9rem; }
  .nav-toggle { display: block; margin-left: 0.2rem; }
  .top__telmini { display: inline-flex; margin-left: auto; }
  .top__nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.6rem 5vw 1rem;
  }
  .top__nav.is-open { display: flex; }
  .top__nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); white-space: normal; }
  .top__nav a:last-of-type { border-bottom: 0; }
  .top__tel { text-align: center; margin-top: 0.6rem; border-radius: 0.6rem; }
  .top__status--nav {
    display: block;
    font-size: 0.85rem; font-weight: 600; color: var(--dim);
    padding: 0.7rem 0; border-bottom: 1px solid var(--line);
  }
  .top__status--nav.is-open { color: var(--open); }
  .top__status--nav[hidden] { display: none; }
}

/* ─── Hero ─── */
.hero { padding: 9vh 0 10vh; }
.hero__grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 5vw; align-items: center;
}
.hero__kicker {
  font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600; color: var(--honey);
  margin-bottom: 1.2rem;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 16ch; }
.hero__lede { margin-top: 1.3rem; max-width: 32rem; color: var(--dim); }
.hero__ctas { margin-top: 2.2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none;
  font-weight: 600; font-size: 0.95rem;
  padding: 0.95rem 1.9rem; border-radius: 2.5rem;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn--wine { background: var(--wine); color: #fff; }
.btn--wine:hover { background: var(--wine-deep); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(124, 37, 50, 0.3); }
.btn--ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--wine); color: var(--wine); }
.hero__foto { position: relative; }
.hero__foto img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  /* Übergangslösung bis zur einmaligen Foto-Korrektur (siehe PFLEGE.md) */
  filter: brightness(1.05) contrast(1.04) saturate(0.88);
}
.hero__foto::after {
  content: "";
  position: absolute; inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  border: 2px solid var(--wine-tint);
  border-radius: var(--radius);
  z-index: -1;
}
.hero__badge {
  position: absolute; left: -0.9rem; bottom: 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  padding: 0.7rem 1.1rem;
  font-size: 0.84rem; line-height: 1.45;
}
.hero__badge strong { font-family: var(--serif); font-size: 1.05rem; color: var(--wine); display: block; }
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__foto { max-width: 480px; }
}

/* ─── Sektions-Basics ─── */
section { padding: 9vh 0; }
.sec-kicker {
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600; color: var(--honey);
  margin-bottom: 0.9rem;
}
.sec-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: 24ch; }
.sec-lede { margin-top: 1rem; color: var(--dim); max-width: 38rem; }

/* ─── Leistungen ─── */
.leistungen { background: var(--paper-deep); }
.leistungen__grid {
  margin-top: 2.8rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem;
}
.leistung {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}
.leistung:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(124, 37, 50, 0.3); }
.leistung__icon {
  width: 46px; height: 46px;
  border-radius: 0.6rem;
  background: var(--wine-tint); color: var(--wine);
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
}
.leistung h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.leistung p { font-size: 0.95rem; color: var(--dim); }
.leistung a { color: var(--wine); font-weight: 600; text-decoration: none; font-size: 0.95rem; display: inline-block; margin-top: 0.7rem; }
.leistung a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 980px) { .leistungen__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .leistungen__grid { grid-template-columns: 1fr; } }

/* ─── Myopie-Band ─── */
.myopie-band { background: var(--wine); color: #FDF7F0; }
.myopie-band .sec-kicker { color: #F4D9A6; }
.myopie-band__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 5vw; align-items: center; }
.myopie-band h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.myopie-band p { margin-top: 1rem; color: rgba(253, 247, 240, 0.85); max-width: 36rem; }
.myopie-band .btn--paper { background: var(--paper); color: var(--wine); margin-top: 1.8rem; }
.myopie-band .btn--paper:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25); }
.myopie-band__facts { display: grid; gap: 1rem; }
.myopie-band__fact {
  border: 1px solid rgba(253, 247, 240, 0.28);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  font-size: 0.92rem;
}
.myopie-band__fact strong { display: block; font-family: var(--serif); font-size: 1.05rem; color: #F4D9A6; margin-bottom: 0.2rem; }
@media (max-width: 880px) { .myopie-band__grid { grid-template-columns: 1fr; } }

/* ─── Über uns ─── */
.ueber__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 5vw; align-items: center; }
.ueber__foto img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  filter: brightness(1.05) contrast(1.04) saturate(0.88);
}
.ueber p { margin-top: 1rem; color: var(--dim); max-width: 34rem; }
.ueber__zitat {
  margin-top: 1.6rem;
  font-family: var(--serif); font-style: italic;
  font-size: 1.2rem; color: var(--wine);
  border-left: 3px solid var(--wine-tint);
  padding-left: 1.1rem;
}
.ueber__stats { margin-top: 2rem; display: flex; gap: 2.4rem; flex-wrap: wrap; }
.ueber__stat strong { font-family: var(--serif); font-size: 1.7rem; color: var(--wine); display: block; line-height: 1.1; }
.ueber__stat span { font-size: 0.85rem; color: var(--dim); }
@media (max-width: 880px) { .ueber__grid { grid-template-columns: 1fr; } .ueber__foto { order: 2; max-width: 480px; } }

/* ─── Team ─── */
.team { background: var(--paper-deep); }
.team__grid {
  margin-top: 2.8rem;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.3rem;
}
.team-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.team-card img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 0.9rem;
  filter: saturate(0.95);
}
.team-card h3 { font-size: 1.02rem; }
.team-card h3, .team-card__rolle, .team-card__extra {
  hyphens: auto; overflow-wrap: break-word; /* „Augenoptikermeisterin" bei 360px */
}
.team-card__rolle { font-size: 0.88rem; color: var(--dim); margin-top: 0.2rem; }
.team-card__extra {
  font-size: 0.8rem; color: var(--wine); font-weight: 600;
  margin-top: 0.45rem;
  background: var(--wine-tint);
  border-radius: 0.4rem;
  padding: 0.3rem 0.5rem;
}
@media (max-width: 980px) { .team__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .team__grid { grid-template-columns: 1fr 1fr; } }

/* ─── Besuch (Zeiten + Kontakt) ─── */
.besuch__grid { margin-top: 2.8rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; align-items: start; }
.zeiten { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.zeiten__row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.95rem 1.4rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
}
.zeiten__row:last-child { border-bottom: 0; }
.zeiten__row .zeit { font-weight: 600; }
.zeiten__row.offen .zeit { color: var(--wine); }
.zeiten__row.zu .zeit { color: var(--dim); font-weight: 400; }
.zeiten__hinweis {
  margin-top: 1.1rem;
  background: var(--wine-tint);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  font-size: 0.92rem;
}
.kontakt-liste { display: grid; gap: 1rem; }
.kontakt-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff;
  padding: 1.2rem 1.4rem;
  display: flex; align-items: baseline; gap: 1rem;
  transition: border-color 0.2s;
}
.kontakt-card:hover { border-color: rgba(124, 37, 50, 0.35); }
.kontakt-card .label {
  flex: 0 0 5.4rem;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: var(--honey);
}
.kontakt-card a, .kontakt-card address {
  font-style: normal; font-family: var(--serif);
  font-size: 1.12rem; color: var(--ink); text-decoration: none;
}
.kontakt-card a:hover { color: var(--wine); }
.kontakt-card .sub { display: block; font-family: var(--sans); font-size: 0.84rem; color: var(--dim); margin-top: 0.25rem; }
.kontakt-card .sub a { font-family: var(--sans); font-size: 0.84rem; color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 880px) { .besuch__grid { grid-template-columns: 1fr; } }

/* ─── Detailseiten (Myopie, Rechtliches) ─── */
.subpage { padding: 7vh 0 9vh; }
.subpage--narrow .wrap { max-width: 820px; }
.subpage h1 { font-size: clamp(2rem, 4.2vw, 3rem); max-width: 20ch; }
.prose { margin-top: 2.2rem; }
.prose h2 { font-size: 1.5rem; margin: 2.4rem 0 0.8rem; }
.prose h3 { font-size: 1.15rem; margin: 1.8rem 0 0.5rem; }
.prose p { margin: 0.8rem 0; color: var(--dim); }
.prose ul { margin: 0.8rem 0 0.8rem 1.3rem; color: var(--dim); }
.prose li { margin: 0.45rem 0; }
.prose strong { color: var(--ink); }
.prose a:not(.btn) { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.info-card {
  background: var(--wine-tint);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin: 1.6rem 0;
}
.info-card h3 { margin-top: 0 !important; color: var(--wine); }
.cta-row { margin-top: 2.6rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.back-link {
  display: inline-block; margin-bottom: 1.6rem;
  color: var(--dim); text-decoration: none; font-size: 0.9rem;
}
.back-link:hover { color: var(--wine); }

/* ─── Footer ─── */
.foot {
  background: var(--ink); color: rgba(251, 248, 242, 0.75);
  padding: 2.6rem 5vw;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.2rem;
  font-size: 0.85rem;
}
.foot a { color: rgba(251, 248, 242, 0.75); text-decoration: none; transition: color 0.2s; }
.foot a:hover { color: #F4D9A6; }
.foot nav { display: flex; gap: 1.6rem; }

/* ─── Reveals (nur aktiv, wenn JS läuft — html.js wird von main.js gesetzt;
       ohne JS bleibt die Seite vollständig sichtbar) ─── */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
html.js .reveal.visible { opacity: 1; transform: none; }
html.js .reveal:nth-child(2) { transition-delay: 0.07s; }
html.js .reveal:nth-child(3) { transition-delay: 0.14s; }
html.js .reveal:nth-child(4) { transition-delay: 0.21s; }
html.js .reveal:nth-child(5) { transition-delay: 0.28s; }
html.js .reveal:nth-child(6) { transition-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}
