@font-face { font-family: "Caslon"; src: url("../fonts/libre-caslon-text-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Caslon"; src: url("../fonts/libre-caslon-text-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../fonts/karla-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../fonts/karla-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../fonts/karla-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Mono"; src: url("../fonts/jetbrains-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --papier: #f6efe4;
  --karte: #fffaf2;
  --tinte: #17363b;
  --tinte-weich: #4d6569;
  --koralle: #e0222b;
  --koralle-dunkel: #b3141d;
  --blau: #1c9bd6;
  --sand: #e9dcc6;
  --linie: #d8c9b0;
  --serif: "Caslon", Georgia, serif;
  --sans: "Karla", system-ui, sans-serif;
  --mono: "Mono", ui-monospace, monospace;
  --breit: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--papier); color: var(--tinte); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: 1.25rem; }
h1 em, .marke em { font-style: normal; color: var(--koralle); }
p { margin: 0 0 1em; }
a { color: inherit; }
.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.ueber { font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--koralle-dunkel); margin-bottom: 1rem; }
.mitte { text-align: center; }
:focus-visible { outline: 3px solid var(--koralle); outline-offset: 3px; }

.entwurf { margin: 0; padding: .45rem 1rem; background: var(--tinte); color: var(--papier); font-size: .8rem; text-align: center; }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem max(1rem, calc((100vw - var(--breit)) / 2)); background: rgba(246, 239, 228, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linie); }
.marke { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; text-decoration: none; white-space: nowrap; }
.marke img { width: 44px; height: 44px; mix-blend-mode: multiply; }
.kopf nav { display: flex; align-items: center; gap: 1.5rem; font-size: .95rem; }
.kopf nav a:not(.knopf) { text-decoration: none; }
.kopf nav a:not(.knopf):hover { color: var(--koralle-dunkel); }

.knopf { display: inline-block; padding: .9rem 1.5rem; background: var(--koralle); color: #fff; font: 700 1rem var(--sans); text-decoration: none; border: 0; border-radius: 999px; cursor: pointer; transition: background .15s, transform .15s; }
.knopf:hover { background: var(--koralle-dunkel); transform: translateY(-1px); }
.knopf.klein { padding: .55rem 1.1rem; font-size: .9rem; white-space: nowrap; }
.knopf.breit { width: 100%; }
.knopf.hell { background: transparent; color: var(--tinte); border: 1.5px solid var(--tinte); }
.knopf.hell:hover { background: var(--tinte); color: var(--papier); }

/* Bühne */
.buehne { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; max-width: var(--breit); margin: 0 auto; padding: clamp(2.5rem, 7vw, 5.5rem) 1rem; position: relative; }
.buehne::before { content: ""; position: absolute; left: 1rem; right: 48%; bottom: 2.2rem; height: 90px; pointer-events: none; opacity: .55;
  background: no-repeat left bottom / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 90' preserveAspectRatio='none'%3E%3Cpath d='M2 80 C120 -10 260 110 498 12' fill='none' stroke='%231c9bd6' stroke-width='2' stroke-dasharray='2 9' stroke-linecap='round'/%3E%3C/svg%3E"); }
.lead { font-size: 1.2rem; max-width: 34rem; color: var(--tinte-weich); }
.haken { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .45rem; font-weight: 600; }
.haken li { padding-left: 1.7rem; position: relative; }
.haken li::before { content: ""; position: absolute; left: 0; top: .5em; width: .9rem; height: .5rem; border-left: 2.5px solid var(--koralle); border-bottom: 2.5px solid var(--koralle); transform: rotate(-45deg) translateY(-2px); }

/* Finder */
.finder { background: var(--karte); border: 1px solid var(--linie); border-radius: 22px; padding: 1.5rem; box-shadow: 0 24px 50px -28px rgba(23, 54, 59, .45); position: relative; z-index: 1; min-height: 25rem; }
.finder-kopf { display: flex; justify-content: space-between; color: var(--tinte-weich); }
.fortschritt { height: 4px; background: var(--sand); border-radius: 4px; margin: .7rem 0 1.4rem; overflow: hidden; }
.fortschritt i { display: block; height: 100%; width: 20%; background: var(--blau); border-radius: 4px; transition: width .3s; }
.schritt { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.schritt.aktiv { display: block; animation: rein .25s ease; }
@keyframes rein { from { opacity: 0; transform: translateX(10px); } }
.schritt legend { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; line-height: 1.2; padding: 0; margin-bottom: 1.1rem; }
.wahl { display: grid; gap: .6rem; }
.wahl.monate { grid-template-columns: repeat(4, 1fr); }
.wahl button { font: 600 1rem var(--sans); color: var(--tinte); text-align: left; padding: .85rem 1rem; background: #fff; border: 1.5px solid var(--linie); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.wahl.monate button { text-align: center; padding: .8rem .2rem; }
.wahl button small { display: block; font-weight: 400; font-size: .85rem; color: var(--tinte-weich); }
.wahl button:hover { border-color: var(--tinte); }
.wahl button.gewaehlt { background: var(--tinte); border-color: var(--tinte); color: var(--papier); }
.wahl button.gewaehlt small { color: var(--sand); }
.hinweis { font-size: .85rem; color: var(--tinte-weich); margin: .9rem 0 0; }
.feld { display: block; margin-bottom: .9rem; }
.feld span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.feld input { width: 100%; font: 400 1.05rem var(--sans); padding: .85rem 1rem; border: 1.5px solid var(--linie); border-radius: 12px; background: #fff; color: var(--tinte); }
.haekchen { display: flex; gap: .65rem; font-size: .85rem; line-height: 1.45; color: var(--tinte-weich); margin-bottom: 1rem; }
.haekchen input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--koralle); }
.fehler { color: var(--koralle-dunkel); font-weight: 600; font-size: .9rem; }
.zurueck { margin-top: 1rem; background: none; border: 0; padding: .3rem 0; font: 600 .9rem var(--sans); color: var(--tinte-weich); text-decoration: underline; cursor: pointer; }

/* Ergebnis */
.ergebnis { max-width: var(--breit); margin: 0 auto; padding: 1rem 1rem 4rem; text-align: center; outline: 0; }
.karten { display: grid; gap: 1.2rem; margin: 2rem 0 1.5rem; text-align: left; }
.karte { display: grid; grid-template-columns: 1fr 15rem; background: var(--karte); border: 1px solid var(--linie); border-radius: 18px; position: relative; animation: rein .4s ease both; }
.karte:nth-child(2) { animation-delay: .1s; } .karte:nth-child(3) { animation-delay: .2s; }
.karte-haupt { padding: 1.4rem 1.6rem; }
.karte-kopf { display: flex; justify-content: space-between; color: var(--tinte-weich); margin-bottom: 1rem; }
.strecke { display: flex; align-items: center; gap: .8rem; font-family: var(--mono); font-size: 1.5rem; letter-spacing: .06em; margin-bottom: .6rem; }
.strecke b { font-weight: 500; }
.strecke b:last-child { color: var(--koralle); }
.strecke i { flex: 1; max-width: 9rem; border-top: 2px dashed var(--linie); position: relative; }
.strecke i::after { content: "✈"; position: absolute; right: -2px; top: -.82em; font-style: normal; font-size: 1rem; color: var(--tinte); background: var(--karte); padding-left: .2rem; }
.karte h3 { font-size: 1.7rem; margin-bottom: .3em; }
.karte p { margin-bottom: .5em; }
.karte .grund { font-weight: 600; color: var(--koralle-dunkel); margin: 0; }
.karte-rand { margin: 0; padding: 1.4rem 1.4rem 1.4rem 1.6rem; border-left: 2px dashed var(--linie); display: grid; gap: .9rem; align-content: center; position: relative; }
.karte-rand::before, .karte-rand::after { content: ""; position: absolute; left: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--papier); border: 1px solid var(--linie); }
.karte-rand::before { top: -11px; clip-path: inset(50% 0 0 0); }
.karte-rand::after { bottom: -11px; clip-path: inset(0 0 50% 0); }
.karte-rand dt { color: var(--tinte-weich); font-size: .65rem; }
.karte-rand dd { margin: .1rem 0 0; font-size: .8rem; letter-spacing: .04em; line-height: 1.5; }
.leer { text-align: center; padding: 2rem; background: var(--karte); border-radius: 18px; }

/* Ablauf */
.ablauf { max-width: var(--breit); margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) 1rem; border-top: 1px solid var(--linie); }
.ablauf h2 { max-width: 22ch; }
.schritte { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.schritte li { border-top: 2px solid var(--tinte); padding-top: 1rem; }
.schritte .mono { color: var(--koralle-dunkel); font-size: .85rem; display: block; margin-bottom: .8rem; }
.schritte p { color: var(--tinte-weich); margin: 0; }

/* Paket */
.paket { background: var(--tinte); color: var(--papier); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(3rem, 7vw, 5.5rem) max(1rem, calc((100vw - var(--breit)) / 2)); }
.paket .ueber { color: #f4a08e; }
.haken.dunkel { font-weight: 400; margin: 1.2rem 0 1.5rem; }
.haken.dunkel li::before { border-color: #f4a08e; }
.klein-text { font-size: .9rem; color: var(--sand); }
.prompt { background: var(--karte); color: var(--tinte); border-radius: 16px; padding: 1.5rem; transform: rotate(1.5deg); box-shadow: 0 30px 50px -25px rgba(0, 0, 0, .6); font-size: 1rem; }
.prompt-kopf { color: var(--tinte-weich); border-bottom: 1px dashed var(--linie); padding-bottom: .8rem; margin-bottom: 1rem; }
.prompt p:last-child { margin: 0; }
.prompt mark { background: #fbd9d0; color: var(--koralle-dunkel); font-family: var(--mono); font-size: .85em; padding: .1em .35em; border-radius: 5px; }

/* Saskia */
.saskia { max-width: var(--breit); margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) 1rem; display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.saskia > div:last-child { max-width: 36rem; }
.portrait { width: 17rem; aspect-ratio: 1; border-radius: 50%; background: var(--sand); overflow: hidden; box-shadow: 0 0 0 6px var(--karte), 0 0 0 8px var(--blau); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
.platzhalter { background: #fbe9c9; border-left: 3px solid #c98a14; padding: .7rem .9rem; font-size: .95rem; border-radius: 0 8px 8px 0; }
.textlink { font-weight: 700; color: var(--koralle-dunkel); }

/* Schluss und Fuß */
.schluss { text-align: center; padding: clamp(3rem, 7vw, 5rem) 1rem; background: var(--sand); }
.schluss h2 { max-width: 20ch; margin: 0 auto .8em; }
.fuss { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.5rem max(1rem, calc((100vw - var(--breit)) / 2)); font-size: .9rem; }

/* Rechtstexte */
.recht { max-width: 44rem; margin: 0 auto; padding: 3rem 1rem 5rem; }
.recht h1 { font-size: 2.4rem; }
.recht h2 { font-size: 1.5rem; margin-top: 2.5rem; }

@media (max-width: 860px) {
  .kopf nav a:not(.knopf) { display: none; }
  .buehne, .paket, .saskia { grid-template-columns: 1fr; }
  .buehne::before { display: none; }
  .schritte { grid-template-columns: 1fr; gap: 1.5rem; }
  .karte { grid-template-columns: 1fr; }
  .karte-rand { border-left: 0; border-top: 2px dashed var(--linie); grid-template-columns: 1fr 1fr; padding: 1.2rem 1.6rem; }
  .karte-rand > div:last-child { grid-column: 1 / -1; }
  .karte-rand::before { top: -11px; left: -11px; clip-path: inset(0 0 0 50%); }
  .karte-rand::after { top: -11px; bottom: auto; left: auto; right: -11px; clip-path: inset(0 50% 0 0); }
  .portrait { width: 12rem; }
  .prompt { transform: none; }
}
@media (max-width: 420px) {
  .marke { font-size: 1.05rem; }
  .marke img { width: 36px; height: 36px; }
  .knopf.klein { padding: .5rem .8rem; font-size: .8rem; }
  .finder { padding: 1.1rem; }
  .schritt legend { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
