/* 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-display: swap;
}

:root {
  --ink: #0f1a20;
  --ink-2: #1b2a33;
  --paper: #f5f7f8;
  --sheet: #ffffff;
  --steel: #cfd8dc;
  --steel-2: #e3e9ec;
  --mute: #46585f;
  --red: #e5384f;
  --red-text: #c42a41;
  --teal: #19d3b4;
  --teal-text: #0a7a68;
  --wrap: 72rem;
  --gap: clamp(1.25rem, 4vw, 3rem);
  --head: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
  -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: 2px; }

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

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

/* ---------- Typografie ---------- */
h1, h2, h3 {
  font-family: var(--head);
  font-stretch: 75%;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(3.4rem, 10.5vw, 8rem); line-height: 0.9; }
h2 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); }
h3 { font-size: 1.55rem; font-stretch: 85%; font-weight: 700; line-height: 1.1; }
p { margin: 0 0 1em; max-width: 62ch; }
.lead { font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.5; max-width: 34em; }
.small { font-size: 0.95rem; color: var(--mute); }

/* ---------- Kopf ---------- */
.top { background: var(--ink); color: #fff; }
.top .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 0.9rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.brand img.mark { width: 2.6rem; height: 2.6rem; border-radius: 10px; }
.brand img.word { height: 1.35rem; width: auto; }
.nav { display: flex; gap: 0.3rem 1.6rem; flex-wrap: wrap; font-family: var(--head); font-stretch: 90%; font-weight: 500; font-size: 1rem; }
.nav a { color: #dbe5e9; text-decoration: none; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: #fff; border-color: var(--red); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4.4fr); gap: var(--gap); align-items: start; }
.hero h1 { margin-bottom: 1.6rem; }
.hero .lead { margin-bottom: 2rem; }

.btns { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.6rem; }
.btn {
  font-family: var(--head); font-stretch: 90%; font-weight: 700; font-size: 1.1rem;
  display: inline-block; padding: 0.85rem 1.5rem; border-radius: 6px;
  text-decoration: none; border: 2px solid var(--ink); line-height: 1.1;
}
.btn.main { background: var(--red); border-color: var(--red); color: #fff; }
.btn.main:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.alt { background: transparent; color: var(--ink); }
.btn.alt:hover { background: var(--ink); color: #fff; }
.on-dark .btn.alt { color: #fff; border-color: #fff; }
.on-dark .btn.alt:hover { background: #fff; color: var(--ink); }

.status { font-size: 0.95rem; color: var(--mute); margin: 0 0 1.4rem; display: flex; align-items: center; gap: 0.6rem; }
.status::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--teal); flex: none; }

/* gezeichneter Schraubenschlüssel mit Maßlinie */
.draft { max-width: 38rem; }
.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(--head); font-stretch: 85%; font-weight: 600; font-size: 15px; fill: var(--ink); }

@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: 6px; width: 100%; }
.photo.tall img { aspect-ratio: 3 / 4; object-fit: cover; }
.photo figcaption { font-size: 0.9rem; color: var(--mute); margin-top: 0.6rem; line-height: 1.4; }

/* ---------- Abschnitte ---------- */
section { padding-block: clamp(3rem, 8vw, 6rem); }
section + section { border-top: 1px solid var(--steel); }
.on-dark { background: var(--ink); color: #e8f0f3; border-top: 0 !important; }
.on-dark h2, .on-dark h3 { color: #fff; }
.on-dark a { color: #ff8d9d; }
.on-dark a:hover { color: #fff; }
.on-dark .small { color: #9fb2bb; }
.sec-head { margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.sec-head p { margin: 1rem 0 0; font-size: 1.25rem; }

/* So geht es: echte Reihenfolge, deshalb nummeriert */
.steps-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--gap); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 1.8rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3.4rem 1fr; gap: 1rem; align-items: start; }
.steps li::before {
  content: counter(s);
  font-family: var(--head); font-stretch: 62%; font-weight: 800; font-size: 4rem; line-height: 0.8;
  color: var(--red);
}
.steps h3 { margin-bottom: 0.35rem; }
.steps p { margin: 0; }

/* Funktionen */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem var(--gap); margin: 0; }
.features div { border-top: 3px solid var(--ink); padding-top: 1rem; }
.features dt { font-family: var(--head); font-stretch: 85%; font-weight: 700; font-size: 1.5rem; line-height: 1.15; margin-bottom: 0.4rem; }
.features dd { margin: 0; }

/* Privatsphäre */
.privacy { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--gap); align-items: center; }
.privacy p { font-size: 1.25rem; }
.privacy .flow { display: grid; gap: 0.7rem; font-family: var(--head); font-stretch: 85%; font-weight: 600; font-size: 1.15rem; }
.privacy .flow span { border: 2px solid #3a4f5a; border-radius: 6px; padding: 0.8rem 1rem; display: block; }
.privacy .flow span.on { border-color: var(--teal); color: var(--teal); }
.privacy .flow small { display: block; font-family: var(--body); font-weight: 400; font-stretch: 100%; font-size: 0.9rem; color: #9fb2bb; margin-top: 0.15rem; }

/* 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(--sheet); border: 1px solid var(--steel); border-radius: 8px; padding: 1.6rem; }
.service .box h3 { margin-bottom: 0.6rem; }
.service .box ul { margin: 0 0 1.2rem; padding-left: 1.2rem; }

/* FAQ */
.faq { max-width: 46rem; }
.faq details { border-top: 1px solid var(--steel); padding: 1.1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--steel); }
.faq summary {
  font-family: var(--head); font-stretch: 88%; font-weight: 700; font-size: 1.35rem; line-height: 1.2;
  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.7rem; line-height: 1; color: var(--red-text); transition: transform 0.2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0.8rem 0 0; }

/* Fuß */
.foot { background: var(--ink); color: #b9c8cf; padding-block: 2.6rem; font-size: 1rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: center; }
.foot a { color: #e8f0f3; }
.foot a:hover { color: #fff; }
.foot nav { display: flex; gap: 0.4rem 1.6rem; flex-wrap: wrap; }
.foot img { height: 2.8rem; width: auto; border-radius: 6px; }

/* Rechtstexte */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal h1 { font-size: clamp(2.8rem, 8vw, 5rem); margin-bottom: 2rem; }
.legal h2 { font-size: 1.9rem; font-stretch: 80%; 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) {
  .hero .wrap, .steps-layout, .privacy, .service { grid-template-columns: 1fr; }
  .hero .photo.tall { max-width: 26rem; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .a { grid-column: 1 / -1; grid-row: auto; }
  .gallery .b, .gallery .c { grid-column: auto; }
  .gallery .a img { aspect-ratio: 4 / 3; object-position: center 35%; }
  .steps li { grid-template-columns: 2.6rem 1fr; }
  .steps li::before { font-size: 3.2rem; }
}
@media (max-width: 34rem) {
  .gallery { grid-template-columns: 1fr; }
  .brand img.word { height: 1.1rem; }
}
