/* Murmeliwacht – Stylesheet
   Farben und Schrift gemäss docs/marke/brand-guide.md. Mobile first. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --nachtblau: #1E3442;
  --nachtblau-2: #26414F;
  --ocker: #C98A3E;
  --braun: #8A5A2B;
  --fels: #F5F0E8;
  --fels-2: #EDE5D8;
  --grau: #5B6B75;
  --linie: #DDD3C3;
  --weiss: #FFFFFF;
  --gruen: #2F855A;
  --gelb: #D69E2E;
  --rot: #C53030;
  --radius: 14px;
  --schatten: 0 1px 2px rgba(30, 52, 66, .06), 0 6px 24px rgba(30, 52, 66, .07);
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--nachtblau);
  background: var(--weiss);
  font-feature-settings: "cv11", "ss01";
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--nachtblau); text-decoration-color: var(--ocker); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--braun); }
:focus-visible { outline: 3px solid var(--ocker); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--grau); max-width: 40em; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--braun); margin-bottom: .8rem; }
.muted { color: var(--grau); }
.small { font-size: .9rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; top: 0; background: var(--nachtblau); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Platzhalter: in der Vorschau gut sichtbar */
mark.ph { background: #FFE58A; color: #5a4300; padding: 0 .25em; border-radius: 4px; outline: 1px dashed #b38600; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--nachtblau); color: #fff; }
.btn-primary:hover { background: var(--nachtblau-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--nachtblau); border-color: var(--nachtblau); }
.btn-ghost:hover { background: var(--nachtblau); color: #fff; }
.btn-light { background: #fff; color: var(--nachtblau); }
.btn-light:hover { background: var(--fels); color: var(--nachtblau); }
.btn-small { padding: .55em 1.1em; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--linie); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; padding-top: .6rem; padding-bottom: .6rem; }
.brand img { width: 168px; height: auto; }
.header-cta { margin-left: auto; }
nav { order: 3; width: 100%; }
.nav { list-style: none; display: flex; gap: .2rem 1.1rem; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.nav a { display: block; padding: .35rem 0; text-decoration: none; font-weight: 550; font-size: .95rem; color: var(--grau); white-space: nowrap; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--nachtblau); }
.nav a[aria-current="page"] { color: var(--nachtblau); border-bottom-color: var(--ocker); }
@media (min-width: 900px) {
  .brand img { width: 210px; }
  nav { order: 0; width: auto; margin-left: auto; }
  .header-cta { margin-left: .6rem; }
  .nav { gap: 1.6rem; }
}

/* Abschnitte */
section { padding: 3.5rem 0; }
@media (min-width: 720px) { section { padding: 5rem 0; } }
.bg-fels { background: var(--fels); }
.bg-dunkel { background: var(--nachtblau); color: #fff; }
.bg-dunkel a { color: #fff; }
.bg-dunkel .lead, .bg-dunkel .muted { color: #C9D4DA; }
.section-head { max-width: 46rem; margin-bottom: 2.4rem; }

/* Hero */
.hero { background: var(--fels); padding: 3rem 0 3.5rem; overflow: hidden; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero h1 { max-width: 13em; }
.hero-art { justify-self: center; width: min(320px, 70vw); }
.hero-trust { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 1.6rem 0 0; padding: 0; list-style: none; font-size: .95rem; color: var(--grau); }
.hero-trust li::before { content: "✓"; color: var(--braun); font-weight: 700; margin-right: .4em; }
@media (min-width: 900px) {
  .hero { padding: 5rem 0; }
  .hero-grid { grid-template-columns: 1.35fr 1fr; }
  .hero-art { width: 100%; max-width: 400px; }
}

/* Karten und Raster */
.grid { display: grid; gap: 1.2rem; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 720px) and (max-width: 999px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.card { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--schatten); }
.card h3 { margin-top: .2rem; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--fels); display: grid; place-items: center; margin-bottom: 1rem; }
.icon svg { width: 24px; height: 24px; stroke: var(--braun); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bg-fels .icon { background: #fff; }

.checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--nachtblau) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/70% no-repeat; }
.xlist { list-style: none; padding: 0; margin: 0 0 1rem; }
.xlist li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; }
.xlist li::before { content: "–"; position: absolute; left: .3rem; font-weight: 700; color: var(--braun); }

/* Ablauf-Schritte */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.4rem; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--ocker); color: var(--nachtblau); font-weight: 750; margin-bottom: .8rem; }
.steps h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.steps p { margin: 0; color: var(--grau); font-size: .98rem; }

/* Pakete */
.pakete { align-items: stretch; }
.paket { display: flex; flex-direction: column; }
.paket .preis { font-size: 2.2rem; font-weight: 750; letter-spacing: -0.02em; margin: .2rem 0 .1rem; }
.paket .preis small { font-size: 1rem; font-weight: 500; color: var(--grau); letter-spacing: 0; }
.paket .preis-info { color: var(--grau); font-size: .95rem; margin-bottom: 1.2rem; }
.paket .checklist { flex: 1; }
.paket .btn { align-self: flex-start; margin-top: .6rem; }
.paket-haupt { border: 2px solid var(--nachtblau); position: relative; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3em .8em; border-radius: 999px; background: var(--fels-2); color: var(--braun); }
.badge-dunkel { background: var(--nachtblau); color: #fff; }
.paket-bald { background: var(--fels); box-shadow: none; }

.hinweis { border-left: 4px solid var(--ocker); background: var(--fels); padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.bg-fels .hinweis { background: #fff; }
.pilot { display: grid; gap: 1rem; align-items: center; background: #fff; border: 2px dashed var(--ocker); border-radius: var(--radius); padding: 1.4rem; margin-top: 2rem; }
@media (min-width: 720px) { .pilot { grid-template-columns: 1fr auto; padding: 1.6rem 2rem; } }
.pilot p { margin: 0; }

/* Ehrlichkeits-Block */
.ehrlich { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .ehrlich { grid-template-columns: 1fr 1.4fr; } }
.ehrlich-art { width: min(260px, 60vw); justify-self: center; }

/* Bericht-Vorschau (erfundene Daten) */
.bericht { background: #fff; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.25); padding: 1.4rem; color: var(--nachtblau); max-width: 520px; font-size: .92rem; transform: rotate(-1deg); }
.bericht-kopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 2px solid var(--fels-2); padding-bottom: .8rem; margin-bottom: .9rem; }
.bericht-kopf img { width: 120px; }
.bericht-kopf span { font-size: .75rem; color: var(--grau); text-align: right; }
.bericht h3 { font-size: 1.05rem; margin: 0 0 .7rem; }
.ampel-zeile { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--fels-2); }
.ampel-zeile:last-of-type { border-bottom: 0; }
.punkt { width: .9rem; height: .9rem; border-radius: 50%; }
.punkt.gruen { background: var(--gruen); } .punkt.gelb { background: var(--gelb); } .punkt.rot { background: var(--rot); }
.ampel-wort { font-size: .78rem; font-weight: 650; white-space: nowrap; }
.ampel-wort.gruen { color: var(--gruen); } .ampel-wort.gelb { color: #8a6114; } .ampel-wort.rot { color: var(--rot); }
.bericht-fuss { font-size: .72rem; color: var(--grau); margin-top: .8rem; }
.bericht-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .bericht-grid { grid-template-columns: 1fr 1fr; } }

/* Tabellen */
.table-wrap { overflow-x: auto; border: 1px solid var(--linie); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 620px; }
th, td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { background: var(--fels); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--grau); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 650; white-space: nowrap; }

/* FAQ */
.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--linie); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 650; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: .8rem; font-size: 1.6rem; font-weight: 400; color: var(--braun); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1.2rem; color: #33495a; }

/* Seitenkopf Unterseiten */
.page-head { background: var(--fels); padding: 3rem 0 2.6rem; }
@media (min-width: 720px) { .page-head { padding: 4.5rem 0 3.5rem; } }
.page-head h1 { font-size: clamp(1.9rem, 5vw, 3rem); max-width: 18em; }

/* Inhaltsseiten (Impressum, Datenschutz) */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.prose address { font-style: normal; }

/* Über mich */
.about { display: grid; gap: 2rem; }
@media (min-width: 900px) { .about { grid-template-columns: 300px 1fr; align-items: start; } }
.portrait { width: 100%; height: auto; border-radius: var(--radius); }
.foto-ersatz { aspect-ratio: 4/5; border-radius: var(--radius); background: var(--fels); display: flex; align-items: center; justify-content: center; }
.foto-ersatz img { width: 70%; height: auto; }
.foto-platzhalter { aspect-ratio: 4/5; border-radius: var(--radius); background: var(--fels) url("/img/murmeliwacht-icon.svg") center 40%/40% no-repeat; border: 2px dashed var(--ocker); display: flex; align-items: flex-end; justify-content: center; padding: 1rem; text-align: center; color: var(--braun); font-weight: 600; font-size: .9rem; }
.fakten { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.fakten li { display: grid; grid-template-columns: 2rem 1fr; gap: .6rem; align-items: start; }
.fakten svg { width: 22px; height: 22px; stroke: var(--braun); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: .25rem; }

/* Formular */
.form-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .form-grid { grid-template-columns: 1.4fr 1fr; } }
form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
label { font-weight: 600; font-size: .95rem; }
label .opt { font-weight: 400; color: var(--grau); }
input[type=text], input[type=email], input[type=tel], select, textarea {
  font: inherit; color: var(--nachtblau); width: 100%;
  padding: .75rem .9rem; border: 1.5px solid #C5BBAA; border-radius: 10px; background: #fff;
}
input:focus, select:focus, textarea:focus { border-color: var(--nachtblau); outline: 3px solid rgba(201,138,62,.35); outline-offset: 0; }
textarea { min-height: 8rem; resize: vertical; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; font-weight: 400; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--nachtblau); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-fehler { display: none; background: #FDECEC; border: 1px solid #F3B9B9; color: #8f1f1f; padding: .9rem 1rem; border-radius: 10px; }
.form-fehler:target, .form-fehler.zeigen { display: block; }
.kontakt-box { background: var(--fels); border-radius: var(--radius); padding: 1.6rem; }
.kontakt-box h2 { font-size: 1.25rem; }

/* CTA-Band */
.cta-band { text-align: center; }
.cta-band .lead { margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; }
.cta-band img { width: 76px; margin: 0 auto 1.2rem; }

/* Footer */
.site-footer { background: var(--nachtblau); color: #C9D4DA; padding: 3rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration-color: rgba(201,138,62,.7); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid img { width: 180px; }
.footer-slogan { margin-top: .8rem; color: var(--ocker); font-weight: 600; }
.footer-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #8FA3AE; margin-bottom: .8rem; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.4rem; padding-top: 1.2rem; font-size: .82rem; color: #8FA3AE; }

/* 404 */
.not-found { text-align: center; padding: 5rem 0; }
.not-found img { width: 120px; margin: 0 auto 1.5rem; }
.not-found .btn-row { justify-content: center; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .btn { display: none; } }

/* Hilfsklassen (keine Inline-Styles wegen CSP) */
.mt { margin-top: 1.2rem; }
.mt-s { margin-top: .8rem; }
.preis-gross { font-size: 2.2rem; font-weight: 750; letter-spacing: -0.02em; margin: .2rem 0 1rem; }
.preis-gross small { font-size: 1rem; font-weight: 500; color: var(--grau); }
.bericht-buehne { background: var(--nachtblau); border-radius: var(--radius); padding: 2rem 1.2rem; display: grid; place-items: center; }
.bg-dunkel .btn-light, .bg-dunkel .btn-light:hover { color: var(--nachtblau); }
@media (max-width: 899px) {
  .nav { gap: .9rem; }
  .nav a { font-size: .86rem; }
  .hero-art { width: min(230px, 60vw); }
}
.kontakt-box { align-self: start; }
/* E-Mail-Adressen: noch zu ändern (nur Vorschau-Build) */
mark.ph-mail { background: #FFD3A8; color: #6b3500; padding: 0 .25em; border-radius: 4px; outline: 1px dashed #c26a12; }
.site-footer mark.ph-mail, .bg-dunkel mark.ph-mail { color: #6b3500; }
