/* Homepage-Stile für kigestalten.de und magnus-rode.de.
   Baut auf den Werten von „Samt & Messing“ auf (design/tokens.css): Farben, Schriften, Radien, Schatten.
   Regeln aus dem Markenhandbuch: Text steht auf dem Grund, Kästen nur für Antippbares, keine Flächenverläufe,
   Köpfe linksbündig, Kapitälchen für Eyebrows, Fokus 2px Messing. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 var(--font-sans); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); line-height: 1.05; letter-spacing: -.03em; }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.65rem); line-height: 1.12; letter-spacing: -.025em; }
h3 { font-size: 1.3rem; line-height: 1.25; font-weight: 800; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

.rand { width: 100%; max-width: calc(var(--landing-width) + 40px); margin-inline: auto; padding-inline: 20px; }
.schmal { max-width: 65ch; }
.gedaempft { color: var(--muted); }
.vorspann { font-size: clamp(1.1rem, 1.9vw, 1.3rem); line-height: 1.5; color: color-mix(in srgb, var(--text) 82%, var(--bg)); max-width: 56ch; }
.eyebrow { color: var(--accent); font-weight: 800; font-variant-caps: small-caps; letter-spacing: .05em; font-size: 1.05rem; }
.stapel { display: flex; flex-direction: column; gap: 18px; }
.stapel-eng { display: flex; flex-direction: column; gap: 8px; }
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.sprung { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--radius); font-weight: 700; }
.sprung:focus { top: 12px; }

/* Badges (wie im Design System) */
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: var(--radius-pill); white-space: nowrap; background: var(--surface-2); color: var(--muted); vertical-align: middle; }
.badge-ok { background: color-mix(in srgb, var(--good) 20%, transparent); color: var(--good); }
.badge-warn { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }
.badge-info { background: color-mix(in srgb, var(--info) 20%, transparent); color: var(--info); }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 13px 22px;
  border-radius: var(--radius); border: 1px solid var(--border-strong); background: none; color: var(--text);
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .1s;
}
.knopf:hover { border-color: var(--text); }
.knopf:active { transform: scale(.98); }
.knopf.haupt { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.knopf.haupt:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }
.knopf.klein { min-height: 40px; padding: 8px 14px; font-weight: 700; font-size: .95rem; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.abstand { margin-top: 28px; }
.pfeil::after { content: "→"; margin-left: .35em; display: inline-block; transition: translate .15s; }
a:hover > .pfeil::after, .pfeil:hover::after { translate: 3px 0; }
.verweis { font-weight: 700; text-decoration: none; }
.verweis:hover { text-decoration: underline; }

/* Kopfzeile */
.kopf { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--border); }
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.marke { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; color: var(--text); text-decoration: none; white-space: nowrap; }
.marke b { color: var(--accent); font-weight: 700; }
.marke small { font: 600 .8rem var(--font-sans); color: var(--muted); letter-spacing: 0; margin-left: 10px; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { padding: 9px 12px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 600; font-size: .98rem; text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav a[aria-current] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.menue-knopf { min-width: 40px; min-height: 40px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); cursor: pointer; display: inline-grid; place-items: center; font: inherit; font-weight: 700; }
/* Farbwelt-Umschalter wie trickcoach.de (Baustein ThemePicker, Landingpage-Variante). Streifenfarben fest je Welt,
   damit jeder Punkt seine eigene Welt zeigt – als Klassen statt style-Attribut wegen der Content-Security-Policy. */
.lp-theme-row { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); font-weight: 700; }
.lp-themes { display: flex; gap: 6px; }
.lp-theme { display: flex; width: 30px; height: 30px; padding: 0; border-radius: 50%; overflow: hidden; border: 2px solid var(--border); cursor: pointer; background: none; }
.lp-theme i { flex: 1; height: 100%; display: block; }
.lp-theme.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.lp-theme-messinghell i:nth-child(1) { background: #f6f1e9; } .lp-theme-messinghell i:nth-child(2) { background: #8e2433; } .lp-theme-messinghell i:nth-child(3) { background: #c08a2a; }
.lp-theme-messing i:nth-child(1) { background: #141110; } .lp-theme-messing i:nth-child(2) { background: #a8323f; } .lp-theme-messing i:nth-child(3) { background: #d9a648; }
.lp-theme-tag i:nth-child(1) { background: #f6f3fc; } .lp-theme-tag i:nth-child(2) { background: #6d3fe0; } .lp-theme-tag i:nth-child(3) { background: #d99a1e; }
.lp-theme-nacht i:nth-child(1) { background: #14101f; } .lp-theme-nacht i:nth-child(2) { background: #7647e8; } .lp-theme-nacht i:nth-child(3) { background: #f5c542; }
.thema-wahl { margin-left: 14px; }
.thema-wahl > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.menue-knopf { display: none; padding: 0 14px; }
html:not(.js) .thema-wahl { display: none; }
@media (max-width: 860px) {
  .marke small { display: none; }
  .js .menue-knopf { display: inline-grid; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 20px 16px; flex-direction: column; align-items: stretch; box-shadow: var(--shadow); }
  .js .nav.offen { display: flex; }
  .js .nav a { padding: 12px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .js .nav a[aria-current] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 14px; }
  .js .thema-wahl { margin: 14px 0 4px; }
  .js .thema-wahl > span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  html:not(.js) .kopf-innen { flex-direction: column; align-items: flex-start; padding-block: 10px; }
}

/* Abschnitte */
.abschnitt { padding-block: clamp(56px, 9vw, 116px); }
.abschnitt + .abschnitt { border-top: 1px solid var(--border); }
.abschnitt.flaeche { background: var(--bg-2); }
.abschnitt-kopf { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(28px, 5vw, 52px); max-width: 62ch; }
.seitenkopf { padding-block: clamp(48px, 8vw, 96px) clamp(28px, 5vw, 56px); }
.seitenkopf .stapel > * { max-width: 64ch; }

/* Bühne (Kopf der Startseiten) */
.buehne { padding-block: clamp(36px, 7vw, 88px) clamp(48px, 8vw, 104px); overflow: clip; }
.buehne-raster { display: grid; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (min-width: 900px) { .buehne-raster { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); } }
.buehne-text { display: flex; flex-direction: column; gap: 22px; }
.fakten { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: .98rem; }
.fakten strong { color: var(--text); font-family: var(--font-display); font-weight: 700; }

/* Szene: Ebenen, die sich beim Scrollen leicht gegeneinander verschieben */
.szene { position: relative; min-height: clamp(380px, 52vw, 560px); }
.szene > * { position: absolute; will-change: translate; }
.szene .hinten { inset: 9% 0 9% 12%; }
.szene .handy-a { width: 39%; left: 3%; top: 2%; rotate: -5deg; z-index: 2; }
.szene .handy-b { width: 39%; right: 6%; bottom: 0; rotate: 4deg; z-index: 3; }
.szene-person .hinten { inset: 0 16% 6% 0; }
.szene-person .vorn { width: 46%; right: 0; bottom: 0; z-index: 2; }

/* Smartphone-Rahmen */
.handy { border: 7px solid #17120f; border-radius: 30px; overflow: hidden; background: #17120f; box-shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 18px 44px rgba(20, 10, 0, .28); line-height: 0; }
[data-theme="messing"] .handy, [data-theme="nacht"] .handy { border-color: #3d342c; background: #3d342c; }
.handy img { width: 100%; display: block; border-radius: 22px; }

/* Platzhalter für Fotos, die noch geliefert werden */
.platzhalter {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 2px; padding: 18px;
  border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--muted); overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 14px, var(--bg-2) 14px 28px);
}
.platzhalter span { font-size: .8rem; font-weight: 800; font-variant-caps: small-caps; letter-spacing: .05em; background: var(--bg); padding: 1px 8px; border-radius: var(--radius-pill); }
.platzhalter strong { font-weight: 600; font-size: .95rem; line-height: 1.35; background: var(--bg); padding: 4px 8px; border-radius: var(--radius-sm); max-width: 34ch; color: var(--text); }
.platzhalter-hoch { aspect-ratio: 4 / 5; }
.platzhalter-quer { aspect-ratio: 3 / 2; }
.platzhalter-quadrat { aspect-ratio: 1; }
.platzhalter-breit { aspect-ratio: 21 / 9; min-height: 240px; }
.szene .platzhalter { aspect-ratio: auto; }

/* Band: ein breites Bild zwischen zwei Abschnitten, das langsamer läuft als die Seite */
.band { overflow: clip; border-top: 1px solid var(--border); height: clamp(220px, 38vw, 460px); position: relative; }
.band > * { position: absolute; inset: -70px 0; border-radius: 0; border-inline: 0; aspect-ratio: auto; padding-bottom: 90px; }
.band .platzhalter { padding-left: max(20px, calc((100vw - var(--landing-width)) / 2)); }

/* App-Schau: Text bleibt stehen, die Apps ziehen daneben vorbei */
.schau { display: grid; gap: clamp(28px, 6vw, 80px); }
@media (min-width: 900px) {
  .schau { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
  .schau-fest { position: sticky; top: 112px; }
}
.schau-fest { display: flex; flex-direction: column; gap: 18px; }
.schau-liste { display: flex; flex-direction: column; }
.app-eintrag { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-block: 34px; border-top: 1px solid var(--border); align-items: center; }
.app-eintrag:first-child { border-top: 2px solid var(--accent); }
@media (min-width: 560px) {
  .app-eintrag { grid-template-columns: 170px minmax(0, 1fr); gap: 34px; padding-block: 44px; }
  .app-eintrag:nth-child(even) { grid-template-columns: minmax(0, 1fr) 170px; }
  .app-eintrag:nth-child(even) .handy { order: 2; }
}
.app-eintrag .handy { max-width: 170px; border-width: 5px; border-radius: 24px; }
.app-eintrag .handy img { border-radius: 18px; }
.app-kopf { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; }
.app-kopf img { width: 40px; height: 40px; flex: none; }
.app-kopf h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -.02em; }
.app-rolle { color: var(--muted); font-weight: 700; font-variant-caps: small-caps; letter-spacing: .05em; }
.app-text { display: flex; flex-direction: column; gap: 12px; }

/* Wechsel: Bild und Text nebeneinander, Seite wechselt */
.wechsel { display: grid; gap: clamp(24px, 5vw, 64px); align-items: center; }
.wechsel + .wechsel { margin-top: clamp(48px, 8vw, 96px); }
@media (min-width: 800px) {
  .wechsel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .wechsel.gedreht { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .wechsel.gedreht > :first-child { order: 2; }
}
.wechsel-bild { display: flex; justify-content: center; }
.wechsel-bild .handy { width: min(250px, 70%); }
.wechsel-bild .platzhalter { width: 100%; }

/* Zeilenliste: Leistungen, Referenzen, Ämter, Vorträge */
.zeilen > li, .zeilen > div { display: grid; gap: 6px 32px; padding-block: 22px; border-top: 1px solid var(--border); }
.zeilen > :first-child { border-top: 2px solid var(--accent); }
@media (min-width: 760px) {
  .zeilen > li, .zeilen > div { grid-template-columns: 9.5rem minmax(0, 1fr) minmax(0, 1.25fr); align-items: baseline; }
  .zeilen.zweispaltig > li, .zeilen.zweispaltig > div { grid-template-columns: 9.5rem minmax(0, 1fr); }
  .zeilen.gross > li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); padding-block: 36px; }
}
.zeilen .zeit { color: var(--muted); font-weight: 700; }
.zeilen h3 { font-size: 1.12rem; }
.zeilen.gross h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.35rem, 2.6vw, 1.7rem); letter-spacing: -.02em; line-height: 1.2; }
.zeilen.gross h3 .badge { margin-top: 10px; font-family: var(--font-sans); letter-spacing: 0; display: table; }
.zeilen p { color: color-mix(in srgb, var(--text) 82%, var(--bg)); }

/* Zeitleiste */
.zeitleiste { position: relative; padding-left: 28px; }
.zeitleiste::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 2px; background: var(--border); }
.zeit-linie { position: absolute; left: 5px; top: 10px; bottom: 10px; width: 2px; background: var(--accent); transform-origin: top; transform: scaleY(var(--f, 1)); }
.zeitleiste > ol > li { position: relative; padding-bottom: clamp(30px, 5vw, 46px); display: grid; gap: 6px 36px; }
.zeitleiste > ol > li:last-child { padding-bottom: 0; }
.zeitleiste > ol > li::before { content: ""; position: absolute; left: -28px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.abschnitt.flaeche .zeitleiste > ol > li::before { background: var(--bg-2); }
@media (min-width: 760px) { .zeitleiste > ol > li { grid-template-columns: 10rem minmax(0, 1fr); } }
.zeit-jahr { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--muted); white-space: nowrap; padding-top: 2px; }
.zeit-inhalt { display: flex; flex-direction: column; gap: 8px; max-width: 64ch; }
.zeit-inhalt h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.015em; }
.zeit-firma { font-weight: 700; color: var(--muted); }
.preis { border-left: 2px solid var(--accent); padding: 2px 0 2px 12px; font-weight: 700; color: var(--accent); }
.punkte { display: flex; flex-direction: column; gap: 6px; }
.punkte li { position: relative; padding-left: 20px; }
.punkte li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 8px; height: 2px; background: var(--accent); }

/* Zitatartiger Leitsatz */
.leitsatz { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 3.2vw, 2.1rem); line-height: 1.25; letter-spacing: -.02em; max-width: 24ch; text-wrap: balance; }
.leitsatz em { font-style: normal; color: var(--accent); }

/* Zweispalter für Text neben Text */
.spalten { display: grid; gap: clamp(24px, 5vw, 72px); }
@media (min-width: 860px) { .spalten { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; } }

/* Hervorgehobener Block (höchstens einer je Seite): Fläche mit Rahmen und Schatten */
.tafel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-raised); padding: clamp(22px, 4vw, 40px); display: grid; gap: 22px; }
@media (min-width: 800px) { .tafel { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; } }

/* Gerade jetzt */
.jetzt > div { display: grid; gap: 2px 28px; padding-block: 14px; border-top: 1px solid var(--border); }
@media (min-width: 640px) { .jetzt > div { grid-template-columns: 9.5rem minmax(0, 1fr); } }
.jetzt dt { font-weight: 800; color: var(--accent); font-variant-caps: small-caps; letter-spacing: .05em; }

/* Lesetext (Impressum, Datenschutz, Support) */
.prosa { max-width: 68ch; display: flex; flex-direction: column; gap: 14px; }
.prosa h2 { font-size: 1.5rem; margin-top: 26px; letter-spacing: -.015em; }
.prosa h3 { margin-top: 12px; font-size: 1.12rem; }
.prosa ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.prosa ul li { position: relative; padding-left: 20px; }
.prosa ul li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 8px; height: 2px; background: var(--accent); }
.prosa address { font-style: normal; }
.hinweis { border-left: 2px solid var(--warn); padding: 4px 0 4px 14px; color: var(--muted); font-size: .95rem; }

/* Formular */
.formular { display: grid; gap: 18px; max-width: 620px; }
.feld { display: flex; flex-direction: column; gap: 6px; }
.feld label { font-weight: 700; font-size: .95rem; }
.feld input, .feld select, .feld textarea { font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 12px 14px; width: 100%; min-height: 48px; }
.feld textarea { min-height: 170px; resize: vertical; }
.feld .fehler, .meldung.schlecht { color: var(--bad); font-weight: 700; font-size: .95rem; }
.feld input[aria-invalid="true"], .feld textarea[aria-invalid="true"] { border-color: var(--bad); border-width: 2px; }
.meldung { border-left: 2px solid var(--good); padding: 6px 0 6px 14px; font-weight: 700; }
.meldung.schlecht { border-color: var(--bad); }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Fußzeile */
.fuss { background: var(--bg-2); border-top: 1px solid var(--border); margin-top: 0; font-size: .97rem; }
.fuss-innen { display: grid; gap: 32px 48px; padding-block: 52px 36px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.fuss-marke { display: flex; flex-direction: column; gap: 8px; color: var(--muted); max-width: 30ch; }
.fuss h2 { font: 800 1rem var(--font-sans); font-variant-caps: small-caps; letter-spacing: .05em; color: var(--muted); margin-bottom: 10px; }
.fuss ul { display: flex; flex-direction: column; gap: 2px; }
.fuss li a { color: var(--text); text-decoration: none; display: inline-block; padding: 5px 0; }
.fuss li a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.fuss-unten { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 18px 28px; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }

@media print {
  .kopf, .fuss, .band, .knoepfe, .sprung { display: none; }
  body { background: #fff; color: #000; }
}

/* Ergänzungen */
.szene .handy-mitte { width: 46%; left: 27%; top: 0; rotate: -2deg; }
.profile { display: flex; flex-wrap: wrap; gap: 10px; }
.szene .platzhalter.hinten { justify-content: flex-start; align-items: flex-end; text-align: right; }
.szene-person .platzhalter.hinten { align-items: flex-start; text-align: left; }
.szene-person .platzhalter.vorn { aspect-ratio: 1; background: repeating-linear-gradient(45deg, var(--surface) 0 14px, var(--surface-2) 14px 28px); box-shadow: var(--shadow); }
.szene .platzhalter.hinten strong { max-width: 20ch; }
