/* Anwurf – Website (Pinnwand-Look wie die App, project/redesign_1/README.md)
 * Kein Build-Schritt: alle Seiten binden nur diese Datei ein.
 * Keine Gradients als Gestaltung, keine Hover-Hüpfer, keine Glows (CLAUDE.md: ernsthafte Simulation).
 */

/* ── Schriften (selbst gehostet, siehe assets/fonts/LICENSES.md) ───────────── */
@font-face { font-family: 'Permanent Marker'; src: url('fonts/PermanentMarker-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('fonts/Caveat-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('fonts/Caveat-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Nunito Sans'; src: url('fonts/NunitoSans-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito Sans'; src: url('fonts/NunitoSans-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Nunito Sans'; src: url('fonts/NunitoSans-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

/* ── Farben ────────────────────────────────────────────────────────────────
 * Quelle: constants/theme.ts (palette / colors.pinboard). Werte 1:1 übernommen;
 * bei Änderungen am Theme hier nachziehen. */
:root {
  --board: #1c3b31;          /* colors.pinboard.board = palette.boardGreen */
  --board-deep: #16302a;     /* colors.pinboard.boardDeep */
  --chalk: #f3f0e6;          /* colors.pinboard.chalk */
  --chalk-muted: #bfcbc3;    /* colors.pinboard.chalkMuted */
  --paper: #fbf7e9;          /* colors.pinboard.paper */
  --note: #fff1a8;           /* colors.pinboard.note = palette.noteYellow */
  --marker: #ffd36a;         /* colors.pinboard.marker = palette.markerYellow */
  --ink: #1b1b1b;            /* colors.pinboard.ink */
  --ink-soft: #333333;       /* colors.pinboard.inkSoft */
  --ink-muted: #555555;      /* colors.pinboard.inkMuted */
  --ink-faint: #999999;      /* colors.pinboard.inkFaint */
  --blue: #2b5fa8;           /* colors.pinboard.blue = palette.pinBlue */
  --light-blue: #8ec5ff;     /* colors.pinboard.lightBlue */
  --red: #e0523a;            /* colors.pinboard.red = palette.pinRed */
  --gold: #e0a800;           /* colors.pinboard.gold = palette.pinGold */
  --magnet-red: #ff7b6b;     /* colors.pinboard.magnetRed */
  --magnet-grey: #c8c2b0;    /* colors.pinboard.magnetGrey */
  --rule: rgba(27, 27, 27, 0.3);          /* colors.pinboard.rule = palette.inkAlpha30 */
  --rule-dashed: rgba(27, 27, 27, 0.35);  /* colors.pinboard.ruleDashed */
  --rule-chalk: rgba(243, 240, 230, 0.35);/* colors.pinboard.ruleChalk */
  --tape: rgba(255, 255, 255, 0.7);       /* colors.pinboard.tape = palette.tapeWhite */
  --white: #ffffff;          /* colors.pinboard.white */
  --placeholder: #dcd6c4;    /* colors.pinboard.placeholder (Polaroid-Schraffur) */
  --placeholder-light: #ece7d8; /* colors.pinboard.placeholderLight */

  /* Schatten: constants/theme.ts `shadow.card` / `shadow.note` (Schwarz 45 % / 50 %) */
  --shadow-card: 3px 5px 12px rgba(0, 0, 0, 0.45);
  --shadow-note: 4px 6px 14px rgba(0, 0, 0, 0.5);
  --shadow-chip: 1px 2px 5px rgba(0, 0, 0, 0.35);

  /* constants/theme.ts `fonts` */
  --f-marker: 'Permanent Marker', 'Marker Felt', 'Comic Sans MS', cursive;
  --f-hand: 'Caveat', 'Bradley Hand', 'Segoe Print', cursive;
  --f-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: 16px;
  --maxw: 1080px;
}

/* ── Basis ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--board);
  color: var(--chalk);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
a { color: var(--light-blue); }
:focus-visible { outline: 3px solid var(--marker); outline-offset: 2px; }
.paper-card :focus-visible, .sticky-note :focus-visible { outline-color: var(--blue); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--gutter); top: -60px; background: var(--marker); color: var(--ink); padding: 8px 12px; font-family: var(--f-marker); z-index: 20; }
.skip-link:focus { top: 8px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 40px 0; }
.section-kicker { font-family: var(--f-hand); font-weight: 500; font-size: 20px; color: var(--marker); }
.section-title { font-family: var(--f-marker); font-size: 30px; line-height: 1.15; transform: rotate(-1deg); margin: 0 0 12px; }
.section-intro { color: var(--chalk-muted); max-width: 62ch; margin-bottom: 28px; }
.chalk-label { font-family: var(--f-hand); font-weight: 700; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: var(--chalk-muted); }

/* ── Header / Navigation ───────────────────────────────────────────────── */
.site-header { background: var(--board-deep); border-bottom: 2px dashed var(--rule-chalk); }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding-top: 10px; padding-bottom: 10px; }
.logo { font-family: var(--f-marker); font-size: 28px; letter-spacing: 3px; color: var(--chalk); text-decoration: none; transform: rotate(-1deg); display: inline-block; padding: 6px 0; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; order: 3; width: 100%; }
.site-nav a, .lang-switch a { font-family: var(--f-hand); font-weight: 500; font-size: 19px; color: var(--chalk-muted); text-decoration: none; padding: 10px 8px; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a:hover, .lang-switch a:hover { color: var(--chalk); text-decoration: underline; }
.lang-switch { display: flex; align-items: center; margin-left: auto; font-family: var(--f-hand); color: var(--chalk-muted); }
.lang-switch a[aria-current="true"] { color: var(--marker); font-weight: 700; }
@media (min-width: 720px) {
  .site-nav { order: 0; width: auto; margin-left: auto; }
  .lang-switch { margin-left: 0; }
  .logo { font-size: 32px; }
}

/* ── Bausteine ─────────────────────────────────────────────────────────── */
/* .board: Tafelfläche (Seitenhintergrund ist bereits body); für abgesetzte Flächen */
.board { background: var(--board); }
.board-deep { background: var(--board-deep); }

.paper-card {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: 22px 18px 18px;
  box-shadow: var(--shadow-card);
  transform: rotate(-0.5deg);
}
.paper-card.r-pos { transform: rotate(0.5deg); }
/* Lange Karten (Rechtstexte, alles was höher als ein Bildschirm werden kann): nie drehen. */
.paper-card.rotate-0 { transform: rotate(0); }
.paper-card a { color: var(--blue); }

.sticky-note {
  position: relative;
  background: var(--note);
  color: var(--ink);
  padding: 24px 18px 18px;
  box-shadow: var(--shadow-note);
  transform: rotate(1.2deg);
}
.sticky-note.r-neg { transform: rotate(-1.2deg); }
.sticky-note.rotate-0 { transform: rotate(0); }
.sticky-note a { color: var(--blue); }

/* Befestigung */
.tape::before {
  content: '';
  position: absolute;
  top: -10px; left: 50%;
  width: 78px; height: 20px;
  background: var(--tape);
  transform: translateX(-50%) rotate(-2deg);
  box-shadow: var(--shadow-chip);
}
.tape.tape-r::before { transform: translateX(-50%) rotate(2.5deg); }
.magnet::before {
  content: '';
  position: absolute;
  top: -7px; left: 18px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--magnet-red);
  box-shadow: var(--shadow-chip);
}
.magnet.magnet-blue::before { background: var(--light-blue); }
.magnet.magnet-marker::before { background: var(--marker); }
.magnet.magnet-gold::before { background: var(--gold); }

/* Karten-Typografie */
.card-title { font-family: var(--f-marker); font-size: 19px; line-height: 1.2; margin-bottom: 6px; }
.card-text { font-size: 15px; line-height: 1.45; color: var(--ink-soft); }
.hand-note { font-family: var(--f-hand); font-weight: 500; font-size: 19px; color: var(--red); display: block; margin-top: 8px; transform: rotate(-1deg); }
.hand-label { font-family: var(--f-hand); font-weight: 500; font-size: 17px; color: var(--ink-muted); }

/* Buttons – flach, keine Effekte */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 8px; border: 0; font-family: var(--f-marker); font-size: 17px; text-decoration: none; cursor: pointer; text-align: center; }
.btn:active { opacity: 0.8; }
.btn-primary { background: var(--marker); color: var(--ink); }
.btn-secondary { background: var(--ink); color: var(--note); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: default; }
.chalk-link { font-family: var(--f-hand); font-weight: 500; font-size: 20px; color: var(--chalk); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule-chalk); }
.card-link { font-family: var(--f-hand); font-weight: 700; font-size: 20px; color: var(--blue); text-underline-offset: 3px; text-decoration-color: var(--rule); }
.card-action { margin-top: 12px; }
.chalk-link:hover { text-decoration-color: var(--chalk); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* ── Lesetext auf Papier (Rechtstexte, FAQ) ────────────────────────────── */
.prose { font-family: var(--f-body); font-size: 16px; line-height: 1.65; color: var(--ink); max-width: 70ch; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.prose h1 { font-family: var(--f-marker); font-size: 30px; line-height: 1.15; margin: 0 0 8px; font-weight: 400; }
.prose h2 { font-family: var(--f-marker); font-size: 21px; line-height: 1.25; margin: 34px 0 8px; padding-top: 14px; border-top: 1px dashed var(--rule-dashed); font-weight: 400; }
.prose h3 { font-family: var(--f-body); font-weight: 700; font-size: 17px; margin: 22px 0 4px; }
.prose p, .prose ul, .prose ol, .prose dl, .prose address { margin: 0 0 12px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose address { font-style: normal; }
.prose strong { font-weight: 700; }
.prose .meta { font-family: var(--f-hand); font-weight: 500; font-size: 19px; color: var(--ink-muted); }
.prose .placeholder { background: var(--marker); padding: 0 4px; font-weight: 600; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 0 0 14px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid var(--rule); }
.prose th { font-weight: 700; }
.prose .scroll-x { overflow-x: auto; }
.page-main { padding: 28px 0 48px; }
.page-main .paper-card { padding: 28px 18px 24px; }
@media (min-width: 720px) { .page-main .paper-card { padding: 36px 40px 32px; } }

/* ── Startseite ────────────────────────────────────────────────────────── */
.hero { padding: 40px 0 28px; }
.hero h1 { font-family: var(--f-marker); font-weight: 400; font-size: clamp(48px, 15vw, 104px); line-height: 1; letter-spacing: 3px; transform: rotate(-1deg); margin: 0 0 4px; }
.hero .claim { font-family: var(--f-hand); font-weight: 500; font-size: clamp(22px, 5vw, 30px); color: var(--marker); margin-bottom: 18px; }
.hero .pitch { font-size: 18px; max-width: 58ch; color: var(--chalk); margin-bottom: 26px; }
.hero-grid { display: grid; gap: 28px; align-items: start; }
.hero-meta { font-family: var(--f-hand); font-weight: 500; font-size: 18px; color: var(--chalk-muted); margin-top: 12px; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.4fr 1fr; gap: 48px; } }

.grid { display: grid; gap: 26px 20px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.country-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.chip { font-family: var(--f-hand); font-weight: 700; font-size: 17px; background: var(--paper); color: var(--ink); padding: 2px 10px; box-shadow: var(--shadow-chip); transform: rotate(-1deg); }
.chip:nth-child(even) { transform: rotate(1deg); }

/* Screenshot-Slider: horizontale Leiste mit scroll-snap (Wischen/Scrollen ohne JS),
 * Pfeil-Buttons ergänzt ein kleines Inline-Skript in index(.en).html.
 * Die Leiste läuft bis an den Bildschirmrand; das Padding verhindert, dass gedrehte
 * Polaroids und Schatten abgeschnitten werden. Schraffur = Platzhalter während des Ladens. */
.slider-track { display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: 14px var(--gutter) 26px; scrollbar-width: thin; scrollbar-color: var(--rule-chalk) transparent; }
.slider-track > li { flex: 0 0 auto; width: 46%; max-width: 210px; scroll-snap-align: start; }
@media (min-width: 720px) { .slider-track > li { width: 200px; } }
.slider-track:focus-visible { outline-offset: -3px; }
.slider-controls { display: flex; justify-content: flex-end; gap: 12px; }
.slider-btn { width: 48px; height: 48px; border: 0; border-radius: 8px; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-weight: 700; font-size: 22px; line-height: 1; box-shadow: var(--shadow-chip); cursor: pointer; }
.slider-btn:active { opacity: 0.8; }
.slider-btn:disabled { opacity: 0.4; cursor: default; }
.polaroid { background: var(--paper); padding: 8px 8px 30px; box-shadow: var(--shadow-card); width: 100%; position: relative; transform: rotate(-1.5deg); }
.slider-track > li:nth-child(even) .polaroid { transform: rotate(1.5deg); }
.polaroid .shot { display: block; width: 100%; height: auto; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; background-color: var(--placeholder-light); background-image: repeating-linear-gradient(45deg, var(--placeholder) 0 2px, transparent 2px 10px); }
.polaroid figcaption { font-family: var(--f-hand); font-weight: 500; font-size: 17px; color: var(--ink-muted); text-align: center; position: absolute; left: 4px; right: 4px; bottom: 5px; }

.shot-link { display: block; cursor: zoom-in; }
.shot-link:focus-visible { outline-offset: 3px; }

/* Großansicht (<dialog>): bildschirmfüllend auf dunkler Pinnwand statt halbtransparentem
 * ::backdrop (ältere Safari-Versionen erben dort keine CSS-Variablen). */
html.lightbox-open { overflow: hidden; }
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 12px var(--gutter) max(16px, env(safe-area-inset-bottom)); border: 0; background: var(--board-deep); color: var(--chalk); overscroll-behavior: contain; }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; }
.lightbox::backdrop { background: var(--board-deep); }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; max-width: var(--maxw); width: 100%; margin: 0 auto; }
.lightbox-count { margin: 0; font-family: var(--f-hand); font-weight: 500; font-size: 19px; color: var(--chalk-muted); }
.lightbox-figure { margin: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.lightbox-img { display: block; min-height: 0; max-width: 100%; max-height: calc(100% - 40px); width: auto; height: auto; object-fit: contain; background: var(--paper); padding: 8px; box-shadow: var(--shadow-card); }
.lightbox-caption { font-family: var(--f-hand); font-weight: 700; font-size: 22px; color: var(--chalk); text-align: center; }
.lightbox-nav { display: flex; justify-content: center; gap: 16px; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer { background: var(--board-deep); border-top: 2px dashed var(--rule-chalk); padding: 28px 0 36px; }
.footer-links { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 0 18px; }
.footer-links a { font-family: var(--f-hand); font-weight: 500; font-size: 19px; color: var(--chalk); display: inline-flex; align-items: center; min-height: 44px; }
.copyright { font-size: 14px; color: var(--chalk-muted); }

/* ── Support-Seite und Formular (Ticket 153) ────────────────────────────── */
.support-grid { display: grid; gap: 34px; }
.support-grid .paper-card { padding: 28px 18px 22px; }
details { border-top: 1px dashed var(--rule-dashed); padding: 4px 0; }
details:last-of-type { border-bottom: 1px dashed var(--rule-dashed); }
summary { cursor: pointer; font-weight: 700; padding: 10px 0; min-height: 44px; }
details p { margin: 0 0 12px; }
.form-card { transform: rotate(0); }
@media (min-width: 720px) { .form-card { transform: rotate(-0.4deg); padding: 36px 40px 30px; } .support-grid .paper-card { padding: 36px 40px 30px; } }
.form-title { font-size: 24px; }
.field { margin-top: 16px; }
.field label { display: block; font-family: var(--f-hand); font-weight: 700; font-size: 19px; color: var(--ink); margin-bottom: 4px; }
.field input, .field select, .field textarea { display: block; width: 100%; min-height: 48px; padding: 10px 12px; font-family: var(--f-body); font-size: 16px; line-height: 1.4; color: var(--ink); background: var(--white); border: 2px solid var(--ink-muted); border-radius: 4px; }
.field select { padding-right: 12px; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field-hint { font-size: 14px; color: var(--ink-muted); margin-top: 4px; }
.field-error { font-size: 15px; font-weight: 700; color: var(--red); margin-top: 4px; }
.gotcha { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-status { min-height: 0; margin-top: 16px; font-weight: 700; color: var(--red); }
.form-fallback { margin-top: 6px; font-weight: 600; }
form .btn { margin-top: 18px; width: 100%; }
@media (min-width: 560px) { form .btn { width: auto; } }
.privacy-note { margin-top: 14px; }
.confirmation { outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
