/* socialistix.com: dieselbe Nachtschicht wie die App und ullrich-heinl.com. */
@font-face { font-family: "Geist"; src: url("/fonts/Geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0a0e14; --surface: #10161f; --surface-2: #151c27;
  --line: rgba(255, 255, 255, .08); --line-strong: rgba(255, 255, 255, .15);
  --text: #e6ebf0; --body: #c3ccd6; --muted: #8b97a5;
  --amber: #ffb547; --amber-hell: #ffc56c; --run: #4ade80; --sky: #7dd3fc; --onair: #ff5a52;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --breite: 76rem; --rand: clamp(1.25rem, 4vw, 2.5rem); --radius: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; scrollbar-color: #2a3442 var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: rgba(255, 181, 71, .45); text-underline-offset: .22em; }
a:hover { color: var(--amber); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--amber); color: var(--bg); }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }

/* Kopf */
.kopf {
  position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem;
  padding: .85rem max(var(--rand), calc((100% - var(--breite)) / 2 + var(--rand)));
  background: rgba(10, 14, 20, .72); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
}
.marke { display: flex; align-items: center; gap: .6rem; margin-right: auto; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.marke:hover { color: var(--text); }
.marke-licht { width: .55rem; height: .55rem; border-radius: 50%; background: var(--onair); box-shadow: 0 0 0 4px rgba(255, 90, 82, .16); }
.kopf nav { display: flex; align-items: center; gap: 1.5rem; }
.kopf nav a:not(.knopf) { color: var(--muted); font-size: .9375rem; text-decoration: none; }
.kopf nav a:not(.knopf):hover { color: var(--text); }

/* Knoepfe */
.knopf { display: inline-flex; align-items: center; height: 2.75rem; padding: 0 1.3rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); font-weight: 500; text-decoration: none; transition: background-color .2s, border-color .2s; }
.knopf:hover { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .04); color: var(--text); }
.knopf-haupt { border-color: var(--amber); background: var(--amber); color: #1b1305; font-weight: 600; box-shadow: 0 10px 34px -10px rgba(255, 181, 71, .6); }
.knopf-haupt:hover { border-color: var(--amber-hell); background: var(--amber-hell); color: #1b1305; }
.kopf .knopf { height: 2.25rem; padding: 0 1rem; font-size: .875rem; box-shadow: none; }
.knopf-gross { height: 3rem; padding: 0 1.5rem; }
/* Noch nicht geoeffnet: sieht aus wie ein Knopf, fuehrt aber nirgendwohin */
.knopf-bald, .knopf-bald:hover { border-style: dashed; border-color: var(--line-strong); background: none; color: var(--muted); box-shadow: none; cursor: default; }

main { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }

/* Buehne */
.buehne { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; padding: clamp(4rem, 11vh, 7.5rem) 0 clamp(4.5rem, 11vh, 7.5rem); border-bottom: 1px solid var(--line); }
.buehne h1 { font-size: clamp(2.75rem, 6.6vw, 5.75rem); line-height: .95; letter-spacing: -.05em; }
.buehne p { max-width: 34rem; margin: 1.75rem 0 0; color: var(--muted); font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; }
.handeln { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.buehne .hinweis { margin-top: 1.25rem; font-size: .9375rem; }

/* Sendeplan als Buehnenbild: so sieht die Zentrale wirklich aus */
.plan-tafel {
  margin: 0; padding: .5rem 1.5rem 1rem; border: 1px solid var(--line-strong); border-radius: 20px;
  background: radial-gradient(30rem 18rem at 100% 0%, rgba(255, 181, 71, .12), transparent 60%), var(--surface);
}
.plan-tafel-kopf { display: flex; align-items: baseline; justify-content: space-between; padding: 1rem 0 .9rem; border-bottom: 1px solid var(--line-strong); font-weight: 600; letter-spacing: -.01em; }
.plan-tafel-kopf span { color: var(--muted); font: 400 .8125rem var(--mono); }
.plan-zeile { display: grid; grid-template-columns: 3.75rem 1fr; gap: .2rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.plan-zeile:last-child { border-bottom: 0; }
.plan-zeit { grid-row: 1 / span 2; font: 500 .9375rem/1.5 var(--mono); font-variant-numeric: tabular-nums; }
.plan-titel { font-weight: 500; }
.plan-meta { display: flex; gap: .9rem; color: var(--muted); font-size: .8125rem; }
.tally { display: inline-flex; align-items: center; gap: .45rem; }
.tally::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--sky); }
.tally-laeuft { color: var(--text); }
.tally-laeuft::before { background: var(--amber); box-shadow: 0 0 0 4px rgba(255, 181, 71, .18); }
.tally-ok::before { background: var(--run); box-shadow: 0 0 10px rgba(74, 222, 128, .45); }

/* Abschnitte */
.ablauf, .preise, .grundsaetze { padding: clamp(4.5rem, 10vw, 8rem) 0; border-bottom: 1px solid var(--line); }
.ablauf h2, .preise h2, .grundsaetze h2 { max-width: 16ch; font-size: clamp(2.25rem, 4.8vw, 3.75rem); line-height: 1; letter-spacing: -.045em; }
.ablauf ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: 0; list-style: none; counter-reset: schritt; }
.ablauf li { padding-top: 1.25rem; border-top: 1px solid var(--line-strong); counter-increment: schritt; }
.ablauf li::before { content: counter(schritt, decimal-leading-zero); color: var(--amber); font: 500 .875rem var(--mono); }
.ablauf h3 { margin: .9rem 0 .5rem; font-size: 1.375rem; letter-spacing: -.02em; }
.ablauf p, .grundsaetze dd { margin: 0; color: var(--muted); }

.preis-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 52rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.preis { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.1rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.preis h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.preise .preis-betrag { margin: .6rem 0 1.25rem; color: var(--text); font-size: clamp(2.25rem, 4vw, 3rem); font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.preis ul { margin: 0 0 1.75rem; padding: 0; list-style: none; color: var(--body); }
.preis li { padding: .6rem 0; border-top: 1px solid var(--line); }
.preis .knopf { align-self: flex-start; margin-top: auto; }
.preis-bald { border-style: dashed; border-color: var(--line-strong); }
.preis-bald p { color: var(--muted); }
.preis-bald .preis-betrag { color: var(--muted); }

.grundsaetze dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); }
.grundsaetze dl > div { padding: 1.75rem 2rem; background: var(--bg); }
.grundsaetze dt { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; font-weight: 600; font-size: 1.125rem; }
.grundsaetze dt::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px rgba(255, 181, 71, .7); }

/* Rechtstexte */
.text { max-width: 44rem; padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem); }
.text h1 { margin-bottom: 1rem; font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1; letter-spacing: -.05em; }
.text h2 { margin: 2.5rem 0 .75rem; font-size: 1.25rem; letter-spacing: -.02em; }
.text p, .text li { color: var(--body); }
.text a { color: var(--amber); }
.text ul { padding-left: 1.2rem; }
.text li { margin-bottom: .6rem; }
.text li::marker { color: var(--amber); }
.text .stand { color: var(--muted); font: 400 .875rem var(--mono); }

/* Fuss */
.fuss { max-width: var(--breite); margin: 0 auto; padding: 2.25rem var(--rand) 3rem; color: var(--muted); font-size: .9375rem; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: .9rem; }
.fuss a { color: var(--muted); text-decoration: none; }
.fuss a:hover { color: var(--text); }
.fuss p { margin: 0; font-size: .875rem; }

@media (max-width: 56rem) {
  .buehne, .ablauf ol, .preis-raster, .grundsaetze dl { grid-template-columns: minmax(0, 1fr); }
  .buehne { padding-top: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------------------------------------------------------------------------------------------------------------
   Sendezentrale 2 (04.11.2026): Studio bei Nacht. Kobalt-Himmel, rotes Sendelicht, eine Glastafel mit dem
   Sendeplan, der wie echt läuft, und Signalwellen bei jedem gesendeten Beitrag.
   --------------------------------------------------------------------------------------------------------------- */
:root { --ease: cubic-bezier(.16, 1, .3, 1); --ice: #7cdcff; }

/* Bühne: Himmel und Sendelicht über die volle Breite, Wellen dahinter */
/* iPhone: keine negativen z-index-Ebenen mit eigener Verschiebung (WebKit auf iOS malte den Inhalt darüber nicht);
   Himmel und Wellen liegen auf Ebene 0, der Inhalt auf Ebene 1. */
.buehne { position: relative; }
.buehne > div, .buehne > .plan-tafel { position: relative; z-index: 1; }
/* Himmel und Sendelicht liegen im Seitenhintergrund der Startseite: keine Ebene ist breiter als der Bildschirm. */
body.start { background: radial-gradient(70rem 40rem at 80% 34rem, rgba(255, 90, 82, .15), transparent 62%), radial-gradient(80rem 46rem at 92% -8rem, rgba(40, 66, 170, .42), transparent 62%), radial-gradient(60rem 30rem at 8% 56rem, rgba(255, 181, 71, .08), transparent 70%), var(--bg); background-repeat: no-repeat; }
.wellen { position: absolute; top: -6rem; left: calc(-1 * var(--rand)); width: calc(100% + 2 * var(--rand)); height: calc(100% + 6rem); z-index: 0; pointer-events: none; }

@media (min-width: 56.01rem) {
  .buehne { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}
.buehne h1 { font-size: clamp(2.6rem, 5.4vw, 4.75rem); line-height: .96; }

/* Startsequenz: Überschrift Wort für Wort, ein Lichtstreif läuft durch, dann Text und Tafel */
.js .buehne h1 .w { display: inline-block; opacity: 0; transform: translateY(.42em); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i) * 70ms + .15s); }
.js .buehne.on h1 .w { opacity: 1; transform: none; background: linear-gradient(100deg, var(--text) 0 40%, #fff3d6 46%, #ffc56c 50%, #ffb3ad 54%, var(--text) 60% 100%) 100% 0 / 300% 100% no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-reduced-motion: no-preference) {
  .js .buehne.on h1 .w { animation: streif 2.6s var(--ease) both; animation-delay: calc(1.4s + var(--i) * 100ms); }
}
@keyframes streif { from { background-position: 100% 0; } to { background-position: 0 0; } }
/* Die Schriftstärke bleibt beim Einblenden fest: wächst sie, bricht die Überschrift neu um und schiebt alles darunter (05.11.2026). */
/* Sicherung: kommt das Startsignal nicht (Skriptfehler, Engine-Eigenheit), zeigt sich der Einstieg nach 3 s trotzdem. */
.js .buehne:not(.on) h1 .w, .js .buehne:not(.on) > div > p, .js .buehne:not(.on) .handeln, .js .buehne:not(.on) .plan-tafel { animation: zeigen .01s linear 3s forwards; }
@keyframes zeigen { to { opacity: 1; transform: none; translate: 0 0; } }
.js .buehne > div > p, .js .buehne .handeln { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease) .55s, transform 1.1s var(--ease) .55s; }
.js .buehne .handeln { transition-delay: .7s; }
.js .buehne.on > div > p, .js .buehne.on .handeln { opacity: 1; transform: none; }

/* Die Tafel: Glas mit Tiefe, neigt sich zum Zeiger */
.plan-tafel { position: relative; background: linear-gradient(180deg, rgba(23, 31, 44, .8), rgba(14, 19, 28, .68)); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); border-color: rgba(255, 255, 255, .12); box-shadow: 0 40px 120px -40px rgba(255, 90, 82, .38), 0 30px 80px -30px rgba(40, 66, 170, .5), inset 0 1px 0 rgba(255, 255, 255, .08); }
.js .plan-tafel { opacity: 0; translate: 0 26px; transition: opacity 1.2s var(--ease) .45s, translate 1.2s var(--ease) .45s, transform .8s var(--ease); }
.js .buehne.on .plan-tafel { opacity: 1; translate: 0 0; }
@media (min-width: 56.01rem) {
  .plan-tafel { transform: perspective(1400px) rotateY(var(--ry, -9deg)) rotateX(var(--rx, 4deg)); }
}

/* Zeilen: rücken nach, die laufende Sendung hat einen Balken und ein pulsierendes Licht */
.plan-zeile { position: relative; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.plan-zeile.neu { opacity: 0; transform: translateY(16px); }
.plan-zeile.weg { opacity: 0; transform: translateY(-16px); }
.plan-zeile.laeuft { margin: 0 -.8rem; padding-left: .8rem; padding-right: .8rem; background: linear-gradient(90deg, rgba(255, 181, 71, .11), rgba(255, 90, 82, .06) 60%, transparent); }
/* Handy: kein Glas-Filter über der laufenden Animation (iOS müsste ihn in jedem Bild neu rechnen). */
@media (max-width: 56rem) {
  .plan-tafel { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(16, 22, 31, .94); }
}
.plan-meta b { font-weight: inherit; }
.plan-balken { grid-column: 2; display: block; height: 3px; margin-top: .55rem; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, .07); opacity: 0; transition: opacity .3s ease; }
.plan-balken i { display: block; width: calc(var(--fortschritt, 0) * 100%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--amber), #ff7a52); box-shadow: 0 0 12px rgba(255, 181, 71, .7); }
.plan-zeile.laeuft .plan-balken { opacity: 1; }
.tally { transition: color .4s ease; }
.tally::before { transition: background-color .4s ease, box-shadow .6s ease; }
@media (prefers-reduced-motion: no-preference) {
  .tally-laeuft::before { animation: senden 1.1s ease-in-out infinite; }
  .marke-licht { animation: aufnahme 2.4s ease-in-out infinite; }
}
@keyframes senden { 50% { box-shadow: 0 0 0 6px rgba(255, 181, 71, 0), 0 0 16px rgba(255, 181, 71, .95); } }
@keyframes aufnahme { 50% { box-shadow: 0 0 0 4px rgba(255, 90, 82, .16), 0 0 14px rgba(255, 90, 82, .9); } }

/* Abschnitte: Titel steigen auf, Schritte und Lampen gehen nacheinander an, der Free-Preis hat einen Lichtrand */
.rise .m { display: inline-block; overflow: hidden; overflow: clip; vertical-align: top; padding: 0 .04em .14em 0; margin-bottom: -.14em; }
.js .rise .w { display: inline-block; transform: translateY(112%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .rise.on .w { transform: none; }
.ablauf li { position: relative; }
.js .ablauf li::after { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 2px; background: linear-gradient(90deg, var(--amber), #ff5a52); box-shadow: 0 0 14px rgba(255, 120, 82, .5); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 230ms); }
.js .ablauf ol.on li::after { transform: scaleX(1); }
.js .grundsaetze dt::before { background: #2a3442; box-shadow: none; transition: background-color .35s ease, box-shadow .9s var(--ease); transition-delay: calc(var(--i, 0) * 170ms + .15s); }
.js .grundsaetze dl.on dt::before { background: var(--amber); box-shadow: 0 0 12px rgba(255, 181, 71, .7); }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.preis { position: relative; }
.preis:not(.preis-bald)::after { content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; pointer-events: none; background: conic-gradient(from var(--a), transparent 0deg 215deg, rgba(255, 90, 82, .9) 270deg, rgba(255, 181, 71, 1) 318deg, transparent 352deg); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
@media (prefers-reduced-motion: no-preference) {
  .preis:not(.preis-bald)::after { animation: kreisen 8s linear infinite; }
}
@keyframes kreisen { from { --a: 0deg; } to { --a: 360deg; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}

/* ---------------------------------------------------------------------------------------------------------------
   Formen (04.11.2026): scharf wie ein Kamerasucher. Tasten mit Fasen oben links und unten rechts, die Sendetafel mit
   Sucherwinkeln, Preise mit Passermarken. Keine Pillen, keine runden Karten; rund bleiben nur Lampen.
   --------------------------------------------------------------------------------------------------------------- */
:root { --radius: 0px; }
.knopf:not(.knopf-bald) {
  --f: 12px; --rc: var(--line-strong); --fill: transparent;
  border: 0; border-radius: 0;
  clip-path: polygon(var(--f) 0, 100% 0, 100% calc(100% - var(--f)), calc(100% - var(--f)) 100%, 0 100%, 0 var(--f));
  background:
    linear-gradient(var(--rc) 0 0) var(--f) 0 / calc(100% - var(--f)) 1px no-repeat,
    linear-gradient(var(--rc) 0 0) 100% 0 / 1px calc(100% - var(--f)) no-repeat,
    linear-gradient(var(--rc) 0 0) 0 100% / calc(100% - var(--f)) 1px no-repeat,
    linear-gradient(var(--rc) 0 0) 0 var(--f) / 1px calc(100% - var(--f)) no-repeat,
    linear-gradient(to bottom right, transparent 50%, var(--rc) 50% calc(50% + 1px), transparent calc(50% + 1px)) 0 0 / var(--f) var(--f) no-repeat,
    linear-gradient(to bottom right, transparent calc(50% - 1px), var(--rc) calc(50% - 1px) 50%, transparent 50%) 100% 100% / var(--f) var(--f) no-repeat,
    linear-gradient(var(--fill) 0 0);
}
.knopf:not(.knopf-bald):hover { --rc: rgba(255, 255, 255, .45); --fill: rgba(255, 255, 255, .04); }
.knopf-haupt:not(.knopf-bald) { box-shadow: none; background: linear-gradient(180deg, #ffc56c, var(--amber)); }
.kopf .knopf { --f: 8px; }
.knopf-bald, .knopf-bald:hover { border-radius: 0; }

/* Sendetafel: scharf, mit Sucherwinkeln an allen vier Ecken */
.plan-tafel { border-radius: 0; }
.plan-tafel::after { content: ""; position: absolute; inset: -1px; z-index: 2; pointer-events: none; --w: rgba(255, 255, 255, .75);
  background:
    linear-gradient(var(--w) 0 0) 0 0 / 20px 2px no-repeat, linear-gradient(var(--w) 0 0) 0 0 / 2px 20px no-repeat,
    linear-gradient(var(--w) 0 0) 100% 0 / 20px 2px no-repeat, linear-gradient(var(--w) 0 0) 100% 0 / 2px 20px no-repeat,
    linear-gradient(var(--w) 0 0) 0 100% / 20px 2px no-repeat, linear-gradient(var(--w) 0 0) 0 100% / 2px 20px no-repeat,
    linear-gradient(var(--w) 0 0) 100% 100% / 20px 2px no-repeat, linear-gradient(var(--w) 0 0) 100% 100% / 2px 20px no-repeat; }

/* Preise: Passermarken oben links und unten rechts, der kommende Plan gestrichelt */
.preis { --mark: rgba(255, 120, 82, .75); background: linear-gradient(var(--mark) 0 0) 0 0 / 16px 1.5px no-repeat, linear-gradient(var(--mark) 0 0) 0 0 / 1.5px 16px no-repeat, linear-gradient(var(--mark) 0 0) 100% 100% / 16px 1.5px no-repeat, linear-gradient(var(--mark) 0 0) 100% 100% / 1.5px 16px no-repeat, var(--surface); }
.preis.preis-bald { background: var(--surface); }
.plan-zeile.laeuft { border-radius: 0; }
