/* Schriften vom eigenen Server (SIL Open Font License), damit keine Besucherdaten an Dritte gehen. */
@font-face { font-family: "Schibsted Grotesk"; src: url("/start-assets/schibsted-grotesk-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/start-assets/jetbrains-mono-latin.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }

/* App-Portal von warchhold.com (Neugestaltung 2026-11-10): dunkles Portal, je Themenwelt ein Bento-Raster.
   Die Seite ist bewusst nur dunkel. Jede Themenwelt setzt --g, ihre Akzentfarbe; Karten erben sie.
   Kein Inline-Stil im HTML: Die CSP in nginx erlaubt nur dieses Stylesheet. */
:root {
  color-scheme: dark;
  --bg: #070b14;
  --bg-hoch: #0a101d;
  --flaeche: #0d1422;
  --flaeche-hoch: #121a2c;
  --linie: #1c2840;
  --linie-hell: #2b3b5b;
  --text: #e9eef8;
  --gedimmt: #a6b2c8;
  --leise: #8493ad;
  --cyan: #5fd4ee;
  --blau: #6ea8ff;
  --handel: #5fd4ee;
  --technik: #9aa5ff;
  --haus: #6fe0b5;
  --g: var(--cyan);
  --radius: 18px;
  --weich: cubic-bezier(.2, .7, .2, 1);
  --display: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--display); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.sprite { position: absolute; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap {
  width: 100%; max-width: 1240px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: inherit; }
svg { flex: none; }
.sprung {
  position: absolute; left: 16px; top: -64px; z-index: 30; padding: 10px 16px; border-radius: 10px;
  background: var(--cyan); color: #06121c; font-weight: 600; text-decoration: none;
}
.sprung:focus { top: 12px; }

/* Kopfleiste */
.leiste {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--linie) 70%, transparent);
}
.leiste-innen { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.marke {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  font-size: 15px; font-weight: 700; letter-spacing: .22em;
}
.marke-zeichen { width: 30px; height: 30px; fill: none; stroke: var(--cyan); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.marke-zeichen rect { stroke: var(--linie-hell); stroke-width: 1.5; fill: var(--flaeche-hoch); }
.leiste-nav { display: flex; align-items: center; gap: 4px; }
.leiste-nav a {
  padding: 8px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--gedimmt);
  text-decoration: none; transition: color .2s ease, background-color .2s ease;
}
.leiste-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.leiste-nav .leiste-knopf { margin-left: 8px; color: var(--text); border: 1px solid var(--linie-hell); }
.leiste-nav .leiste-knopf:hover { border-color: var(--cyan); }
.marke:focus-visible, .leiste-nav a:focus-visible, .knopf-haupt:focus-visible, .knopf-neben:focus-visible,
.welt:focus-visible, .seitenfuss a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* Einstieg */
.hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--linie); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(52% 72% at 12% -8%, rgba(95, 212, 238, .20), transparent 62%),
    radial-gradient(46% 66% at 88% 0%, rgba(110, 168, 255, .20), transparent 64%),
    linear-gradient(180deg, #0b1322 0%, var(--bg) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(var(--linie) 1px, transparent 1px),
    linear-gradient(90deg, var(--linie) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(90% 80% at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(90% 80% at 50% 0%, #000 0%, transparent 72%);
}
.hero-innen { display: grid; gap: 22px; padding-block: clamp(64px, 10vw, 136px) clamp(48px, 7vw, 88px); }
.hero h1 { margin: 0; display: grid; gap: clamp(14px, 2vw, 22px); }
.h1-marke {
  display: inline-flex; align-items: center; gap: 14px; justify-self: start;
  font-size: clamp(15px, 1.7vw, 19px); font-weight: 600; letter-spacing: .34em; color: var(--cyan);
}
.h1-marke::before { content: ""; width: 36px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--blau)); }
.h1-titel {
  font-size: clamp(40px, 7.4vw, 96px); line-height: 1.02; font-weight: 700; letter-spacing: -.035em;
  color: var(--text); text-wrap: balance;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .h1-titel {
    background: linear-gradient(180deg, #ffffff 18%, #b4c9ee 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    padding-bottom: .08em;
  }
}
.unterzeile { margin: 6px 0 0; font-size: clamp(19px, 2.3vw, 27px); line-height: 1.3; font-weight: 500; letter-spacing: -.01em; text-wrap: balance; }
.einfuehrung { margin: 0; max-width: 60ch; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; color: var(--gedimmt); text-wrap: pretty; }
.hero-aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.knopf-haupt, .knopf-neben {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none;
  transition: transform .2s var(--weich), box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}
.knopf-haupt {
  color: #06121c; background: linear-gradient(135deg, var(--cyan), var(--blau));
  box-shadow: 0 10px 30px -12px rgba(95, 212, 238, .65);
}
.knopf-haupt:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(95, 212, 238, .8); }
.knopf-haupt svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.knopf-neben { color: var(--text); border: 1px solid var(--linie-hell); background: rgba(255, 255, 255, .03); }
.knopf-neben:hover { border-color: var(--cyan); background: rgba(255, 255, 255, .06); }

.welten { list-style: none; margin: clamp(28px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.welt {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: baseline;
  padding: 16px 18px; border-radius: 14px; text-decoration: none;
  background: color-mix(in srgb, var(--flaeche-hoch) 72%, transparent); border: 1px solid var(--linie);
  transition: border-color .2s ease, transform .2s var(--weich), background-color .2s ease;
}
.welt.handel, .bereich.handel { --g: var(--handel); }
.welt.technik, .bereich.technik { --g: var(--technik); }
.welt.haus, .bereich.haus { --g: var(--haus); }
.welt:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--g) 60%, var(--linie)); background: var(--flaeche-hoch); }
.welt-nr { grid-row: span 2; align-self: center; font-family: var(--mono); font-size: 13px; color: var(--g); letter-spacing: .08em; }
.welt-name { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.welt-zahl { font-size: 14px; color: var(--leise); }

/* Themenwelten */
.bereiche { display: grid; gap: clamp(56px, 8vw, 104px); padding-block: clamp(48px, 7vw, 88px) clamp(64px, 9vw, 120px); }
.bereich { position: relative; display: grid; gap: clamp(22px, 3vw, 32px); padding-top: clamp(26px, 3.4vw, 38px); }
.bereich::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, var(--g) 0, color-mix(in srgb, var(--g) 30%, var(--linie)) 22%, var(--linie) 60%, transparent 100%);
}
.bereich::after {
  content: ""; position: absolute; left: -6%; top: 0; width: 56%; height: 300px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 100% at 30% 0%, color-mix(in srgb, var(--g) 11%, transparent), transparent 72%);
}
.bereich-kopf {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 8px; align-items: end;
}
.bereich-nr { grid-column: 1 / -1; margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--g); }
.bereich-kopf h2 { grid-column: 1; margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; text-wrap: balance; }
.bereich-text { grid-column: 1; margin: 0; max-width: 62ch; font-size: clamp(16px, 1.5vw, 18px); color: var(--gedimmt); text-wrap: pretty; }
.bereich-zahl {
  grid-column: 2; grid-row: 2 / span 2; align-self: end; margin: 0; padding: 6px 14px; border-radius: 999px; white-space: nowrap;
  font-size: 14px; font-weight: 500; color: var(--g);
  background: color-mix(in srgb, var(--g) 10%, transparent); border: 1px solid color-mix(in srgb, var(--g) 30%, transparent);
}

/* Bento-Raster: 12 Spalten. gross = 7 Spalten ueber zwei Zeilen, breit = 7 Spalten, alle anderen 5 Spalten. */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.karte {
  grid-column: span 5; position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; min-width: 0;
  border-radius: var(--radius); border: 1px solid var(--linie);
  background: linear-gradient(180deg, var(--flaeche-hoch) 0%, var(--flaeche) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 24px 48px -30px rgba(0, 0, 0, .9);
  color: inherit; text-decoration: none;
  transition: transform .28s var(--weich), border-color .28s ease, box-shadow .28s ease;
}
.karte[data-form="gross"] { grid-column: span 7; grid-row: span 2; }
.karte[data-form="breit"] { grid-column: span 7; }
.karte:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--g) 55%, var(--linie));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 0 0 1px color-mix(in srgb, var(--g) 16%, transparent),
    0 30px 60px -32px color-mix(in srgb, var(--g) 45%, transparent),
    0 26px 50px -30px rgba(0, 0, 0, .9);
}
.karte:focus-visible { outline: 3px solid var(--g); outline-offset: 3px; }

/* Vorschau: echtes Bildschirmfoto auf einer getoenten Buehne, unten angeschnitten. */
.vorschau {
  position: relative; flex: none; height: 232px; overflow: hidden;
  background:
    radial-gradient(110% 100% at 50% 0%, color-mix(in srgb, var(--g) 17%, transparent), transparent 74%),
    var(--bg-hoch);
  border-bottom: 1px solid var(--linie);
}
.karte[data-form="gross"] .vorschau { flex: 1 1 0; height: auto; min-height: 320px; }
.bereich.technik .vorschau { height: 304px; }
.vorschau img {
  position: absolute; left: 18px; top: 18px; width: calc(100% - 36px); height: calc(100% - 18px);
  object-fit: cover; object-position: center top;
  border: 1px solid var(--linie-hell); border-bottom: 0; border-radius: 10px 10px 0 0; background: #0b0f18;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 -6px 36px -10px color-mix(in srgb, var(--g) 34%, transparent);
  transform-origin: center top; transition: transform .5s var(--weich);
}
.vorschau img.pos-links { object-position: left top; }
.vorschau img.pos-haus { object-position: 62% 46%; }
.karte:hover .vorschau img { transform: translateY(-5px) scale(1.012); }

.inhalt { display: flex; flex-direction: column; gap: 12px; flex: 0 0 auto; padding: 20px 22px 22px; min-width: 0; }
.karte:not([data-form="gross"]) .inhalt { flex: 1 1 auto; }
.titelzeile { display: flex; align-items: center; gap: 14px; min-width: 0; }
.icon {
  flex: none; width: 46px; height: 46px; padding: 9px; border-radius: 12px; color: var(--g);
  background: color-mix(in srgb, var(--g) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--g) 30%, transparent);
}
.icon svg, .wasserzeichen { display: block; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.icon svg { width: 100%; height: 100%; }
.name { display: grid; gap: 1px; min-width: 0; }
.name h3 { margin: 0; font-size: 21px; line-height: 1.2; font-weight: 650; letter-spacing: -.015em; overflow-wrap: anywhere; }
.karte[data-form="gross"] .name h3 { font-size: 24px; }
.name code { font-family: var(--mono); font-size: 13px; color: var(--leise); overflow-wrap: anywhere; }
.inhalt p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--gedimmt); text-wrap: pretty; }
.karte[data-form="gross"] .inhalt p { font-size: 16.5px; max-width: 56ch; }
.fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; margin-top: auto; padding-top: 8px; }
.zugang {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px;
  font-size: 13px; line-height: 1.3; font-weight: 500; color: var(--gedimmt);
  background: rgba(255, 255, 255, .035); border: 1px solid var(--linie-hell);
}
.zugang svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.oeffnen {
  display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 9px 16px 9px 18px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--g);
  background: color-mix(in srgb, var(--g) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--g) 48%, transparent);
  transition: background-color .22s ease, color .22s ease, border-color .22s ease;
}
.oeffnen svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .22s var(--weich); }
.karte:hover .oeffnen, .karte:focus-visible .oeffnen { background: var(--g); border-color: var(--g); color: #06121c; }
.karte:hover .oeffnen svg { transform: translateX(3px); }

/* Karten ohne Bildschirmfoto (Inhalt nur nach Anmeldung): Sinnbild als Wasserzeichen statt erfundener Vorschau. */
.karte[data-form="kompakt"] {
  background:
    radial-gradient(70% 120% at 100% 0%, color-mix(in srgb, var(--g) 13%, transparent), transparent 70%),
    linear-gradient(180deg, var(--flaeche-hoch) 0%, var(--flaeche) 100%);
}
.wasserzeichen {
  position: absolute; right: -18px; top: -22px; z-index: -1; width: 190px; height: 190px;
  color: var(--g); opacity: .09; stroke-width: 2; transition: opacity .3s ease, transform .5s var(--weich);
}
.karte:hover .wasserzeichen { opacity: .16; transform: translate(-4px, 4px); }

/* Fuss */
.seitenfuss { border-top: 1px solid var(--linie); background: var(--bg-hoch); }
.seitenfuss-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 28px; font-size: 14.5px; color: var(--leise); }
.seitenfuss-marke { margin: 0; }
.seitenfuss-marke strong { color: var(--text); font-weight: 700; letter-spacing: .2em; }
.seitenfuss nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.seitenfuss a { color: var(--gedimmt); text-decoration: none; }
.seitenfuss a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

/* Einblenden beim Scrollen. start.js setzt .js nur, wenn es die Karten danach auch wirklich einblenden kann. */
@keyframes auftauchen { from { opacity: 0; transform: translateY(22px); } }
.js .einblenden { opacity: 0; }
.js .einblenden.da { opacity: 1; animation: auftauchen .75s var(--weich) backwards; }
.js .einblenden.da.spaeter-1 { animation-delay: .09s; }
.js .einblenden.da.spaeter-2 { animation-delay: .18s; }
@keyframes einstieg { from { opacity: 0; transform: translateY(14px); } }
.hero-innen > * { animation: einstieg .8s var(--weich) backwards; }
.hero-innen > :nth-child(2) { animation-delay: .08s; }
.hero-innen > :nth-child(3) { animation-delay: .16s; }
.hero-innen > :nth-child(4) { animation-delay: .24s; }
.hero-innen > :nth-child(5) { animation-delay: .34s; }

@media (max-width: 1040px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .karte, .karte[data-form="breit"] { grid-column: span 1; }
  .karte[data-form="gross"] { grid-column: 1 / -1; grid-row: auto; }
  .karte[data-form="gross"] .vorschau { flex: none; height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .vorschau, .bereich.technik .vorschau { height: 240px; }
}
@media (max-width: 860px) {
  .nur-breit { display: none; }
  .leiste-nav .leiste-knopf { margin-left: 0; }
}
@media (max-width: 720px) {
  .welten { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .bento { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .vorschau, .bereich.technik .vorschau, .karte[data-form="gross"] .vorschau { height: auto; aspect-ratio: 16 / 10; }
  .vorschau img { left: 14px; top: 14px; width: calc(100% - 28px); height: calc(100% - 14px); }
  .bereich-kopf { grid-template-columns: minmax(0, 1fr); }
  .bereich-zahl { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 4px; }
  .inhalt { padding: 18px 18px 20px; }
  .wasserzeichen { width: 150px; height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-innen > *, .js .einblenden.da { animation: none; }
  .karte, .vorschau img, .oeffnen, .oeffnen svg, .wasserzeichen, .welt, .knopf-haupt, .knopf-neben { transition: none; }
  .karte:hover, .karte:hover .vorschau img, .karte:hover .oeffnen svg, .karte:hover .wasserzeichen, .welt:hover, .knopf-haupt:hover { transform: none; }
}
