/* ============================================================
   BASIRA — Design System "Innere Einsicht"
   Dunkles Premium-Glas · Smaragd-Akzent · Playfair Display + Inter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ---------- Tokens ---------- */
:root {
    --bg: #060a14;
    --bg-deep: #03060d;
    --surface: rgba(17, 24, 39, 0.55);
    --surface-strong: rgba(17, 24, 39, 0.82);
    --surface-hover: rgba(28, 38, 58, 0.65);
    --border: rgba(148, 163, 184, 0.14);
    --border-strong: rgba(148, 163, 184, 0.28);
    --text: #eef2f9;
    --text-soft: #aab6c9;
    --text-faint: #76839a;
    --accent: #34d399;
    --accent-strong: #10b981;
    --accent-deep: #059669;
    --accent-soft: rgba(52, 211, 153, 0.12);
    --accent-glow: rgba(16, 185, 129, 0.35);
    --teal: #2dd4bf;
    --violet: #8b5cf6;
    --danger: #f87171;
    --danger-soft: rgba(248, 113, 113, 0.12);
    --warn: #fbbf24;
    --warn-soft: rgba(251, 191, 36, 0.12);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --shadow-card: 0 8px 32px rgba(2, 6, 16, 0.45);
    --shadow-glow: 0 0 0 1px rgba(52, 211, 153, 0.25), 0 8px 40px rgba(16, 185, 129, 0.18);
    --font-display: "Playfair Display", Georgia, serif;
    --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & Grundfläche ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100dvh;
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 900px 600px at 12% -10%, rgba(16, 185, 129, 0.13), transparent 60%),
        radial-gradient(ellipse 800px 600px at 95% 8%, rgba(45, 212, 191, 0.10), transparent 55%),
        radial-gradient(ellipse 900px 700px at 70% 110%, rgba(139, 92, 246, 0.09), transparent 60%),
        linear-gradient(180deg, var(--bg-deep), var(--bg) 40%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.25;
    margin: 0 0 0.4em;
    color: var(--text);
}

h1 { font-size: 1.7rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.18rem; }
h4 { margin: 0 0 0.4em; font-weight: 600; }

p { margin: 0 0 0.7em; }

a { color: var(--accent); text-decoration: none; transition: color 180ms var(--ease); }
a:hover { color: #6ee7b7; }

::selection { background: rgba(16, 185, 129, 0.35); color: #fff; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- App-Shell ---------- */
.shell {
    display: grid;
    grid-template-columns: 264px 1fr;
    min-height: 100dvh;
}

/* ---------- Sidebar ---------- */
.sidebar {
    position: sticky;
    top: 0;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    padding: 1.8rem 1.2rem 1.4rem;
    background: linear-gradient(185deg, rgba(13, 19, 33, 0.92), rgba(8, 12, 22, 0.88));
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-right: 1px solid var(--border);
    overflow-y: auto;
}

.brand-mark {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0;
    background: linear-gradient(110deg, #f8fafc 20%, #6ee7b7 60%, #2dd4bf 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 44px rgba(52, 211, 153, 0.25);
}

.brand-claim {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.92rem;
    color: var(--text-soft);
    margin: 0.15rem 0 0;
}

.sidebar .eyebrow { margin-bottom: 0.2rem; }

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.9rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-user .avatar {
    width: 30px;
    height: 30px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 600;
    color: #052e1f;
    background: linear-gradient(135deg, #6ee7b7, #2dd4bf);
}

.sidebar-user span { font-size: 0.85rem; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Navigation */
.nav { display: flex; flex-direction: column; gap: 0.18rem; flex: 1; }

.nav a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.62rem 0.8rem;
    border-radius: var(--radius-sm);
    color: var(--text-soft);
    font-size: 0.92rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}

.nav a svg { width: 17px; height: 17px; flex: none; opacity: 0.75; transition: opacity 180ms var(--ease); }

.nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.045);
    transform: translateX(2px);
}
.nav a:hover svg { opacity: 1; }

.nav a.active {
    color: #d1fae5;
    background: linear-gradient(120deg, rgba(16, 185, 129, 0.16), rgba(45, 212, 191, 0.08));
    border-color: rgba(52, 211, 153, 0.28);
    box-shadow: inset 0 0 18px rgba(16, 185, 129, 0.08), 0 0 22px rgba(16, 185, 129, 0.10);
}
.nav a.active svg { opacity: 1; color: var(--accent); }

.nav-section {
    margin: 0.9rem 0 0.25rem;
    padding: 0 0.8rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* ---------- Inhalt ---------- */
.content {
    padding: 2.4rem 2.8rem 4rem;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    animation: fadeUp 480ms var(--ease) both;
}

.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.9rem;
    padding-bottom: 1.3rem;
    border-bottom: 1px solid var(--border);
}

.page-header h2 {
    margin-bottom: 0;
    background: linear-gradient(100deg, #f8fafc 30%, #a7f3d0 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.eyebrow {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 0.3rem;
}

.muted { color: var(--text-soft); font-size: 0.92rem; }

.divider { border: none; border-top: 1px solid var(--border); margin: 1.6rem 0; }

/* ---------- Vertikaler Rhythmus zwischen Sektionen ---------- */
/* Jede Top-Level-Sektion bekommt Luft nach unten; sonst kleben Karten aneinander. */
.content > section { margin-bottom: 1.75rem; }
.content > section:last-child { margin-bottom: 0; }

/* ---------- Grids & Stacks ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stack { display: flex; flex-direction: column; gap: 1.2rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.actions-cell { display: flex; gap: 0.45rem; flex-wrap: wrap; }

/* ---------- Karten ---------- */
.card {
    position: relative;
    padding: 1.65rem 1.8rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: linear-gradient(170deg, rgba(30, 41, 59, 0.42), rgba(15, 23, 42, 0.55));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-card);
    transition: transform 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease);
    animation: fadeUp 540ms var(--ease) both;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    border-radius: var(--radius) var(--radius) 0 0;
    background: linear-gradient(90deg, transparent, rgba(110, 231, 183, 0.35), transparent);
    opacity: 0;
    transition: opacity 240ms var(--ease);
}

.card:hover { border-color: var(--border-strong); }
.card:hover::before { opacity: 1; }

.grid .card:nth-child(2) { animation-delay: 60ms; }
.grid .card:nth-child(3) { animation-delay: 120ms; }
.grid .card:nth-child(4) { animation-delay: 180ms; }

.card h3 { margin-bottom: 0.75rem; }

.card-link { display: block; color: inherit; cursor: pointer; }
.card-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    color: inherit;
}

.success-card {
    border-color: rgba(52, 211, 153, 0.35);
    background: linear-gradient(170deg, rgba(6, 78, 59, 0.35), rgba(15, 23, 42, 0.6));
}

.metric {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 1.1;
    margin: 0.1rem 0 0.35rem;
    background: linear-gradient(120deg, #ffffff, #6ee7b7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
button, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.62rem 1.25rem;
    min-height: 44px;
    font-family: var(--font-ui);
    font-size: 0.92rem;
    font-weight: 600;
    color: #052e1f;
    background: linear-gradient(120deg, #34d399, #10b981 55%, #0ea5a4);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 4px 22px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), filter 180ms var(--ease);
}

button:hover, .button:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 6px 30px rgba(16, 185, 129, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: #052e1f;
}

button:active, .button:active { transform: translateY(0) scale(0.98); }

button:disabled, .button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button.secondary, button.secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-strong);
    box-shadow: none;
    backdrop-filter: blur(8px);
}

.button.secondary:hover, button.secondary:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(110, 231, 183, 0.45);
    color: #d1fae5;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.12);
}

.ghost, button.ghost {
    color: var(--text-soft);
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
    padding: 0.45rem 0.85rem;
}

.ghost:hover, button.ghost:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    filter: none;
}

.small, .button.small, button.small { min-height: 36px; padding: 0.35rem 0.9rem; font-size: 0.84rem; }

/* ---------- Formulare ---------- */
label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--text-soft);
}

input, select, textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    color: var(--text);
    background: rgba(2, 6, 16, 0.55);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}

input::placeholder, textarea::placeholder { color: var(--text-faint); }

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(2, 6, 16, 0.75);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

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

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aab6c9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 15px;
    padding-right: 2.4rem;
}

.field-help { font-size: 0.8rem; color: var(--text-faint); margin: 0.25rem 0 0; }

/* ---------- Listen & Tabellen ---------- */
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }

.list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.9rem;
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--border);
}

.list li:last-child { border-bottom: none; }

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }

th {
    text-align: left;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid var(--border-strong);
}

td { padding: 0.9rem 0.9rem; border-bottom: 1px solid var(--border); vertical-align: top; }

tr { transition: background 160ms var(--ease); }
tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

/* ---------- Status & Alerts ---------- */
.alert {
    padding: 0.85rem 1.05rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(248, 113, 113, 0.4);
    background: var(--danger-soft);
    color: #fecaca;
    font-size: 0.92rem;
}

.status, .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-soft);
}

.status-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.status-badge.success { color: #6ee7b7; border-color: rgba(52, 211, 153, 0.4); background: var(--accent-soft); }
.status-badge.error { color: #fca5a5; border-color: rgba(248, 113, 113, 0.4); background: var(--danger-soft); }
.status-badge.missing { color: #fcd34d; border-color: rgba(251, 191, 36, 0.4); background: var(--warn-soft); }
.status-badge.configured { color: #7dd3fc; border-color: rgba(125, 211, 252, 0.4); background: rgba(125, 211, 252, 0.1); }

/* ---------- Onboarding-Banner ---------- */
.guide-banner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 1.5rem 1.6rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(52, 211, 153, 0.3);
    background:
        radial-gradient(ellipse 500px 200px at 90% 0%, rgba(16, 185, 129, 0.14), transparent),
        linear-gradient(170deg, rgba(15, 23, 42, 0.8), rgba(8, 12, 22, 0.75));
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-card);
}

.guide-grid { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.guide-grid .ghost {
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 0.84rem;
}

/* ---------- Provider-Karten (Einstellungen) ---------- */
.provider-grid { align-items: stretch; }
.provider-card { display: flex; flex-direction: column; gap: 0.5rem; }
.provider-head { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }

.steps { padding-left: 1.2rem; line-height: 1.9; }

/* ---------- Login ---------- */
.login-body {
    display: grid;
    place-items: center;
    padding: 2rem 1.2rem;
    background-color: var(--bg-deep);
    background-image:
        radial-gradient(ellipse 700px 500px at 20% 15%, rgba(16, 185, 129, 0.16), transparent 60%),
        radial-gradient(ellipse 600px 500px at 85% 80%, rgba(139, 92, 246, 0.12), transparent 60%),
        radial-gradient(ellipse 500px 400px at 70% 20%, rgba(45, 212, 191, 0.10), transparent 55%);
}

.login-card {
    width: min(430px, 100%);
    padding: 2.6rem 2.4rem 2.4rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-strong);
    background: linear-gradient(170deg, rgba(20, 28, 46, 0.78), rgba(10, 15, 28, 0.85));
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    box-shadow: 0 24px 80px rgba(2, 6, 16, 0.7), 0 0 60px rgba(16, 185, 129, 0.07);
    animation: loginIn 640ms var(--ease) both;
    text-align: center;
}

.login-brand {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    background: linear-gradient(110deg, #f8fafc 15%, #6ee7b7 55%, #2dd4bf 85%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 60px rgba(52, 211, 153, 0.3);
}

.login-claim {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-soft);
    margin-bottom: 1.8rem;
}

.login-card form { text-align: left; margin-top: 1.4rem; }
.login-card .alert { text-align: left; margin-top: 1rem; }
.login-card button { width: 100%; margin-top: 0.4rem; }

.login-footnote { margin-top: 1.5rem; font-size: 0.78rem; color: var(--text-faint); }

/* ---------- Hero & Erklär-Fluss ---------- */
.hero-panel {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem 2.2rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(52, 211, 153, 0.25);
    background:
        radial-gradient(ellipse 600px 260px at 85% 10%, rgba(16, 185, 129, 0.16), transparent),
        linear-gradient(170deg, rgba(15, 23, 42, 0.82), rgba(8, 12, 22, 0.78));
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-card);
    animation: fadeUp 480ms var(--ease) both;
}

.hero-panel h2 { font-size: 1.7rem; }
.hero-panel .actions { margin-top: 1.1rem; }

.flow-strip {
    display: flex;
    align-items: stretch;
    gap: 0.7rem;
    margin-bottom: 1.6rem;
    animation: fadeUp 520ms var(--ease) both;
}

.hero-flow { margin-bottom: 0; flex-direction: column; gap: 0.4rem; }
.hero-flow .flow-arrow { transform: rotate(90deg); align-self: flex-start; margin-left: 0.95rem; }

.flow-step {
    flex: 1;
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.flow-step p { margin: 0.1rem 0 0; font-size: 0.84rem; }

.flow-num {
    flex: none;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    color: #052e1f;
    background: linear-gradient(135deg, #6ee7b7, #2dd4bf);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
}

.flow-arrow { align-self: center; color: var(--accent); opacity: 0.7; font-size: 1.1rem; }

/* ---------- Live-Lauf & Fortschritt ---------- */
.run-live { border-color: rgba(52, 211, 153, 0.3); }

.run-live-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.25rem;
}

.run-live-hint { margin-left: auto; font-size: 0.8rem; }

.progress {
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 0.85rem;
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #10b981, #2dd4bf, #6ee7b7);
    background-size: 200% 100%;
    animation: progressShimmer 2.2s linear infinite;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.5);
    transition: width 600ms var(--ease);
}

@keyframes progressShimmer {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

.status-badge.running { color: #5eead4; border-color: rgba(45, 212, 191, 0.45); background: rgba(45, 212, 191, 0.1); }
.status-badge.running::before { animation: pulseDot 1.4s ease-in-out infinite; }

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

/* ---------- Ergebnis-Darstellung ---------- */
.result-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.result-hero {
    margin-bottom: 1.4rem;
    border-color: rgba(52, 211, 153, 0.35);
}

.result-hero h3 {
    font-size: 1.45rem;
    font-style: italic;
    background: linear-gradient(100deg, #f8fafc 30%, #a7f3d0 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}
.card-head h3 { margin-bottom: 0; }

pre {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--text-soft);
    background: rgba(2, 6, 16, 0.45);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0 0 0.8rem;
}

pre.readable { color: var(--text); line-height: 1.65; }

audio { margin-bottom: 1rem; border-radius: 999px; }

/* ---------- Timeline & Details ---------- */
.timeline li { align-items: flex-start; }
.timeline-time { flex: none; font-size: 0.75rem; white-space: nowrap; }

details { margin-top: 0.6rem; }

summary {
    cursor: pointer;
    color: var(--text-soft);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.4rem 0;
    transition: color 160ms var(--ease);
}
summary:hover { color: var(--text); }
details[open] summary { color: var(--accent); margin-bottom: 0.5rem; }

/* ---------- Checkbox-Zeile ---------- */
.check-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    cursor: pointer;
}

.check-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 0.15rem;
    flex: none;
    accent-color: var(--accent-strong);
    cursor: pointer;
}

.check-row span { font-size: 0.9rem; color: var(--text); font-weight: 400; }

/* ---------- Animationen ---------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes loginIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .grid.three, .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
    .hero-panel { grid-template-columns: 1fr; }
    .hero-flow { flex-direction: row; }
    .hero-flow .flow-arrow { transform: none; align-self: center; margin-left: 0; }
}

@media (max-width: 860px) {
    .shell { grid-template-columns: 1fr; }
    .flow-strip { flex-direction: column; }
    .flow-arrow { transform: rotate(90deg); align-self: flex-start; margin-left: 0.95rem; }
    .sidebar {
        position: static;
        height: auto;
        flex-direction: column;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .nav { flex-direction: row; flex-wrap: wrap; }
    .nav a { padding: 0.5rem 0.7rem; }
    .nav-section { display: none; }
    .content { padding: 1.6rem 1.2rem 3rem; }
    .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
    .page-header { align-items: flex-start; flex-direction: column; }
}
