/* Chaos CEO – Website
   Farben aus der App (04_UI/Palette.swift, DashboardView.swift).
   Keine fremden Schriften, keine Cookies, nichts von anderen Servern. */

:root {
  --dunkel: #141a1a;
  --dunkel2: #1f2421;
  --dunkel3: #2a302c;
  --papier: #e6d19e;
  --papier-hell: #fae8b3;
  --tinte: #171a1a;
  --gold: #b88c38;
  --gold-hell: #d9b35f;
  --gruen: #2e4d40;
  --cash: #d19e3d;
  --kunden: #4db8bd;
  --team: #6bb36b;
  --balance: #d67569;
  --rund: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --breite: 1080px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--dunkel);
  color: var(--papier-hell);
  font-family: var(--rund);
  font-size: 17px;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: var(--gold-hell); }
a:hover { color: var(--papier-hell); }

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

.innen { max-width: var(--breite); margin: 0 auto; padding: 0 16px; }

/* ---------- Kopfleiste ---------- */

.kopf {
  position: sticky; top: 0; z-index: 10;
  background: rgba(20, 26, 26, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(184, 140, 56, 0.25);
}
.kopf .innen {
  display: flex; align-items: center; justify-content: space-between;
  height: 58px; gap: 12px;
}
.marke {
  display: flex; align-items: center; gap: 10px;
  color: var(--papier-hell); text-decoration: none;
  font-weight: 900; letter-spacing: 0.08em; font-size: 15px;
}
.marke img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 18px; }
.nav a {
  color: var(--papier); text-decoration: none;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-hell); }

/* ---------- Bühne (Startseite oben) ---------- */

.buehne {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 72% 45%, rgba(184, 140, 56, 0.20), transparent 70%),
    var(--dunkel);
}
.buehne .innen {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  align-items: center; gap: 48px;
  padding-top: 72px; padding-bottom: 88px;
}
.krone { width: 54px; height: auto; color: var(--gold); margin-bottom: 14px; }
.titel {
  margin: 0;
  font-size: clamp(48px, 9vw, 92px);
  line-height: 0.95; font-weight: 900; letter-spacing: 0.02em;
  color: var(--papier-hell);
}
.titel span { color: var(--gold-hell); }
.frage-gross {
  margin: 26px 0 0; max-width: 18em;
  font-size: clamp(22px, 3vw, 28px); line-height: 1.25; font-weight: 900; color: var(--papier-hell);
}
.warnung { margin: 8px 0 0; font-size: 20px; font-weight: 800; color: var(--gold-hell); }
.unterzeile {
  margin: 18px 0 0; max-width: 32em;
  font-size: 18px; color: var(--papier);
}
.hinweis {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 30px; padding: 12px 20px;
  border: 1.5px solid var(--gold); border-radius: 999px;
  font-weight: 800; color: var(--papier-hell);
}
.hinweis svg { width: 18px; height: 18px; color: var(--gold-hell); }

/* Die Spielkarte – nachgebaut nach 04_UI/KarteView.swift:
   336 × 546 Punkte, Ecken 26, Porträt 118 (Bild 108), Name 28 schwarz in
   Großbuchstaben, Rolle 11 in Schreibmaschinenschrift, Text mittig.
   Die Antworten erscheinen ÜBER der Karte, wenn sie runtergezogen wird. */

.kartenplatz {
  display: flex; flex-direction: column; align-items: center;
  user-select: none; -webkit-user-select: none;
}
/* Die Antworten sitzen unten in der Karte, in den Antwortfarben der App */
.antworten {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 12px 16px 16px;
}
.antwort {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  min-height: 62px; padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 16px;
  color: rgba(255, 255, 255, 0.98); font: 900 13px/1.15 var(--rund);
  text-transform: uppercase; text-align: center; cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.18s, filter 0.18s, box-shadow 0.18s;
}
.antwort.links { background: linear-gradient(180deg, #776656, #64554a); }
.antwort.rechts { background: linear-gradient(180deg, #667681, #556570); }
.antwort small { font: 900 8px var(--mono); letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.7); }
.antwort:hover, .antwort.gewaehlt { transform: translateY(-2px); filter: brightness(1.12); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.antwort:active { transform: translateY(0); }
.karte.unbekannt .antwort.links { background: linear-gradient(180deg, #5d5196, #4b4180); }
.karte.unbekannt .antwort.rechts { background: linear-gradient(180deg, #454b80, #383e6c); }
.karte.unbekannt .antwort { border-color: rgba(179, 163, 250, 0.35); }

.karte {
  --akzent: 46, 128, 158;
  position: relative;
  width: 336px; height: 546px; max-width: 100%;
  display: flex; flex-direction: column;
  border-radius: 26px; overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.045)),
    #ebe0c7;
  border: 1.1px solid rgba(0, 0, 0, 0.10);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.30);
  color: rgba(0, 0, 0, 0.88);
  touch-action: pan-y; cursor: grab;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.45s;
}
.karte.weg { transition: transform 0.5s ease-in, opacity 0.5s ease-in; }
.karte-kopf { padding: 24px 24px 0; }
.karte-kopf .zeile { display: flex; align-items: center; gap: 16px; }
.portraet {
  position: relative; flex: none; width: 118px; height: 118px; border-radius: 22px;
  display: grid; place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(var(--akzent), 0.10), rgba(0, 0, 0, 0.05)),
    rgba(var(--akzent), 0.16);
  border: 1.2px solid rgba(var(--akzent), 0.30);
}
.portraet img { width: 108px; height: 108px; border-radius: 18px; object-fit: cover; }
.namensblock { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.namensblock b {
  font: 900 28px/1.05 var(--rund); letter-spacing: 1.35px; text-transform: uppercase;
  color: rgba(0, 0, 0, 0.81); width: 100%; word-break: keep-all; overflow-wrap: normal;
}
.namensblock small {
  font: 800 11px var(--mono); letter-spacing: 1.35px; text-transform: uppercase;
  color: rgba(0, 0, 0, 0.52); white-space: nowrap;
}
.namensblock i { display: block; width: 54px; height: 3px; border-radius: 2px; background: rgba(var(--akzent), 0.72); margin-top: 1px; }
.trenner { height: 1px; background: rgba(0, 0, 0, 0.12); margin-top: 14px; }
.karte-text {
  flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 20px;
  padding: 18px 22px; text-align: center;
  font: 600 23px/1.3 var(--rund); text-wrap: balance;
}
.karte-text.text-mittel { font-size: 20px; gap: 16px; }
.karte-text.text-klein { font-size: 18px; gap: 14px; }
.karte-text p { margin: 0; }
.unterlinie { display: flex; align-items: center; gap: 8px; padding: 0 24px; }
.unterlinie span { flex: 1; height: 1px; background: rgba(0, 0, 0, 0.09); }
.unterlinie i { width: 5px; height: 5px; border-radius: 50%; background: rgba(var(--akzent), 0.64); }
.wischhinweis {
  padding: 10px 0 11px; text-align: center;
  font: 700 10px var(--mono); letter-spacing: 0.3px; color: rgba(0, 0, 0, 0.41);
}

/* Die Morgenkarte des Tutorials (istTutorialMorgen) */
.karte.morgen {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.045)),
    #f2e6c7;
}

/* Unbekannt: dunkles Display wie das Handy, auf dem die Nachricht steht */
.karte.unbekannt {
  --akzent: 97, 82, 148;
  background:
    linear-gradient(135deg, rgba(115, 102, 191, 0.22), rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.32)),
    #212640;
  border-color: rgba(158, 143, 230, 0.55);
  color: rgba(230, 232, 250, 0.96);
}
.karte.unbekannt .portraet {
  background:
    repeating-linear-gradient(to bottom, transparent 0 7px, rgba(97, 82, 148, 0.12) 7px 8px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(97, 82, 148, 0.18), rgba(0, 0, 0, 0.18)),
    rgba(0, 0, 0, 0.40);
  border: 2.2px solid rgba(179, 163, 250, 0.95);
}
.karte.unbekannt .portraet img { box-shadow: 0 0 14px rgba(158, 143, 250, 0.55); }
.karte.unbekannt .namensblock b { color: rgba(230, 232, 250, 0.88); }
.karte.unbekannt .namensblock small,
.karte.unbekannt .wischhinweis { color: rgba(184, 179, 235, 0.80); }
.karte.unbekannt .trenner { background: rgba(158, 143, 230, 0.30); }
.karte.unbekannt .unterlinie span { background: rgba(158, 143, 230, 0.23); }

@media (prefers-reduced-motion: reduce) {
  .karte, .karte.weg, .antwort { transition: none; }
}

/* ---------- Abschnitte ---------- */

.abschnitt { padding: 84px 0; }
.abschnitt.papier { background: linear-gradient(170deg, var(--papier-hell), var(--papier)); color: var(--tinte); }
.abschnitt.papier a { color: var(--gruen); }
.abschnitt.tief { background: var(--dunkel2); }

.etikett {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 10px;
}
.papier .etikett { color: #8a6624; }
h2 {
  margin: 0 0 18px; font-size: clamp(30px, 5vw, 44px);
  line-height: 1.05; font-weight: 900;
}
.einleitung { max-width: 38em; margin: 0 0 40px; font-size: 18px; }

/* Triff Entscheidungen */
.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.werteliste {
  list-style: none; margin: 8px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.werteliste li {
  padding: 12px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.4); border: 1.5px solid rgba(23, 26, 26, 0.10);
  font-size: 14px; line-height: 1.35;
}
.werteliste i { display: block; width: 100%; height: 5px; border-radius: 3px; margin-bottom: 8px; }
.werteliste b { display: block; font-size: 16px; font-weight: 900; margin-bottom: 2px; }

.spielfeld {
  display: flex; justify-content: center;
  padding: 22px 12px 26px; border-radius: 30px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 60%, rgba(184, 140, 56, 0.16), transparent 70%),
    var(--dunkel);
  box-shadow: 0 24px 50px rgba(23, 26, 26, 0.28);
}
.werteleiste {
  display: flex; gap: 6px; padding: 7px 9px; margin-bottom: 14px;
  border-radius: 22px; border: 1.2px solid rgba(184, 140, 56, 0.26);
  background: linear-gradient(135deg, var(--dunkel2), var(--dunkel));
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.22);
}
.wertchip {
  width: 78px; padding: 7px 4.5px; border-radius: 16px;
  display: flex; flex-direction: column; gap: 7px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(230, 209, 158, 0.10);
  transition: transform 0.24s, background 0.24s, border-color 0.24s, box-shadow 0.24s;
}
.wertchip.betroffen {
  transform: scale(1.07);
  background: rgba(255, 255, 255, 0.18);
  border: 1.8px solid rgba(var(--farbe), 0.86);
  box-shadow: 0 4px 10px rgba(var(--farbe), 0.32);
}
.wertkopf { display: flex; align-items: center; justify-content: center; gap: 4px; color: rgb(var(--farbe)); }
.wertkopf svg { width: 13.5px; height: 13.5px; }
.wertkopf .sym { font: 900 14px/1 var(--rund); }
.wertkopf em {
  font: normal 900 9px var(--mono); letter-spacing: 0.35px; color: rgba(230, 209, 158, 0.86);
}
.wertbalken { position: relative; height: 6px; border-radius: 3px; overflow: hidden; background: rgba(230, 209, 158, 0.16); }
.wertbalken i {
  position: absolute; inset: 0 auto 0 0; border-radius: 3px;
  background: linear-gradient(to right, rgba(var(--farbe), 0.86), rgba(250, 232, 179, 0.70));
  transition: width 0.7s cubic-bezier(0.3, 0.8, 0.3, 1);
}

/* Lerne dein Team kennen – bewusst klein und ruhig */
.team-leise { padding: 44px 0; background: var(--dunkel2); border-top: 1px solid rgba(184, 140, 56, 0.18); }
.team-leise .etikett { margin-bottom: 18px; text-align: center; }
.leute { display: grid; grid-template-columns: repeat(4, 96px); gap: 20px 28px; justify-content: center; }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; }
.und-mehr {
  display: flex; align-items: center; gap: 10px;
  max-width: 468px; margin: 26px auto 0;
  font: 700 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(217, 179, 95, 0.8); white-space: nowrap;
}
.und-mehr span { flex: 1; height: 1px; background: rgba(184, 140, 56, 0.3); }
.und-mehr i { width: 5px; height: 5px; border-radius: 50%; background: rgba(184, 140, 56, 0.7); }
.person img { width: 64px; height: 64px; border-radius: 14px; margin-bottom: 8px; opacity: 0.92; }
.person b { font-size: 13px; font-weight: 800; color: var(--papier); }
.person small {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(217, 179, 95, 0.75); margin-top: 2px; line-height: 1.3;
}

/* Das Rätsel */
.raetsel {
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 60% at 75% 50%, rgba(115, 102, 191, 0.28), transparent 70%),
    #171a2c;
  color: rgba(230, 232, 250, 0.96);
}
.raetsel .etikett { color: rgba(184, 179, 235, 0.85); }
.raetsel .einleitung { color: rgba(214, 216, 240, 0.9); margin-bottom: 18px; }
.raetsel-raster { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }

/* ---------- Textseiten (Impressum, Datenschutz, Support) ---------- */

.textseite { background: linear-gradient(170deg, var(--papier-hell), var(--papier)); color: var(--tinte); min-height: 70vh; }
.textseite .innen { max-width: 760px; padding-top: 56px; padding-bottom: 80px; }
.textseite h1 { font-size: clamp(32px, 6vw, 46px); font-weight: 900; margin: 0 0 8px; letter-spacing: 0.02em; }
.textseite .unter { margin: 0 0 36px; color: rgba(23, 26, 26, 0.7); }
.textseite h2 {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(23, 26, 26, 0.6); margin: 32px 0 8px;
}
.textseite p { margin: 0 0 12px; }
.textseite a { color: var(--gruen); word-break: break-word; }
.frage {
  background: rgba(255, 255, 255, 0.4); border: 1.5px solid rgba(23, 26, 26, 0.12);
  border-radius: 16px; padding: 18px 20px; margin-bottom: 14px;
}
.frage b { display: block; font-size: 17px; margin-bottom: 6px; }
.frage p { margin: 0; }
.mailknopf {
  display: inline-block; margin: 6px 0 10px; padding: 12px 22px;
  background: var(--tinte); color: var(--papier-hell) !important;
  border-radius: 999px; font-weight: 800; text-decoration: none;
}

/* ---------- Fuß ---------- */

.fuss { background: var(--dunkel); border-top: 1px solid rgba(184, 140, 56, 0.25); }
.fuss .innen {
  display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between;
  padding-top: 28px; padding-bottom: 36px; font-size: 14px; color: rgba(230, 209, 158, 0.7);
}
.fuss nav { display: flex; flex-wrap: wrap; gap: 20px; }
.fuss a { color: var(--papier); text-decoration: none; }
.fuss a:hover { color: var(--gold-hell); }

/* ---------- Handy ---------- */

@media (max-width: 860px) {
  .buehne .innen { grid-template-columns: 1fr; gap: 44px; padding-top: 44px; padding-bottom: 64px; }
  .zweispaltig { grid-template-columns: 1fr; }
  .werteliste { grid-template-columns: 1fr 1fr; }
  .leute { grid-template-columns: repeat(4, 1fr); gap: 18px 8px; }
  .raetsel-raster { grid-template-columns: 1fr; }
  .abschnitt { padding: 60px 0; }
}
@media (max-width: 520px) {
  .nav { gap: 12px; }
  .nav a { font-size: 11px; letter-spacing: 0.06em; }
  .marke span { display: none; }
  .unterzeile { font-size: 17px; }
  .spielfeld { margin: 0 -8px; padding: 18px 4px 22px; }
  .wertchip { width: 74px; }
}
