/* ==========================================================================
   Entwurf 11 - CI Guide v0.2 fuer einen Bildungstraeger mit Schwerpunkt
   Arbeitssicherheit. Raster aus zwoelf Spalten, Haarlinien statt Schatten,
   eine Unterstreichung je Flaeche, ein Navy-Band, eine Petrol-Flaeche.
   Keine Einblendeffekte: Bewegung nur als Antwort auf eine Handlung.
   Layout unabhaengig vom Brandkit. Schrift, Farbe und Radius kommen
   aus kits.css und palettes.css und sind ueber das Menue wechselbar.
   Die Rollen underline und status liest das Layout mit Rueckfall.
   ========================================================================== */
:root {
  --maxw: 1312px;
  --spalt: 24px;
  --takt: clamp(3.5rem, 7vw, 6rem);
  --linie: 1px solid var(--border);
  --strich: var(--underline, var(--accent));
  --hinweis: var(--status, var(--accent));
}

/* --- Bausteine ------------------------------------------------------------ */
.strich {
  background-image: linear-gradient(var(--strich), var(--strich));
  background-repeat: no-repeat; background-size: 100% .14em; background-position: 0 94%;
}

.knopf {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.25rem; border-radius: var(--r); border: 1px solid transparent;
  font-weight: 600; font-size: .9375rem; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.knopf--voll { background: var(--accent); color: var(--on-accent); }
.knopf--voll:hover { background: var(--accent-hover); }
.knopf--linie { color: var(--text); border-color: var(--border); }
.knopf--linie:hover { border-color: var(--accent); color: var(--accent-text); }
.knopf--klein { padding: .5rem .9rem; font-size: .875rem; }

.raster { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--spalt); }
@media (max-width: 900px) { .raster { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }

figure { margin: 0; }
.nachweis { font-size: .75rem; color: var(--text-muted); margin-top: .4rem; line-height: 1.4; }
.nachweis a { color: inherit; }

.abschnitt { padding-block: var(--takt); }
.abschnitt--alt { background: var(--bg-alt); }
.abschnitt__kopf { display: grid; gap: .7rem; margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 46rem; }
.abschnitt__kopf h2 {
  font-size: clamp(1.9rem, 3.4vw, 3rem); font-weight: var(--display-weight);
  line-height: 1.1; text-transform: var(--display-transform);
}
.abschnitt__kopf p { font-size: 1.125rem; color: var(--text-muted); max-width: 60ch; }

/* --- Kopf ----------------------------------------------------------------- */
.kopf { border-bottom: var(--linie); background: var(--bg); position: sticky; top: 0; z-index: 40; }
.kopf__reihe { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.hauptnav { margin-inline-start: auto; }
.hauptnav ul { display: flex; gap: 1.6rem; }
.hauptnav a { font-size: .9375rem; font-weight: 500; color: var(--text-muted); text-decoration: none; white-space: nowrap; }
.hauptnav a:hover { color: var(--accent-text); }
@media (max-width: 900px) { .hauptnav { display: none; } .kopf .knopf { margin-inline-start: auto; } }

/* --- Kopfbereich: Claim links, Bild rechts -------------------------------- */
.hero { padding-block: clamp(3rem, 7vw, 6rem); }
.hero .raster { align-items: center; }
.hero__text { grid-column: 1 / span 6; display: grid; gap: 1.5rem; align-content: start; }
.hero h1 {
  font-size: clamp(2.6rem, 5.8vw, 5rem); font-weight: var(--display-weight);
  line-height: 1.04; text-transform: var(--display-transform); max-width: 12ch;
}
.hero__sub { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--text-muted); max-width: 44ch; }
.hero__aktionen { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .4rem; }
.hero__bild { grid-column: 7 / span 6; }
.hero__bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
@media (max-width: 900px) { .hero__text, .hero__bild { grid-column: 1 / -1; } }

/* --- Wegweiser: zwei Wege in die Weiterbildung ---------------------------- */
.wegweiser { border-block: var(--linie); }
.weg {
  grid-column: span 6; display: grid; gap: .6rem; align-content: start;
  padding-block: 2rem 2.2rem; text-decoration: none; color: var(--text);
}
.weg + .weg { border-inline-start: var(--linie); padding-inline-start: var(--spalt); }
.weg h2 { font-size: 1.5rem; font-weight: var(--display-weight); line-height: 1.2; }
.weg p { color: var(--text-muted); max-width: 52ch; }
.weg__link { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; margin-top: .3rem; }
.weg:hover .weg__link { text-decoration-thickness: 2px; }
.weg:hover h2 { color: var(--accent-text); }
@media (max-width: 900px) {
  .weg { grid-column: 1 / -1; }
  .weg + .weg { border-inline-start: 0; border-top: var(--linie); padding-inline-start: 0; }
}

/* --- Kurse als Register: Bild links, Angaben rechts ----------------------- */
.kurs {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--spalt);
  padding-block: 2rem; border-top: var(--linie);
}
.kurs:last-child { border-bottom: var(--linie); }
.kurs__bild { grid-column: 1 / span 4; }
.kurs__bild img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }
.kurs__text { grid-column: 6 / span 7; display: grid; gap: .7rem; align-content: start; }
.kurs__feld { font-size: .875rem; font-weight: 500; color: var(--accent-text); }
.kurs h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: var(--display-weight); line-height: 1.2; }
.kurs__text > p:not(.kurs__feld) { color: var(--text-muted); max-width: 64ch; }
.kurs__fakten { display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; margin: .5rem 0 0; }
.kurs__fakten div { display: grid; gap: .2rem; }
.kurs__fakten dt { font-size: .8125rem; color: var(--text-muted); }
.kurs__fakten dd { margin: 0; font-family: var(--font-mono); font-size: .9375rem; }
.status {
  display: inline-block; font-family: var(--font-mono); font-size: .8125rem;
  padding: .15rem .5rem; border: 1px solid var(--border); border-radius: var(--r); color: var(--text-muted);
}
@media (max-width: 900px) {
  .kurs { grid-template-columns: 1fr; gap: 1.1rem; }
  .kurs__bild, .kurs__text { grid-column: 1 / -1; }
}

/* --- Ablauf: echte Reihenfolge, daher nummeriert --------------------------- */
.ablauf__kopf { grid-column: 1 / span 5; align-self: start; }
.ablauf__bild img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }
.ablauf { grid-column: 7 / span 6; counter-reset: schritt; border-top: var(--linie); }
.ablauf li { counter-increment: schritt; display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; padding-block: 1.25rem; border-bottom: var(--linie); }
.ablauf li::before {
  content: counter(schritt); grid-row: span 2;
  font-family: var(--font-mono); font-size: 1.5rem; line-height: 1.2; color: var(--accent-text);
}
.ablauf h3 { font-size: 1.1875rem; font-weight: var(--display-weight); }
.ablauf p { color: var(--text-muted); margin-top: .25rem; }
@media (max-width: 900px) { .ablauf__kopf, .ablauf { grid-column: 1 / -1; } }

/* --- Foerderung ----------------------------------------------------------- */
.foerderweg { grid-column: span 6; display: grid; gap: .5rem; align-content: start; border-top: 2px solid var(--text); padding-top: 1.1rem; }
.foerderweg h3 { font-size: 1.375rem; font-weight: var(--display-weight); }
.foerderweg__norm { font-family: var(--font-mono); font-size: .875rem; color: var(--text-muted); }
.foerderweg p:last-child { color: var(--text-muted); max-width: 62ch; }
@media (max-width: 900px) { .foerderweg { grid-column: 1 / -1; } }

.hinweis {
  border-inline-start: 2px solid var(--hinweis); background: var(--bg-alt);
  padding: .9rem 1.2rem; color: var(--text-muted); font-size: .9375rem; margin-top: clamp(2rem, 4vw, 3rem); max-width: 80ch;
}

/* --- Fuer Unternehmen ----------------------------------------------------- */
.zelle { grid-column: span 4; display: grid; gap: .5rem; align-content: start; border-top: var(--linie); padding-top: 1rem; }
.zelle h3 { font-size: 1.25rem; font-weight: var(--display-weight); }
.zelle p { color: var(--text-muted); }
.zelle__frage { color: var(--text) !important; font-weight: 500; }
@media (max-width: 900px) { .zelle { grid-column: 1 / -1; } }

.band { background: var(--inverse); color: var(--on-inverse); padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--r); margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; gap: .6rem; }
.band h3 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); font-weight: var(--display-weight); line-height: 1.15; }
.band p { color: var(--on-inverse-muted); max-width: 70ch; }

/* --- Haeufige Fragen ------------------------------------------------------ */
.fragen__kopf { grid-column: 1 / span 4; }
.fragen { grid-column: 6 / span 7; border-top: var(--linie); }
.fragen details { border-bottom: var(--linie); }
.fragen summary {
  list-style: none; cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
  font-size: 1.125rem; font-weight: 600;
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%; width: .7rem; height: .7rem;
  border-right: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.fragen details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.fragen summary:hover { color: var(--accent-text); }
.fragen details p { color: var(--text-muted); padding-bottom: 1.2rem; max-width: 62ch; }
@media (max-width: 900px) { .fragen__kopf, .fragen { grid-column: 1 / -1; } }

/* --- Petrol-Flaeche fuer die Kontaktaufnahme ------------------------------ */
.flaeche {
  background: var(--accent); color: var(--on-accent); border-radius: var(--r);
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--spalt); align-items: end;
}
.flaeche__text { grid-column: 1 / span 8; display: grid; gap: 1rem; }
.flaeche h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: var(--display-weight); line-height: 1.1; text-transform: var(--display-transform); }
.flaeche p { max-width: 50ch; font-size: 1.0625rem; }
.flaeche .strich { --strich: var(--on-accent); }
.flaeche__aktion { grid-column: 9 / span 4; justify-self: end; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; }
.knopf--umkehr { background: var(--on-accent); color: var(--accent); }
.knopf--umkehr:hover { background: var(--bg); color: var(--accent-text); }
.knopf--umkehr-linie { color: var(--on-accent); border-color: currentColor; font-family: var(--font-mono); font-weight: 400; }
.knopf--umkehr-linie:hover { background: color-mix(in srgb, var(--on-accent) 12%, transparent); }
@media (max-width: 900px) { .flaeche { grid-template-columns: 1fr; } .flaeche__text, .flaeche__aktion { grid-column: 1 / -1; justify-self: start; justify-content: flex-start; } }

/* --- Fuss ----------------------------------------------------------------- */
.fuss { border-top: var(--linie); padding-block: 3rem 2rem; font-size: .9375rem; color: var(--text-muted); }
.fuss__raster { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--spalt); }
.fuss h3 { font-size: .875rem; font-weight: 600; color: var(--text); margin-bottom: .8rem; }
.fuss li + li { margin-top: .4rem; }
.fuss a { color: var(--text-muted); text-decoration: none; }
.fuss a:hover { color: var(--accent-text); text-decoration: underline; }
.fuss__marke p { margin-top: 1rem; max-width: 44ch; }
.fuss__zertifikat { font-size: .875rem; }
.fuss__unten {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  margin-top: 2.5rem; padding-top: 1rem; border-top: var(--linie); font-size: .875rem;
}
@media (max-width: 900px) { .fuss__raster { grid-template-columns: 1fr 1fr; } .fuss__marke { grid-column: 1 / -1; } }
@media (max-width: 720px) { .fuss { padding-bottom: 6rem; } }

/* --- Rechtstexte ---------------------------------------------------------- */
.rechtstext { max-width: 46rem; }
.rechtstext h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); font-weight: var(--display-weight); line-height: 1.08; margin-bottom: 2rem; }
.rechtstext h2 { font-size: 1.375rem; font-weight: var(--display-weight); margin: 2.4rem 0 .7rem; padding-top: 1rem; border-top: var(--linie); }
.rechtstext h3 { font-size: 1.125rem; font-weight: 600; margin: 1.6rem 0 .5rem; }
.rechtstext p, .rechtstext li { color: var(--text-muted); max-width: 70ch; }
.rechtstext p + p { margin-top: .8rem; }
.rechtstext strong { color: var(--text); }
.rechtstext ul { list-style: disc; padding-inline-start: 1.25rem; display: grid; gap: .4rem; margin-top: .6rem; }
.rechtstext ul.formular { list-style: none; padding: 0; gap: 1rem; margin-block: 1rem; }
.rechtstext a { color: var(--accent-text); }
