/* Öffentliche Seiten */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0, 0, 0, .08); }
.site-head .row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.site-head nav { display: flex; align-items: center; gap: 1.4rem; }
.site-head nav a:not(.btn) { text-decoration: none; font-weight: 700; font-size: var(--step--1); }
.site-head nav a:not(.btn):hover { text-decoration: underline; }
@media (max-width: 760px) {
  .site-head nav a:not(.btn):not(.login) { display: none; }
  .site-head nav { gap: .8rem; }
  .site-head nav .btn { white-space: nowrap; padding-inline: 1rem; }
}
@media (max-width: 420px) {
  .site-head nav .btn { display: none; }
}

.lead { font-size: var(--step-1); line-height: 1.5; max-width: 34em; color: var(--tinte-2); }
.cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1rem; }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 11ch; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } .hero h1 { max-width: 14ch; } }

/* Das prägende Element: die Mehrspur-Konsole */
.console {
  margin: 0; background: var(--regie); color: var(--text-hell); border-radius: var(--r-l);
  padding: 1.1rem 1.1rem 1rem; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
  transform: rotate(-1.2deg);
}
.console-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .2rem .3rem .9rem; font-size: var(--step--1); }
.console-title { color: var(--text-hell-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; font-variant-numeric: tabular-nums; }
.rec i { width: .7em; height: .7em; border-radius: 50%; background: var(--rot); box-shadow: 0 0 0 4px rgba(255, 59, 48, .25); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 59, 48, .05); } }
.lane { background: var(--regie-2); border-radius: var(--r-m); padding: .8rem .9rem .7rem; display: grid; gap: .45rem; }
.who { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; font-size: var(--step--1); }
.who span { color: var(--text-hell-2); }
.wave { width: 100%; height: 56px; display: block; }
.up { display: flex; align-items: center; gap: .6rem; font-size: .78rem; color: var(--text-hell-2); }
.net { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; padding: .55rem .4rem; font-size: .78rem; color: var(--text-hell-2); }
.net svg { height: 26px; width: 100%; }
.jitter { fill: none; stroke: var(--rot); stroke-width: 2; stroke-dasharray: 5 5; opacity: .8; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.net-state { color: #FF9E8F; font-weight: 700; }
.console figcaption { padding: .9rem .3rem 0; font-size: var(--step--1); color: var(--text-hell-2); }

/* Ablauf – echte Reihenfolge, daher nummeriert */
.steps { padding: clamp(2rem, 5vw, 4rem) 0; }
.steps ol { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 3.4rem; position: relative; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0; font-family: var(--display); font-weight: 760; font-size: 2.6rem; line-height: 1;
  color: var(--pegel-dunkel);
}
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 1.3rem; left: 2.6rem; right: -1rem; height: 2px; background: linear-gradient(90deg, var(--pegel) 0 40%, transparent 40% 100%) 0 0 / 12px 2px repeat-x; }
@media (max-width: 800px) { .steps ol { grid-template-columns: 1fr; } .steps li::after { display: none; } }

/* Funktionen */
.features { padding: clamp(3rem, 7vw, 6rem) 0; background: var(--papier); }
.feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding: clamp(1.8rem, 4vw, 3rem) 0; border-top: 1px solid #E2E2E2; }
.feature:nth-of-type(even) .f-visual { order: -1; }
.feature ul { padding-left: 1.1em; margin: 0; }
.feature li { margin: .35em 0; }
.feature li::marker { color: var(--pegel-dunkel); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature:nth-of-type(even) .f-visual { order: 0; } }

.f-visual { border-radius: var(--r-m); min-height: 200px; padding: 1.4rem; }
.tracks-visual { background: var(--regie); display: flex; flex-direction: column; gap: .5rem; justify-content: center; }
.tracks-visual span { font-size: var(--step--1); color: var(--text-hell); background: var(--regie-2); border-left: 4px solid var(--pegel); padding: .45rem .7rem; border-radius: 4px; }
.tracks-visual span:nth-child(odd) { border-left-color: var(--funk); }
.text-visual { background: #fff; border: 1.5px solid #E2E2E2; font-size: var(--step-0); }
.text-visual p { margin: 0 0 .8rem; }
.text-visual b { display: block; font-size: var(--step--1); color: var(--tinte-2); }
.text-visual s { text-decoration-color: var(--rot); text-decoration-thickness: 2px; color: #A8A8A8; }
.live-visual { background: linear-gradient(160deg, var(--regie) 0%, var(--regie-3) 100%); display: flex; flex-wrap: wrap; align-content: center; gap: .5rem; }
.live-visual span { color: var(--text-hell); border: 1.5px solid var(--regie-line); padding: .4rem .8rem; border-radius: 999px; font-size: var(--step--1); }
.live-visual .live-tag { background: var(--rot); border-color: var(--rot); font-weight: 700; color: #fff; }
.feed-visual { background: var(--nebel); display: grid; place-items: center; }
.feed-visual code { font-size: var(--step--1); line-height: 2; color: var(--tinte); }

/* Datenschutz-Band */
.privacy { background: var(--regie); color: var(--text-hell); padding: clamp(3rem, 7vw, 6rem) 0; }
.privacy .lead { color: var(--text-hell-2); }
.privacy-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 4rem); }
.privacy dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; }
.privacy dt { font-family: var(--display); font-weight: 700; font-size: var(--step-1); margin-bottom: .3rem; color: #fff; }
.privacy dt::before { content: ''; display: inline-block; width: .55em; height: .55em; border-radius: 2px; background: var(--funk); margin-right: .5em; vertical-align: .12em; }
.privacy dd { margin: 0; color: var(--text-hell-2); font-size: var(--step--1); }
@media (max-width: 860px) { .privacy-grid, .privacy dl { grid-template-columns: 1fr; } }

.closing { padding: clamp(3rem, 7vw, 6rem) 0; }

/* Preise */
.pricing { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; align-items: stretch; }
.plan { background: var(--papier); border-radius: var(--r-m); padding: 1.4rem; display: flex; flex-direction: column; gap: .4rem; border: 1.5px solid #E2E2E2; }
.plan.featured { background: var(--regie); color: var(--text-hell); border-color: var(--regie); }
.plan.featured .muted { color: var(--text-hell-2); }
.plan .price { font-family: var(--display); font-size: var(--step-3); font-weight: 760; letter-spacing: -0.03em; line-height: 1; margin: .6rem 0 .2rem; }
.plan .price small { font-family: var(--body); font-size: var(--step--1); font-weight: 400; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .45rem; font-size: var(--step--1); flex: 1; }
.plan li.no { opacity: .5; text-decoration: line-through; }
.plan .btn { margin-top: auto; }
@media (max-width: 1000px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.faq { max-width: 760px; margin-top: 4rem; }
.faq details { border-top: 1px solid #D6D6D6; padding: 1rem 0; }
.faq summary { font-weight: 700; cursor: pointer; }

/* Rechtstexte */
.legal { padding: clamp(2rem, 5vw, 4rem) 0; max-width: 780px; }
.legal h1 { font-size: var(--step-3); }
.legal h2 { font-size: var(--step-2); margin-top: 2rem; }
.legal h3 { margin-top: 1.4rem; }

/* Fußzeile */
.site-foot { background: var(--papier); padding: 3rem 0 1.5rem; border-top: 1px solid #E2E2E2; }
.site-foot .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.site-foot h4 { font-family: var(--body); font-size: var(--step--1); margin: 0 0 .6rem; }
.site-foot nav a { display: block; text-decoration: none; font-size: var(--step--1); margin: .25rem 0; }
.site-foot nav a:hover { text-decoration: underline; }
.site-foot .copy { margin-top: 2rem; color: var(--tinte-2); }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }

/* Anmeldung */
.auth { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--regie); color: var(--text-hell); padding: clamp(2rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: flex-end; }
.auth-side h2 { color: #fff; max-width: 12ch; }
.auth-side p { color: var(--text-hell-2); max-width: 30em; }
.auth-form { padding: clamp(2rem, 5vw, 4rem); display: flex; align-items: center; }
.auth-form form { width: min(420px, 100%); }
.auth-form .switch { margin-top: 1.2rem; font-size: var(--step--1); }
.auth-form .switch button { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; color: inherit; }
@media (max-width: 820px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* Editor-Schalter: Inhalte je nach Server-Einstellung */
html:not([data-editor="1"]) .needs-editor { display: none !important; }
html[data-editor="1"] .no-editor { display: none !important; }
html:not([data-editor="1"]) #textDemo .w { pointer-events: none; }
