/* =====================================================================
   agorum KI-Readiness-Check – Styling
   Quelle: Skill "agorum-style-guide" (Stand 04/2026, live agorum.com)
   Logo und Schriftdateien liegen als eigene Dateien direkt neben
   dieser CSS-Datei (relative Pfade), damit sie auch fuer anonyme
   Website-Besucher ohne Login erreichbar sind.
   ===================================================================== */

/* WOFF2 statt TTF: rund 63 % kleiner. Ein TTF-Fallback entfaellt bewusst -
   jeder Browser ohne WOFF2-Unterstuetzung scheitert ohnehin an CSS Grid
   und fetch(), die diese Seite ebenfalls voraussetzt. */
@font-face {
  font-family: "New Science";
  src: url("NewScience-Light.woff2") format("woff2");
  font-weight: 300; font-display: block;
}
@font-face {
  font-family: "New Science";
  src: url("NewScience-Regular.woff2") format("woff2");
  font-weight: 400; font-display: block;
}
@font-face {
  font-family: "New Science";
  src: url("NewScience-Medium.woff2") format("woff2");
  font-weight: 500; font-display: block;
}
@font-face {
  font-family: "New Science";
  src: url("NewScience-SemiBold.woff2") format("woff2");
  font-weight: 600; font-display: block;
}
@font-face {
  font-family: "New Science";
  src: url("NewScience-Bold.woff2") format("woff2");
  font-weight: 700; font-display: block;
}

:root {
  /* Brand (agorum-style-guide §2) */
  --color-blue:        #006BFF;
  --color-orange:      #EB4D27;
  --color-text:        #3B3B3B;
  --color-white:       #FFFFFF;

  /* Akzente */
  --color-cyan:        #4EE3FF;
  --color-cyan-tint:   rgba(78, 227, 255, 0.20);
  --color-neon:        #C7FF7F;
  --color-neon-tint:   rgba(199, 255, 127, 0.25);

  /* Neutrale */
  --color-bg-soft:     #F7F7F7;
  --color-bg-soft-2:   #F5F5F5;
  --color-caption:     #B3B3B3;
  --color-border:      #E3E3E3;

  /* Typo */
  --font-base:         "New Science", Arial, sans-serif;
  --fs-h1:             50.89px;
  --fs-h2:             42.26px;
  --fs-eyebrow:        18.18px;
  --fs-body:           18.18px;
  --fs-h3:             15.09px;
  --fs-button:         16px;
  --lh-headline:       1.10;
  --lh-body:           1.40;

  /* Layout */
  --container:         1256px;
  --container-text:    860px;
  --section-pad-y:     60.9px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-white);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

body,h1,h2,h3,h4,h5,h6,p,a,span,li,ul,ol,dl,dt,dd,td,th,div,section,header,footer,nav,button,input,textarea,select,summary,strong,em,b,i,small,label,figcaption {
  font-family: "New Science", Arial, sans-serif !important;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--text { max-width: var(--container-text); margin: 0 auto; padding: 0 24px; }

h1, h2 { font-weight: 400; color: var(--color-text); letter-spacing: normal; margin: 0; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-headline); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-headline); }
h1 > span, h2 > span {
  display: block; font-size: var(--fs-eyebrow); font-weight: 600;
  letter-spacing: 0.16px; margin-bottom: 10px; color: var(--color-blue);
}
h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: 0.16px; color: var(--color-text); margin: 0; }

p { font-size: var(--fs-body); line-height: var(--lh-body); margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
.caption { font-size: 14px; color: var(--color-caption); }

/* ---------- Header (agorum-style-guide §5.3) ---------- */
.ag-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  height: 88px;
}
.ag-header .container {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.ag-header img.logo { height: 30px; display: block; }
.ag-header .logo-link { display: flex; align-items: center; }
.ag-header .headtag { font-size: 14px; color: var(--color-caption); font-weight: 500; }

/* ---------- Buttons (agorum-style-guide §4) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-base);
  font-weight: 600; font-size: var(--fs-button); letter-spacing: 0.16px;
  border-radius: 0; transition: all 0.2s; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; line-height: 1;
}
.btn-primary {
  background: var(--color-orange); color: var(--color-white);
  padding: 14.5px 23.6px; border-color: transparent;
}
.btn-primary:hover { background: #d5411f; }
.btn-primary[disabled] { background: var(--color-border); color: var(--color-caption); cursor: not-allowed; }
.btn-secondary {
  background: transparent; color: var(--color-text);
  padding: 12.5px 21.6px; border: 2px solid var(--color-text);
}
.btn-secondary:hover { background: var(--color-bg-soft); }
.btn-link { color: var(--color-orange); padding: 0; font-size: var(--fs-body); }
.btn-link::after { content: "\2192"; margin-left: 4px; }

/* ---------- Sections ---------- */
section { padding: var(--section-pad-y) 0; }
section.alt { background: var(--color-bg-soft); }

.eyebrow-tag {
  display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--color-blue); text-transform: uppercase; margin-bottom: 14px;
}

/* ---------- Trust-Bar (agorum-style-guide §7.1) ---------- */
.trust-bar { list-style: none; display: flex; flex-wrap: wrap; gap: 28px; margin: 32px 0 0; padding: 0; }
.trust-bar li { display: flex; align-items: center; gap: 12px; color: var(--color-text); font-size: 15px; }
.trust-bar li::before {
  content: ""; width: 24px; height: 24px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233AAA35' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- Dimensions-Grid (index) ---------- */
.dims-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; margin-top: 32px; background: var(--color-border); }
.dim-card {
  background: var(--color-white); padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start;
}
.dim-card::before {
  content: ""; width: 28px; height: 28px; flex-shrink: 0; margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233AAA35' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.dim-card h3 { margin-bottom: 4px; }
.dim-card .caption { display: block; }
.dim-card { border-left: 4px solid var(--color-blue); }

/* Schluesseldimensionen: hoechste Gewichtung, deckeln das Gesamtergebnis. */
.dim-card.is-key { border-left-color: var(--color-orange); }
.dim-card.is-key h3::after {
  content: "Schl\00FCsselfaktor"; display: block; margin-top: 3px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--color-orange);
}
.dims-legend { margin-top: 12px; }

/* ---------- Progress ---------- */
.progress-wrap { margin: 0 0 32px; }
.progress-meta { display: flex; justify-content: space-between; font-size: 14px; color: var(--color-caption); margin-bottom: 8px; }
.progress-track { height: 6px; background: var(--color-border); }
.progress-fill { display: block; height: 100%; background: var(--color-blue); width: 0%; transition: width .25s ease; }

/* ---------- Frage-Karte (check.html) ---------- */
.q-card { border-top: 2px solid var(--color-text); padding-top: 32px; }
.q-dim { font-size: 14px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--color-blue); margin-bottom: 10px; }
.q-text { font-size: 28px; font-weight: 400; line-height: 1.25; color: var(--color-text); margin: 0 0 28px; }

.options { display: flex; flex-direction: column; gap: 10px; }
.option {
  display: flex; align-items: center; gap: 14px; border: 2px solid var(--color-border);
  padding: 16px 18px; cursor: pointer; transition: border-color .15s, background .15s;
}
.option:hover { border-color: var(--color-blue); }
.option:focus-visible { outline: 3px solid var(--color-blue); outline-offset: 2px; }
.option.is-selected { border-color: var(--color-orange); background: rgba(235,77,39,0.05); }
.option .marker {
  width: 18px; height: 18px; border: 2px solid var(--color-border); flex-shrink: 0; position: relative;
}
.option.is-selected .marker { border-color: var(--color-orange); background: var(--color-orange); }
.option.is-selected .marker::after {
  content: ""; position: absolute; left: 4px; top: 0px; width: 5px; height: 9px;
  border: solid var(--color-white); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.option .label { font-size: 17px; color: var(--color-text); }

.nav-row { display: flex; justify-content: space-between; margin-top: 36px; }

/* ---------- Ergebnis ---------- */
.stage-block {
  background: var(--color-blue); color: var(--color-white); padding: 48px 40px; text-align: center;
}
.stage-block .stage-num { font-size: 15px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; opacity: .85; margin-bottom: 10px; }
.stage-block .stage-name { font-size: 38px; font-weight: 400; line-height: 1.1; }
.stage-block .stage-sub { margin-top: 12px; font-size: 17px; opacity: .92; }
.cap-note {
  display: inline-block; margin-top: 20px; border: 1px solid rgba(255,255,255,0.5);
  padding: 8px 16px; font-size: 14px;
}

.radar-block { text-align: center; padding: 44px 24px; border: 1px solid var(--color-border); margin-top: 2px; }
.radar-block svg { max-width: 420px; width: 100%; }

.engpass-block {
  border-left: 4px solid var(--color-orange); background: var(--color-bg-soft);
  padding: 24px 28px; margin-top: 2px;
}
.engpass-block strong { display: block; font-size: 18px; margin-bottom: 8px; }

.nodata { text-align: center; padding: 60px 20px; }

/* ---------- Formular ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin-top: 32px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--color-text); }
.field input, .field select, .field textarea {
  font-family: var(--font-base); font-size: 16px; padding: 12px 14px;
  border: 2px solid var(--color-border); border-radius: 0; background: var(--color-white); color: var(--color-text);
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.4; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-blue); }
/* Honeypot: aus dem sichtbaren Bereich geschoben statt display:none,
   damit Bots das Feld finden und ausfuellen. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--color-caption); }
.consent input { margin-top: 3px; }
.consent a { color: var(--color-blue); text-decoration: underline; }

.thanks { text-align: center; padding: 20px 0; }
.thanks h3 { font-size: 28px; font-weight: 400; color: var(--color-blue); margin-bottom: 12px; }

/* ---------- Footer ---------- */
.ag-footer { background: var(--color-blue); color: var(--color-white); padding: 32px 0; text-align: center; }
.ag-footer .container { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.ag-footer a { color: var(--color-white); text-decoration: underline; }

.hidden { display: none !important; }

@media (max-width: 720px) {
  .dims-grid, .form-grid { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  .stage-block .stage-name { font-size: 28px; }
  .q-text { font-size: 22px; }
  .ag-footer .container { flex-direction: column; gap: 8px; }
}
