/* ==========================================================================
   Passfoto Peuerbach — Design System
   CD: Neongrün #4CFF14 · Schwarz #000 · Weiß #fff
   Keine externen Fonts/Skripte (Speed + DSGVO).
   ========================================================================== */

:root {
  --gruen: #4CFF14;
  --gruen-dunkel: #3ACC0F;
  --schwarz: #000;
  --weiss: #fff;
  --grau-bg: #f4f4f4;
  --grau-linie: #e2e2e2;
  --grau-text: #555;

  --font: "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont,
          "Segoe UI", Arial, sans-serif;

  --breite: 1120px;
  --radius: 18px;
  --pad-x: 20px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--schwarz);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 7vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 4.6vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2.6vw, 1.5rem); }

p { margin: 0 0 1em; text-wrap: pretty; }

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

section { padding: clamp(48px, 8vw, 96px) 0; }
section.eng { padding: clamp(36px, 5vw, 64px) 0; }

.skip {
  position: absolute; left: -9999px;
  background: var(--schwarz); color: var(--weiss); padding: 12px 18px; z-index: 999;
}
.skip:focus { left: 12px; top: 12px; }

:focus-visible { outline: 3px solid var(--schwarz); outline-offset: 3px; }

/* ---------- Header ------------------------------------------------------ */

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--grau-linie);
}

.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; line-height: 1.05;
  letter-spacing: -0.03em; text-decoration: none;
}
.logo img, .logo svg { width: 42px; height: 42px; flex: none; }
.logo span { display: block; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--schwarz); }
@media (max-width: 860px) { .nav { display: none; } }

/* ---------- Status-Leiste ("jetzt geöffnet") ---------------------------- */

.status {
  background: var(--schwarz); color: var(--weiss);
  font-size: .95rem; font-weight: 600;
  text-align: center; padding: 10px var(--pad-x);
}
.status__punkt {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gruen); margin-right: 8px; vertical-align: middle;
}
.status[data-offen="nein"] .status__punkt { background: #FF4C4C; }

/* ---------- Buttons ----------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px;
  font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em;
  text-decoration: none; border: 2px solid var(--schwarz);
  background: var(--schwarz); color: var(--weiss);
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gruen { background: var(--gruen); color: var(--schwarz); border-color: var(--gruen); }
.btn--gruen:hover { background: var(--gruen-dunkel); border-color: var(--gruen-dunkel); }
.btn--weiss { background: transparent; color: var(--schwarz); }
.btn--weiss:hover { background: var(--schwarz); color: var(--weiss); }
.btn--klein { padding: 11px 20px; font-size: .95rem; }

.btn-reihe { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero -------------------------------------------------------- */

.hero { padding-top: clamp(40px, 6vw, 76px); padding-bottom: clamp(40px, 6vw, 76px); }

.hero__grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.hero h1 { margin-bottom: .35em; line-height: 1.18; }
.hero h1 em {
  font-style: normal;
  background: var(--gruen);
  padding: .06em .14em .1em;
  margin: 0 -.14em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero__lead { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--grau-text); max-width: 34em; }

.adresse {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 800;
  line-height: 1.25; margin: 0 0 20px; letter-spacing: -0.02em;
}
.adresse span { display: block; }

/* Öffnungszeiten-Kachel */
.zeiten-kachel {
  background: var(--gruen); color: var(--schwarz);
  border-radius: var(--radius); padding: clamp(22px, 3vw, 32px);
}
.zeiten-kachel h2, .zeiten-kachel h3 { font-size: 1.35rem; margin-bottom: .6em; }
.zeiten-liste { list-style: none; margin: 0; padding: 0; }
.zeiten-liste li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-bottom: 2px solid rgba(0,0,0,.14);
  font-weight: 600; font-size: 1.02rem;
}
.zeiten-liste li:last-child { border-bottom: 0; }
.zeiten-liste b { font-weight: 800; }
.zeiten-liste .tag { white-space: nowrap; }
.zeiten-liste .zeit { text-align: right; font-variant-numeric: tabular-nums; }
.zeiten-liste li[data-heute="ja"] { position: relative; }
.zeiten-liste li[data-heute="ja"]::before {
  content: ""; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 5px; height: 22px; background: var(--schwarz); border-radius: 3px;
}

.hero__karte { position: relative; }

/* ---------- Trust-Reihe ------------------------------------------------- */

.trust { background: var(--schwarz); color: var(--weiss); }
.trust ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
@media (max-width: 860px) { .trust ul { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.trust li { font-weight: 700; font-size: 1.02rem; line-height: 1.35; }
.trust li b {
  display: block; color: var(--gruen);
  font-size: clamp(1.5rem, 6vw, 1.9rem);
  letter-spacing: -0.03em; hyphens: none;
}
.trust li span { color: #bdbdbd; font-weight: 500; font-size: .92rem; display: block; margin-top: 4px; }

/* ---------- Ausweis-Grid ------------------------------------------------ */

.kachel-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  list-style: none; margin: 0; padding: 0;
}

.kachel {
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  min-height: 128px; padding: 20px;
  background: var(--grau-bg); border-radius: var(--radius);
  text-decoration: none; font-weight: 700;
  border: 2px solid transparent;
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}
/* Auf grauem Abschnitt braucht die Kachel Weiß, sonst verschwindet sie */
.bg-grau .kachel, .bg-grau .box, .bg-grau .karte { background: var(--weiss); }

.kachel:hover { background: var(--gruen); border-color: var(--schwarz); transform: translateY(-3px); }
.kachel strong { font-size: 1.2rem; letter-spacing: -0.02em; display: block; }
.kachel small { font-weight: 500; color: var(--grau-text); font-size: .9rem; line-height: 1.4; }
.kachel:hover small { color: var(--schwarz); }
.kachel::after { content: "→"; font-size: 1.3rem; line-height: 1; }

/* ---------- Ablauf ------------------------------------------------------ */

.schritte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 800px) { .schritte { grid-template-columns: 1fr; } }
.schritte li { border-top: 5px solid var(--gruen); padding-top: 18px; }
.schritte .nr { font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -0.05em; display: block; margin-bottom: 8px; }
.schritte h3 { margin-bottom: .35em; }
.schritte p { color: var(--grau-text); margin: 0; font-size: 1rem; }

/* ---------- Zwei-Spalten-Block ------------------------------------------ */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.split--bild { align-items: center; }

.bild-rahmen { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--grau-bg); }
.bild-rahmen img { width: 100%; height: auto; }

/* Gütesiegel als Badge auf einem Bild */
.bild-rahmen img.siegel {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  width: clamp(84px, 12vw, 120px); height: auto;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.28));
}

/* Gütesiegel inline (neben Überschrift) */
.siegel-inline {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--grau-bg); border-radius: 999px;
  padding: 8px 18px 8px 8px; margin: 4px 0 20px;
  font-weight: 700; font-size: .95rem;
}
.siegel-inline img { width: 52px; height: 52px; }
.bg-grau .siegel-inline { background: var(--weiss); }

/* ---------- Video (Klick zum Abspielen, kein Autoload) ------------------ */
.video-rahmen {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  background: #000; aspect-ratio: 1 / 1;
}
.video-rahmen video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-rahmen .poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  cursor: pointer; border: 0; padding: 0; background: none;
}
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--gruen); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
  transition: transform .12s ease;
  pointer-events: none;
}
.video-rahmen:hover .video-play { transform: translate(-50%, -50%) scale(1.08); }
.video-play::after {
  content: ""; width: 0; height: 0; margin-left: 5px;
  border-left: 26px solid #000; border-top: 16px solid transparent; border-bottom: 16px solid transparent;
}
.video-dauer {
  position: absolute; right: 14px; bottom: 14px;
  background: rgba(0,0,0,.72); color: #fff; font-weight: 700; font-size: .82rem;
  padding: 5px 11px; border-radius: 999px; pointer-events: none;
}

/* Ergebnis-Bild (Passfoto-Bögen) mittig */
.ergebnis-bild {
  max-width: 560px; margin: 40px auto 0; border-radius: var(--radius);
  overflow: hidden; background: var(--weiss);
  box-shadow: 0 2px 18px rgba(0,0,0,.06);
}
.ergebnis-bild img { width: 100%; height: auto; display: block; }
.ergebnis-bild figcaption { text-align: center; margin-top: 18px; padding: 0 26px 22px; font-weight: 600; color: var(--grau-text); font-size: .95rem; line-height: 1.5; }

.laecheln-bild { margin: 24px 0; border-radius: var(--radius); overflow: hidden; background: var(--weiss); box-shadow: 0 2px 18px rgba(0,0,0,.06); }
.laecheln-bild img { width: 100%; height: auto; display: block; }
.laecheln-bild figcaption { margin-top: 14px; padding: 0 20px 18px; font-size: .92rem; color: var(--grau-text); line-height: 1.5; }

.box {
  background: var(--grau-bg); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
}
.box h3 { margin-bottom: .5em; }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }

.liste-check { list-style: none; margin: 0 0 1em; padding: 0; }
.liste-check li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.liste-check li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 16px; height: 9px; border-left: 4px solid var(--gruen); border-bottom: 4px solid var(--gruen);
  transform: rotate(-45deg);
}

/* ---------- Karte (2-Klick, DSGVO) -------------------------------------- */

.karte {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--grau-bg); aspect-ratio: 4 / 3; min-height: 280px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 2px solid var(--grau-linie);
}
.karte iframe { width: 100%; height: 100%; border: 0; display: block; }
.karte__hinweis { padding: 28px; max-width: 30em; }
.karte__hinweis p { font-size: .95rem; color: var(--grau-text); }

/* ---------- Gemeinden --------------------------------------------------- */

.orte { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; margin: 0; padding: 0; }
.orte a {
  display: inline-block; padding: 9px 17px; border-radius: 999px;
  background: var(--weiss); border: 2px solid var(--schwarz);
  text-decoration: none; font-weight: 700; font-size: .95rem;
}
.orte a:hover { background: var(--gruen); }

/* ---------- FAQ --------------------------------------------------------- */

.faq { border-top: 2px solid var(--schwarz); }
.faq details { border-bottom: 2px solid var(--grau-linie); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 44px 22px 0;
  font-weight: 800; font-size: clamp(1.05rem, 2vw, 1.25rem);
  position: relative; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.9rem; font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { color: #000; }
.faq .antwort { padding: 0 44px 24px 0; color: var(--grau-text); }
.faq .antwort p:last-child { margin-bottom: 0; }

/* ---------- Abschluss-Banner -------------------------------------------- */

.banner { background: var(--gruen); }
.banner h2 { margin-bottom: .3em; }
.banner p { font-size: 1.15rem; font-weight: 600; max-width: 36em; }

/* ---------- Footer ------------------------------------------------------ */

.footer { background: var(--schwarz); color: var(--weiss); padding: clamp(44px, 6vw, 72px) 0 32px; }
.footer a { color: var(--weiss); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gruen); margin-bottom: 1em; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; font-size: .97rem; }
.footer li a { text-decoration: none; }
.footer li a:hover { text-decoration: underline; }
.footer__marke { margin-top: 26px; }
.footer__marke span {
  display: block; font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: #888; margin-bottom: 10px;
}
.footer__marke img { width: 132px; height: auto; }

.footer__unten {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid #333;
  font-size: .87rem; color: #999;
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between;
}

/* ---------- Mobile Sticky-Leiste ---------------------------------------- */

.mobil-bar { display: none; }
@media (max-width: 700px) {
  .mobil-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--grau-linie);
  }
  .mobil-bar .btn { width: 100%; padding: 14px 12px; font-size: 1rem; }
  body { padding-bottom: 80px; }
}

/* ---------- Fließtext-Seiten (Ratgeber, Unterseiten) -------------------- */

.text { max-width: 44em; }
.text h2 { margin-top: 1.6em; }
.text h3 { margin-top: 1.4em; }
.text ul, .text ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.text li { margin-bottom: .5em; }
.text table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: .97rem; }
.text th, .text td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--grau-linie); }
.text th { background: var(--grau-bg); font-weight: 800; }

.brotkrumen { font-size: .9rem; color: var(--grau-text); padding: 18px 0 0; }
.brotkrumen ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.brotkrumen li::after { content: "›"; margin-left: 8px; color: #aaa; }
.brotkrumen li:last-child::after { content: ""; }
.brotkrumen a { text-decoration: none; }
.brotkrumen a:hover { text-decoration: underline; }

/* ---------- Utilities --------------------------------------------------- */

.bg-grau { background: var(--grau-bg); }
.mittig { text-align: center; }
.mb-0 { margin-bottom: 0; }
.vorspann { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--grau-text); max-width: 40em; }
.klein { font-size: .88rem; color: var(--grau-text); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
