/* Schriften lokal – laut Datenschutzerklärung keine Verbindung zu Google Fonts */
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Variable.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("../fonts/SpaceMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("../fonts/SpaceMono-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

/* DoctorJack – Redesign. Hell, warm, freundlich. Rot aus dem Logo als Hauptakzent, Navy für Tiefe. */
:root {
  --brand: #e63b37;
  --brand-dark: #c92f2b;
  --brand-soft: #fdecea;
  --brand-tint: #fff6f5;
  --navy: #141c2e;
  --navy-2: #1f2a42;
  --blue: #1e9be9;
  --bg: #ffffff;
  --bg-warm: #faf8f6;
  --text: #171c26;
  --muted: #5f6675;
  --faint: #9aa0ab;
  --border: #ece8e4;
  --border-strong: #ddd7d1;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(20, 28, 46, .05), 0 2px 8px rgba(20, 28, 46, .04);
  --shadow: 0 2px 4px rgba(20, 28, 46, .04), 0 12px 32px rgba(20, 28, 46, .08);
  --shadow-lg: 0 4px 8px rgba(20, 28, 46, .05), 0 24px 56px rgba(20, 28, 46, .12);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Space Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans); color: var(--text); background: var(--bg);
  line-height: 1.55; -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; line-height: 1.15; }
p { margin: 0; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.red { color: var(--brand); }
:focus-visible { outline: 3px solid rgba(230, 59, 55, .45); outline-offset: 3px; border-radius: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.35rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(230, 59, 55, .28); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 10px 24px rgba(230, 59, 55, .34); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { padding: .55rem 1.05rem; font-size: .88rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(236, 232, 228, .7);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 72px; }
.brand .logo { height: 30px; width: auto; }
.main-nav { display: flex; align-items: center; gap: .35rem; font-weight: 500; font-size: .94rem; }
.main-nav > a:not(.btn) { padding: .5rem .85rem; border-radius: 999px; color: var(--muted); transition: background .15s, color .15s; }
.main-nav > a:not(.btn):hover { background: var(--bg-warm); color: var(--text); }
.nav-search { position: relative; margin: 0 .5rem; }
.nav-search input {
  width: 190px; padding: .55rem .9rem .55rem 2.2rem; font: inherit; font-size: .9rem;
  border: 1px solid var(--border); border-radius: 999px; background: var(--bg-warm); color: var(--text);
  transition: border-color .15s, background .15s, width .2s;
}
.nav-search input:focus { outline: none; border-color: var(--border-strong); background: #fff; width: 230px; }
.nav-search svg { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 96px; background: var(--bg-warm); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 380px at 88% 18%, rgba(230, 59, 55, .13), transparent 70%),
    radial-gradient(520px 340px at 8% 100%, rgba(30, 155, 233, .08), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(20, 28, 46, .09) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; padding: .35rem .8rem .35rem .4rem;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  font-size: .82rem; font-weight: 600; color: var(--muted); box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; }
.eyebrow .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.hero h1 { margin-top: 22px; font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; }
.hero h1 .red { position: relative; white-space: nowrap; }
.hero h1 .red::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .16em; z-index: -1;
  background: rgba(230, 59, 55, .18); border-radius: 4px;
}
.lead-claim { margin-top: 18px; display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; font-size: 1.2rem; font-weight: 600; }
.lead-claim span { display: inline-flex; align-items: center; gap: .45rem; }
.lead-claim svg { color: var(--brand); flex: none; }
.hero-text { margin-top: 20px; max-width: 34rem; font-size: 1.08rem; color: var(--muted); }
.hero-text strong { color: var(--text); }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: .75rem; }

/* Hero-Visual: Bauplan-Karte */
.hero-visual { position: relative; }
.plan-card {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: 24px;
  box-shadow: var(--shadow-lg); padding: 22px; transform: rotate(1.2deg);
}
.plan-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.plan-head .mono { font-size: .72rem; letter-spacing: .04em; color: var(--faint); text-transform: uppercase; }
.plan-dots { display: flex; gap: 6px; }
.plan-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.plan-dots i:first-child { background: var(--brand); }
.plan-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan-steps li {
  display: flex; align-items: center; gap: 14px; padding: 13px 14px;
  border: 1px solid var(--border); border-radius: 14px; background: #fff;
}
.plan-steps b {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--mono); font-size: .85rem; background: var(--bg-warm); color: var(--text);
}
.plan-steps .t { font-weight: 600; font-size: .98rem; }
.plan-steps .s { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; }
.plan-steps .is-core { border-color: rgba(230, 59, 55, .35); background: var(--brand-tint); box-shadow: 0 8px 22px rgba(230, 59, 55, .12); }
.plan-steps .is-core b { background: var(--brand); color: #fff; }
.plan-steps .is-core .t { color: var(--brand-dark); }
.plan-steps .check { margin-left: auto; color: #22a06b; }
.float-badge {
  position: absolute; display: flex; align-items: center; gap: .6rem;
  background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
  padding: .65rem .9rem; font-size: .84rem; font-weight: 600;
}
.float-badge small { display: block; font-weight: 400; color: var(--muted); font-size: .74rem; }
.float-badge .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; }
.badge-a { left: -34px; bottom: -26px; transform: rotate(-2deg); }
.badge-a .ic { background: #e7f6ef; color: #22a06b; }
.badge-b { right: -18px; top: -26px; transform: rotate(2deg); }
.badge-b .ic { background: #e8f4fd; color: var(--blue); }

/* ---------- Trust strip ---------- */
.trust { border-bottom: 1px solid var(--border); background: #fff; }
.trust-inner { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 40px; padding: 22px 24px; }
.trust-item { display: flex; align-items: center; gap: .6rem; font-size: .92rem; font-weight: 500; color: var(--muted); }
.trust-item svg { color: var(--brand); }

/* ---------- Section heads ---------- */
.section { padding: 96px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.kicker { font-family: var(--mono); font-size: .78rem; color: var(--brand); letter-spacing: .04em; text-transform: lowercase; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; }
.section-head p { margin-top: 10px; color: var(--muted); max-width: 36rem; }

/* ---------- So funktioniert's ---------- */
.how { background: #fff; }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: how; }
.how-card {
  position: relative; padding: 26px 22px 24px; border-radius: var(--radius);
  background: var(--bg-warm); border: 1px solid var(--border);
}
.how-card .ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--border); color: var(--text); margin-bottom: 18px;
}
.how-card .n { position: absolute; top: 22px; right: 22px; font-family: var(--mono); font-size: .78rem; color: var(--faint); }
.how-card h3 { font-size: 1.1rem; font-weight: 700; }
.how-card p { margin-top: 6px; font-size: .92rem; color: var(--muted); }
.how-card.is-core { background: var(--navy); border-color: var(--navy); color: #fff; }
.how-card.is-core .ic { background: var(--brand); border-color: var(--brand); color: #fff; }
.how-card.is-core p { color: rgba(255, 255, 255, .72); }
.how-card.is-core .n { color: rgba(255, 255, 255, .5); }

/* ---------- Tools / Baupläne ---------- */
.tools { background: var(--bg-warm); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .95rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); font-size: .88rem; font-weight: 500;
  transition: border-color .15s, background .15s;
}
.chip:hover { border-color: var(--border-strong); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip .count { font-family: var(--mono); font-size: .72rem; padding: 1px 7px; border-radius: 999px; background: var(--bg-warm); color: var(--muted); }
.chip.is-active .count { background: rgba(255, 255, 255, .14); color: #fff; }

.rows-bp { display: grid; gap: 28px; }
.wf {
  display: grid; grid-template-columns: 420px 1fr; gap: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s;
}
.wf:hover { box-shadow: var(--shadow); }
.wf-media { position: relative; display: flex; flex-direction: column; padding: 18px; gap: 16px; background: linear-gradient(180deg, #fff, var(--bg-warm)); border-right: 1px solid var(--border); }
.wf-video { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--navy); box-shadow: var(--shadow-sm); }
.wf-video img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.wf:hover .wf-video img { transform: scale(1.035); }
.wf-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(20, 28, 46, .35)); }
.wf-play {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .95); color: var(--brand); box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.wf:hover .wf-play { transform: translate(-50%, -50%) scale(1.08); }
.lvl {
  position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .95); font-size: .75rem; font-weight: 600;
}
.lvl i { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); }
.lvl i.on { background: #22a06b; }
.wf-master { display: flex; align-items: center; gap: 12px; padding: 4px 4px; border-radius: 12px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .02em;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--border);
}
.wf-master-label { display: block; font-size: .75rem; color: var(--muted); }
.wf-master-name { display: block; font-weight: 600; font-size: .95rem; }
.wf-master:hover .wf-master-name { color: var(--brand); }
.sponsor-badge {
  margin-top: auto; display: inline-flex; align-items: center; gap: .45rem; align-self: flex-start;
  font-size: .76rem; color: var(--muted); padding: .35rem .7rem; border-radius: 8px; border: 1px dashed var(--border-strong);
}
.sponsor-badge b { color: var(--text); font-weight: 600; }

.wf-body { padding: 28px 30px 28px; display: flex; flex-direction: column; }
.wf-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tag { font-family: var(--mono); font-size: .72rem; padding: 3px 9px; border-radius: 6px; }
.tag-red { background: var(--brand-soft); color: var(--brand-dark); }
.tag-grey { background: var(--bg-warm); color: var(--muted); border: 1px solid var(--border); }
.wf h3 { margin-top: 14px; font-size: 1.45rem; font-weight: 750; font-weight: 700; }
.wf h3 a:hover { color: var(--brand); }
.wf-text {
  margin-top: 10px; color: var(--muted); font-size: .98rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.wf-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.step a, .step > span {
  height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 13px;
  border: 1px solid var(--border); border-radius: 14px; background: #fff;
  transition: border-color .15s, background .15s, transform .15s;
}
.step a:hover { border-color: var(--border-strong); background: var(--bg-warm); transform: translateY(-2px); }
.step-n {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  font-family: var(--mono); font-size: .76rem; font-weight: 700; background: var(--bg-warm); border: 1px solid var(--border);
}
.step-t { display: block; font-weight: 600; font-size: .86rem; line-height: 1.3; }
.step-s { display: block; font-size: .74rem; color: var(--muted); margin-top: 2px; }
.step.is-core a { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(230, 59, 55, .25); }
.step.is-core a:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.step.is-core .step-n { background: rgba(255, 255, 255, .2); border-color: transparent; color: #fff; }
.step.is-core .step-s { color: rgba(255, 255, 255, .82); }
.step.is-off > span { border-style: dashed; background: transparent; color: var(--faint); }
.step.is-off .step-n { background: transparent; }
.step.is-off .step-s { color: var(--faint); }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 96px; background: var(--bg-warm); }
.cta-box {
  position: relative; overflow: hidden; border-radius: 28px; padding: 56px 56px;
  background: var(--navy); color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.cta-box::before {
  content: ""; position: absolute; right: -120px; top: -160px; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 59, 55, .55), transparent 65%);
}
.cta-box > * { position: relative; }
.cta-box h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.cta-box p { margin-top: 10px; color: rgba(255, 255, 255, .72); max-width: 34rem; }
.cta-box .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.cta-box .btn-ghost:hover { border-color: #fff; }
.cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .7); padding: 56px 0 32px; font-size: .92rem; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand .wordmark { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.footer-brand .wordmark img { width: 32px; height: 32px; }
.footer-brand p { margin-top: 14px; max-width: 22rem; }
.footer-col h4 { margin: 0 0 14px; color: #fff; font-size: .8rem; font-family: var(--mono); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.footer-col a { display: block; padding: 4px 0; color: rgba(255, 255, 255, .7); }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .84rem; color: rgba(255, 255, 255, .5); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 480px; margin: 0 auto; width: 100%; }
  .wf { grid-template-columns: 1fr; }
  .wf-media { border-right: 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-search { display: none; }
}
@media (max-width: 720px) {
  .main-nav > a:not(.btn) { display: none; }
  .hero { padding: 56px 0 72px; }
  .badge-a { left: -6px; } .badge-b { right: -6px; }
  .section { padding: 64px 0; }
  .wf-body { padding: 22px 20px; }
  .wf h3 { font-size: 1.25rem; }
  .wf-steps { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr; }
  .cta-box { grid-template-columns: 1fr; padding: 40px 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .trust-inner { justify-content: flex-start; gap: 10px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Feinschliff ---------- */
.badge-b { top: -34px; right: -28px; }
.plan-card { margin-top: 18px; }
.wf-steps { grid-template-columns: repeat(2, 1fr); margin-top: auto; padding-top: 22px; }
.step a, .step > span { flex-direction: row; align-items: center; gap: 12px; padding: 11px 14px; }
.step-n { flex: none; }
.step a::after { content: "→"; margin-left: auto; color: var(--faint); transition: transform .15s; }
.step a:hover::after { transform: translateX(3px); color: var(--text); }
.step.is-core a::after { color: #fff; }
@media (max-width: 720px) { .wf-steps { grid-template-columns: 1fr; } .badge-b { right: -6px; } }

/* =====================================================================
   Unterseiten
   ===================================================================== */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 10px; }
.skip:focus { left: 16px; }
.small { font-size: .85rem; }
.muted { color: var(--muted); }
.btn-block { display: flex; justify-content: center; width: 100%; }
.main-nav > a.is-active { color: var(--text); background: var(--bg-warm); font-weight: 600; }
img.avatar { object-fit: cover; object-position: top; background: var(--bg-warm); }

/* Page header */
.page-header { position: relative; overflow: hidden; background: var(--bg-warm); padding: 64px 0 56px; border-bottom: 1px solid var(--border); }
.page-header::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px 300px at 92% 0%, rgba(230, 59, 55, .11), transparent 70%);
}
.page-header > .container { position: relative; }
.page-header h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; letter-spacing: -.03em; }
.page-lead { margin-top: 14px; font-size: 1.12rem; color: var(--muted); max-width: 44rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; font-size: .86rem; color: var(--muted); }
.crumbs a { color: var(--muted); padding: 2px 0; border-bottom: 1px solid transparent; }
.crumbs a:hover { color: var(--text); border-color: var(--border-strong); }
.crumbs span { color: var(--faint); }
.section-tight { padding: 56px 0 96px; background: #fff; }
.result-count { font-size: .9rem; color: var(--muted); margin-bottom: 18px; font-weight: 500; }

/* Layout mit Sidebar */
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.sidebar { position: sticky; top: 96px; display: grid; gap: 16px; }
.side-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.side-card h3 { font-size: .78rem; font-family: var(--mono); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.side-list a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 10px; font-weight: 500; font-size: .94rem; }
.side-list a:hover { background: var(--bg-warm); }
.side-list a.is-active { background: var(--navy); color: #fff; }
.side-list .count { font-family: var(--mono); font-size: .72rem; padding: 1px 8px; border-radius: 999px; background: var(--bg-warm); color: var(--muted); }
.side-list a.is-active .count { background: rgba(255, 255, 255, .15); color: #fff; }
.chip-sm { padding: .35rem .75rem; font-size: .82rem; background: var(--bg-warm); }

/* Tool-Karten in schmaler Spalte (neben Sidebar) */
.layout-sidebar .wf { grid-template-columns: 300px 1fr; }
.layout-sidebar .wf-body { padding: 24px 26px; }
.layout-sidebar .wf h3 { font-size: 1.28rem; }
.layout-sidebar .wf-steps { grid-template-columns: 1fr 1fr; }

/* ---------- Bauplan-Detail ---------- */
.bp-hero { position: relative; overflow: hidden; background: var(--bg-warm); padding: 56px 0 48px; border-bottom: 1px solid var(--border); }
.bp-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(560px 320px at 95% 0%, rgba(230, 59, 55, .12), transparent 70%); }
.bp-hero > .container { position: relative; }
.bp-hero h1 { margin-top: 16px; font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; max-width: 52rem; }
.bp-hero .page-lead { max-width: 50rem; }
.lvl-inline { position: static; background: #fff; border: 1px solid var(--border); }
.bp-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: .9rem; color: var(--muted); font-weight: 500; }
.bp-meta span { display: inline-flex; align-items: center; gap: 7px; }
.bp-meta svg { color: var(--brand); }
.bp-hero .wf-steps { margin-top: 30px; padding-top: 0; grid-template-columns: repeat(4, 1fr); max-width: 980px; }
.bp-body { padding-top: 48px; padding-bottom: 80px; }

.gallery { margin-bottom: 44px; }
.gallery-stage { position: relative; border-radius: 22px; overflow: hidden; background: var(--navy); aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.gallery-stage img, .gallery-stage iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb {
  position: relative; width: 120px; aspect-ratio: 16 / 9; padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: var(--bg-warm); opacity: .7; transition: opacity .15s, border-color .15s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.is-active { opacity: 1; border-color: var(--brand); }
.play-badge { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(20, 28, 46, .35); }
.play-badge svg { width: 22px; height: 22px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }

/* Fließtext */
.prose { font-size: 1.04rem; line-height: 1.75; color: #2a303c; max-width: 46rem; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3 { color: var(--text); letter-spacing: -.02em; line-height: 1.25; }
.prose h2 { font-size: 1.5rem; font-weight: 750; font-weight: 700; margin: 2.4rem 0 .8rem; }
.prose h3 { font-size: 1.3rem; font-weight: 700; margin: 2.6rem 0 .8rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.prose > h3:first-child { padding-top: 0; border-top: 0; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.prose li { margin: .35rem 0; padding-left: .2rem; }
.prose ul > li::marker { color: var(--brand); }
.prose ol > li::marker { color: var(--brand); font-weight: 700; font-family: var(--mono); font-size: .9em; }
.prose strong { color: var(--text); font-weight: 650; font-weight: 600; }
.prose a { color: var(--brand-dark); text-decoration: underline; text-decoration-color: rgba(230, 59, 55, .35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose code { font-family: var(--mono); font-size: .86em; background: var(--bg-warm); border: 1px solid var(--border); padding: .1em .4em; border-radius: 6px; }
.prose blockquote {
  margin: 1.6rem 0; padding: 18px 22px 18px 24px; border-radius: 16px; background: var(--brand-tint);
  border: 1px solid rgba(230, 59, 55, .18); border-left: 4px solid var(--brand); color: var(--text);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose-sm { font-size: .94rem; line-height: 1.65; }
.prose-sm p { margin-bottom: .8rem; }
.prose-page { margin: 0 auto; max-width: 48rem; }
.prose-page h2 { font-size: 1.3rem; padding-top: 1.6rem; border-top: 1px solid var(--border); }

/* Download-, Autor-, Sponsor-Box */
.download-box {
  position: relative; overflow: hidden; padding: 26px 24px 22px; border-radius: var(--radius);
  background: var(--navy); color: #fff; box-shadow: var(--shadow);
}
.download-box::before { content: ""; position: absolute; right: -80px; top: -90px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(230, 59, 55, .5), transparent 65%); }
.download-box > * { position: relative; }
.dl-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand); margin-bottom: 16px; }
.download-box h3 { font-size: 1.2rem; font-weight: 700; }
.download-box > p { margin-top: 6px; color: rgba(255, 255, 255, .72); font-size: .92rem; }
.download-box .btn { margin-top: 18px; }
.download-box .small { margin-top: 12px; text-align: center; }
.download-box .small a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.author-box { display: flex; align-items: center; gap: 14px; transition: border-color .15s, box-shadow .15s; }
.author-box:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.author-box > span { display: grid; gap: 1px; }
.avatar-md { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; }
.link-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: .84rem; color: var(--brand-dark); font-weight: 500; }
.sponsor-box .kicker { margin-bottom: 12px; }
.sponsor-logo { display: block; padding: 14px; border-radius: 12px; background: var(--bg-warm); border: 1px solid var(--border); margin-bottom: 12px; }
.sponsor-logo img { max-height: 44px; width: auto; margin: 0 auto; }
.sponsor-box p { margin-top: 2px; }
.sponsor-links { display: grid; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: .88rem; }
.sponsor-links a { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.sponsor-links a:hover { color: var(--brand); }

/* ---------- JackMaster ---------- */
.grid-authors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card-author {
  display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card-author:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--border-strong); }
.avatar-lg { width: 84px; height: 84px; border-radius: 18px; object-fit: cover; object-position: top; flex: none; }
.ca-body { display: grid; gap: 4px; justify-items: start; }
.ca-body strong { font-size: 1.1rem; }
.ca-body .muted { font-size: .92rem; }
.ca-body .tag { margin-top: 4px; }
.ca-arrow { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-warm); color: var(--muted); flex: none; transition: background .15s, color .15s; }
.card-author:hover .ca-arrow { background: var(--brand); color: #fff; }
.author-hero { display: flex; align-items: center; gap: 32px; }
.avatar-xl { width: 148px; height: 148px; border-radius: 32px; object-fit: cover; object-position: top; flex: none; box-shadow: var(--shadow); border: 4px solid #fff; }
.author-hero .crumbs { margin-bottom: 10px; }
.author-stats { margin-top: 14px; }

/* ---------- Sponsor ---------- */
.sponsor-head { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; }
.sponsor-head-logo { padding: 28px; border-radius: 22px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.sponsor-head-logo img { width: 100%; height: auto; }
.sponsor-desc { margin: 18px 0 20px; font-size: 1rem; }

/* ---------- Suche ---------- */
.search-form {
  position: relative; display: flex; gap: 8px; margin-top: 24px; max-width: 640px; padding: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow);
}
.search-form svg { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search-form input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1.05rem; padding: .6rem .6rem .6rem 3rem; color: var(--text); }
.search-form input:focus { outline: none; }

/* ---------- Login ---------- */
.auth { position: relative; display: grid; place-items: center; padding: 72px 20px 96px; background: var(--bg-warm); overflow: hidden; }
.auth::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 340px at 80% 10%, rgba(230, 59, 55, .14), transparent 70%), radial-gradient(460px 320px at 10% 100%, rgba(30, 155, 233, .08), transparent 70%);
}
.auth-card { position: relative; width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--border); border-radius: 26px; padding: 40px 36px 30px; box-shadow: var(--shadow-lg); text-align: center; }
.auth-mark { width: 52px; height: 52px; margin: 0 auto 18px; }
.auth-card h1 { font-size: 1.8rem; font-weight: 800; }
.auth-card > .muted { margin-top: 8px; }
.form { display: grid; gap: 16px; margin-top: 28px; text-align: left; }
.form label { display: grid; gap: 7px; font-size: .88rem; font-weight: 600; }
.field { position: relative; display: block; }
.field svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.field input {
  width: 100%; padding: .8rem 1rem .8rem 2.7rem; font: inherit; font-size: .98rem; font-weight: 400;
  border: 1px solid var(--border-strong); border-radius: 12px; background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(230, 59, 55, .12); }
.form-row { display: flex; justify-content: flex-end; font-size: .86rem; margin-top: -6px; }
.form-row a { color: var(--muted); } .form-row a:hover { color: var(--text); }
.auth-foot { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); font-size: .92rem; color: var(--muted); }
.auth-foot a { color: var(--brand-dark); font-weight: 600; }

/* ---------- Responsive Unterseiten ---------- */
@media (max-width: 1020px) {
  .layout-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .layout-sidebar .wf { grid-template-columns: 1fr; }
  .bp-hero .wf-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .page-header { padding: 44px 0 40px; }
  .bp-hero { padding: 40px 0 36px; }
  .bp-hero .wf-steps, .layout-sidebar .wf-steps { grid-template-columns: 1fr; }
  .grid-authors { grid-template-columns: 1fr; }
  .author-hero { flex-direction: column; align-items: flex-start; gap: 20px; }
  .avatar-xl { width: 112px; height: 112px; border-radius: 24px; }
  .sponsor-head { grid-template-columns: 1fr; gap: 20px; }
  .sponsor-head-logo { max-width: 200px; }
  .auth-card { padding: 32px 22px 24px; }
  .search-form svg { display: none; }
  .search-form input { padding-left: 1rem; }
}

/* Filterleiste (Übersicht/Kategorie) & Bio-Karte */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 14px 16px; margin-bottom: 28px; background: var(--bg-warm); border: 1px solid var(--border); border-radius: 18px; }
.filter-group, .filter-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-label { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-right: 4px; }
.filter-tags .chip-sm { background: #fff; color: var(--muted); }
.filter-tags .chip-sm:hover { color: var(--text); }
.bio-card { margin-bottom: 40px; padding: 28px 30px; }
.bio-card .prose { max-width: 60rem; }

/* =====================================================================
   Handy-Optimierung
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; }

/* Hover-Effekte nur mit Maus, damit beim Tippen nichts „hängen“ bleibt */
@media (hover: none) {
  .btn:hover, .step a:hover, .card-author:hover { transform: none; }
  .wf:hover .wf-video img { transform: none; }
}

/* Menü-Button */
.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border);
  background: #fff; cursor: pointer; place-items: center; padding: 0; color: var(--text);
}
.burger { position: relative; display: block; width: 18px; height: 14px; }
.burger i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s, top .2s; }
.burger i:nth-child(1) { top: 0; } .burger i:nth-child(2) { top: 6px; } .burger i:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] .burger i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .burger i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Ausklapp-Menü */
.mobile-menu {
  position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 40px rgba(20, 28, 46, .12); padding: 16px 0 calc(20px + env(safe-area-inset-bottom));
  max-height: calc(100dvh - 64px); overflow-y: auto; animation: mm-in .18s ease-out;
}
.mobile-menu[hidden] { display: none; }
@keyframes mm-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mm-search { position: relative; margin-bottom: 8px; }
.mm-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.mm-search input {
  width: 100%; padding: .85rem 1rem .85rem 2.8rem; font: inherit; font-size: 16px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--bg-warm); color: var(--text);
}
.mm-search input:focus { outline: none; border-color: var(--border-strong); background: #fff; }
.mm-links { display: grid; margin-bottom: 16px; }
.mm-links a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 4px; font-size: 1.08rem; font-weight: 600; border-bottom: 1px solid var(--border); }
.mm-links a svg { color: var(--faint); }
.mm-links a.is-active { color: var(--brand); }
.mm-links a.is-active svg { color: var(--brand); }
body.menu-open { overflow: hidden; }

/* Sticky-Download-Leiste (nur Handy, nur Detailseite) */
.mobile-cta { display: none; }

@media (max-width: 1020px) {
  .main-nav > a:not(.btn), .nav-search { display: none; }
  .main-nav { gap: 10px; }
  .menu-toggle { display: grid; }
  .header-inner { gap: 10px; }
  .main-nav { margin-left: auto; }

  .mobile-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
    padding: 10px 10px 10px 18px; border-radius: 18px; background: var(--navy); color: #fff;
    box-shadow: 0 12px 32px rgba(20, 28, 46, .3); transition: transform .25s, opacity .25s;
  }
  .mobile-cta strong { display: block; font-size: .95rem; }
  .mobile-cta small { display: block; font-size: .78rem; color: rgba(255, 255, 255, .65); }
  .mobile-cta.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .bp { padding-bottom: 8px; }
  .bp .tools { padding-bottom: 120px; }
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .header-inner { height: 64px; }
  .brand .logo { height: 26px; }
  .mobile-menu { max-height: calc(100dvh - 64px); }

  /* Hero Startseite */
  .hero { padding: 40px 0 64px; }
  .hero-grid { gap: 48px; }
  .eyebrow { font-size: .76rem; }
  .hero h1 { margin-top: 18px; font-size: clamp(2.3rem, 11vw, 2.9rem); }
  .lead-claim { font-size: 1.05rem; gap: .4rem .9rem; }
  .hero-text { font-size: 1rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { justify-content: center; padding: .95rem 1.3rem; }
  .hero-visual { padding: 0 6px; }
  .plan-card { transform: none; padding: 16px; border-radius: 20px; }
  .plan-steps li { padding: 11px 12px; gap: 12px; }
  .float-badge { font-size: .78rem; padding: .5rem .7rem; }
  .float-badge .ic { width: 28px; height: 28px; }
  .badge-a { left: -4px; bottom: -30px; }
  .badge-b { right: -4px; top: -30px; }

  /* Vorteile 2×2 */
  .trust-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; padding: 18px 16px; }
  .trust-item { font-size: .84rem; align-items: flex-start; line-height: 1.35; }
  .trust-item svg { flex: none; margin-top: 1px; }

  /* Abschnitte */
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 24px; }
  .section-head h2 { font-size: 1.65rem; }

  /* So funktioniert's: kompakte Zeilen */
  .how-grid { gap: 10px; }
  .how-card { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 16px; }
  .how-card .ic { width: 44px; height: 44px; margin: 0; grid-row: span 2; }
  .how-card .n { top: 16px; right: 16px; }
  .how-card h3 { font-size: 1.02rem; align-self: end; }
  .how-card p { margin-top: 2px; font-size: .88rem; }

  /* Tool-Karten */
  .rows-bp { gap: 18px; }
  .wf { border-radius: 20px; }
  .wf-media { padding: 12px; gap: 12px; display: flex; flex-direction: column; }
  .wf-video { border-radius: 14px; }
  .wf-play { width: 50px; height: 50px; }
  .wf-media .wf-master { order: 2; }
  .wf-media .sponsor-badge { order: 3; margin-top: 0; }
  .wf-body { padding: 18px 16px 18px; }
  .wf h3, .layout-sidebar .wf h3 { font-size: 1.2rem; margin-top: 12px; }
  .wf-text { font-size: .94rem; }
  .wf-steps { gap: 8px; padding-top: 18px; }
  .step a, .step > span { min-height: 52px; }

  /* Filter: Chips seitlich wischen statt umbrechen */
  .filter-bar { padding: 12px; gap: 10px; border-radius: 16px; margin-left: -4px; margin-right: -4px; }
  .filter-group, .filter-tags {
    flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity; padding-bottom: 2px;
  }
  .filter-group::-webkit-scrollbar, .filter-tags::-webkit-scrollbar { display: none; }
  .chip { flex: none; white-space: nowrap; min-height: 40px; }
  .section-head .chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }

  /* CTA */
  .cta-band { padding-bottom: 56px; }
  .cta-box { padding: 32px 22px; border-radius: 22px; gap: 22px; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { justify-content: center; }

  /* Unterseiten-Köpfe */
  .page-header { padding: 32px 0 30px; }
  .page-header h1 { font-size: clamp(1.9rem, 9vw, 2.4rem); }
  .page-lead { font-size: 1rem; margin-top: 10px; }
  .crumbs { margin-bottom: 12px; font-size: .82rem; }
  .section-tight { padding: 28px 0 64px; }

  /* Detailseite */
  .bp-hero { padding: 28px 0 28px; }
  .bp-hero h1 { font-size: clamp(1.65rem, 7.6vw, 2.1rem); margin-top: 12px; }
  .bp-meta { gap: 6px 16px; font-size: .85rem; margin-top: 16px; }
  .bp-hero .wf-steps { margin-top: 20px; }
  .bp-body { padding-top: 24px; padding-bottom: 32px; gap: 28px; }
  .gallery { margin-bottom: 32px; margin-left: -16px; margin-right: -16px; }
  .gallery-stage { border-radius: 0; box-shadow: none; }
  .gallery-thumbs { flex-wrap: nowrap; overflow-x: auto; padding: 0 16px; scrollbar-width: none; }
  .gallery-thumbs::-webkit-scrollbar { display: none; }
  .gallery-thumb { flex: none; width: 96px; }
  .prose { font-size: 1rem; line-height: 1.7; }
  .prose h3 { font-size: 1.18rem; margin-top: 2rem; padding-top: 1.6rem; }
  .prose ul, .prose ol { padding-left: 1.15rem; }
  .prose blockquote { padding: 14px 16px; margin: 1.2rem 0; border-radius: 14px; }
  .prose a { overflow-wrap: anywhere; }
  .side-card { padding: 18px; border-radius: 18px; }
  .download-box { padding: 22px 20px 18px; }

  /* JackMaster */
  .card-author { padding: 14px; gap: 14px; }
  .avatar-lg { width: 68px; height: 68px; border-radius: 16px; }
  .ca-body strong { font-size: 1rem; }
  .ca-body .muted { font-size: .86rem; }
  .ca-arrow { display: none; }
  .author-hero { flex-direction: row; align-items: center; gap: 16px; }
  .avatar-xl { width: 88px; height: 88px; border-radius: 22px; border-width: 3px; }
  .author-hero h1 { font-size: 1.7rem; }
  .bio-card { padding: 20px; margin-bottom: 28px; }

  /* Login & Formulare: 16px verhindert das automatische Hineinzoomen auf dem iPhone */
  .auth { padding: 28px 16px 56px; place-items: start center; }
  .auth-card { border-radius: 22px; }
  .field input, .search-form input, .nav-search input { font-size: 16px; }
  .search-form { border-radius: 16px; }
  .search-form .btn { padding: .7rem 1rem; }

  /* Footer */
  .site-footer { padding: 40px 0 calc(24px + env(safe-area-inset-bottom)); }
  .footer-top { gap: 28px 20px; padding-bottom: 28px; }
  .footer-col a { padding: 7px 0; }
}

@media (max-width: 380px) {
  .trust-inner { grid-template-columns: 1fr; }
  .float-badge small { display: none; }
  .author-hero { flex-direction: column; align-items: flex-start; }
}

/* ---------- Schritt-Illustrationen in der Anleitung ---------- */
.prose .step-block {
  display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 28px; align-items: start;
  margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--border);
}
.prose .step-block h3 { margin-top: 0; padding-top: 0; border-top: 0; }
.prose .step-block + h3, .prose .step-block + .step-block { margin-top: 2.6rem; }
.prose .step-body > :last-child { margin-bottom: 0; }
.step-art { margin: 4px 0 0; position: sticky; top: 96px; }
.step-art svg { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
@media (max-width: 720px) {
  .prose .step-block { grid-template-columns: 1fr; gap: 14px; margin-top: 2rem; padding-top: 1.6rem; }
  .step-art { position: static; order: -1; margin: 0; max-width: 240px; }
}

/* Vorschau-Hinweis (Login in der Design-Vorschau) */
.preview-note { margin-top: 18px; padding: 10px 14px; border-radius: 12px; background: #fff8e6; border: 1px solid #f5d98c; color: #7a5a00; font-size: .86rem; font-weight: 500; }
.form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 16px; min-width: 0; }
.form fieldset:disabled .field input { background: var(--bg-warm); cursor: not-allowed; }

/* JackMaster: Einladungskarte */
.card-invite { border-style: dashed; border-color: var(--border-strong); background: var(--bg-warm); box-shadow: none; }
.card-invite:hover { border-color: var(--brand); background: var(--brand-tint); }
.invite-ic { width: 84px; height: 84px; border-radius: 18px; flex: none; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); color: var(--brand); }
.card-invite .tag { word-break: break-all; }
@media (max-width: 720px) { .invite-ic { width: 68px; height: 68px; border-radius: 16px; } }

/* =====================================================================
   Praxis-Umfrage (/praxis-umfrage) – QR-Code auf dem Waizmanntabelle × DoctorJack-Blatt
   Erste Seite der echten Website im neuen Design (Layout layouts/redesign.html.twig).
   ===================================================================== */
.flashes { display: grid; gap: 10px; margin-bottom: 20px; }
.flash { padding: 12px 16px; border-radius: 12px; font-size: .92rem; font-weight: 500; border: 1px solid; }
.flash-error { background: #fff1f0; border-color: #f6c4c1; color: #9b1c18; }
.flash-success { background: #effaf2; border-color: #bfe6c9; color: #1c6b31; }
.flash-info { background: #f0f7fd; border-color: #c4e0f5; color: #0f4f7a; }

.sv-header .eyebrow { margin-bottom: 18px; }
.sv-header .eyebrow b { color: var(--text); }
.sv-header h1 .red { white-space: nowrap; }
.sv-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-size: .92rem; font-weight: 600; color: var(--text); }
.sv-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.sv-meta svg { color: var(--brand); flex: none; }

.sv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.sv-card { background: #fff; border: 1px solid var(--border); border-radius: 26px; padding: 36px 36px 32px; box-shadow: var(--shadow); }
.sv-form { margin-top: 0; gap: 0; }
.sv-step { display: flex; align-items: center; gap: 14px; margin: 36px 0 20px; padding-top: 32px; border-top: 1px solid var(--border); }
.sv-step.is-first { margin-top: 0; padding-top: 0; border-top: 0; }
.sv-num { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(230, 59, 55, .28); }
.sv-step h2 { font-size: 1.3rem; font-weight: 800; }
.sv-step p { color: var(--muted); font-size: .9rem; margin-top: 2px; }

.sv-form > label, .sv-form .sv-set { margin-bottom: 18px; }
.sv-form label .opt, .sv-set legend .opt { color: var(--faint); font-weight: 500; }
.sv-form input[type=email], .sv-form input[type=text], .sv-form select, .sv-form textarea {
  width: 100%; padding: .8rem 1rem; font: inherit; font-size: .98rem; font-weight: 400;
  border: 1px solid var(--border-strong); border-radius: 12px; background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.sv-form textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.sv-form select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239aa0ab' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.sv-form input:focus, .sv-form select:focus, .sv-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(230, 59, 55, .12); }
.sv-form ::placeholder { color: var(--faint); }

.form fieldset.sv-set { display: block; }
.sv-set legend { font-size: .88rem; font-weight: 600; padding: 0; margin-bottom: 10px; }
.sv-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sv-opts.is-inline { display: flex; flex-wrap: wrap; }
.form label.sv-opt {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer;
  border: 1px solid var(--border-strong); border-radius: 14px; background: #fff;
  font-weight: 500; font-size: .94rem; line-height: 1.3; transition: border-color .15s, background .15s, box-shadow .15s;
}
.sv-opts.is-inline .sv-opt { border-radius: 999px; padding: 10px 16px; }
.form label.sv-opt:hover { border-color: var(--text); }
.sv-opt input { position: absolute; opacity: 0; pointer-events: none; }
.sv-box { width: 22px; height: 22px; flex: none; border: 1.5px solid var(--border-strong); border-radius: 7px; display: grid; place-items: center; background: #fff; transition: background .15s, border-color .15s; }
.sv-opt input[type=radio] + .sv-box { border-radius: 50%; }
.sv-box svg { opacity: 0; color: #fff; transition: opacity .15s; }
.form label.sv-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); box-shadow: 0 0 0 3px rgba(230, 59, 55, .1); }
.sv-opt input:checked + .sv-box { background: var(--brand); border-color: var(--brand); }
.sv-opt input:checked + .sv-box svg { opacity: 1; }
.sv-opt input:focus-visible + .sv-box { outline: 3px solid rgba(230, 59, 55, .45); outline-offset: 2px; }
.form label.sv-opt.is-other { border-style: dashed; color: var(--brand-dark); background: var(--bg-warm); }
.form label.sv-other { display: none; margin-top: 12px; }
.sv-set:has(#pain-other-toggle:checked) label.sv-other { display: grid; }

.sv-final { margin-top: 32px; padding: 22px; border-radius: 18px; background: var(--bg-warm); border: 1px solid var(--border); display: grid; gap: 14px; }
.form label.sv-check { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; font-size: .92rem; cursor: pointer; line-height: 1.45; }
.sv-check input { position: absolute; opacity: 0; pointer-events: none; }
.sv-check .sv-box { margin-top: 1px; }
.sv-check a { color: var(--brand-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.sv-submit { margin-top: 24px; padding: 1rem 1.4rem; font-size: 1rem; }
.sv-submit svg { flex: none; }

.sv-side { position: sticky; top: 96px; display: grid; gap: 16px; }
.sv-side .side-card p { color: var(--muted); font-size: .92rem; }
.sv-side .side-card p + p { margin-top: 10px; }
.sv-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .92rem; font-weight: 500; }
.sv-checks li { display: flex; gap: 10px; align-items: flex-start; }
.sv-checks svg { color: var(--brand); flex: none; margin-top: 2px; }
.sv-partner { display: flex; align-items: center; gap: 12px; }
.sv-partner .wtb { flex: none; width: 44px; height: 44px; border-radius: 12px; background: #2c5c9e; color: #fff; font-weight: 800; display: grid; place-items: center; letter-spacing: .02em; }
.sv-partner strong { display: block; font-size: .95rem; }
.sv-partner a { color: var(--muted); font-size: .86rem; }
.sv-partner a:hover { color: var(--text); }

.sv-done { text-align: center; }
.sv-done .sv-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.sv-done .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 26px; }

@media (max-width: 1020px) {
  .sv-layout { grid-template-columns: 1fr; }
  .sv-side { position: static; }
}
@media (max-width: 720px) {
  .sv-card { padding: 24px 18px 22px; border-radius: 22px; }
  .sv-opts { grid-template-columns: 1fr; }
  .sv-form input[type=email], .sv-form input[type=text], .sv-form select, .sv-form textarea { font-size: 16px; }
  .sv-step h2 { font-size: 1.15rem; }
  .sv-final { padding: 16px; }
}

/* =====================================================================
   Ergänzungen für die echte Website (in der Design-Vorschau nicht enthalten):
   YouTube-Poster, Bauplan als Text, Seitenwechsel, Formulare, Konto-Seiten.
   ===================================================================== */
span.avatar-md, span.avatar-lg, span.avatar-xl { display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; }
span.avatar-md { font-size: 1.4rem; } span.avatar-lg { font-size: 2rem; } span.avatar-xl { font-size: 3.4rem; }

/* Galerie: YouTube erst nach Klick (Datenschutz) */
.yt-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: var(--navy) center / cover no-repeat; display: grid; place-items: center; color: #fff; }
.yt-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 28, 46, .05), rgba(20, 28, 46, .55)); }
.yt-play { position: relative; z-index: 1; width: 72px; height: 72px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(230, 59, 55, .45); transition: transform .15s; }
.yt-play svg { width: 28px; height: 28px; margin-left: 3px; }
.yt-poster:hover .yt-play { transform: scale(1.06); }
.yt-hint { position: absolute; z-index: 1; left: 0; right: 0; bottom: 14px; text-align: center; font-size: .78rem; color: rgba(255, 255, 255, .85); }
.gallery-caption { margin-top: 10px; font-size: .88rem; color: var(--muted); }
.gallery-thumb { position: relative; }

/* KI-Bauplan als Text */
.bauplan-text { margin-top: 48px; padding: 28px; border-radius: var(--radius); background: var(--bg-warm); border: 1px solid var(--border); }
.bauplan-text h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 14px; }
.bauplan-text .kicker { margin-bottom: 6px; }
.bauplan-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; font-size: .9rem; color: var(--muted); }
.bauplan-text pre { max-height: 520px; overflow: auto; white-space: pre-wrap; word-break: break-word; font-family: var(--mono); font-size: .8rem; line-height: 1.6; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.bauplan-text .btn + .small, .bauplan-text p + p { margin-top: 10px; }
.bp-tags { margin-top: 32px; }

/* Download-Box: Dateiliste */
.download-box .dl-meta { margin-top: 8px; font-family: var(--mono); font-size: .72rem; color: rgba(255, 255, 255, .6); text-align: center; word-break: break-all; }
.download-box .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.download-box .btn-ghost:hover { border-color: #fff; }
.dl-changelog { margin-top: 14px; font-size: .84rem; color: rgba(255, 255, 255, .75); }
.dl-changelog summary { cursor: pointer; }
.dl-changelog p { margin-top: 6px; white-space: pre-line; }
.side-stats { font-family: var(--mono); font-size: .75rem; color: var(--faint); text-align: center; }

/* Seitenwechsel in Listen */
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 32px; font-size: .9rem; color: var(--muted); }

/* Formulare (ohne Icon-Feld) */
.form input[type=text], .form input[type=email], .form input[type=password], .form input[type=search], .form textarea, .form select {
  width: 100%; padding: .8rem 1rem; font: inherit; font-size: .98rem; font-weight: 400;
  border: 1px solid var(--border-strong); border-radius: 12px; background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.form .field input { padding-left: 2.7rem; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(230, 59, 55, .12); }
.form input:disabled { background: var(--bg-warm); color: var(--muted); cursor: not-allowed; }
.form .opt { color: var(--faint); font-weight: 500; }
.form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: .9rem; line-height: 1.45; cursor: pointer; }
.form label.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.form label.check a, .auth-note a { color: var(--brand-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.form h3 { font-size: 1.1rem; font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.auth-card-wide { max-width: 560px; }
.auth-note { margin-top: 22px; padding: 14px 16px; border-radius: 14px; background: var(--brand-tint); border: 1px solid var(--brand-soft); font-size: .88rem; color: var(--text); text-align: left; }
.auth .flashes, .flashes-top { margin-top: 20px; }
.btn-danger { background: #fff; color: #b42318; border-color: #f3c2bd; }
.btn-danger:hover { background: #b42318; color: #fff; border-color: #b42318; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-dark); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
form.inline { display: inline; }

/* Konto-Seiten */
.subnav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; }
.subnav a { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-size: .9rem; font-weight: 500; }
.subnav a:hover { border-color: var(--border-strong); }
.subnav a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.subnav-logout { margin-left: auto; }
.subnav-logout button.link { color: var(--muted); font-weight: 500; }
.notice { margin-bottom: 24px; padding: 14px 18px; border-radius: 14px; background: #fff8e6; border: 1px solid #f5d98c; color: #7a5a00; font-size: .92rem; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { display: grid; gap: 4px; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); color: var(--muted); font-size: .88rem; }
.tile-num { font-size: 1.8rem; font-weight: 800; color: var(--text); }
.tile-num.mono-sm { font-size: 1.05rem; font-family: var(--mono); font-weight: 700; padding-top: 6px; }
.account-cols { margin-top: 32px; }
.account-cols h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 14px; }
.account-cols .side-card p + p { margin-top: 12px; }
.list-plain { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.list-plain li { padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.list-plain a, .account-cols > div > p a { font-weight: 600; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-size: .92rem; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.table th { font-family: var(--mono); font-weight: 400; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--bg-warm); }
.table tr:last-child td { border-bottom: 0; }
.table a { font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.col-main, .col-side { display: grid; gap: 20px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.card.form { margin-top: 0; }
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.card > p + .btn { margin-top: 14px; }
.card-danger { border-color: #f3c2bd; }

@media (max-width: 1020px) {
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .form .row-2, .tiles { grid-template-columns: 1fr; }
  .form input[type=text], .form input[type=email], .form input[type=password], .form input[type=search] { font-size: 16px; }
  .bauplan-text { padding: 20px 16px; margin-left: -4px; margin-right: -4px; }
  .table { font-size: .84rem; } .table th, .table td { padding: 10px; }
  .subnav-logout { margin-left: 0; }
}

/* ---------- KI-Webinare (/webinare) ---------- */
.wb-list { display: grid; gap: 28px; }
.wb-card { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.wb-media { display: block; background: var(--bg-warm); min-height: 100%; }
.wb-media img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16/10; }
.wb-media-empty { display: grid; place-items: center; height: 100%; min-height: 200px; font-weight: 800; font-size: 2.4rem; color: var(--brand); background: radial-gradient(260px 160px at 80% 10%, rgba(230, 59, 55, .14), transparent 70%), var(--bg-warm); }
.wb-body { padding: 26px 28px; display: grid; gap: 10px; align-content: start; }
.wb-body .kicker { margin-bottom: 0; }
.wb-body h2 { font-size: 1.35rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.25; }
.wb-body h2 a:hover { color: var(--brand); }
.wb-speaker { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: .94rem; }
.wb-speaker svg, .wb-dates svg { color: var(--brand); flex: none; }
.wb-dates { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.wb-dates li { display: flex; align-items: center; gap: 8px; }
.wb-card.is-featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-sm); }
.wb-feat { display: inline-block; background: var(--brand); color: #fff; padding: 1px 8px; border-radius: 999px; margin-right: 4px; }
.home-webinar { padding-top: 40px; }
.wb-media img.wb-media-speaker { object-position: center 20%; }
.wb-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--border); }
.wb-speaker-card { margin-top: 16px; }
.wb-speaker-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.wb-speaker-img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid #fff; box-shadow: var(--shadow-sm); }
.wb-speaker-bio { white-space: normal; color: var(--muted); }
.wb-full { font-family: var(--mono); font-size: .72rem; padding: 1px 8px; border-radius: 999px; background: var(--bg-warm); color: var(--muted); }
.wb-body .btn { justify-self: start; }
.wb-h2 { font-size: 1.35rem; font-weight: 750; margin: 36px 0 14px; }
.wb-topics { margin-bottom: 8px; }
.wb-tool { margin-top: 28px; }
.wb-register { margin-top: 36px; scroll-margin-top: 96px; }
.wb-register h2 { font-size: 1.45rem; font-weight: 800; margin-bottom: 18px; }
.wb-cover { width: 100%; border-radius: var(--radius); display: block; margin-bottom: 16px; border: 1px solid var(--border); }
.sv-opt.is-disabled { opacity: .5; cursor: not-allowed; }
.wb-countdown { font-family: var(--mono); font-size: .95rem; color: var(--brand); }
.wb-open { border-color: var(--brand); }
@media (max-width: 900px) {
  .wb-card { grid-template-columns: 1fr; }
  .wb-media-empty { min-height: 140px; }
  .wb-body { padding: 20px; }
}

/* ---------- KI-Webinare: Live-Raum (templates/public/webinars/_live.html.twig) ---------- */
.wl [hidden] { display: none !important; } /* .btn/.wl-row setzen display – hidden muss trotzdem gewinnen */
.wl-page .site-footer { display: none; }
.wl { max-width: 1680px; margin: 0 auto; padding: 14px 20px 24px; }
.wl-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 6px 2px 12px; }
.wl-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.wl-title strong { font-size: 1.05rem; }
.wl-top-r { display: flex; align-items: center; gap: 12px; }
.wl-status { font-family: var(--mono); font-size: .72rem; padding: 3px 10px; border-radius: 999px; background: var(--bg-warm); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.wl-status.is-live { background: var(--brand); color: #fff; animation: wl-pulse 2s infinite; }
@keyframes wl-pulse { 50% { opacity: .75; } }
.wl-conn { font-size: .78rem; color: var(--muted); }
.wl-conn::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #bbb; margin-right: 6px; }
.wl-conn.is-ok::before { background: #2bb24c; } .wl-conn.is-warn::before { background: #f0a500; } .wl-conn.is-err::before { background: var(--brand); }

/* Ohne Präsentation: Bühne (Vortragende groß) | Seite. Mit Präsentation 3-geteilt (Pamela 30.11.2026):
   Folien 1/2 | Vortragende 1/4 | Funktionen + Chat 1/4. #wlSpeakers bleibt dasselbe Element, nur grid-area wechselt. */
.wl-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "stage side"; gap: 18px; align-items: start; }
.wl-main.is-presenter { grid-template-columns: minmax(0, 1fr) 380px; }
.wl-main.is-presenting { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(300px, 1fr); grid-template-areas: "stage cams side"; }
.wl-stage { grid-area: stage; position: relative; aspect-ratio: 16 / 9; background: #11151f; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.wl-slide { position: absolute; inset: 0; display: grid; place-items: center; }
.wl-slide img, .wl-slide video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.wl-slide-empty { display: grid; place-items: center; gap: 14px; color: #c9cfdb; text-align: center; padding: 24px; font-weight: 600; }
.wl-slide-empty img { width: 64px; height: 64px; object-fit: contain; background: none; opacity: .9; }

/* Vortragende: ohne Präsentation groß über der Bühne, mit Präsentation klein oben rechts – gleicher Rahmen, nur CSS */
.wl-speakers { grid-area: stage; align-self: start; aspect-ratio: 16 / 9; position: relative; z-index: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; grid-auto-rows: minmax(0, 1fr); gap: 6px; padding: 6px; pointer-events: none; border-radius: 18px; overflow: hidden; }
.wl-speakers:empty { display: none; }
.wl-main.is-presenting .wl-speakers { grid-area: cams; aspect-ratio: auto; grid-auto-flow: row; grid-auto-columns: auto; grid-auto-rows: auto; gap: 12px; padding: 0; overflow: visible; }
.wl-tile { position: relative; background: #1d2330; border-radius: 12px; overflow: hidden; min-height: 0; }
.wl-main.is-presenting .wl-tile { aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.wl-tile-video, .wl-tile-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wl-tile.is-me .wl-tile-video video { transform: scaleX(-1); }
.wl-tile-off { position: absolute; inset: 0; display: none; place-items: center; color: #9aa3b5; font-size: .85rem; background: #1d2330; }
.wl-tile.is-off .wl-tile-off { display: grid; }
.wl-tile-name { position: absolute; left: 8px; bottom: 6px; font-size: .72rem; color: #fff; background: rgba(0, 0, 0, .45); padding: 1px 7px; border-radius: 6px; }
.wl-nospeaker { z-index: 2; position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); background: rgba(0, 0, 0, .55); color: #fff; padding: 6px 14px; border-radius: 999px; font-size: .85rem; white-space: nowrap; }
.wl-stage:not(.is-presenting) .wl-nospeaker { bottom: 40%; }

.wl-question { z-index: 2; max-height: 60%; overflow: auto; position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(255, 255, 255, .96); color: var(--text); border-left: 5px solid var(--brand); border-radius: 12px; padding: 12px 16px; font-size: 1.02rem; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.wl-q-a { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); font-weight: 500; }
.wl-q-k { display: block; font-family: var(--mono); font-size: .7rem; font-weight: 400; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.wl-join, .wl-ended { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(17, 21, 31, .82); backdrop-filter: blur(4px); padding: 20px; z-index: 3; }
.wl-join[hidden], .wl-ended[hidden] { display: none; }
.wl-join-box { background: #fff; border-radius: 20px; padding: 28px 30px; max-width: 460px; text-align: center; display: grid; gap: 12px; }
.wl-join-box h2 { font-size: 1.4rem; font-weight: 800; }
.wl-join-box p { color: var(--muted); font-size: .95rem; }
.wl-unmute { position: absolute; top: 14px; left: 14px; z-index: 4; }

.wl-side { grid-area: side; display: flex; flex-direction: column; gap: 12px; height: calc(100vh - 130px); min-height: 520px; overflow: auto; min-width: 0; }
.wl-side > .wl-box { flex: none; }
.wl-box { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.wl-box h3 { font-size: .74rem; font-family: var(--mono); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.wl-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wl-row + .wl-row { margin-top: 8px; }
.wl-row .btn.is-off { border-color: var(--brand); color: var(--brand); }
.wl-strip { display: flex; gap: 6px; overflow-x: auto; margin-top: 10px; padding-bottom: 4px; }
.wl-thumb { position: relative; flex: none; width: 84px; aspect-ratio: 16 / 9; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #1d2330; padding: 0; cursor: pointer; }
.wl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wl-thumb.is-current { border-color: var(--brand); }
.wl-thumb-n { position: absolute; right: 3px; bottom: 2px; font-size: .62rem; color: #fff; background: rgba(0, 0, 0, .55); padding: 0 4px; border-radius: 4px; }
.wl-thumb-v { display: grid; place-items: center; height: 100%; color: #fff; font-size: .7rem; }
.wl-note { margin-top: 10px; font-size: .9rem; white-space: pre-wrap; background: #fffbea; border-radius: 8px; padding: 8px 10px; }
.wl-note:empty { display: none; }
/* Chat (für alle; Dozent/Moderator mit Aktionen je Nachricht) */
.wl-side > .wl-chat { flex: 1 0 auto; min-height: 380px; display: flex; flex-direction: column; }
.wl-chat-list { list-style: none; margin: 0 0 10px; padding: 0 2px 0 0; display: flex; flex-direction: column; gap: 8px; flex: 1 1 0; min-height: 200px; overflow-y: auto; }
.wl-msg { border: 1px solid var(--border); border-radius: 10px; padding: 7px 10px; font-size: .9rem; }
.wl-msg.is-staff { background: #f3f6fb; border-color: #d6deea; }
.wl-msg.is-mine { border-color: var(--border-strong); }
.wl-msg.is-shown { border-color: var(--brand); background: #fff5f4; box-shadow: 0 0 0 1px var(--brand) inset; }
.wl-msg.is-hidden { opacity: .5; }
.wl-msg-h { font-size: .74rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.wl-msg-h b { color: var(--text); font-weight: 700; font-size: .8rem; }
.wl-badge { font-family: var(--mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border-radius: 999px; background: var(--navy, #141a2a); color: #fff; }
.wl-badge.is-shown { background: var(--brand); } .wl-badge.is-ok { background: #1f8a3d; }
.wl-msg-re { margin-top: 4px; font-size: .78rem; color: var(--muted); border-left: 3px solid var(--border-strong); padding-left: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-msg-t { margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; }
.wl-qi-a { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 5px; }
.wl-qi-a button { background: none; border: 0; padding: 0; font-size: .76rem; color: var(--brand); cursor: pointer; font-weight: 600; }
.wl-qi-a button.is-muted { color: var(--muted); font-weight: 400; }
.wl-replyto { display: flex; gap: 8px; align-items: center; font-size: .78rem; background: var(--bg-warm); border-radius: 8px; padding: 5px 8px; }
.wl-replyto span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-replyto button { background: none; border: 0; cursor: pointer; color: var(--muted); }
.wl-empty { color: var(--muted); font-size: .88rem; }
.wl-reacts button { flex: 1; border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 8px 10px; font: inherit; font-size: .88rem; cursor: pointer; transition: transform .15s; }
.wl-reacts button:hover { border-color: var(--text); }
.wl-reacts button.is-sent { background: var(--brand-soft); border-color: var(--brand); transform: scale(1.05); }
.wl-reacts-count { display: flex; gap: 14px; flex-wrap: wrap; font-size: .95rem; }
.wl-recent { width: 100%; font-size: .78rem; color: var(--muted); }
#wlAsk { display: grid; gap: 8px; flex: none; }
#wlAsk textarea { width: 100%; border: 1px solid var(--border-strong); border-radius: 10px; padding: 9px 11px; font: inherit; font-size: .92rem; resize: vertical; }
.wl-sponsor { --waizmann: #3166a5; display: grid; gap: 8px; justify-items: center; text-align: center; padding: 18px 18px 16px; border: 0; border-radius: 14px; background: var(--waizmann); color: #fff; text-decoration: none; box-shadow: 0 6px 18px rgba(49, 102, 165, .28); transition: transform .2s, box-shadow .2s; }
.wl-sponsor:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(49, 102, 165, .36); }
.wl-sponsor-k { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .75); }
.wl-sponsor img { width: 100%; max-width: 240px; height: auto; display: block; filter: invert(1) grayscale(1); mix-blend-mode: screen; } /* Logo mit weißem Grund: invertiert + screen → weißer Schriftzug, Grund verschwindet im Blau */
.wl-sponsor-t { font-size: .82rem; font-weight: 600; color: #fff; }
.wl-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy, #141a2a); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .9rem; z-index: 50; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: opacity .5s; }
.wl-toast.is-err { background: var(--brand); } .wl-toast.is-ok { background: #1f8a3d; } .wl-toast.is-warn { background: #a66b00; }
.wl-toast.is-out { opacity: 0; }
@media (max-width: 980px) {
  .wl, .wl-main.is-presenter { padding-left: 10px; padding-right: 10px; }
  .wl-main, .wl-main.is-presenter, .wl-main.is-presenting { grid-template-columns: 1fr; grid-template-areas: "stage" "cams" "side"; }
  .wl-main.is-presenting .wl-speakers { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); max-width: 520px; }
  .wl-side { height: auto; min-height: 0; overflow: visible; }
  .wl-chat-list { max-height: 55vh; }
  .wl-stage { border-radius: 12px; }
}
