/* PadelCompass – "Padel bauen" Hub
   Visuelle Sprache: dunkles Premium-Editorial mit Cyan-Akzent (#00FFFF),
   Inter (sans) + Fraunces (serif Display), Glassmorphism, Grid-/Blueprint-
   Hintergrund, sanftes Cyan-Glow und 3D-Hover-Lift auf Karten.
   Gemeinsame Klassen sind .pb-* (PadelBau), so dass sie nirgends mit den
   bestehenden Tailwind-Utilities kollidieren. */

:root {
    --pb-cyan: #00FFFF;
    --pb-cyan-glow: rgba(0, 255, 255, 0.32);
    --pb-cyan-soft: rgba(0, 255, 255, 0.10);
    --pb-yellow: #FFFF00;
    --pb-bg: #0a0a0a;
    --pb-card: rgba(255, 255, 255, 0.03);
    --pb-card-hover: rgba(255, 255, 255, 0.06);
    --pb-border: rgba(255, 255, 255, 0.08);
    --pb-border-strong: rgba(255, 255, 255, 0.16);
    --pb-text: #f3f4f6;
    --pb-text-muted: #9ca3af;
    --pb-text-dim: #6b7280;
    --pb-success: #4ade80;
    --pb-warn: #facc15;
    --pb-danger: #f87171;
    --pb-orange: #fb923c;
}

/* --- Typografie ----------------------------------------------------------- */

.pb-eyebrow {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.84rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pb-cyan);
    font-weight: 700;
}

.pb-display {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #ffffff;
    font-size: clamp(2.4rem, 5vw, 3.75rem);
    font-feature-settings: "tnum" 1, "lnum" 1;
}

.pb-display--xl {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.pb-h2 {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.12;
    color: #ffffff;
    font-size: clamp(2rem, 3.6vw, 2.75rem);
    font-feature-settings: "tnum" 1, "lnum" 1;
}

.pb-h3 {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: #ffffff;
    font-size: clamp(1.45rem, 2.3vw, 1.75rem);
    font-feature-settings: "tnum" 1, "lnum" 1;
}

.pb-lead {
    font-size: 1.18rem;
    line-height: 1.65;
    color: #d1d5db;
    max-width: 62ch;
}

.pb-prose p {
    color: #e5e7eb;
    line-height: 1.72;
    font-size: 1.125rem;
    margin: 0 0 1.15rem;
}

.pb-prose p:last-child { margin-bottom: 0; }

.pb-prose strong { color: #ffffff; font-weight: 700; }

.pb-prose a {
    color: var(--pb-cyan);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    transition: color 140ms ease;
}

.pb-prose a:hover { color: #5bffff; }

.pb-prose ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.pb-prose ul li {
    position: relative;
    padding-left: 1.6rem;
    color: #e5e7eb;
    line-height: 1.6;
}

.pb-prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--pb-cyan);
    box-shadow: 0 0 12px var(--pb-cyan-glow);
}

/* --- Hero-Hintergrund ----------------------------------------------------- */

.pb-hero-bg {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.pb-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(900px 480px at 78% -8%, rgba(0, 255, 255, 0.13), transparent 58%),
        radial-gradient(720px 380px at 12% 18%, rgba(255, 255, 0, 0.06), transparent 60%),
        linear-gradient(180deg, #0a0a0a 0%, #0a0a0a 100%);
}

.pb-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
    opacity: 0.7;
}

/* sanft pulsierender Cyan-Spot oberhalb des Heros */
.pb-hero-spot {
    position: absolute;
    inset: -10% -10% auto auto;
    width: 60vw;
    max-width: 720px;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.20) 0%, transparent 65%);
    filter: blur(20px);
    z-index: -1;
    animation: pb-spot-drift 14s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes pb-spot-drift {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.85; }
    100% { transform: translate(-3%, 4%) scale(1.07); opacity: 1; }
}

.pb-blueprint-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        repeating-linear-gradient(0deg, transparent 0 79px, rgba(0, 255, 255, 0.06) 79px 80px),
        repeating-linear-gradient(90deg, transparent 0 79px, rgba(0, 255, 255, 0.06) 79px 80px);
    mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
    pointer-events: none;
}

/* --- Section-Helpers ------------------------------------------------------ */

.pb-section {
    padding-top: clamp(3rem, 6vw, 5rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.pb-section--tight { padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(2rem, 4vw, 3rem); }

.pb-container {
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 1.25rem;
}

@media (min-width: 768px) { .pb-container { padding-inline: 2rem; } }
@media (min-width: 1100px) { .pb-container { padding-inline: 2.5rem; } }

.pb-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--pb-border-strong), transparent);
    margin: 0;
    border: 0;
}

/* --- Glas-Karten ---------------------------------------------------------- */

.pb-card {
    position: relative;
    background: var(--pb-card);
    border: 1px solid var(--pb-border);
    border-radius: 18px;
    padding: 1.5rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition:
        transform 180ms cubic-bezier(.22, 1, .36, 1),
        border-color 180ms ease,
        box-shadow 220ms ease,
        background-color 180ms ease;
    overflow: hidden;
}

.pb-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 220ms ease;
    pointer-events: none;
}

.pb-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 255, 255, 0.34);
    box-shadow: 0 18px 40px -16px rgba(0, 255, 255, 0.28);
    background: var(--pb-card-hover);
}

.pb-card:hover::before { opacity: 1; }

.pb-card--accent {
    border-color: rgba(0, 255, 255, 0.32);
    box-shadow: 0 0 0 1px rgba(0, 255, 255, 0.08), inset 0 0 0 1px rgba(0, 255, 255, 0.04);
}

/* Tool-Kachel mit Pfeil */
.pb-tool-card {
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
    min-height: 100%;
    text-decoration: none;
    color: inherit;
}

.pb-tool-card .pb-tool-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.18), rgba(0, 255, 255, 0.04));
    border: 1px solid rgba(0, 255, 255, 0.28);
    color: var(--pb-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.12);
}

.pb-tool-card .pb-tool-icon .material-symbols-outlined { font-size: 28px; }

.pb-tool-card h3 { margin: 0; }

.pb-tool-card p { color: var(--pb-text-muted); margin: 0; line-height: 1.55; }

.pb-tool-card .pb-tool-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--pb-cyan);
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 160ms ease;
}

.pb-tool-card:hover .pb-tool-cta { transform: translateX(3px); }

/* --- Buttons -------------------------------------------------------------- */

.pb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-radius: 12px;
    padding: 0.95rem 1.4rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 120ms ease, background-color 160ms ease, box-shadow 160ms ease, border-color 160ms ease, color 160ms ease;
    text-decoration: none;
    border: 0;
    line-height: 1;
}

.pb-btn--primary {
    background: var(--pb-cyan);
    color: #062424;
    box-shadow: 0 8px 28px -10px rgba(0, 255, 255, 0.6);
}

.pb-btn--primary:hover {
    background: #5bffff;
    transform: translateY(-1px);
    box-shadow: 0 14px 38px -10px rgba(0, 255, 255, 0.7);
}

.pb-btn--ghost {
    background: transparent;
    color: var(--pb-text);
    border: 1px solid var(--pb-border-strong);
}

.pb-btn--ghost:hover {
    border-color: var(--pb-cyan);
    color: var(--pb-cyan);
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.10);
}

.pb-btn--icon { padding: 0.85rem 1rem; }
.pb-btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

/* --- Badges --------------------------------------------------------------- */

.pb-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(0, 255, 255, 0.08);
    color: var(--pb-cyan);
    border: 1px solid rgba(0, 255, 255, 0.22);
}

.pb-badge--neutral {
    background: rgba(255, 255, 255, 0.05);
    color: var(--pb-text-muted);
    border-color: rgba(255, 255, 255, 0.1);
}

.pb-badge--green   { background: rgba(74, 222, 128, 0.10); color: var(--pb-success); border-color: rgba(74, 222, 128, 0.32); }
.pb-badge--yellow  { background: rgba(250, 204, 21, 0.10); color: var(--pb-warn);    border-color: rgba(250, 204, 21, 0.32); }
.pb-badge--orange  { background: rgba(251, 146, 60, 0.10); color: var(--pb-orange);  border-color: rgba(251, 146, 60, 0.32); }
.pb-badge--red     { background: rgba(248, 113, 113, 0.10); color: var(--pb-danger); border-color: rgba(248, 113, 113, 0.32); }

/* --- Stat-Tile ------------------------------------------------------------ */

.pb-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.25rem 1.4rem;
    background: var(--pb-card);
    border: 1px solid var(--pb-border);
    border-radius: 14px;
    backdrop-filter: blur(10px);
}

.pb-stat__value {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(1.7rem, 2.6vw, 2.2rem);
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-feature-settings: "tnum" 1, "lnum" 1;
    font-variant-numeric: tabular-nums lining-nums;
}

.pb-stat__label {
    font-size: 0.86rem;
    color: #d1d5db;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* --- Grid Helpers --------------------------------------------------------- */

.pb-grid { display: grid; gap: 1.25rem; }
.pb-grid--2 { grid-template-columns: 1fr; }
.pb-grid--3 { grid-template-columns: 1fr; }
.pb-grid--4 { grid-template-columns: 1fr; }

@media (min-width: 720px) {
    .pb-grid--2 { grid-template-columns: repeat(2, 1fr); }
    .pb-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .pb-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .pb-grid--3 { grid-template-columns: repeat(3, 1fr); }
    .pb-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- Tabellen ------------------------------------------------------------- */

.pb-table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--pb-border); }

.pb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.02);
    color: #e5e7eb;
    font-variant-numeric: tabular-nums lining-nums;
}

.pb-table thead th {
    text-align: left;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #d1d5db;
    padding: 0.95rem 1.05rem;
    background: rgba(0, 255, 255, 0.06);
    border-bottom: 1px solid var(--pb-border-strong);
}

.pb-table tbody td {
    padding: 0.95rem 1.05rem;
    border-bottom: 1px solid var(--pb-border);
    vertical-align: top;
    line-height: 1.55;
}

.pb-table tbody tr:last-child td { border-bottom: 0; }
.pb-table tbody tr:hover td { background: rgba(0, 255, 255, 0.025); }

/* --- FAQ Accordion -------------------------------------------------------- */

.pb-faq { display: flex; flex-direction: column; gap: 0.75rem; }

.pb-faq__item {
    border: 1px solid var(--pb-border);
    border-radius: 14px;
    background: var(--pb-card);
    overflow: hidden;
    transition: border-color 160ms ease;
}

.pb-faq__item[open] { border-color: rgba(0, 255, 255, 0.28); }

.pb-faq__summary {
    padding: 1.1rem 1.25rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.45;
}

.pb-faq__summary::-webkit-details-marker { display: none; }

.pb-faq__summary::after {
    content: '+';
    margin-left: auto;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--pb-cyan);
    transition: transform 200ms ease;
}

.pb-faq__item[open] .pb-faq__summary::after { transform: rotate(45deg); }

.pb-faq__body {
    padding: 0 1.25rem 1.3rem;
    color: #e5e7eb;
    line-height: 1.7;
    font-size: 1.075rem;
}

.pb-faq__body p { margin: 0; }

/* --- Phasen-Linie --------------------------------------------------------- */

.pb-phases {
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
}

.pb-phase {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.15rem;
    padding: 1.15rem 1.25rem;
    background: var(--pb-card);
    border: 1px solid var(--pb-border);
    border-radius: 14px;
    align-items: start;
    position: relative;
    transition: border-color 160ms ease, transform 160ms ease;
}

.pb-phase:hover { border-color: rgba(0, 255, 255, 0.28); transform: translateX(2px); }

.pb-phase__num {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.18), rgba(0, 255, 255, 0.04));
    border: 1px solid rgba(0, 255, 255, 0.32);
    color: var(--pb-cyan);
    display: grid;
    place-items: center;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 700;
    font-size: 1.05rem;
}

.pb-phase__title {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #ffffff;
    margin: 0 0 0.3rem;
    letter-spacing: -0.005em;
}

.pb-phase__meta {
    font-size: 0.85rem;
    color: #d1d5db;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.55rem;
    font-weight: 600;
}

.pb-phase__desc { color: #e5e7eb; line-height: 1.65; margin: 0; font-size: 1.05rem; }

/* --- Author / Trust-Box --------------------------------------------------- */

.pb-author {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 1.7rem;
    background: linear-gradient(140deg, rgba(0, 255, 255, 0.06), rgba(255, 255, 255, 0.02) 60%);
    border: 1px solid rgba(0, 255, 255, 0.22);
    border-radius: 18px;
    align-items: center;
}

@media (min-width: 720px) { .pb-author { grid-template-columns: auto 1fr; } }

.pb-author__avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.4), rgba(0, 255, 255, 0.08));
    border: 1px solid rgba(0, 255, 255, 0.4);
    display: grid;
    place-items: center;
    color: #062424;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 800;
    font-size: 1.9rem;
    box-shadow: 0 0 24px rgba(0, 255, 255, 0.22);
    letter-spacing: -0.01em;
}

/* --- Sticky CTA (Mobile) -------------------------------------------------- */

.pb-sticky-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    padding: 0.7rem 1rem env(safe-area-inset-bottom, 0.7rem);
    display: flex;
    gap: 0.65rem;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--pb-border-strong);
}

@media (min-width: 1024px) { .pb-sticky-cta { display: none; } }

.pb-sticky-cta .pb-btn { flex: 1; padding-block: 0.85rem; }

/* --- Steps / Tools UI ----------------------------------------------------- */

.pb-tool {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.6rem;
}

@media (min-width: 1024px) {
    .pb-tool { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

.pb-stepper {
    display: flex;
    align-items: stretch;
    gap: 0.3rem;
    margin-bottom: 1.6rem;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--pb-border);
    border-radius: 14px;
    padding: 0.4rem;
    overflow: hidden;
}

.pb-stepper__pill {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    padding: 0.7rem 0.7rem 0.7rem 0.55rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #9ca3af;
    background: transparent;
    border: 0;
    transition: color 160ms ease, background-color 160ms ease;
    text-align: left;
    line-height: 1.2;
    /* Labels dürfen weich umbrechen, aber nur an Wortgrenzen oder per
       Hyphenation – kein Character-Level-Break (sonst „Inve sti on"). */
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* Nummer-Bubble vor dem Label – nutzt das bestehende <span> im HTML */
.pb-stepper__pill > span {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--pb-border);
    color: #9ca3af;
    flex: 0 0 auto;
    line-height: 1;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.pb-stepper__pill[data-state="done"] {
    color: var(--pb-cyan);
    background: rgba(0, 255, 255, 0.06);
}

.pb-stepper__pill[data-state="done"] > span {
    background: var(--pb-cyan);
    color: #062424;
    border-color: var(--pb-cyan);
    /* Setzt die Ziffer durch ein Häkchen */
    font-size: 0;
}
.pb-stepper__pill[data-state="done"] > span::before {
    content: '✓';
    font-size: 0.78rem;
    font-family: 'Inter', system-ui, sans-serif;
}

.pb-stepper__pill[data-state="active"] {
    color: #ffffff;
    background: rgba(0, 255, 255, 0.10);
    box-shadow: inset 0 0 0 1px rgba(0, 255, 255, 0.32);
}

.pb-stepper__pill[data-state="active"] > span {
    background: var(--pb-cyan);
    color: #062424;
    border-color: var(--pb-cyan);
    box-shadow: 0 0 14px rgba(0, 255, 255, 0.45);
}

@media (max-width: 720px) {
    .pb-stepper { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .pb-stepper__pill { flex: 0 0 auto; min-width: max-content; }
}

.pb-step {
    display: none;
    flex-direction: column;
    gap: 1.15rem;
}

.pb-step[data-active="true"] { display: flex; }

.pb-field { display: flex; flex-direction: column; gap: 0.5rem; }

.pb-field > label, .pb-field__label {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
}

.pb-field__hint { font-size: 0.95rem; color: var(--pb-text-muted); margin: 0; line-height: 1.5; }

.pb-input,
.pb-select,
.pb-textarea {
    width: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--pb-border-strong);
    border-radius: 12px;
    color: #ffffff;
    font: inherit;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.05rem;
    padding: 0.9rem 1.05rem;
    transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.pb-input:hover, .pb-select:hover, .pb-textarea:hover { border-color: rgba(255, 255, 255, 0.28); }

.pb-input:focus,
.pb-select:focus,
.pb-textarea:focus {
    outline: none;
    border-color: var(--pb-cyan);
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.5);
}

.pb-input[aria-invalid="true"] {
    border-color: var(--pb-danger);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18);
}

.pb-textarea { min-height: 130px; resize: vertical; line-height: 1.55; }

.pb-radio-grid,
.pb-option-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

@media (min-width: 720px) {
    .pb-radio-grid--2 { grid-template-columns: repeat(2, 1fr); }
    .pb-option-grid--2 { grid-template-columns: repeat(2, 1fr); }
    .pb-option-grid--3 { grid-template-columns: repeat(3, 1fr); }
    .pb-option-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.pb-option {
    position: relative;
    padding: 0.95rem 1.05rem;
    border: 1px solid var(--pb-border-strong);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pb-option:hover { border-color: rgba(0, 255, 255, 0.32); background: rgba(0, 0, 0, 0.4); }
.pb-option input { position: absolute; opacity: 0; pointer-events: none; }

.pb-option__title { color: #ffffff; font-weight: 600; font-size: 1.05rem; }
.pb-option__desc { color: #d1d5db; font-size: 0.95rem; line-height: 1.5; }

.pb-option:has(input:checked),
.pb-option[data-checked="true"] {
    border-color: var(--pb-cyan);
    background: rgba(0, 255, 255, 0.08);
    box-shadow: 0 0 0 1px rgba(0, 255, 255, 0.24), 0 0 26px -8px rgba(0, 255, 255, 0.4);
    transform: translateY(-1px);
}

.pb-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    outline: none;
}

/* WICHTIG: -webkit- und -moz-Thumb MÜSSEN getrennte Regeln sein. Ein
   unbekanntes Pseudo-Element in einer Selektor-Liste macht die GESAMTE
   Regel ungültig – kombiniert wären die Thumbs in allen Browsern unstyled. */
.pb-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--pb-cyan);
    border: 2px solid #062424;
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.5);
    cursor: grab;
    transition: transform 120ms ease;
}

.pb-slider::-moz-range-thumb {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--pb-cyan);
    border: 2px solid #062424;
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.5);
    cursor: grab;
    transition: transform 120ms ease;
}

.pb-slider::-webkit-slider-thumb:active { transform: scale(1.1); cursor: grabbing; }
.pb-slider::-moz-range-thumb:active { transform: scale(1.1); cursor: grabbing; }
.pb-slider:focus-visible { outline: 2px solid var(--pb-cyan); outline-offset: 4px; border-radius: 999px; }

.pb-slider-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pb-slider-row__value {
    min-width: 72px;
    text-align: right;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    color: var(--pb-cyan);
    font-weight: 700;
    font-size: 1.1rem;
    font-variant-numeric: tabular-nums;
}

.pb-step-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

/* Wenn beide Buttons (Zurück + Weiter) vorhanden sind, teilen sie sich die
   Zeile und nehmen jeweils die volle Hälfte ein. Der Weiter-Button füllt das
   gesamte Segment, statt rechts in der Ecke „verloren" zu wirken. */
.pb-step-actions:has(.pb-btn + .pb-btn) {
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
}

.pb-step-actions .pb-btn {
    width: 100%;
    padding-block: 1rem;
    font-size: 1.05rem;
}

/* Der „Zurück"-Button ist in der zweispaltigen Variante schmaler, der
   Weiter-/Finish-Button nimmt den Rest. */
.pb-step-actions:has(.pb-btn + .pb-btn) .pb-btn--ghost {
    width: auto;
    min-width: 9rem;
    padding-inline: 1.4rem;
}

/* Drei Aktionen (Zurück + Zum Ergebnis + Weiter-Link): Ghost-Buttons schmal,
   der primäre Journey-Link bekommt den restlichen Platz. */
.pb-step-actions:has(.pb-btn + .pb-btn + .pb-btn) {
    grid-template-columns: minmax(0, auto) minmax(0, auto) minmax(0, 1fr);
}

.pb-step-actions:has(.pb-btn + .pb-btn + .pb-btn) .pb-btn--ghost {
    min-width: 0;
    padding-inline: 1.1rem;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .pb-step-actions:has(.pb-btn + .pb-btn),
    .pb-step-actions:has(.pb-btn + .pb-btn + .pb-btn) {
        grid-template-columns: 1fr;
    }
    .pb-step-actions:has(.pb-btn + .pb-btn) .pb-btn--ghost { width: 100%; }
}

/* --- Result-Karte --------------------------------------------------------- */

.pb-result {
    background: linear-gradient(155deg, rgba(0, 255, 255, 0.08), rgba(0, 0, 0, 0) 60%), rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.32);
    border-radius: 18px;
    padding: 1.6rem 1.6rem 1.4rem;
    box-shadow: 0 0 36px -10px rgba(0, 255, 255, 0.32);
    position: sticky;
    top: 6rem;
}

.pb-result__eyebrow {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.82rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pb-cyan);
    margin: 0 0 0.6rem;
    font-weight: 700;
}

.pb-result__amount {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4.2vw, 2.85rem);
    line-height: 1.05;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.025em;
    font-feature-settings: "tnum" 1, "lnum" 1;
    font-variant-numeric: tabular-nums lining-nums;
}

.pb-result__sub { color: #d1d5db; margin: 0.5rem 0 1.25rem; font-size: 1.05rem; line-height: 1.5; }

.pb-result__breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin: 0 0 1.2rem;
    padding: 0;
    list-style: none;
}

.pb-result__breakdown li {
    display: flex;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.65rem 0;
    border-bottom: 1px dashed var(--pb-border);
    font-size: 1.02rem;
    color: #e5e7eb;
    line-height: 1.45;
}

.pb-result__breakdown li:last-child { border-bottom: 0; }
.pb-result__breakdown li strong { color: #ffffff; font-weight: 600; }

.pb-result__row-value { color: var(--pb-cyan); font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; font-variant-numeric: tabular-nums; }

.pb-result__cta-stack { display: flex; flex-direction: column; gap: 0.55rem; }

@media (max-width: 1023px) { .pb-result { position: static; } }

/* --- Hero-Side-Card („Was rechnen wir?", „Was prüft das?" usw.) ----------
   Wird im Hero-Grid direkt neben der Headline platziert. Streckt sich auf
   die volle Höhe der Hero-Spalte und nutzt eine deutlich größere Typo als
   die alten Inline-Karten. */

.pb-aside-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    height: 100%;
    padding: 1.6rem 1.7rem;
    background: var(--pb-card);
    border: 1px solid var(--pb-border);
    border-radius: 16px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    justify-content: center;
}

.pb-aside-card__head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--pb-cyan);
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.005em;
}

.pb-aside-card__head .material-symbols-outlined {
    font-size: 22px;
}

.pb-aside-card__title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.25;
    margin: 0;
}

.pb-aside-card__body {
    color: #e5e7eb;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

.pb-aside-card__body p { margin: 0 0 0.7rem; }
.pb-aside-card__body p:last-child { margin-bottom: 0; }
.pb-aside-card__body strong { color: #ffffff; font-weight: 600; }

@media (max-width: 1023px) {
    .pb-aside-card { height: auto; }
}

/* Definition-Liste für Glossar / Erklärungen unter der Side-Card */
.pb-glossary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin: 0.4rem 0 0;
    padding: 0;
    font-size: 0.98rem;
}

.pb-glossary dt {
    color: #ffffff;
    font-weight: 600;
}

.pb-glossary dd {
    color: #d1d5db;
    margin: 0 0 0.35rem;
    line-height: 1.55;
}

.pb-glossary dd:last-child { margin-bottom: 0; }

/* --- Form: Beratungs-Banner mit Tool-Daten -------------------------------- */

.pb-prefill {
    background: rgba(0, 255, 255, 0.06);
    border: 1px dashed rgba(0, 255, 255, 0.4);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    margin-bottom: 1.3rem;
}

.pb-prefill h4 {
    margin: 0 0 0.65rem;
    color: var(--pb-cyan);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pb-prefill ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.pb-prefill li { color: #e5e7eb; font-size: 1.02rem; display: flex; gap: 0.6rem; line-height: 1.5; }
.pb-prefill .pb-prefill__label { min-width: 11ch; color: #d1d5db; font-weight: 600; }

.pb-prefill__actions { margin-top: 0.85rem; display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* --- Risiko-Anzeige (Genehmigungs-Tool) ----------------------------------- */

.pb-risk {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.pb-risk__bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.pb-risk__seg {
    height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.07);
}

.pb-risk[data-level="green"]  .pb-risk__seg:nth-child(-n+1) { background: var(--pb-success); }
.pb-risk[data-level="yellow"] .pb-risk__seg:nth-child(-n+2) { background: var(--pb-warn); }
.pb-risk[data-level="orange"] .pb-risk__seg:nth-child(-n+3) { background: var(--pb-orange); }
.pb-risk[data-level="red"]    .pb-risk__seg                 { background: var(--pb-danger); }

/* --- SVG / Chart-Wrap ----------------------------------------------------- */

.pb-chart-wrap {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--pb-border);
    border-radius: 14px;
    padding: 1rem;
    margin-top: 1.1rem;
}

.pb-chart-wrap svg { display: block; width: 100%; height: auto; }

/* --- Animationen / Reveal-on-scroll ------------------------------------- */

@keyframes pb-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pb-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 600ms ease, transform 600ms ease;
    /* CSS fallback: auch ohne JS oder PHP-Verarbeitung wird der Inhalt nach
       kurzer Zeit sichtbar, damit die Seite nie als „leeres Fenster" erscheint. */
    animation: pb-reveal-fallback 700ms ease 1200ms forwards;
}

.pb-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    animation: none;
}

@keyframes pb-reveal-fallback {
    to { opacity: 1; transform: translateY(0); }
}

.pb-pulse {
    animation: pb-pulse 2.4s ease-in-out infinite;
}

@keyframes pb-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.45); }
    50%      { box-shadow: 0 0 0 14px rgba(0, 255, 255, 0); }
}

/* --- Court-Hero-Illustration --------------------------------------------- */

.pb-court-illu {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 30px 60px rgba(0, 255, 255, 0.18));
}

@keyframes pb-blink {
    0%, 92%, 100% { opacity: 0.85; }
    96%           { opacity: 0.2; }
}

.pb-court-illu .pb-court-light { animation: pb-blink 6s ease-in-out infinite; }

/* --- Seiten-Shell + alternative Hero-Variante -----------------------------
   Wird von Beratung, FAQ und den Zielgruppen-Seiten genutzt (pb-page,
   pb-hero, pb-h1). Vorher fehlten diese Klassen komplett – durch den
   Tailwind-Preflight (h1 { font-size: inherit }) wirkten die Headlines
   dort wie Fließtext. */

.pb-page {
    position: relative;
}

.pb-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.pb-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(900px 480px at 78% -8%, rgba(0, 255, 255, 0.13), transparent 58%),
        radial-gradient(720px 380px at 12% 18%, rgba(255, 255, 0, 0.05), transparent 60%);
}

.pb-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
    opacity: 0.7;
}

.pb-h1 {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.06;
    color: #ffffff;
    font-size: clamp(2.2rem, 4.6vw, 3.4rem);
    font-feature-settings: "tnum" 1, "lnum" 1;
}

.pb-h1__accent {
    color: var(--pb-cyan);
    text-shadow: 0 0 32px rgba(0, 255, 255, 0.35);
}

/* --- Journey-Leiste (Bau-Reise) -------------------------------------------
   Wird per JS in #pb-journey gerendert. Zeigt die 5 Schritte mit
   Erledigt-Status + dezenten Beratungs-Exit rechts. */

.pb-journey {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.65rem 0.9rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--pb-border);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.pb-journey__steps {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 1 1 auto;
    min-width: 0;
}

.pb-journey__steps::-webkit-scrollbar { display: none; }

.pb-journey__item {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

/* Verbinder-Linie zwischen den Schritten */
.pb-journey__item + .pb-journey__item::before {
    content: '';
    width: 1.4rem;
    height: 1px;
    background: var(--pb-border-strong);
    margin: 0 0.3rem;
    flex: 0 0 auto;
}

.pb-journey__item[data-state="done"] + .pb-journey__item::before,
.pb-journey__item[data-state="active"] + .pb-journey__item::before {
    background: rgba(0, 255, 255, 0.45);
}

.pb-journey__step {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.7rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--pb-text-muted);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: color 140ms ease, background-color 140ms ease;
}

.pb-journey__step:hover { color: #ffffff; background: rgba(255, 255, 255, 0.05); }

.pb-journey__bubble {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--pb-border);
    color: var(--pb-text-muted);
    flex: 0 0 auto;
    transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.pb-journey__bubble .material-symbols-outlined { font-size: 15px; }

.pb-journey__item[data-state="done"] .pb-journey__step { color: var(--pb-cyan); }

.pb-journey__item[data-state="done"] .pb-journey__bubble {
    background: var(--pb-cyan);
    border-color: var(--pb-cyan);
    color: #062424;
}

.pb-journey__item[data-state="active"] .pb-journey__step {
    color: #ffffff;
    background: rgba(0, 255, 255, 0.10);
    box-shadow: inset 0 0 0 1px rgba(0, 255, 255, 0.32);
}

.pb-journey__item[data-state="active"] .pb-journey__bubble {
    background: var(--pb-cyan);
    border-color: var(--pb-cyan);
    color: #062424;
    box-shadow: 0 0 14px rgba(0, 255, 255, 0.45);
}

/* Exit: bewusst dezent (Sekundär-Weg). Der präferierte Weg bleibt die Reise. */
.pb-journey__exit {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    text-decoration: none;
    flex: 0 0 auto;
    padding: 0.35rem 0.25rem;
}

.pb-journey__exit-hint { color: var(--pb-text-dim); font-size: 0.85rem; }

.pb-journey__exit-cta {
    color: var(--pb-text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 140ms ease;
}

.pb-journey__exit:hover .pb-journey__exit-cta { color: var(--pb-cyan); }

@media (max-width: 720px) {
    .pb-journey { flex-direction: column; align-items: stretch; gap: 0.4rem; }
    .pb-journey__exit { justify-content: flex-end; }
}

/* Abstand-Helfer für den Journey-Mount unter dem Hero */
.pb-journey-mount { margin-top: clamp(1.2rem, 2.5vw, 2rem); }

/* --- "Dein Projekt-Stand"-Karte (Hub) -------------------------------------- */

.pb-project {
    margin-top: 1rem;
    padding: 1.15rem 1.3rem;
    border-radius: 16px;
    background: linear-gradient(150deg, rgba(0, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 55%);
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 32px -12px rgba(0, 255, 255, 0.35);
    text-align: left;
}

.pb-project__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}

.pb-project__title {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.pb-project__title .material-symbols-outlined { color: var(--pb-cyan); }

.pb-project__progress {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.8rem;
    color: var(--pb-cyan);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pb-project__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pb-project__chip {
    display: inline-flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.5rem 0.85rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--pb-border-strong);
    min-width: 8rem;
}

.pb-project__chip[data-tone="green"]  { border-color: rgba(74, 222, 128, 0.4); }
.pb-project__chip[data-tone="yellow"] { border-color: rgba(250, 204, 21, 0.4); }
.pb-project__chip[data-tone="orange"] { border-color: rgba(251, 146, 60, 0.45); }
.pb-project__chip[data-tone="red"]    { border-color: rgba(248, 113, 113, 0.45); }

.pb-project__chip-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pb-text-muted);
    font-weight: 600;
}

.pb-project__chip-value {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 700;
    font-size: 0.98rem;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

.pb-project__actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.pb-project__actions .pb-btn { padding: 0.75rem 1.1rem; font-size: 0.95rem; }

.pb-project__reset {
    background: none;
    border: 0;
    color: var(--pb-text-dim);
    font-size: 0.85rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    margin-left: auto;
    padding: 0.4rem 0.2rem;
    transition: color 140ms ease;
}

.pb-project__reset:hover { color: var(--pb-danger); }

/* --- Info-Disclosure ("Was rechnen wir?" oberhalb der Tools) --------------- */

.pb-info-disclosure {
    border: 1px solid var(--pb-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    margin-bottom: 1.4rem;
    overflow: hidden;
    transition: border-color 160ms ease;
}

.pb-info-disclosure[open] { border-color: rgba(0, 255, 255, 0.3); }

.pb-info-disclosure > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.15rem;
    color: var(--pb-cyan);
    font-weight: 700;
    font-size: 1rem;
}

.pb-info-disclosure > summary::-webkit-details-marker { display: none; }

.pb-info-disclosure > summary .pb-info-disclosure__chev {
    margin-left: auto;
    transition: transform 160ms ease;
    color: var(--pb-text-muted);
}

.pb-info-disclosure[open] > summary .pb-info-disclosure__chev { transform: rotate(180deg); }

.pb-info-disclosure__body {
    padding: 0 1.15rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

/* --- Kosten-Split-Balken in der Ergebnis-Karte ------------------------------ */

.pb-result__breakdown li:has(.pb-result__rowtop) { display: block; }

.pb-result__rowtop {
    display: flex;
    justify-content: space-between;
    gap: 0.85rem;
}

.pb-result__bar {
    display: block;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.07);
    margin-top: 0.45rem;
    overflow: hidden;
}

.pb-result__barfill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 2px;
    background: linear-gradient(90deg, #00ffff, #7df9ff);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
    transition: width 420ms cubic-bezier(.22, 1, .36, 1);
}

/* --- Zahlen-Pills (Court-Anzahl u. ä.) ------------------------------------ */

.pb-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.pb-pillnum {
    min-width: 2.8rem;
    height: 2.8rem;
    padding: 0 0.6rem;
    border-radius: 12px;
    border: 1px solid var(--pb-border-strong);
    background: rgba(0, 0, 0, 0.25);
    color: #d1d5db;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 700;
    font-size: 1.02rem;
    cursor: pointer;
    display: inline-grid;
    place-items: center;
    transition: border-color 130ms ease, background-color 130ms ease, color 130ms ease, transform 130ms ease, box-shadow 130ms ease;
    font-variant-numeric: tabular-nums;
}

.pb-pillnum:hover {
    border-color: rgba(0, 255, 255, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
}

.pb-pillnum[data-selected="true"] {
    background: var(--pb-cyan);
    border-color: var(--pb-cyan);
    color: #062424;
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.4);
    transform: translateY(-1px);
}

.pb-pillnum:focus-visible {
    outline: 2px solid var(--pb-cyan);
    outline-offset: 2px;
}

/* --- Schritt-Übergang: weicher Einstieg statt hartem Umschalten ----------- */

@keyframes pb-step-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pb-step[data-active="true"] { animation: pb-step-in 220ms ease; }

/* --- Options-Karten: sichtbares Häkchen auf der gewählten Karte ----------- */

.pb-option::after {
    content: '✓';
    position: absolute;
    top: 0.65rem;
    right: 0.7rem;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.82rem;
    font-weight: 800;
    color: #062424;
    background: var(--pb-cyan);
    box-shadow: 0 0 14px rgba(0, 255, 255, 0.45);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 150ms ease, transform 150ms ease;
    pointer-events: none;
}

.pb-option:has(input:checked)::after,
.pb-option[data-checked="true"]::after {
    opacity: 1;
    transform: scale(1);
}

/* --- Gradient-Akzent in den Display-Headlines ------------------------------ */

.pb-display .text-primary,
.pb-h1__accent {
    background: linear-gradient(100deg, #00ffff 5%, #9efcff 48%, #00d9ff 95%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 0 22px rgba(0, 255, 255, 0.28));
}

/* --- Ergebnis-Karte: Akzentlinie oben -------------------------------------- */

.pb-result { overflow: hidden; }

.pb-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.85), transparent);
    opacity: 0.9;
    pointer-events: none;
}

/* Hints in den Tools etwas leiser, damit die Frage selbst führt */
.pb-field__hint { font-size: 0.9rem; color: #8b94a3; }

/* --- Feinschliff / Wow-Details --------------------------------------------- */

/* Akzentlinie oben auf Karten beim Hover – mehr Tiefe ohne Unruhe */
.pb-card::after {
    content: '';
    position: absolute;
    top: 0; left: 12%; right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.55), transparent);
    opacity: 0;
    transition: opacity 220ms ease;
    pointer-events: none;
}

.pb-card:hover::after { opacity: 1; }

/* Tastatur-Fokus sichtbar machen */
.pb-btn:focus-visible,
.pb-option:focus-within,
.pb-journey__step:focus-visible,
.pb-stepper__pill:focus-visible {
    outline: 2px solid var(--pb-cyan);
    outline-offset: 2px;
}

/* Ergebnis-Zahl „tickt" beim Update kurz auf */
@keyframes pb-value-pop {
    0%   { transform: scale(0.985); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

.pb-result__amount.is-updating { animation: pb-value-pop 260ms ease; }

/* Benchmark-/Hinweis-Note in der Ergebnis-Karte */
.pb-result__note {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    background: rgba(250, 204, 21, 0.07);
    border: 1px solid rgba(250, 204, 21, 0.28);
    color: #fde68a;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 1.1rem;
}

.pb-result__note .material-symbols-outlined { font-size: 18px; flex: 0 0 auto; margin-top: 1px; }

/* --- Reduced-motion Override --------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .pb-reveal { opacity: 1; transform: none; transition: none; animation: none; }
    .pb-pulse, .pb-court-illu .pb-court-light, .pb-hero-spot { animation: none !important; }
    .pb-result__amount.is-updating { animation: none; }
    .pb-step[data-active="true"] { animation: none; }
}

/* ============================================================
   Maß-Eingabe (Flächenplaner): große Zahlenfelder statt Slider
   ============================================================ */
.pb-measure-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.pb-measure {
    display: block;
    cursor: text;
}

.pb-measure__label {
    display: block;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.45rem;
}

.pb-measure__box {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    background: rgba(0, 255, 255, 0.04);
    border: 1px solid rgba(0, 255, 255, 0.22);
    border-radius: 14px;
    padding: 0.85rem 1.1rem;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.pb-measure__box:focus-within {
    border-color: var(--pb-cyan);
    background: rgba(0, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.14), 0 0 24px rgba(0, 255, 255, 0.12);
}

.pb-measure__box input {
    width: 100%;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: none;
    color: var(--pb-cyan);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.1;
    -moz-appearance: textfield;
    appearance: textfield;
}

.pb-measure__box input::-webkit-outer-spin-button,
.pb-measure__box input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pb-measure__unit {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 1rem;
    font-weight: 700;
    color: rgba(0, 255, 255, 0.55);
    flex: 0 0 auto;
}

.pb-measure__range {
    display: block;
    font-size: 0.78rem;
    color: #6b7280;
    margin-top: 0.4rem;
}

@media (max-width: 480px) {
    .pb-measure-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Klickbare Preset-Karten (z. B. Distanz-Schnellwahl)
   ============================================================ */
.pb-preset {
    display: block;
    width: 100%;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--pb-border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.pb-preset:hover {
    border-color: rgba(0, 255, 255, 0.4);
    background: rgba(0, 255, 255, 0.05);
    transform: translateY(-2px);
}

.pb-preset__label {
    display: block;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.pb-preset__value {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: #e5e7eb;
}

.pb-preset[data-active="true"] {
    border-color: var(--pb-cyan);
    background: rgba(0, 255, 255, 0.09);
    box-shadow: inset 0 0 0 1px rgba(0, 255, 255, 0.3);
}

.pb-preset[data-active="true"] .pb-preset__label { color: var(--pb-cyan); }
