/* Rettora – Website für Auftraggeber
   Layout: linksbündiges Raster, eine Fallkarte als Blickfang im Kopfbereich,
   alles andere ruhig über Linien und Weißraum gegliedert.
   Farben stammen aus dem Akademie-Design der Rettora-Lernplattform. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-variable.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-variable-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Rettora-Blau wie in der Lernplattform und den Shorts: Navy mit Cyan-Akzent.
     Die Seite hat bewusst nur dieses eine Farbschema. */
  color-scheme: dark;
  --paper: #07172d;      /* Navy, Seitengrund */
  --glow: #153957;       /* heller Schein oben */
  --surface: #0c223c;    /* Karten */
  --ink: #f4f8fb;
  --muted: #91a9bd;
  --line: #1c3a58;
  --petrol: #20d4d9;     /* Cyan, Akzent und Buttons */
  --petrol-soft: #10394e;
  --on-petrol: #052136;
  --band-from: #0d3b5d;  /* Verlauf im Kontaktbereich */
  --band-to: #0b6071;
  --signal: #ff6b75;
  --good: #45d69a;

  --font-ui: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Source Serif 4", Georgia, "Times New Roman", serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.5rem, 1.6rem + 4vw, 4.25rem);

  --measure: 36em;
  --wrap: 74rem;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --space-section: clamp(4rem, 3rem + 4vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: radial-gradient(80rem 42rem at 50% -12rem, var(--glow), transparent) no-repeat, var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.65;
  font-optical-sizing: auto;
}

h1, h2, h3 {
  font-family: var(--font-ui);
  font-weight: 680;
  line-height: 1.08;
  letter-spacing: -0.012em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); font-stretch: 122%; font-weight: 720; }
h2 { font-size: var(--step-3); font-stretch: 116%; }
h3 { font-size: var(--step-1); font-stretch: 104%; font-weight: 650; line-height: 1.25; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

a { color: var(--petrol); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

.skip {
  position: absolute; left: var(--gutter); top: -4rem;
  background: var(--petrol); color: var(--on-petrol);
  font-family: var(--font-ui); padding: .5rem .9rem; border-radius: 4px; z-index: 5;
}
.skip:focus { top: 1rem; }

/* Kopfzeile */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; flex-wrap: wrap; padding-block: 1.1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--font-ui); font-weight: 760; font-stretch: 125%;
  font-size: 1.3rem; letter-spacing: .01em; color: var(--ink); text-decoration: none;
}
.brand img { width: 2.5rem; height: 2.5rem; flex: none; border-radius: 50%; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; }
.site-nav a {
  font-family: var(--font-ui); font-size: .95rem; font-weight: 520;
  color: var(--ink); text-decoration: none;
}
.site-nav a:hover { color: var(--petrol); text-decoration: underline; }

/* Schaltflächen */
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; }
.button {
  display: inline-block; font-family: var(--font-ui); font-weight: 620;
  font-size: 1rem; line-height: 1; text-decoration: none;
  padding: .95rem 1.35rem; border-radius: 4px;
  background: var(--petrol); color: var(--on-petrol); border: 1px solid var(--petrol);
}
.button:hover { background: color-mix(in srgb, var(--petrol) 82%, var(--ink)); }
.button--quiet { background: transparent; color: var(--petrol); }
.button--quiet:hover { background: var(--petrol-soft); }

/* Kopfbereich */
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 3rem 4.5rem; align-items: center;
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
}
.hero-text { display: grid; gap: 1.6rem; min-width: 0; }
.hero-lead { font-size: var(--step-1); line-height: 1.55; max-width: 32em; }
.hero-note {
  font-family: var(--font-ui); font-size: var(--step--1); color: var(--muted);
  max-width: 34em; line-height: 1.5;
}

/* Fallkarte: das eine auffällige Element der Seite */
.case { margin: 0; min-width: 0; }
.case-stack { position: relative; margin: 0 14px 14px 0; }
.case-stack::before, .case-stack::after {
  content: ""; position: absolute; inset: 0; border: 1px solid var(--line);
  border-radius: 6px; background: var(--surface);
}
.case-stack::before { transform: translate(14px, 14px); }
.case-stack::after  { transform: translate(7px, 7px); }
.case-card {
  position: relative; z-index: 1; background: var(--surface);
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  font-family: var(--font-ui); font-size: .95rem; line-height: 1.45;
}
.case-band {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .55rem 1.1rem; background: var(--signal); color: var(--surface);
  font-weight: 620; font-size: .85rem; letter-spacing: .02em;
}
.case-body { padding: 1.15rem 1.1rem 1.25rem; display: grid; gap: 1rem; }
.case-title { font-size: 1.65rem; font-stretch: 120%; font-weight: 720; }
.case dl { margin: 0; display: grid; gap: .8rem; }
.case dt { font-size: .8rem; font-weight: 600; color: var(--muted); }
.case dd { margin: .1rem 0 0; }
.vitals {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line); padding-block: .7rem;
}
.vital { display: grid; gap: .1rem; min-width: 0; }
.vital span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.vital b {
  font-size: 1.35rem; font-stretch: 112%; font-weight: 700;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.vital small { font-size: .74rem; color: var(--muted); }
.vital--off b { color: var(--signal); }
.case ul { list-style: none; display: grid; gap: .25rem; }
.case li { padding-left: 1.1rem; position: relative; }
.case li::before {
  content: ""; position: absolute; left: .1rem; top: .58em;
  width: .45rem; height: .45rem; border: 1.5px solid var(--petrol); border-radius: 50%;
}
.case figcaption {
  margin-top: 1.1rem; font-family: var(--font-ui);
  font-size: .8rem; color: var(--muted);
}

/* Abschnitte */
.section { padding-block: var(--space-section); border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 1rem; max-width: var(--measure); margin-bottom: 3rem; }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.55; }

.columns {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 3rem;
}
.column { display: grid; gap: .9rem; align-content: start; min-width: 0; }
.column > p { color: var(--muted); }

.ticks { list-style: none; display: grid; gap: .45rem; font-size: 1rem; line-height: 1.5; }
.ticks li { padding-left: 1.4rem; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: .7rem; height: .38rem; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good);
  transform: rotate(-45deg);
}

/* Beispielpakete als Zeilen */
.packages { display: grid; }
.package {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.25rem 3rem; padding-block: 2rem; border-top: 1px solid var(--line);
}
.package:last-child { border-bottom: 1px solid var(--line); }
.package h3 { font-size: var(--step-2); font-stretch: 114%; font-weight: 680; }
.package-kind {
  display: block; margin-top: .55rem; font-family: var(--font-ui);
  font-size: var(--step--1); color: var(--muted); font-weight: 520;
}
.package-label {
  font-family: var(--font-ui); font-size: .85rem; font-weight: 620;
  color: var(--muted); margin-bottom: .55rem;
}

/* Ablauf: echte Reihenfolge, daher nummeriert */
.steps {
  list-style: none; counter-reset: step;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem 1.75rem;
}
.steps li { counter-increment: step; display: grid; gap: .55rem; align-content: start; min-width: 0; }
.steps li::before {
  content: counter(step);
  font-family: var(--font-ui); font-weight: 700; font-stretch: 125%;
  font-size: 1.05rem; color: var(--petrol);
  width: 2.3rem; height: 2.3rem; display: grid; place-items: center;
  border: 1.5px solid var(--petrol); border-radius: 50%;
}
.steps h3 { font-size: 1.1rem; font-stretch: 108%; }
.steps p { font-size: 1rem; line-height: 1.55; color: var(--muted); }

/* Zusammenarbeit */
.models { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; }
.model { display: grid; gap: .6rem; padding-block: 1.6rem; border-top: 1px solid var(--line); min-width: 0; }
.model p { max-width: var(--measure); }

/* Projekte */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 3rem; }
.project { display: grid; gap: .75rem; align-content: start; min-width: 0; }
.project-facts {
  font-family: var(--font-ui); font-size: var(--step--1); color: var(--muted);
  display: flex; flex-wrap: wrap; gap: .35rem .5rem; list-style: none;
}
.project-facts li {
  border: 1px solid var(--line); border-radius: 999px; padding: .15rem .65rem; background: var(--surface);
}

/* Über Rettora */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem 4.5rem; align-items: start; }
.about-text { display: grid; gap: 1.1rem; max-width: var(--measure); }
.responsibility {
  background: var(--petrol-soft); border-radius: 6px; padding: 1.6rem 1.6rem 1.75rem;
  display: grid; gap: .8rem; font-size: 1rem; line-height: 1.6;
}
.responsibility h3 { font-size: 1.15rem; }

/* Kontakt */
.contact { background: linear-gradient(115deg, var(--band-from), var(--band-to)); color: var(--ink); }
.contact .wrap { padding-block: var(--space-section); display: grid; gap: 1.5rem; }
.contact h2 { font-stretch: 122%; font-size: var(--step-4); max-width: 14em; }
.contact p { max-width: var(--measure); font-size: var(--step-1); line-height: 1.55; }
.contact-list { list-style: none; display: grid; gap: .4rem; font-family: var(--font-ui); font-size: 1.05rem; }
.contact a { color: inherit; }
.contact .todo {
  display: inline-block; border: 1px dashed currentColor; border-radius: 4px; padding: .3rem .7rem;
  font-family: var(--font-ui); font-size: .95rem;
}

/* Fußzeile */
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between;
  padding-block: 2rem; font-family: var(--font-ui); font-size: var(--step--1); color: var(--muted);
}
.site-footer ul { list-style: none; display: flex; gap: 1.5rem; }
.site-footer a { color: var(--muted); }

/* Rechtstexte */
.legal .wrap { padding-block: clamp(3rem, 2rem + 4vw, 5rem); display: grid; gap: 1.6rem; }
.legal article { max-width: var(--measure); display: grid; gap: 1.1rem; }
.legal h1 { font-size: var(--step-3); font-stretch: 118%; }
.legal h2 { font-size: var(--step-1); font-stretch: 106%; margin-top: 1rem; }
.legal .legal-date { margin-top: 2rem; color: var(--muted); font-family: var(--font-ui); font-size: .95rem; }
.draft-note {
  font-family: var(--font-ui); font-size: .95rem; border: 1px dashed var(--signal);
  color: var(--ink); border-radius: 4px; padding: .8rem 1rem; max-width: var(--measure);
}
mark.fill { background: var(--petrol-soft); color: var(--ink); padding: 0 .25em; border-radius: 3px; }

/* Schmale Bildschirme */
@media (max-width: 960px) {
  .hero .wrap, .about { grid-template-columns: minmax(0, 1fr); }
  .case { max-width: 34rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .package { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .package > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .columns, .projects, .models, .package { grid-template-columns: minmax(0, 1fr); }
  .package > :first-child { grid-column: auto; }
  .vitals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; }
  .steps li::before { grid-row: span 2; }
}

/* Projekte: Links */
.project-links { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; font-family: var(--font-ui); font-size: 1rem; }

/* Lernvideos */
.video-grid {
  list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.75rem 1.25rem;
}
.video-card {
  display: grid; grid-template-areas: "media" "kind" "title"; gap: .25rem;
  color: var(--ink); text-decoration: none; font-family: var(--font-ui); min-width: 0;
}
.video-card img {
  grid-area: media; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: 6px; background: var(--surface); margin-bottom: .6rem; display: block;
}
.video-duration {
  grid-area: media; align-self: end; justify-self: end; margin: 0 .5rem 1.1rem 0;
  padding: .1rem .45rem; border-radius: 3px; background: rgba(15, 22, 25, .82); color: #fff;
  font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.video-kind { grid-area: kind; font-size: var(--step--1); color: var(--muted); }
.video-title { grid-area: title; font-weight: 620; font-size: 1rem; line-height: 1.3; }
.video-card:hover .video-title { color: var(--petrol); text-decoration: underline; text-underline-offset: .18em; }
.video-card--all {
  aspect-ratio: 9 / 16; align-content: end; grid-template-areas: "title";
  padding: 1rem; border: 1.5px solid var(--petrol); border-radius: 6px;
}
.video-card--all .video-title { color: var(--petrol); font-stretch: 112%; font-size: 1.05rem; }
.video-card--all:hover { background: var(--petrol-soft); }

/* Häufige Fragen */
.faq { max-width: 48rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-block: 1.15rem; font-family: var(--font-ui); font-weight: 620; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: .8rem; height: .8rem;
  background:
    linear-gradient(var(--petrol), var(--petrol)) center / .8rem 2px no-repeat,
    linear-gradient(var(--petrol), var(--petrol)) center / 2px .8rem no-repeat;
  transition: transform .15s ease-out;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--petrol); }
.faq details p { padding-bottom: 1.3rem; max-width: var(--measure); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Anfragebogen im Stil der Fallkarte */
.request {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden; font-family: var(--font-ui); max-width: 56rem;
}
.request[hidden] { display: none; }
.request-band {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem 1.1rem; background: var(--signal); color: var(--surface);
  font-weight: 620; font-size: .85rem; letter-spacing: .02em;
}
.request-body {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--line);
}
.request-cell { margin: 0; border: 0; padding: .8rem 1.1rem 1rem; background: var(--surface); min-width: 0; }
.request-cell--wide { grid-column: 1 / -1; }
.request-cell > label, .request-cell > legend {
  display: block; padding: 0; margin-bottom: .4rem; font-size: .8rem; font-weight: 600; color: var(--muted);
}
.request-cell legend { float: left; width: 100%; }
.request-cell input[type="text"], .request-cell textarea {
  width: 100%; border: 0; border-bottom: 1px dashed var(--line); background: transparent;
  font: inherit; font-size: 1rem; color: var(--ink); padding: .25rem 0;
}
.request-cell textarea { resize: vertical; min-height: 6rem; font-family: var(--font-text); }
.request-cell input[type="text"]:focus, .request-cell textarea:focus { outline: none; border-bottom: 2px solid var(--petrol); }
.checks { clear: both; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem 1.5rem; }
.checks--row { grid-template-columns: repeat(4, auto); justify-content: start; }
.checks label { display: flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .98rem; }
.checks input {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none;
  width: 1.3rem; height: 1.3rem; border: 1.5px solid var(--ink); border-radius: 3px;
  background: var(--surface); display: grid; place-items: center; cursor: pointer;
}
.checks input::after {
  content: ""; width: .8rem; height: .8rem;
  background:
    linear-gradient(45deg, transparent 43%, var(--signal) 43%, var(--signal) 57%, transparent 57%),
    linear-gradient(-45deg, transparent 43%, var(--signal) 43%, var(--signal) 57%, transparent 57%);
  transform: scale(0); transition: transform .12s ease-out;
}
.checks input:checked::after { transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .checks input::after { transition: none; } }
.request-foot {
  grid-column: 1 / -1; background: var(--surface);
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between;
  padding: 1rem 1.1rem;
}
.request-note { font-size: .9rem; color: var(--muted); max-width: 34em; line-height: 1.45; }
.request-note.is-warning { color: var(--signal); font-weight: 600; }
.request .button[disabled] { opacity: .45; cursor: not-allowed; }
.contact .request a { color: var(--petrol); }

@media (max-width: 960px) {
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .request-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .request-cell:nth-last-child(2) { grid-column: 1 / -1; }
  .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .request-body { grid-template-columns: minmax(0, 1fr); }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .checks--row { grid-template-columns: repeat(2, auto); }
  .request-foot .button { width: 100%; text-align: center; }
}
