/* =====================================================================
   Tuurio ID Demo — Stylesheet
   EXT:tuurio_demo/Resources/Public/Css/tuurio-demo.css

   Palette: übernommen aus den gelieferten SVG-Assets
   (_input/design/tuurio_typo3_svg_assets), damit Grafiken und Seite
   denselben Farbraum benutzen. Ein Akzentton (Blau) plus Grün als
   Security-/Positiv-Signal — mehr nicht.
   ===================================================================== */

:root {
  --blue:        #2F5FEA;
  --blue-dark:   #2450C8;
  --ink:         #182642;
  --ink-2:       #273858;
  --green:       #27AE60;
  /* Etwas dunkler als das #6B7894 der SVGs: als Fließtextfarbe erreicht der
     Originalton auf Weiß nur ~4,5:1 und verfehlt AA knapp. In den Grafiken
     selbst bleibt der Originalton unangetastet. */
  --muted:       #5B6A87;
  --line:        #DCE4F2;
  --tint:        #EEF3FF;
  --surface:     #F5F8FC;
  --white:       #FFFFFF;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;

  --radius:   16px;
  --radius-s: 12px;
  --shell:    1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 44px);
}

/* ---------- Typografie ---------- */

h1, h2, h3 {
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.05rem); }
h3 { font-size: 1.06rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.eyebrow {
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 1em;
}

.lead {
  font-size: clamp(1.03rem, 1.6vw, 1.16rem);
  color: var(--muted);
  max-width: 42em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .78em 1.4em;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  font: inherit;
  font-size: .97rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.btn:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue-dark); }

.btn-on-dark {
  background: var(--white);
  color: var(--blue-dark);
}
.btn-on-dark:hover { background: var(--tint); }

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.42);
}
.btn-ghost-light:hover { border-color: var(--white); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--blue);
  display: grid;
  place-items: center;
  flex: none;
}
.brand-mark svg { width: 15px; height: 15px; display: block; }

.brand-name { font-size: 1.16rem; font-weight: 700; letter-spacing: -.01em; }
.brand-name b { color: var(--blue); font-weight: 700; }

.brand-suffix {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: .6rem;
  margin-left: .1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(.7rem, 1.8vw, 1.5rem);
}

.site-nav a:not(.btn) {
  color: var(--ink-2);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 500;
  white-space: nowrap;
}
.site-nav a:not(.btn):hover { color: var(--blue-dark); }
.site-nav a:not(.btn):focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.site-nav .btn { padding: .55em 1.05em; font-size: .9rem; white-space: nowrap; }

/* Ankerlinks weichen, sobald die volle Navigation nicht mehr in eine Zeile
   passt — gemessen: bei 1024 px lief der Header sonst über. Die beiden
   Aktionen bleiben immer sichtbar. */
@media (max-width: 1150px) {
  .site-nav a:not(.btn) { display: none; }
  .brand-suffix { display: none; }
}
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .site-nav { gap: .5rem; }
  .brand-name { font-size: 1.05rem; }
}

/* ---------- Hero ---------- */

.hero {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.hero-inner {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.8rem, 6vw, 4.8rem);
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  /* Grafik unter den Text, wie im Briefing gefordert. */
  .hero-figure { order: 2; }
  .hero-copy { order: 1; }
}

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: .73rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .4em 1em;
  margin-bottom: 1.3rem;
}

.hero h1 { margin-bottom: .3em; }

.hero .subline {
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .7em;
}

.hero-actions {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.hero-figure img { width: 100%; height: auto; display: block; }

/* Trust-Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35em .9em;
}

/* ---------- Sektionen ---------- */

.section { padding-block: clamp(3rem, 6vw, 4.8rem); }
.section-tint { background: var(--surface); }
.section + .section:not(.section-tint) { border-top: 1px solid var(--line); }

.section-head { max-width: 46em; margin-bottom: 2.2rem; }

/* ---------- Feature-Karten ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
}

.card img { width: 52px; height: 52px; display: block; margin-bottom: 1rem; }
.card p { color: var(--muted); font-size: .94rem; }

/* ---------- Prozess 01–05 ---------- */

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
}

/* Durchgehende Linie: der Prozess ist eine Kette, keine fünf Karten. */
.flow::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--line);
}

.flow li {
  position: relative;
  padding: 0 .7rem;
  text-align: center;
}

.flow .step {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 2px solid var(--blue);
  color: var(--blue);
  font-family: var(--mono);
  font-size: .95rem;
  font-weight: 700;
}

.flow li:last-child .step { border-color: var(--green); color: var(--green); }

.flow h3 { font-size: .98rem; margin-bottom: .3em; }
.flow p { font-size: .89rem; color: var(--muted); }

@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; gap: 1.5rem; }
  .flow::before { top: 8px; bottom: 8px; left: 22px; right: auto; width: 2px; height: auto; }
  .flow li { text-align: left; padding: 0 0 0 4rem; min-height: 46px; }
  .flow .step { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------- Gegenüberstellung ohne / mit ---------- */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

@media (max-width: 860px) { .compare { grid-template-columns: 1fr; } }

.compare-col {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  background: var(--white);
}

.compare-col.is-after { background: var(--tint); border-color: #C9D8F8; }

.compare-col h3 {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: 1rem;
  margin-bottom: 1.1rem;
}

.compare-col h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}
.compare-col.is-after h3::before { background: var(--green); }

.app-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.1rem;
  padding: 0;
  list-style: none;
}

.app-row li {
  font-size: .84rem;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .3em .7em;
  background: var(--white);
}

.compare-col.is-after .app-row li { border-color: #C9D8F8; }

.task-list { margin: 0; padding: 0; list-style: none; }

.task-list li {
  display: flex;
  align-items: baseline;
  gap: .55em;
  font-size: .93rem;
  color: var(--muted);
  padding: .22em 0;
}

.task-list li::before {
  content: "×";
  color: var(--muted);
  font-weight: 700;
  flex: none;
}

.compare-col.is-after .task-list li::before { content: "✓"; color: var(--green); }

/* zentrale Schicht */
.identity-layer {
  margin-top: 1.1rem;
  border-radius: var(--radius-s);
  background: var(--ink);
  color: var(--white);
  padding: .9rem 1.1rem;
  font-size: .93rem;
  font-weight: 600;
  text-align: center;
}

/* ---------- Claim ---------- */

.claim {
  margin-top: 1.8rem;
  border-left: 4px solid var(--blue);
  background: var(--surface);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  padding: 1.5rem 1.7rem;
}

.claim p {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.015em;
  line-height: 1.3;
}
.claim p b { color: var(--blue); font-weight: 700; }

/* ---------- Endpoint-Karte ---------- */

.endpoints {
  background: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.1rem);
  color: #C6D2E8;
}

.endpoints-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  color: #93A6C8;
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding-bottom: .9rem;
  margin-bottom: 1.2rem;
}

.endpoints-head .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--blue);
  flex: none;
}

.endpoints dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: .8rem;
}

.endpoint {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-s);
  background: var(--ink-2);
  padding: .9rem 1rem;
}

.endpoint dt {
  font-family: var(--mono);
  font-size: .87rem;
  color: #A9C2FF;
  margin-bottom: .2rem;
}

.endpoint dd { margin: 0; font-size: .91rem; }

.benefits {
  display: grid;
  /* auto-fit statt fester Spaltenzahl: eine Media-Query ließe sich von einem
     Inline-Style überstimmen, auto-fit nicht — und lange Einträge wie
     "state und nonce serverseitig" sprengen sonst die Spalte. */
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .8rem 1.4rem;
  margin-top: 1.6rem;
  padding: 0;
  list-style: none;
}

.benefits li {
  display: flex;
  align-items: baseline;
  gap: .55em;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}

.benefits li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  flex: none;
}

/* ---------- Plattform-Karten ---------- */

.apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.app-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 1.1rem 1.15rem;
  background: var(--white);
}

.app-card h3 { font-size: .97rem; margin-bottom: .2em; }
.app-card p { font-size: .88rem; color: var(--muted); }

/* ---------- Fact-Box / Tabelle ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

/* Trennlinien als Schatten statt als Raster-Gap: eine ungerade Anzahl von
   Angaben lässt sonst leere Zellen stehen, die die Gap-Farbe als grauen
   Block zeigen. Die Schatten der Randzellen schneidet das overflow weg. */
.fact {
  background: var(--white);
  padding: 1.1rem 1.2rem;
  box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line);
}

.fact dt {
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .3rem;
}

.fact dd {
  margin: 0;
  font-family: var(--mono);
  font-size: .93rem;
  color: var(--ink);
  word-break: break-word;
}

.table-wrap { overflow-x: auto; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
}

table.data th, table.data td {
  text-align: left;
  padding: .7em .9em;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.data thead th {
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-width: 2px;
}

table.data td code {
  font-family: var(--mono);
  font-size: .89em;
  background: var(--tint);
  border-radius: 5px;
  padding: .1em .4em;
}

/* ---------- Hinweis / Status ---------- */

.notice {
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  background: var(--surface);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  padding: 1.1rem 1.3rem;
  font-size: .94rem;
  color: var(--ink-2);
}

.notice strong { color: var(--ink); }

/* ---------- FAQ ---------- */

.faq { max-width: 52em; }

.faq-item { border-bottom: 1px solid var(--line); padding: 1.2rem 0; }
.faq-item:first-of-type { border-top: 1px solid var(--line); }

.faq-item h3 { font-size: 1.02rem; margin-bottom: .4em; }
.faq-item p { color: var(--muted); font-size: .95rem; }

/* ---------- CTA ---------- */

.cta {
  background: var(--ink);
  border-radius: var(--radius);
  color: var(--white);
  padding: clamp(2.2rem, 4.5vw, 3.2rem) clamp(1.4rem, 4vw, 2.8rem);
  text-align: center;
}

.cta h2 { color: var(--white); }
.cta p { color: #B9C7E0; max-width: 40em; margin-inline: auto; }

.cta-actions {
  display: flex;
  gap: .7rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #A9B6CE;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  padding-block: 2.8rem 2.4rem;
}

@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .5rem;
}
.footer-brand b { color: #A9C2FF; }

.site-footer p { font-size: .93rem; }
.footer-strong { color: #DCE4F2; font-weight: 600; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  justify-self: end;
}

@media (max-width: 720px) { .footer-nav { justify-self: start; } }

.footer-nav a { color: #C6D2E8; text-decoration: none; font-size: .93rem; }
.footer-nav a:hover { color: var(--white); text-decoration: underline; }
.footer-nav a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.footer-nav .is-admin { color: #A9C2FF; font-weight: 600; }

/* ---------- Zusätzlicher Redaktionsinhalt ---------- */

.editor-content { padding-block: clamp(2rem, 4vw, 3rem); }
.editor-content:empty { display: none; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Kleine Hilfsklassen ----------
   Ersetzen Inline-Styles: das Briefing verlangt, keine CSS-Sammlung im
   Markup anzulegen — und ein Inline-Style schlägt jede Media-Query. */

.u-mt      { margin-top: 1.5rem; }
.u-mt-lg   { margin-top: 2.2rem; }
.u-text-sm { font-size: .93rem; }
.h-sub     { font-size: 1.15rem; }

.figure-full { width: 100%; height: auto; display: block; }
