/* Firmenfundus, Bald verfügbar
   Ein dunkler Raum, darin ein Stapel Seiten von der Seite gesehen (stapel.js). Aus seinen Blattkanten
   entsteht ein riesiges KI, darunter antwortet es auf Beispielfragen (frage.js). Unten ragt das Formular
   als weiße Karteikarte mit Reiter heraus. Nur Blau, Weiß und Schwarz, Grautöne aus Schwarz.
   Laufweite nie enger als -0.03em, kein backdrop-blur. */

@font-face {
  font-family: 'Schibsted Grotesk'; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url(fonts/schibsted-grotesk-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk'; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url(fonts/schibsted-grotesk-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --raum: #080b11;
  --weiss: #ffffff;
  --text: #dbe0ea;
  --leise: #a9b1c0;
  --linie: rgba(255, 255, 255, .16);
  --flaeche: #0c1119;
  --blau: #1683ff;
  --blau-hell: #5ea8ff;
  --blau-knopf: #0f6fe0;
  --blau-tief: #0a5fc4;
  --tinte: #0b0f17;
  --tinte-2: #485061;
  --strich: rgba(11, 15, 23, .24);
  --schrift: 'Schibsted Grotesk', ui-sans-serif, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --rand: max(16px, 4vw, env(safe-area-inset-left, 0px));
  --rand-r: max(16px, 4vw, env(safe-area-inset-right, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--raum); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100svh; background: var(--raum); color: var(--text);
  font: 400 1.0625rem/1.5 var(--schrift); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, p { margin: 0; }
a { color: inherit; }
::selection { background: var(--blau); color: var(--weiss); }
[hidden] { display: none !important; }

#stapel { position: fixed; inset: 0; z-index: 0; display: block; width: 100%; height: 100lvh; pointer-events: none; }
.licht {
  position: fixed; left: 0; top: 0; z-index: 0; width: 64vmax; height: 64vmax; margin: -32vmax 0 0 -32vmax;
  border-radius: 50%; pointer-events: none; opacity: 0; will-change: transform, opacity;
  background: radial-gradient(closest-side, rgba(22, 131, 255, .2), rgba(22, 131, 255, .07) 45%, transparent);
}

.seite {
  position: relative; z-index: 1; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto;
  gap: clamp(28px, 4vh, 48px); padding-block: clamp(20px, 3.4vh, 36px);
  padding-left: var(--rand); padding-right: var(--rand-r);
}

.kopf, .fuss { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.marke { display: block; }
.logo { display: block; width: auto; height: clamp(32px, 2.7vw, 40px); }
.status { color: var(--text); font-size: .94rem; font-weight: 500; }

.buehne {
  display: grid; min-height: 0; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(26px, 4vh, 44px) clamp(28px, 4.5vw, 84px);
}

.text { grid-column: 1; grid-row: 1; align-self: end; display: grid; gap: clamp(12px, 1.9vh, 22px); min-width: 0; }
.vorzeile { color: var(--blau-hell); font-size: clamp(1.13rem, 1.55vw, 1.42rem); font-weight: 600; line-height: 1.2; text-shadow: 0 0 12px var(--raum), 0 0 4px var(--raum); }
h1 {
  color: var(--weiss); font-weight: 700; font-size: clamp(3.1rem, min(8.7vw, 16.5vh), 9.6rem); line-height: .96;
  letter-spacing: -.03em; text-shadow: 0 0 .22em var(--raum), 0 0 .06em var(--raum);
}
h1 span { display: block; white-space: nowrap; }
h1 em { font-style: normal; color: var(--blau-hell); }
.lead { max-width: 33em; color: var(--text); font-size: clamp(1.09rem, 1.42vw, 1.3rem); line-height: 1.42; text-wrap: pretty; text-shadow: 0 0 14px var(--raum), 0 0 5px var(--raum), 0 0 2px var(--raum); }

/* Rechts: das große KI entsteht in stapel.js aus den Linien, darunter antwortet es */
.ki { grid-column: 2; grid-row: 1; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: clamp(10px, 1.6vh, 18px); min-width: 0; min-height: 0; }
.ki-platz { position: relative; min-height: 170px; }
.ki-platz span { display: none; }
.ohne-stapel .ki-platz span { display: grid; place-items: center; position: absolute; inset: 0; color: var(--blau-hell); font-size: min(30vw, 16rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; }

.frage { display: grid; align-content: start; gap: 11px; min-height: 8.9rem; padding: 14px 18px 17px; border: 1px solid var(--linie); border-radius: 14px; background: var(--flaeche); }
.frage-zeile { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--weiss); font-size: 1.04rem; font-weight: 500; line-height: 1.3; }
.frage-zeile > svg { flex: none; color: var(--blau-hell); }
.frage-zeile p { min-width: 0; }
.frage-zeile p.tippt::after { content: ''; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.16em; background: var(--blau-hell); }
.beispiel { flex: none; margin-left: auto; padding: 2px 9px; border: 1px solid var(--linie); border-radius: 999px; color: var(--leise); font-size: .78rem; line-height: 1.4; }
.antwort { display: grid; gap: 5px; }
.antwort-text { color: var(--weiss); font-size: clamp(1.45rem, 2.15vw, 1.95rem); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; }
.antwort-text.sucht { color: var(--text); font-size: 1.06rem; font-weight: 500; line-height: 1.5; letter-spacing: 0; }
.quelle { color: var(--blau-hell); font-size: .92rem; line-height: 1.35; }
@media (prefers-reduced-motion: no-preference) {
  .antwort.neu > * { animation: auf .5s cubic-bezier(.2, .7, .2, 1) both; }
  .antwort.neu .quelle { animation-delay: .14s; }
}

/* Die Karte zieht sich über die ganze Breite wie eine Karteikarte, die aus dem Stapel ragt */
.huelle { grid-column: 1 / -1; grid-row: 2; min-width: 0; padding-top: 34px; perspective: 1800px; }
.karte {
  position: relative; border-radius: 0 16px 16px 16px; background: var(--weiss); color: var(--tinte);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  transform: rotateX(var(--kx, 0deg)) rotateY(var(--ky, 0deg)); transform-origin: 50% 100%; will-change: transform;
}
.reiter {
  position: absolute; left: 0; bottom: 100%; height: 34px; padding: 8px 20px 0; border-radius: 12px 12px 0 0;
  background: var(--weiss); color: var(--tinte); font-size: .84rem; font-weight: 600; line-height: 1.3;
}
.formular {
  display: grid; grid-template-columns: minmax(0, 15.5rem) minmax(0, 1fr) auto; align-items: start;
  gap: 8px clamp(20px, 2.6vw, 40px); padding: clamp(18px, 2.2vh, 24px) clamp(22px, 2.3vw, 32px);
}
.formular-kopf { display: grid; gap: 7px; min-width: 0; }
.karte h2 { color: var(--tinte); font-size: clamp(1.35rem, 1.6vw, 1.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.felder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px clamp(16px, 1.8vw, 26px); min-width: 0; }
.feld { display: grid; align-content: start; gap: 1px; min-width: 0; }
.feld > span { color: var(--tinte-2); font-size: .86rem; font-weight: 500; }
.feld input {
  width: 100%; min-height: 40px; padding: 6px 0 8px; border: 0; border-bottom: 1.5px solid var(--strich); border-radius: 0;
  background: transparent; color: var(--tinte); font: 500 1.0625rem/1.3 var(--schrift); outline: 0;
  transition: border-color .2s, box-shadow .2s;
}
.feld input:hover { border-bottom-color: var(--tinte-2); }
.feld input:focus { border-bottom-color: var(--blau-knopf); box-shadow: 0 1.5px 0 var(--blau-knopf); }
.feld input[aria-invalid="true"] { border-bottom-color: var(--blau-tief); box-shadow: 0 1.5px 0 var(--blau-tief); }
.feld input:-webkit-autofill { -webkit-text-fill-color: var(--tinte); box-shadow: 0 0 0 60px var(--weiss) inset; }
.fehler { color: var(--blau-tief); font-size: .84rem; font-weight: 600; line-height: 1.3; }
.fehler:empty { display: none; }
.fehler:not(:empty) { padding-top: 5px; }
.topf { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.knopf {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; overflow: hidden;
  min-height: 54px; min-width: 11.5rem; margin-top: 6px; padding: 0 22px; border: 0; border-radius: 999px; isolation: isolate;
  background: var(--blau-knopf); color: var(--weiss); font: 600 1.0625rem/1 var(--schrift); cursor: pointer;
}
.knopf::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--tinte);
  transform: translateX(-101%); transition: transform .42s cubic-bezier(.2, .7, .2, 1);
}
.knopf svg { flex: none; transition: transform .42s cubic-bezier(.2, .7, .2, 1); }
.knopf:hover::before { transform: none; }
.knopf:hover svg { transform: translateX(4px); }
.knopf:focus-visible { outline: 2px solid var(--blau-knopf); outline-offset: 3px; }
.knopf[aria-busy="true"] { opacity: .7; cursor: progress; }

.meldung { grid-column: 1 / -1; color: var(--blau-tief); font-size: .94rem; font-weight: 600; line-height: 1.35; }
.meldung:empty { display: none; }
.klein { color: var(--tinte-2); font-size: .84rem; line-height: 1.38; }
.klein a { color: var(--blau-tief); }
.hinweis-vorschau { display: none; padding: 7px 10px; border-radius: 8px; background: #e7f0ff; color: var(--blau-tief); font-size: .82rem; font-weight: 600; line-height: 1.3; }
.karte[data-vorschau] .hinweis-vorschau { display: block; }
.danke { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: clamp(20px, 2.6vh, 28px) clamp(22px, 2.3vw, 32px); outline: 0; }
.danke p { color: var(--tinte-2); font-size: 1.06rem; line-height: 1.45; }

.fuss { color: var(--leise); font-size: .9rem; }
.fuss nav { display: flex; gap: 20px; }
.fuss a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-underline-offset: 3px; }
.fuss a:hover { color: var(--weiss); }
.marke:focus-visible, .fuss a:focus-visible, .recht a:focus-visible { outline: 2px solid var(--blau-hell); outline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .text > *, .frage, .huelle { animation: auf .9s cubic-bezier(.2, .7, .2, 1) both; }
  .vorzeile { animation-delay: 0s; }
  .text h1 { animation-delay: .06s; }
  .lead { animation-delay: .14s; }
  .frage { animation-delay: .24s; }
  .huelle { animation-delay: .3s; }
  @keyframes auf { from { opacity: 0; transform: translateY(26px); } }
}

@media (max-width: 1180px) {
  .formular { grid-template-columns: minmax(0, 1fr) auto; }
  .formular-kopf { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 6px 18px; }
  .hinweis-vorschau { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .seite { gap: clamp(14px, 2.4vh, 24px); }
  .buehne { display: flex; flex-direction: column; gap: 20px; }
  .ki { display: contents; }
  .ki-platz { order: 1; min-height: 0; height: clamp(150px, 42vw, 330px); }
  .text { order: 2; align-self: stretch; }
  .frage { order: 3; }
  .huelle { order: 4; }
  h1 { font-size: clamp(3rem, 14.2vw, 7rem); }
  .status { font-size: .88rem; }
  .formular { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .formular-kopf { grid-template-columns: minmax(0, 1fr); }
  .felder { grid-template-columns: minmax(0, 1fr); }
  .knopf { width: 100%; margin-top: 2px; }
}
@media (min-width: 640px) and (max-width: 960px) {
  .felder { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Rechtstexte und Anfragen-Liste */
.recht { position: relative; z-index: 1; display: grid; gap: clamp(36px, 7vh, 64px); max-width: 44rem; padding-block: clamp(20px, 3.4vh, 36px) 56px; padding-left: var(--rand); padding-right: var(--rand-r); }
.recht--breit { max-width: 66rem; }
.recht main { display: grid; gap: 14px; min-width: 0; }
.recht h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.recht h2 { margin-top: 24px; color: var(--weiss); font-size: 1.25rem; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.recht p, .recht li { line-height: 1.6; text-wrap: pretty; }
.recht ul { display: grid; gap: 6px; margin: 0; padding-left: 1.2em; }
.recht a { color: var(--blau-hell); text-underline-offset: 3px; }
.recht .zurueck { margin-top: 24px; }
.zugang { display: grid; gap: 16px; width: min(100%, 22rem); padding: 22px; border-radius: 14px; background: var(--weiss); color: var(--tinte); }
.knopf--klein { justify-content: center; width: auto; min-width: 0; min-height: 44px; margin-top: 0; padding: 0 18px; font-size: .94rem; }
.fehlertext { color: var(--blau-hell); font-weight: 600; }
.fehlertext:empty { display: none; }
.kopfzeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-block: 8px 12px; }
.tabelle { overflow-x: auto; }
.recht table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.recht th { padding: 8px 14px 8px 0; color: var(--leise); font-weight: 500; text-align: left; white-space: nowrap; }
.recht td { padding: 10px 14px 10px 0; border-top: 1px solid var(--linie); vertical-align: middle; }
.recht td.zeit { color: var(--leise); font-variant-numeric: tabular-nums; white-space: nowrap; }
.recht td .weg { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--blau-hell); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
