/* wAInachten – Stil aus Huyen OS (Brand Kit im Dashboard) und dem GTA-Guide:
   Weiß, Ink, Lime für aktiv/primär, Rosa für Chips und Akzente.
   VCR für Überschriften und Menü, kursive Serif für betonte Wörter, Geist 18 px für Text. */
@font-face { font-family: VCR; src: url('/fonts/VCR-OSD-Mono.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: Geist; src: url('/fonts/Geist.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }

:root {
  --lime: #E0FA82;
  --rosa: #FFC2DD;
  --ink: #1C1C1E;
  --weiss: #FFFFFF;
  --grau: #626266;
  --rand: 1px solid #1c1c1e26;
  --vcr: VCR, ui-monospace, Menlo, Consolas, monospace;
  --serif: 'Times New Roman', Times, Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; overflow-x: clip; background: var(--weiss); color: var(--ink); font: 400 18px/1.5 Geist, Arial, sans-serif; }
a { color: var(--ink); text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

h1, h2, .marke, .nr, .chips a, .name {
  font-family: var(--vcr); font-weight: 400;
  text-transform: uppercase; letter-spacing: 0; line-height: 1.1;
}
/* Betonte Wörter: kursive Serif in Großbuchstaben */
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: uppercase; }
.huelle { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

/* Menüleiste wie in Huyen OS: Chips mit weichem Übergang */
@property --chip { syntax: "<color>"; inherits: true; initial-value: #ffc2dd; }
@property --next-chip { syntax: "<color>"; inherits: true; initial-value: #ffc2dd; }
.kopf { position: sticky; top: 0; z-index: 10; background: var(--weiss); border-bottom: 1px solid #1c1c1e1f; }
.kopf .huelle { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.marke { font-size: 24px; text-decoration: none; }
.marke span { background: var(--lime); border-radius: 4px; padding: 0 2px; }
.chips { display: flex; align-items: center; }
.chips a {
  --neck: 3px; --chip: var(--rosa); --next-chip: var(--rosa);
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 4px 10px;
  margin-right: var(--neck); border-radius: 10px; background: var(--chip); font-size: 18px; text-decoration: none;
  transition: margin-right 230ms ease, --chip 230ms ease, --next-chip 230ms ease;
}
.chips a:last-child { margin-right: 0; }
.chips a:not(:last-child)::after {
  content: ''; position: absolute; left: calc(100% - 2px); top: 0; width: calc(var(--neck) + 4px); height: 100%;
  background: linear-gradient(to right, var(--chip), var(--next-chip));
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 44' preserveAspectRatio='none'%3E%3Cpath d='M0 6 C4 6 4 17 12 17 S20 6 24 6 V38 C20 38 20 27 12 27 S4 38 0 38Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  transition: width 230ms ease;
}
.chips a[aria-current="page"] { --chip: var(--lime); }
.chips a:has(+ a[aria-current="page"]) { --next-chip: var(--lime); }
@media (hover: hover) { .chips a:hover, .chips a:has(+ a:hover) { --neck: 16px; } }
@media (max-width: 480px) { .chips a { font-size: 16px; padding-inline: 6px; } .marke { font-size: 20px; } }

/* Wärme: ganz leichtes Papierkorn über allem */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Absender ganz oben, Anordnung wie im GTA-Guide: Name, Motto, QR-Code, Linie darunter */
.band { background: var(--weiss); }
.absender { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.absender .wer { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
.absender .name { font-size: 20px; }
.slogan { font-family: var(--vcr); text-transform: uppercase; color: var(--ink); }
.absender .slogan { font-size: 16px; }
/* Kanal-Icons statt QR-Code (Huyen 26.11.2026): LinkedIn und Instagram in CI-Farben (LinkedIn rosa, Instagram grün) */
.kanaele { display: flex; gap: 10px; }
.kanal { display: block; flex: none; width: 44px; height: 44px; border-radius: 10px; line-height: 0; transition: transform 160ms ease; }
.kanal svg { width: 100%; height: 100%; display: block; }
.kanal:hover { transform: translateY(-2px); }
.kanal:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.kanaele.gross { align-self: center; gap: 16px; }
.kanaele.gross .kanal { width: 88px; height: 88px; border-radius: 18px; }

/* Hero: Text oben, darunter Video (16:9) und Anmeldung */
.hero { display: grid; gap: 32px; padding: 32px 0 24px; grid-template-areas: "text" "video" "form"; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.6fr 1fr; grid-template-areas: "text text" "video form"; column-gap: 48px; align-items: start; padding-top: 40px; }
}
.hero-text { grid-area: text; position: relative; }
.video-rahmen { grid-area: video; }
#anmeldung-box { grid-area: form; }
h1 { font-size: clamp(40px, 6vw, 72px); margin: 14px 0 18px; max-width: 14em; }
h1 em { font-size: 1em; }
h1 .ki { background: var(--lime); border-radius: 6px; padding: 0 .05em; }
.unterzeile { max-width: 36em; margin: 0; font-size: 20px; }
.zettel { display: inline-block; font-size: 16px; background: var(--rosa); padding: 4px 12px; border-radius: 4px 10px 6px 12px; transform: rotate(-1.5deg); }

.doodle { position: absolute; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }

/* Klebestreifen */
.tape {
  position: absolute; width: 96px; height: 28px; z-index: 2; opacity: .85;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 2px, transparent 2px 6px), var(--rosa);
  clip-path: polygon(3% 8%, 97% 0, 100% 50%, 96% 100%, 2% 94%, 0 45%);
}
.tape-links { top: -12px; left: 24px; transform: rotate(-6deg); }
.tape-rechts { top: -10px; right: 28px; transform: rotate(5deg); background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 2px, transparent 2px 6px), var(--lime); }
.tape-mitte { top: -14px; left: 50%; transform: translateX(-50%) rotate(-2deg); }

/* Videorahmen wie ein eingeklebtes Foto */
.video-rahmen {
  position: relative; margin: 8px 0 0; padding: 12px 12px 8px; background: var(--weiss);
  border-radius: 14px 10px 16px 12px; transform: rotate(-.8deg);
  box-shadow: 6px 10px 0 #ffc2dd66, 0 18px 40px #1c1c1e14; border: var(--rand);
}
.video-platz, .video-rahmen video {
  display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px 8px 12px 9px;
  background: radial-gradient(120% 90% at 30% 20%, #fff 0, var(--rosa) 55%, var(--lime) 130%);
}
.video-platz { display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; font-size: 18px; }
.play { width: 72px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; }
.play path:last-child { fill: var(--weiss); }
.video-rahmen figcaption { font-size: 16px; padding: 10px 4px 2px; color: var(--grau); }

/* Anmeldung */
.anmeldung {
  position: relative; background: var(--weiss); border: var(--rand); padding: 28px 24px 24px; margin-top: 8px;
  border-radius: 12px 18px 10px 16px / 16px 10px 18px 12px; transform: rotate(.6deg);
  box-shadow: 6px 10px 0 #e0fa8299, 0 18px 40px #1c1c1e12;
}
.anmeldung h2 { font-size: 26px; margin: 0 0 12px; }
.anmeldung p { margin: 0 0 16px; }
.vorzeile { font: 16px var(--vcr); text-transform: uppercase; margin: 0 0 8px; }
label.feld { display: block; font-size: 16px; margin: 0 0 6px; }
input[type=email] {
  display: block; width: 100%; font: inherit; color: var(--ink); padding: 10px 12px; margin-bottom: 20px;
  border: var(--rand); border-radius: 8px; background: var(--weiss);
}
/* Bot-Falle: für Menschen unsichtbar, Bots füllen sie aus. Nicht display:none, das erkennen manche Bots. */
.falle { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.haekchen { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.45; margin: 0 0 20px; cursor: pointer; }
.haekchen input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--ink); cursor: pointer; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; width: 100%;
  font: 600 18px/1.2 Geist, Arial, sans-serif; color: var(--ink); background: var(--lime);
  border: 0; border-radius: 6px; padding: 10px 16px; cursor: pointer; text-decoration: none;
}
.knopf:hover { background: var(--rosa); }
.knopf.aus, .knopf.aus:hover { background: #eee; color: #555; cursor: default; margin: 16px 0 0; }
.beendet { background: var(--lime); border-radius: 6px; padding: 12px 16px; font-weight: 600; }
.klein { font-size: 16px; }
.meldung { margin: 12px 0 0; font-weight: 600; min-height: 1.5em; }
.offen-hinweis { background: var(--lime); border-radius: 12px 18px 10px 16px / 16px 10px 18px 12px; padding: 24px; margin-top: 8px; transform: rotate(.6deg); }
.offen-hinweis h2 { font-size: 26px; margin: 0 0 8px; }
.offen-hinweis p { margin: 0; }

/* Abschnitte: Abstand statt Linien */
.abschnitt { margin-top: 80px; }
.abschnitt > h2 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 12px; }
.abschnitt > p { margin: 0 0 20px; max-width: 650px; }

/* Kalender: drei Zustände, alle Karten gleich gebaut */
.legende { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 24px; padding: 0; font-size: 16px; }
.legende li { display: flex; align-items: center; gap: 8px; }
.punkt { width: 18px; height: 18px; border-radius: 5px; border: var(--rand); background: var(--weiss); }
.punkt.heute { background: var(--lime); border-color: var(--ink); }
.punkt.zu { background: var(--rosa); border-color: transparent; }

/* Kalender als kräftiges Raster (Huyen 25.11.2026): Kacheln mit Pixel-Motiv, Zahlen in drei Größen. */
.raster { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(4, 1fr); }
@media (min-width: 640px) { .raster { grid-template-columns: repeat(6, 1fr); gap: 12px; } }
.raster-hinweis { grid-column: 1 / -1; }
.kachel { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; }
.kachel canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.kachel-nr { position: absolute; font-family: var(--vcr); line-height: .8; pointer-events: none; }
.kachel-nr.s { font-size: clamp(18px, 4.5vw, 26px); } .kachel-nr.m { font-size: clamp(30px, 8vw, 46px); } .kachel-nr.l { font-size: clamp(48px, 14vw, 84px); }
.kachel-nr.ul { left: 7%; bottom: 7%; } .kachel-nr.or { right: 7%; top: 8%; } .kachel-nr.ol { left: 7%; top: 8%; } .kachel-nr.ur { right: 7%; bottom: 7%; }
.kachel-ziel { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; padding: 0; border-radius: inherit; cursor: pointer; }
.kachel.zu .kachel-ziel { cursor: not-allowed; }
.kachel-ziel:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
/* Heute neu: schwarzer Rahmen, damit man es sofort findet */
.kachel.heute { overflow: visible; outline: 3px solid var(--ink); outline-offset: 3px; }
/* Noch zu: Klick zeigt kurz das Datum und die Kachel wackelt */
.kachel-zettel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; white-space: nowrap; font-size: 14px; font-weight: 600; background: var(--weiss); color: var(--ink); border-radius: 6px; padding: 2px 8px; opacity: 0; pointer-events: none; }
.kachel.wackeln .kachel-zettel { opacity: 1; }
@keyframes wackeln {
  0%, 100% { transform: translateX(0) rotate(0); }
  15% { transform: translateX(-7px) rotate(-2.5deg); }
  30% { transform: translateX(6px) rotate(2deg); }
  45% { transform: translateX(-5px) rotate(-1.5deg); }
  60% { transform: translateX(4px) rotate(1deg); }
  75% { transform: translateX(-2px) rotate(-.5deg); }
}
.kachel.wackeln { animation: wackeln 1400ms ease-in-out; }
@media (prefers-reduced-motion: reduce) { .kachel.wackeln { animation: wackeln-still 1400ms; } @keyframes wackeln-still { to { opacity: 1; } } }
@media (prefers-reduced-motion: no-preference) {
  .kachel:not(.zu) { transition: transform 200ms cubic-bezier(.2,.7,.2,1); }
  .kachel:not(.zu):hover { transform: translateY(-3px); }
}

/* Fragen */
details { border-top: var(--rand); padding: 16px 0; }
details:last-of-type { border-bottom: var(--rand); }
summary { font-weight: 600; font-size: 20px; cursor: pointer; }
details p { margin: 12px 0 0; max-width: 650px; }

/* Von wem: Anordnung wie im GTA-Guide, hell */
.promo {
  display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: stretch; margin-top: 80px;
  background: var(--weiss); border: var(--rand); box-shadow: 6px 10px 0 var(--rosa); padding: 40px;
}
.promo > div { display: flex; flex-direction: column; justify-content: space-between; }
.promo h2 { font-size: clamp(26px, 3.6vw, 34px); line-height: 1; margin: 0 0 16px; }
.promo > div > :last-child { margin-bottom: 0; align-self: flex-start; }

.promo p { margin: 0 0 20px; font: 18px/1.6 Geist, Arial, sans-serif; }
.promo .slogan { font-family: var(--vcr); font-size: clamp(22px, 3vw, 28px); margin: 0 0 16px; }
.rahmen-knopf { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; font: 16px var(--vcr); text-transform: uppercase; }
.rahmen-knopf:hover { background: var(--lime); color: var(--ink); }

/* Kursive Pixel-Serif: pixel.js rendert betonte Wörter als Pixelbild, der Text bleibt für Screenreader da */
.pixelwort { display: inline-block; vertical-align: baseline; }
.pixelwort canvas { display: inline-block; image-rendering: pixelated; vertical-align: -0.18em; }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 700px) { .promo { grid-template-columns: 1fr; padding: 24px; } .kanaele.gross { align-self: start; } .kanaele.gross .kanal { width: 64px; height: 64px; border-radius: 14px; } }

/* Fuß */
.fuss { margin-top: 48px; padding: 24px 0 48px; font-size: 16px; display: flex; flex-wrap: wrap; gap: 16px 32px; }

/* Türchen-Seite und Rechtstexte */
.tuer, .rechtstext { max-width: 760px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 48px) 64px; }
.zurueck { font-size: 16px; }
.tuer .label { display: table; margin-top: 24px; font-size: 16px; background: var(--rosa); border-radius: 6px; padding: 2px 8px; }
.tuer h1, .rechtstext h1 { font-size: clamp(34px, 6vw, 56px); }
.tuer h2, .rechtstext h2 { font-size: clamp(22px, 3.5vw, 30px); margin: 48px 0 12px; }
.tuer ol, .tuer ul, .rechtstext ul { padding-left: 24px; }
.tuer li { margin: 8px 0; }
.tuer .knopf { max-width: 320px; }
.fehlt { background: var(--rosa); color: var(--ink); border-radius: 4px; padding: 0 4px; }
.entwurf { background: var(--rosa); border-radius: 6px; padding: 12px 16px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .chips a, .chips a::after { transition: none; }
  .chips a { --neck: 3px !important; }
}

/* Vorher/Nachher und Code-Box (Türchen mit Bildbeispielen) */
.bildpaar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.bildpaar figure { margin: 0; }
.bildpaar img, .bildplatz { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; border: var(--rand); }
.bildplatz { display: grid; place-items: center; background: var(--rosa); font-size: 16px; text-align: center; padding: 8px; box-sizing: border-box; }
.bildpaar figcaption { font-size: 16px; color: var(--grau); margin-top: 6px; }
.codebox { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; padding: 12px 12px 12px 16px; background: var(--lime); border-radius: 10px; }
.codebox code { font-family: var(--vcr); font-size: 22px; overflow-wrap: anywhere; }
/* Klemmbrett (Checklisten-Guides): dunkles Brett, weißes Blatt, Klammer in Lime. Ecken max. 6 px. */
.klemmbrett { position: relative; margin: 40px 0 16px; padding: 36px 16px 16px; background: var(--ink); border-radius: 6px; }
.klammer { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 132px; height: 34px; background: var(--lime); border: 2px solid var(--ink); border-radius: 6px; box-shadow: 0 3px 0 var(--ink); }
.klammer::after { content: ''; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 40px; height: 10px; background: var(--ink); border-radius: 3px; }
.papier { background: var(--weiss); border-radius: 4px; padding: 24px clamp(16px, 4vw, 32px); }
.papier h3 { font-family: var(--vcr); font-weight: 400; font-size: 20px; text-transform: uppercase; margin: 8px 0 4px; }
.papier h3 ~ h3 { margin-top: 28px; }
.tuer .klemm-liste { list-style: none; padding: 0; margin: 0; }
.klemm-liste li { margin: 0; border-bottom: 1px dashed #1c1c1e33; }
.klemm-liste label { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; cursor: pointer; font-size: 18px; line-height: 1.45; }
.klemm-liste input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.klemm-liste strong { display: block; }
.klemm-liste .warum { display: block; color: var(--grau); }
.klemm-liste input:checked + span strong { text-decoration: line-through; }
.klemm-stand { margin: 16px 0 0; font-size: 16px; color: var(--grau); }
/* Langer Prompt: Kopieren-Knopf oben, Zeilenumbrüche bleiben, normale Textschrift (VCR ist für Fließtext zu schwer). */
.codebox.lang { flex-direction: column-reverse; align-items: stretch; }
.codebox.lang code { font-family: inherit; font-size: 18px; line-height: 1.5; white-space: pre-wrap; }
.codebox.lang button { align-self: flex-end; }
.codebox button { min-height: 44px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--weiss); font: inherit; font-size: 16px; cursor: pointer; }
