/* Passmio – Startseite. Keine externen Anfragen: Schriften liegen lokal in /fonts. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f8f7f4;
  --ink: #0f1a20;
  --ink-2: #1b2a33;
  --mute: #5b6a70;
  --line: #e4e2dc;
  --card: #ffffff;
  --tint: #e8ede9;
  --tint-2: #f0e9dc;
  --red: #e5384f;
  --red-text: #c42a41;
  --teal: #19d3b4;
  --teal-text: #0a7a68;
  --wrap: 70rem;
  --gap: clamp(1.25rem, 4vw, 3rem);
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --r: 1.5rem;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red-text); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--ink); }

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

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gap); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--card); color: var(--ink); padding: 0.6rem 1rem; border-radius: 8px;
}
.skip:focus { top: 1rem; }

/* ---------- Typografie ---------- */
h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 8.4vw, 6rem); line-height: 0.98; letter-spacing: -0.04em; }
h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.2; }
h1 em, h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
}
p { margin: 0 0 1em; max-width: 62ch; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.6; color: var(--mute); max-width: 36em; }
.small { font-size: 0.92rem; color: var(--mute); }
.center { text-align: center; }
.center p, .center .lead { margin-inline: auto; }

/* ---------- Kopf ---------- */
.top { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 0.8rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand img.mark { width: 2.3rem; height: 2.3rem; border-radius: 9px; }
.brand .word { font-weight: 700; font-size: 1.55rem; letter-spacing: -0.04em; line-height: 1; }
.nav { display: flex; align-items: center; gap: 0.3rem 1.6rem; flex-wrap: wrap; font-weight: 500; font-size: 0.98rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 0.35rem 0; }
.nav a:hover { color: var(--red-text); }
.nav a.pill {
  background: var(--ink); color: #fff; padding: 0.55rem 1.1rem; border-radius: 0.7rem; font-weight: 600;
}
.nav a.pill:hover { background: var(--red); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 5vw, 4rem); text-align: center; }
.hero h1 { margin: 1.6rem auto 1.4rem; max-width: 12em; }
.hero .lead { margin-inline: auto; }

.badge {
  display: inline-flex; align-items: center; gap: 0.7rem;
  border: 1px solid var(--line); background: #efeee9; border-radius: 999px;
  padding: 0.45rem 1.1rem 0.45rem 0.7rem;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: var(--ink);
}
.badge::before {
  content: ""; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--teal-text);
  box-shadow: 0 0 0 4px rgba(25, 211, 180, 0.25); flex: none;
}

.btns { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; align-items: center; margin: 2.2rem 0 1rem; }
.center .btns, .hero .btns, .closing .btns { justify-content: center; }
.btn {
  font-family: var(--sans); font-weight: 600; font-size: 1.05rem;
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.95rem 1.5rem; border-radius: 0.8rem;
  text-decoration: none; border: 1.5px solid transparent; line-height: 1.1;
}
.btn::after { content: "→"; font-weight: 400; transition: transform 0.15s; }
.btn:hover::after { transform: translateX(3px); }
.btn.main { background: var(--ink); color: #fff; }
.btn.main:hover { background: var(--red); color: #fff; }
.btn.alt { background: transparent; color: var(--ink); padding-inline: 0.6rem; }
.btn.alt:hover { color: var(--red-text); }
.note { font-size: 0.9rem; color: var(--mute); margin: 0 auto; }

/* Hero-Bühne: Zeichnung + Foto in großer Karte */
.stage {
  margin-top: clamp(2.2rem, 5vw, 3.6rem);
  background: linear-gradient(135deg, var(--tint) 0%, var(--tint-2) 100%);
  border-radius: calc(var(--r) + 0.5rem);
  padding: clamp(1.2rem, 3.5vw, 2.6rem);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: center; text-align: left;
}
.draft { background: rgba(255, 255, 255, 0.7); border-radius: var(--r); padding: clamp(1rem, 3vw, 2rem); }
.draft svg { width: 100%; overflow: visible; }
.draft .cut { fill: none; stroke: var(--red); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.draft .dim { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.draft text { font-family: var(--sans); font-weight: 500; font-size: 15px; fill: var(--ink); }
.draft p { margin: 1.1rem 0 0; font-size: 0.95rem; color: var(--mute); max-width: none; }

@media (prefers-reduced-motion: no-preference) {
  .draft .cut { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s 0.3s cubic-bezier(0.5, 0, 0.2, 1) forwards; }
  .draft .cut.hex { animation-delay: 1.6s; animation-duration: 0.9s; }
  .draft .dim, .draft text { opacity: 0; animation: show 0.6s 2.3s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes show { to { opacity: 1; } }

.photo { margin: 0; }
.photo img { border-radius: var(--r); width: 100%; }
.photo.tall img { aspect-ratio: 3 / 4; object-fit: cover; }
.photo figcaption { font-size: 0.88rem; color: var(--mute); margin-top: 0.6rem; line-height: 1.4; }
.stage .photo figcaption { color: #4d5b60; }

/* ---------- Abschnitte ---------- */
section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.sec-head { margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.sec-head.center { max-width: 44rem; margin-inline: auto; }
.sec-head p { margin: 1rem 0 0; font-size: 1.15rem; color: var(--mute); }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; color: var(--teal-text); margin: 0 0 1rem; }

/* Große Tönungskarte (Datenschutz) */
.panel {
  background: var(--tint); border-radius: calc(var(--r) + 0.5rem);
  padding: clamp(1.8rem, 5vw, 4rem);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); gap: var(--gap); align-items: center;
}
.panel h2 { margin-bottom: 1.2rem; }
.panel p { font-size: 1.1rem; }
.ring { width: min(100%, 15rem); justify-self: center; }
.ring circle { fill: none; stroke-linecap: round; }
.ring .track { stroke: #cdd5d0; stroke-width: 14; }
.ring .arc { stroke: #4f5c4b; stroke-width: 14; }
.ring .dot { fill: #d9a54a; stroke: none; }
.ring .guide { stroke: #c6cec9; stroke-width: 1.2; }

/* Vergleich */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.compare > div { border-radius: var(--r); padding: clamp(1.4rem, 3vw, 2.2rem); }
.compare .without { background: #efeee9; }
.compare .with { background: var(--ink); color: #e8f0f3; }
.compare h3 { margin-bottom: 1.1rem; font-size: 1.5rem; }
.compare .with h3 { color: #fff; }
.compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.compare li { padding-left: 1.7rem; position: relative; }
.compare li::before { content: "–"; position: absolute; left: 0; color: var(--mute); font-weight: 700; }
.compare .with li::before { content: "✓"; color: var(--teal); }

/* Schritte */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.steps li {
  counter-increment: s; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: clamp(1.3rem, 3vw, 2rem);
}
.steps li::before {
  content: counter(s); display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 1rem; margin-bottom: 1.1rem;
}
.steps h3 { margin-bottom: 0.5rem; }
.steps p { margin: 0; color: var(--mute); }
.steps-photo { margin-top: var(--gap); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--gap); align-items: center; }
.steps-photo p { font-size: 1.1rem; color: var(--mute); }

/* Funktionen */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; }
.features div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; }
.features dt { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 0.5rem; }
.features dd { margin: 0; color: var(--mute); font-size: 0.98rem; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.gallery img { aspect-ratio: 3 / 4; object-fit: cover; }

/* Drucken lassen */
.service { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--gap); align-items: center; }
.service .box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.4rem, 3vw, 2rem); }
.service .box h3 { margin-bottom: 0.8rem; }
.service .box ul { margin: 0 0 1.4rem; padding-left: 1.2rem; color: var(--mute); }
.tinted { background: var(--tint-2); }

/* FAQ */
.faq { max-width: 46rem; margin-inline: auto; }
.faq details { border-top: 1px solid var(--line); padding: 1.2rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.25;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--red-text); transition: transform 0.2s; flex: none; font-weight: 400; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0.8rem 0 0; color: var(--mute); }

/* Abschluss-CTA */
.closing { padding-block: clamp(4rem, 10vw, 8rem); text-align: center; border-top: 1px solid var(--line); }
.closing h2 { max-width: 14em; margin-inline: auto; }

/* Fuß */
.foot { border-top: 1px solid var(--line); padding-block: 3rem 2rem; text-align: center; color: var(--mute); font-size: 0.95rem; }
.foot .tag { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--ink); margin: 0.9rem auto 1.4rem; }
.foot img { margin-inline: auto; height: 2.8rem; width: auto; border-radius: 10px; }
.foot nav { display: flex; gap: 0.4rem 1.8rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.4rem; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { color: var(--red-text); text-decoration: underline; }
.foot .legal-row { display: flex; gap: 0.4rem 1.6rem; flex-wrap: wrap; justify-content: center; align-items: center; padding-top: 1.4rem; border-top: 1px solid var(--line); }

/* Rechtstexte */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); margin-bottom: 2rem; }
.legal h2 { font-size: 1.6rem; letter-spacing: -0.02em; margin: 2.2rem 0 0.6rem; }
.legal p, .legal li { max-width: 62ch; }
.legal ul { padding-left: 1.2rem; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 52rem) {
  .stage, .panel, .service, .steps-photo { grid-template-columns: 1fr; }
  .stage .photo { max-width: 22rem; margin-inline: auto; }
  .compare, .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav a:not(.pill) { display: none; }
}
@media (max-width: 34rem) {
  .features, .gallery { grid-template-columns: 1fr; }
  .top .wrap { flex-wrap: nowrap; }
}
