/* Startseite (includes/startseite.php), Deutsch seit 28.11.2026, alle Sprachen seit 29.11.2026.
 * Regeln aus der Mediamatiker-Prüfung: eine Akzentfarbe, keine Verläufe/Glow, 6 Schriftgrössen, Text max. ~68 Zeichen,
 * Weiss und ein Hellgrau im Wechsel, Karten nur für Wählbares, 1-px-Linien, Radius 8 px, nichts blendet sich ein.
 * Farben aus den Variablen von serioes.css/zukunft.css (Fallbacks = Stil «Seriös», hell). */
.s2 {
  --s2-akzent: var(--zk-cyan-text, #1b4d89);
  --s2-text: var(--zk-text, #111827);
  --s2-lead: var(--zk-lead, #334155);
  --s2-muted: var(--zk-muted, #475569);
  --s2-linie: var(--zk-line, #d5dce4);
  --s2-flaeche: var(--zk-surface, #ffffff);
  --s2-grau: var(--zk-surface-2, #eef1f5);
  --s2-fs-xs: .8125rem; --s2-fs-s: .9375rem; --s2-fs-m: 1.0625rem; --s2-fs-l: 1.25rem;
  --s2-fs-xl: clamp(1.625rem, 2.4vw, 2rem); --s2-fs-2xl: clamp(2rem, 4vw, 3rem);
  color: var(--s2-text);
}
.s2 *, .s2 *::before, .s2 *::after { animation: none !important; }
.s2-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.s2-schmal { max-width: 800px; }
.s2-abschnitt { padding: 88px 0; }
.s2-abschnitt--grau { background: var(--s2-grau); border-top: 1px solid var(--s2-linie); border-bottom: 1px solid var(--s2-linie); }
.s2-h1 { font-size: var(--s2-fs-2xl); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; margin: 0 0 18px; max-width: 18ch; color: var(--s2-text); }
.s2-h2 { font-size: var(--s2-fs-xl); line-height: 1.2; letter-spacing: -.01em; font-weight: 650; margin: 0 0 12px; color: var(--s2-text); }
.s2-kicker { font-size: var(--s2-fs-s); font-weight: 600; color: var(--s2-akzent); margin: 0 0 14px; }
.s2-lead { font-size: var(--s2-fs-l); line-height: 1.55; color: var(--s2-lead); max-width: 60ch; margin: 0 0 28px; }
.s2-intro { font-size: var(--s2-fs-m); line-height: 1.6; color: var(--s2-lead); max-width: 68ch; margin: 0 0 32px; }
.s2 p { max-width: 68ch; }
.s2 a { color: var(--s2-akzent); }
.s2-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
.s2-knoepfe--mitte { justify-content: center; }
.s2 .btn { animation: none; }

/* 1 Hero */
.s2-hero { padding: 72px 0 80px; border-bottom: 1px solid var(--s2-linie); }
.s2-hero-raster { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.s2-vertrauen { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; padding: 0; margin: 26px 0 0; font-size: var(--s2-fs-s); color: var(--s2-muted); }
.s2-vertrauen li::before { content: "✓"; color: var(--s2-akzent); font-weight: 700; margin-right: 7px; }
.s2-zert { margin: 0; background: var(--s2-flaeche); border: 1px solid var(--s2-linie); border-top: 4px solid var(--s2-akzent); border-radius: 8px; padding: 28px 28px 22px; box-shadow: 0 18px 40px rgba(15, 23, 42, .08); }
.s2-zert-kopf { display: flex; justify-content: space-between; align-items: center; font-size: var(--s2-fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--s2-muted); }
.s2-zert-muster { border: 1px solid var(--s2-linie); border-radius: 4px; padding: 2px 8px; letter-spacing: .04em; }
.s2-zert-name { font-size: var(--s2-fs-xl); font-weight: 650; margin: 22px 0 4px; }
.s2-zert-text { font-size: var(--s2-fs-s); color: var(--s2-muted); }
.s2-zert-kurs { font-size: var(--s2-fs-l); font-weight: 600; margin: 10px 0 24px; line-height: 1.35; }
.s2-zert-fuss { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-top: 16px; border-top: 1px solid var(--s2-linie); font-size: var(--s2-fs-s); }
.s2-zert-fuss small { display: block; font-size: var(--s2-fs-xs); color: var(--s2-muted); }
.s2-zert-siegel { width: 52px; height: 52px; flex: none; border-radius: 50%; border: 2px solid var(--s2-akzent); display: grid; place-items: center; }
.s2-zert-siegel svg { width: 26px; height: 26px; fill: none; stroke: var(--s2-akzent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.s2-zert figcaption { margin-top: 14px; font-size: var(--s2-fs-xs); color: var(--s2-muted); }

/* 2 Wegweiser */
.s2-weg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.s2-weg-karte { display: flex; flex-direction: column; gap: 8px; padding: 24px; min-height: 170px; text-decoration: none; color: var(--s2-text) !important;
  background: var(--s2-flaeche); border: 1px solid var(--s2-linie); border-radius: 8px; transition: border-color .15s, box-shadow .15s; }
.s2-weg-karte:hover, .s2-weg-karte:focus-visible { border-color: var(--s2-akzent); box-shadow: 0 0 0 1px var(--s2-akzent); }
.s2-weg-karte--haupt { border-color: var(--s2-akzent); border-width: 1.5px; }
.s2-weg-ich { font-size: var(--s2-fs-l); font-weight: 650; line-height: 1.3; }
.s2-weg-ziel { font-size: var(--s2-fs-s); color: var(--s2-muted); line-height: 1.45; }
.s2-weg-preis { margin-top: auto; font-weight: 650; color: var(--s2-akzent); }
.s2-weg-hilfe { margin: 22px 0 0; font-size: var(--s2-fs-s); color: var(--s2-muted); }

/* 3 Berufe */
.s2-kopfzeile { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.s2-kopfzeile .s2-intro { margin-bottom: 28px; }
.s2-link { font-weight: 600; text-decoration: none; margin-bottom: 30px; white-space: nowrap; }
.s2-link:hover { text-decoration: underline; }
.s2-berufe { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.s2-beruf { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; text-decoration: none; color: var(--s2-text) !important;
  background: var(--s2-flaeche); border: 1px solid var(--s2-linie); border-radius: 8px; transition: border-color .15s; }
.s2-beruf:hover, .s2-beruf:focus-visible { border-color: var(--s2-akzent); }
.s2-beruf-name { font-size: var(--s2-fs-m); font-weight: 650; line-height: 1.3; }
.s2-beruf-fuer { font-size: var(--s2-fs-s); color: var(--s2-muted); line-height: 1.45; }
.s2-beruf-fuss { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; font-size: var(--s2-fs-s); color: var(--s2-muted); }
.s2-beruf-fuss strong { color: var(--s2-text); white-space: nowrap; }

/* 4 Vergleich */
.s2-tabelle { width: 100%; border-collapse: collapse; font-size: var(--s2-fs-s); background: var(--s2-flaeche); border: 1px solid var(--s2-linie); border-radius: 8px; overflow: hidden; }
.s2-tabelle th, .s2-tabelle td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--s2-linie); line-height: 1.45; }
.s2-tabelle thead th { font-size: var(--s2-fs-xs); font-weight: 600; color: var(--s2-muted); background: var(--s2-grau); }
.s2-tabelle tbody th { font-size: var(--s2-fs-m); font-weight: 650; color: var(--s2-text); min-width: 190px; }
.s2-tabelle tbody th small { display: block; margin-top: 4px; font-size: var(--s2-fs-xs); font-weight: 500; }
.s2-tabelle tbody tr:last-child > * { border-bottom: 0; }
.s2-tabelle-haupt { box-shadow: inset 3px 0 0 var(--s2-akzent); }
.s2-marke { display: inline-block; vertical-align: middle; margin-left: 6px; font-size: var(--s2-fs-xs); font-weight: 600; color: var(--s2-akzent); border: 1px solid currentColor; border-radius: 4px; padding: 0 6px; }
.s2-preis { font-weight: 650; white-space: nowrap; color: var(--s2-text); }
.s2-tabelle-link a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.s2-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 5 Schritte */
.s2-schritte { list-style: none; counter-reset: s2; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.s2-schritte li { counter-increment: s2; display: flex; flex-direction: column; gap: 8px; }
.s2-schritte li::before { content: counter(s2); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  color: var(--s2-akzent); border: 1.5px solid var(--s2-akzent); margin-bottom: 6px; }
.s2-schritte strong { font-size: var(--s2-fs-l); line-height: 1.3; }
.s2-schritte span { color: var(--s2-lead); line-height: 1.6; }

/* 6 Wer */
.s2-wer { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.s2-wer p { color: var(--s2-lead); line-height: 1.65; }
.s2-links { font-size: var(--s2-fs-s); }
.s2-fakten { margin: 0; display: grid; gap: 0; border: 1px solid var(--s2-linie); border-radius: 8px; background: var(--s2-flaeche); }
.s2-fakten > div { padding: 16px 20px; border-bottom: 1px solid var(--s2-linie); }
.s2-fakten > div:last-child { border-bottom: 0; }
.s2-fakten dt { font-size: var(--s2-fs-xs); font-weight: 600; color: var(--s2-muted); margin-bottom: 4px; }
.s2-fakten dd { margin: 0; line-height: 1.5; }

/* 7 FAQ */
.s2-faq { border-top: 1px solid var(--s2-linie); }
.s2-faq details { border-bottom: 1px solid var(--s2-linie); }
.s2-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: var(--s2-fs-m); font-weight: 600; min-height: 44px; }
.s2-faq summary::-webkit-details-marker { display: none; }
.s2-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--s2-akzent); flex: none; }
.s2-faq details[open] summary::after { content: "–"; }
.s2-faq p { margin: 0 0 22px; color: var(--s2-lead); line-height: 1.65; }

/* 8 Schluss */
.s2-schluss { text-align: center; }
.s2-schluss .s2-intro { margin-left: auto; margin-right: auto; }
.s2-team { margin: 24px auto 0; font-size: var(--s2-fs-s); color: var(--s2-muted); }

@media (max-width: 1000px) {
  .s2-weg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s2-hero-raster, .s2-wer { grid-template-columns: 1fr; gap: 40px; }
  .s2-zert { max-width: 460px; }
}
@media (max-width: 720px) {
  .s2-abschnitt { padding: 60px 0; }
  .s2-hero { padding: 40px 0 52px; }
  .s2-wrap { padding: 0 16px; }
  .s2-weg, .s2-schritte { grid-template-columns: 1fr; }
  .s2-weg-karte { min-height: 0; }
  .s2-knoepfe .btn { width: 100%; justify-content: center; text-align: center; }
  .s2-link { margin-bottom: 20px; }
  /* Tabelle als Karten */
  .s2-tabelle, .s2-tabelle tbody, .s2-tabelle tr, .s2-tabelle th, .s2-tabelle td { display: block; width: 100%; }
  .s2-tabelle { border: 0; background: none; }
  .s2-tabelle thead { display: none; }
  .s2-tabelle tbody tr { background: var(--s2-flaeche); border: 1px solid var(--s2-linie); border-radius: 8px; margin-bottom: 12px; padding: 6px 0; }
  .s2-tabelle-haupt { box-shadow: inset 0 3px 0 var(--s2-akzent); }
  .s2-tabelle th, .s2-tabelle td { border: 0; padding: 6px 18px; }
  .s2-tabelle tbody th { padding-top: 12px; }
  .s2-tabelle td[data-label]::before { content: attr(data-label); display: block; font-size: var(--s2-fs-xs); color: var(--s2-muted); }
  .s2-tabelle-link { padding-bottom: 14px !important; }
}

/* Begriffe kurz erklärt (Laientest 28.11.2026: Kurs/Zertifizierung/Lehrgang/Diplom oben sichtbar) */
.s2-begriffe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 10px; }
.s2-begriffe > div { background: var(--s2-grau); border-radius: 8px; padding: 14px 16px; }
.s2-begriffe dt { font-weight: 650; margin-bottom: 4px; }
.s2-begriffe dd { margin: 0; font-size: var(--s2-fs-s); color: var(--s2-lead); line-height: 1.5; }
.s2-klein { font-size: var(--s2-fs-s); color: var(--s2-muted); margin: 0 0 22px; }
@media (max-width: 1000px) { .s2-begriffe { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .s2-begriffe { grid-template-columns: 1fr; } }

/* Bilder (29.11.2026): KI-generierte Fotos, reine Dekoration ausser Hero und Über uns */
.s2-hero-rechts { display: flex; flex-direction: column; min-width: 0; }
.s2-foto { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; display: block; background: var(--s2-grau, #eef1f5); box-shadow: 0 18px 40px rgba(15, 23, 42, .10); }
.s2-hero-rechts .s2-zert { margin: -56px 20px 0; position: relative; padding: 20px 22px 16px; }
.s2-foto--breit { grid-column: 1 / -1; aspect-ratio: 21 / 8; box-shadow: none; }
.s2-weg-karte, .s2-beruf { overflow: hidden; }
.s2-weg-karte > .s2-bild { margin: -24px -24px 8px; width: calc(100% + 48px); max-width: none; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--s2-grau, #eef1f5); }
.s2-beruf > .s2-bild { margin: -20px -22px 8px; width: calc(100% + 44px); max-width: none; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--s2-grau, #eef1f5); }
@media (max-width: 900px) { .s2-hero-rechts .s2-zert { margin: -40px 12px 0; max-width: none; } .s2-foto--breit { aspect-ratio: 16 / 9; } }
