/* =========================================================
   PHAGENA – Design-System
   Dunkles, wissenschaftliches Design mit Cyan/Blau/Pink-Akzenten
   ========================================================= */

:root {
    --bg: #050b16;
    --bg-2: #081326;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-2: rgba(255, 255, 255, 0.06);
    --border: rgba(148, 190, 255, 0.13);
    --border-strong: rgba(148, 190, 255, 0.25);
    --text: #e8f0fc;
    --muted: #9aabc5;
    --faint: #7486a6;
    --cyan: #3ad6ff;
    --blue: #2f7dff;
    --pink: #ff4f9a;
    --green: #46d6b0;
    --amber: #ffc24d;
    --radius: 22px;
    --maxw: 1180px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --font-head: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--cyan); }
p { margin: 0 0 1em; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0;
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.grad {
    background: linear-gradient(95deg, var(--cyan) 0%, var(--blue) 45%, var(--pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 1000;
    background: #fff;
    color: #000;
    padding: 8px 14px;
    border-radius: 8px;
}
.skip-link:focus { left: 8px; }

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    border: 0;
    font: 600 1rem/1 var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background-color 0.3s ease, border-color 0.3s ease;
}

.btn svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #03101f;
    box-shadow: 0 12px 32px -10px rgba(58, 214, 255, 0.65);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -10px rgba(58, 214, 255, 0.8);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover {
    border-color: var(--cyan);
    transform: translateY(-2px);
}

/* LinkedIn: Markenfarbe, damit der Knopf auf den ersten Blick erkannt wird */
.btn-linkedin {
    background: #0a66c2;
    color: #fff;
    box-shadow: 0 12px 32px -12px rgba(10, 102, 194, 0.7);
}
.btn-linkedin:hover {
    background: #004182;
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -12px rgba(10, 102, 194, 0.85);
}
/* Das Logo bleibt stehen – das Verschieben gilt nur für die Pfeil-Symbole */
.btn-linkedin svg { width: 20px; height: 20px; }
.btn-linkedin:hover svg { transform: none; }

/* Zwei Knöpfe nebeneinander, auf schmalen Bildschirmen untereinander */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Navigation ---------- */
.site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
    border-bottom: 1px solid transparent;
}

.site-nav.scrolled,
body.nav-open .site-nav {
    background: rgba(5, 11, 22, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 74px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
}
.brand svg { width: 30px; height: 30px; flex-shrink: 0; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-links a {
    white-space: nowrap;
    position: relative;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.nav-links a:hover,
.nav-links a.active { color: #fff; }
.nav-links a.active::after,
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
.lang-switch:hover { border-color: var(--cyan); background: rgba(58, 214, 255, 0.08); }

/* Hervorgehobener Menü-Button zum Phagen-Radar */
.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(58, 214, 255, 0.18), rgba(255, 79, 154, 0.18));
    border: 1px solid rgba(58, 214, 255, 0.45);
    color: #fff;
    font: 600 0.88rem/1 var(--font-body);
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 0 22px -6px rgba(58, 214, 255, 0.55);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s ease;
}
.nav-cta:hover { transform: translateY(-1px); border-color: var(--cyan); box-shadow: 0 0 28px -4px rgba(58, 214, 255, 0.8); }
.nav-cta[aria-current="page"] { border-color: var(--cyan); }
.nav-cta-dot {
    position: relative;
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 1.5px solid var(--cyan);
    flex-shrink: 0;
    margin-right: 9px;
    overflow: hidden;
}
.nav-cta-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: conic-gradient(from 0deg, rgba(58, 214, 255, 0.9), transparent 30%);
    animation: radar-spin 2.4s linear infinite;
}
@keyframes radar-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .nav-cta-dot::after { animation: none; } }
@media (max-width: 520px) {
    .nav-cta { padding: 8px 12px; font-size: 0.82rem; }
    .nav-cta-dot { margin-right: 7px; }
    .nav-cta-pre { display: none; }
    .nav-actions { gap: 8px; }
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: transparent;
    cursor: pointer;
    position: relative;
}
.nav-toggle span {
    position: absolute;
    left: 11px;
    right: 11px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.35s var(--ease), opacity 0.2s ease;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-rows: 1fr auto;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(1100px 700px at 78% 42%, rgba(47, 125, 255, 0.20), transparent 62%),
        radial-gradient(700px 520px at 8% 95%, rgba(255, 79, 154, 0.11), transparent 60%),
        radial-gradient(600px 400px at 30% 10%, rgba(58, 214, 255, 0.07), transparent 60%),
        var(--bg);
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}
#hero-canvas.ready { opacity: 1; }

/* Geräte ohne Grafikkarte bekommen keine 3D-Szene – dann füllt ein ruhiger Farbverlauf die Fläche */
.hero.no-3d {
    background-image:
        radial-gradient(42% 52% at 78% 36%, rgba(58, 214, 255, 0.13), transparent 70%),
        radial-gradient(36% 46% at 93% 74%, rgba(255, 79, 154, 0.07), transparent 70%);
}
.hero.no-3d #hero-canvas { display: none; }
#infection-viewer.no-3d .infection-loading { position: static; max-width: 48ch; margin: 0 auto; text-align: center; line-height: 1.6; }

.hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 220px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    z-index: -1;
    pointer-events: none;
}

.hero > .container { width: 100%; }

.hero-main {
    display: flex;
    align-items: center;
    padding-top: 110px;
    padding-bottom: 40px;
}

.hero-content { max-width: 640px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    color: #cfe0f7;
    font-size: 0.85rem;
    font-weight: 500;
}
.eyebrow .pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 0 rgba(58, 214, 255, 0.7);
    animation: pulse 2.2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(58, 214, 255, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(58, 214, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(58, 214, 255, 0); }
}

.hero h1 {
    font-size: clamp(2.6rem, 5.6vw, 5rem);
    line-height: 1.0;
    letter-spacing: -0.04em;
    margin: 28px 0 26px;
}

.hero-lede {
    font-size: clamp(1.05rem, 1.35vw, 1.22rem);
    color: #b6c5db;
    max-width: 560px;
    margin: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
    padding: 26px 0 40px;
    gap: 24px;
}

.stat strong {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.1;
}
.stat strong sup { font-size: 0.55em; }
.stat span {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--muted);
    max-width: 220px;
}

.hero .anim {
    opacity: 0;
    transform: translateY(26px);
    animation: rise 1s var(--ease) forwards;
    animation-delay: var(--d, 0s);
}
@keyframes rise { to { opacity: 1; transform: none; } }

.scroll-cue {
    position: absolute;
    right: 24px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--faint);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    text-decoration: none;
}
.scroll-cue::after {
    content: '';
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--cyan), transparent);
    animation: drip 2s ease-in-out infinite;
}
@keyframes drip {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Sections ---------- */
.section {
    position: relative;
    padding: 120px 0;
}

.section-alt {
    background:
        radial-gradient(900px 500px at 85% 0%, rgba(47, 125, 255, 0.08), transparent 60%),
        var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-head {
    max-width: 760px;
    margin-bottom: 56px;
}
.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cyan);
}
.kicker::before {
    content: '';
    width: 28px;
    height: 1px;
    background: currentColor;
}

.section h2 {
    font-size: clamp(2rem, 4.2vw, 3.3rem);
    margin: 16px 0 20px;
}

.lead {
    font-size: 1.15rem;
    color: var(--muted);
    margin: 0;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

/* Scroll-Reveal (nur aktiv, wenn JavaScript läuft) */
.js .reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
    transition-delay: var(--d, 0s);
}
.js .reveal.show {
    opacity: 1;
    transform: none;
}

/* ---------- 01 Grundlagen ---------- */
.split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 72px;
    align-items: center;
}

.prose p { color: #c3d0e3; }
.prose .lead { margin-bottom: 1em; color: var(--muted); }
.prose strong { color: #fff; font-weight: 600; }

.check-list {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    display: grid;
    gap: 14px;
}
.check-list li {
    display: flex;
    gap: 14px;
    color: #c3d0e3;
}
.check-list li::before {
    content: '';
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 3px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303101f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat,
        linear-gradient(135deg, var(--cyan), var(--blue));
}

.anatomy {
    position: relative;
    margin: 0;
    padding: 28px 20px 18px;
    border-radius: 28px;
    background:
        radial-gradient(400px 300px at 50% 30%, rgba(58, 214, 255, 0.12), transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border);
}
.anatomy svg { width: 100%; height: auto; display: block; }
.anatomy figcaption {
    text-align: center;
    font-size: 0.8rem;
    color: var(--faint);
    margin-top: 6px;
}
.anatomy .lbl { font: 600 13px var(--font-body); fill: #e8f0fc; }
.anatomy .lbl-sub { font: 400 11px var(--font-body); fill: #8c9dba; }
.anatomy .lead-line { stroke: rgba(148, 190, 255, 0.45); stroke-width: 1; stroke-dasharray: 3 3; }
.anatomy .dot { fill: var(--cyan); }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 80px;
}

.feature {
    position: relative;
    padding: 32px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.4s ease, transform 0.5s var(--ease), background-color 0.4s ease;
}
.feature:hover {
    border-color: var(--border-strong);
    background: var(--surface-2);
    transform: translateY(-4px);
}
.feature h3 { font-size: 1.25rem; margin: 22px 0 10px; }
.feature p { color: var(--muted); margin: 0; font-size: 0.98rem; }

.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(58, 214, 255, 0.18), rgba(47, 125, 255, 0.12));
    border: 1px solid rgba(58, 214, 255, 0.3);
    color: var(--cyan);
}
.icon-badge svg { width: 24px; height: 24px; }

/* ---------- 02 Infektion (3D) ---------- */
.infection-viewer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    border-radius: 26px;
    overflow: hidden;
    background: radial-gradient(ellipse at 40% 30%, #17335e 0%, #0d2242 45%, #071426 100%);
    border: 1px solid var(--border);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(58, 214, 255, 0.04);
    color: #e6f0ff;
}
.infection-viewer > * { min-width: 0; }

.infection-canvas {
    position: relative;
    min-height: 580px;
    cursor: grab;
}
.infection-canvas:active { cursor: grabbing; }
.infection-canvas canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.infection-labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.infection-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2em;
    text-align: center;
    color: rgba(230, 240, 255, 0.75);
    font-size: 0.95em;
}

.infection-hint {
    position: absolute;
    left: 16px;
    bottom: 14px;
    font-size: 0.75em;
    letter-spacing: 0.05em;
    color: rgba(230, 240, 255, 0.55);
    pointer-events: none;
}

.infection-label {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    color: #fff;
    background: rgba(7, 20, 38, 0.72);
    border: 1px solid rgba(159, 208, 255, 0.35);
    padding: 4px 10px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.6s ease;
}
.infection-label.visible { opacity: 1; }
.infection-label.is-dna { border-color: rgba(255, 79, 154, 0.7); color: #ffc2dc; }
.infection-label.is-host { border-color: rgba(70, 214, 176, 0.7); color: #b9f3e2; }

.infection-panel {
    display: flex;
    flex-direction: column;
    padding: 28px 26px;
    background: rgba(255, 255, 255, 0.04);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.infection-progress {
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}
.infection-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--blue), var(--pink));
    transition: width 0.6s var(--ease);
}

.infection-count {
    margin: 14px 0 4px;
    font-size: 0.75em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(230, 240, 255, 0.6);
}

.infection-info .infection-title {
    margin: 0 0 0.4em;
    font-size: 1.35em;
    color: #fff;
}
.infection-info .infection-text {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.6;
    color: rgba(230, 240, 255, 0.85);
    min-height: 11.5em;
}

.infection-controls {
    display: flex;
    gap: 10px;
    margin: 20px 0 18px;
}

.infection-viewer button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}

.infection-play {
    flex: 1;
    padding: 11px 18px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #03101f;
    font-size: 0.95rem;
}
.infection-play.is-playing { background: rgba(255, 255, 255, 0.12); color: #fff; }

.infection-nav {
    width: 44px;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.1em;
}
.infection-nav:hover { background: rgba(255, 255, 255, 0.16); }
.infection-nav:disabled {
    opacity: 0.3;
    cursor: default;
    background: rgba(255, 255, 255, 0.08);
}

.infection-steps {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.infection-viewer .infection-step {
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    padding: 6px 10px;
    border-radius: 10px;
    background: transparent;
    color: rgba(230, 240, 255, 0.62);
    font-weight: 500;
    font-size: 0.88rem;
    text-align: left;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.infection-viewer .infection-step:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

.infection-step-no {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(230, 240, 255, 0.3);
    font-size: 0.78em;
    font-weight: 700;
}
.infection-step.done .infection-step-no { background: rgba(47, 125, 255, 0.35); border-color: transparent; }
.infection-viewer .infection-step.active { background: rgba(47, 125, 255, 0.18); color: #fff; }
.infection-step.active .infection-step-no { background: var(--blue); border-color: var(--blue); color: #fff; }

.infection-note {
    margin: 14px 0 0;
    font-size: 0.82rem;
    color: var(--faint);
}

/* Verweis auf den Grössen-Zoom unter dem 3D-Modell */
.size-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px 28px;
    flex-wrap: wrap;
    margin-top: 22px;
    padding: 20px 24px;
    border-radius: 20px;
    border: 1px solid var(--border-strong);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(58, 214, 255, 0.10), transparent 60%),
        radial-gradient(120% 140% at 100% 100%, rgba(255, 79, 154, 0.08), transparent 60%),
        var(--surface);
}
.size-cta-text { display: flex; flex-direction: column; gap: 4px; max-width: 620px; }
.size-cta-text strong { font-family: var(--font-head); font-size: 1.15rem; color: #fff; }
.size-cta-text span { font-size: 0.93rem; color: var(--muted); line-height: 1.55; }
@media (max-width: 600px) {
    .size-cta { padding: 18px; }
    .size-cta .btn { width: 100%; }
}

/* ---------- 03 Lebenszyklen ---------- */
.cycle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.cycle-card {
    position: relative;
    padding: 40px;
    border-radius: 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
}
.cycle-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--accent, var(--pink));
}
.cycle-card::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    right: -120px;
    top: -140px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow, rgba(255, 79, 154, 0.16)), transparent 70%);
    pointer-events: none;
}
.cycle-card.lysogenic { --accent: var(--green); --glow: rgba(70, 214, 176, 0.16); }

.tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--accent, var(--pink));
    background: color-mix(in srgb, var(--accent, var(--pink)) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent, var(--pink)) 35%, transparent);
}

.cycle-card h3 { font-size: 1.6rem; margin: 18px 0 6px; }
.cycle-card .subtitle { color: #fff; font-weight: 500; margin-bottom: 14px; }
.cycle-card p { color: var(--muted); }

.steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 10px;
}
.steps li {
    counter-increment: step;
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: #cbd7e8;
    font-size: 0.95rem;
}
.steps li::before {
    content: counter(step, decimal-leading-zero);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent, var(--pink));
}

.fact-box {
    margin-top: 24px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(255, 194, 77, 0.07);
    border: 1px solid rgba(255, 194, 77, 0.25);
    font-size: 0.92rem;
    color: #e9dcc0;
}
.fact-box strong { color: var(--amber); }

/* ---------- 04 Therapie ---------- */
.therapy-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 32px;
    align-items: start;
}

.big-stat {
    position: sticky;
    top: 110px;
    padding: 44px 40px;
    border-radius: 28px;
    background:
        radial-gradient(500px 300px at 0% 0%, rgba(255, 79, 154, 0.18), transparent 70%),
        var(--surface);
    border: 1px solid var(--border);
}
.big-stat .num {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(3.4rem, 7vw, 5.4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 18px;
}
.big-stat p { color: #c8d4e6; font-size: 1.1rem; }
.big-stat .source { font-size: 0.8rem; color: var(--faint); margin: 18px 0 0; }

.timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 30px;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(to bottom, var(--cyan), var(--blue) 50%, var(--pink));
    opacity: 0.6;
}
.timeline li {
    position: relative;
    padding: 0 0 30px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 7px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--cyan);
    box-shadow: 0 0 12px rgba(58, 214, 255, 0.5);
}
.timeline .year {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
}
.timeline p { margin: 4px 0 0; color: var(--muted); font-size: 0.98rem; }

.proscons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 64px;
}
.proscons .card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    margin-bottom: 18px;
}
.proscons ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}
.proscons li {
    position: relative;
    padding-left: 26px;
    color: #c3d0e3;
    font-size: 0.98rem;
}
.proscons li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--dot, var(--green));
}
.proscons .cons { --dot: var(--amber); }
.dot-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--dot, var(--green));
    box-shadow: 0 0 12px var(--dot, var(--green));
}

/* ---------- Zitate ---------- */
.cite {
    font-size: 0.7em;
    line-height: 0;
    margin-left: 2px;
    white-space: nowrap;
}
.cite a { color: var(--cyan); text-decoration: none; font-weight: 600; }
.cite a:hover { text-decoration: underline; }

/* ---------- Phage des Monats ---------- */
.potm-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.potm-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 16px 20px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.4s var(--ease), box-shadow 0.4s ease;
}
.potm-tab:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-2px); }
.potm-tab[aria-selected="true"] {
    color: #fff;
    border-color: rgba(58, 214, 255, 0.55);
    background: linear-gradient(135deg, rgba(58, 214, 255, 0.14), rgba(47, 125, 255, 0.08));
    box-shadow: 0 14px 40px -18px rgba(58, 214, 255, 0.55);
}
.potm-greek {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
}
.potm-tab small { font-size: 0.8rem; }
.potm-star {
    position: absolute;
    top: 12px;
    right: 14px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 194, 77, 0.14);
    border: 1px solid rgba(255, 194, 77, 0.4);
    color: var(--amber);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.potm-panel {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
    padding: 44px;
    border-radius: 28px;
    background:
        radial-gradient(520px 320px at 100% 0%, rgba(47, 125, 255, 0.12), transparent 70%),
        var(--surface);
    border: 1px solid var(--border);
}
.potm-panel[hidden] { display: none; }
.potm-panel:not([hidden]) { animation: rise 0.7s var(--ease) both; }

.potm-art {
    margin: 0;
    padding: 24px 20px 16px;
    border-radius: 22px;
    background: radial-gradient(300px 260px at 50% 35%, rgba(58, 214, 255, 0.14), transparent 70%), rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.potm-art svg { width: 100%; max-width: 330px; height: auto; display: block; }
.potm-art figcaption { margin-top: 10px; font-size: 0.78rem; color: var(--faint); text-align: center; }

/* Porträt des Phagen über dem jeweiligen Schaubild */
.potm-portrait { width: 100%; display: flex; flex-direction: column; align-items: center; }
.potm-portrait svg { max-width: 190px; }
.potm-portrait-cap {
    margin: 8px 0 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    width: 100%;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--faint);
    text-align: center;
}

.potm-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--pink);
    background: rgba(255, 79, 154, 0.12);
    border: 1px solid rgba(255, 79, 154, 0.35);
}
.potm-tag.is-month {
    color: var(--amber);
    background: rgba(255, 194, 77, 0.12);
    border-color: rgba(255, 194, 77, 0.4);
}
.potm-body h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 14px 0 6px; }
.potm-sub { color: var(--cyan); font-weight: 500; margin-bottom: 18px; }
.potm-body p { color: #c3d0e3; }
.potm-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0;
}
.potm-facts > div {
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}
.potm-facts dt {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
}
.potm-facts dd { margin: 2px 0 0; color: #fff; font-weight: 500; font-size: 0.95rem; line-height: 1.5; }
.potm-body .potm-src { margin: 4px 0 0; font-size: 0.85rem; color: var(--faint); }

/* Genomgrössen-Diagramm */
.potm-chart { align-items: stretch; justify-content: center; gap: 6px; }
.gc-title { margin: 0 0 14px; font-family: var(--font-head); font-weight: 600; color: #fff; text-align: center; }
.gc { display: grid; gap: 16px; }
.gc-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) 112px; align-items: center; gap: 12px; opacity: 0.55; }
.gc-row.is-active { opacity: 1; }
.gc-name { font-family: var(--font-head); font-weight: 700; color: #fff; }
.gc-track { display: block; height: 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.gc-bar { display: block; height: 100%; min-width: 3px; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.gc-row.is-active .gc-bar { background: linear-gradient(90deg, var(--pink), var(--amber)); box-shadow: 0 0 14px rgba(255, 79, 154, 0.5); }
.gc-val { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.gc-row.is-active .gc-val { color: #fff; font-weight: 600; }

/* Lambda-Entscheidungsschema */
.potm-flow { align-items: stretch; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; text-align: center; }
.flow-start { padding: 12px 16px; border-radius: 14px; background: rgba(47, 125, 255, 0.16); border: 1px solid rgba(47, 125, 255, 0.45); color: #fff; font-weight: 600; }
.flow-note { font-size: 0.85rem; color: var(--muted); line-height: 1.5; padding: 0 6px; }
.flow-note::before { content: '↓'; display: block; color: var(--cyan); font-size: 1.1rem; }
.flow-branch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.flow-box { padding: 14px 12px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); display: grid; gap: 4px; align-content: start; }
.flow-box strong { color: #fff; }
.flow-box span { font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
.flow-box.is-lytic { border-color: rgba(255, 79, 154, 0.45); background: rgba(255, 79, 154, 0.08); }
.flow-box.is-lytic strong { color: var(--pink); }
.flow-box.is-lysogenic { border-color: rgba(70, 214, 176, 0.45); background: rgba(70, 214, 176, 0.08); }
.flow-box.is-lysogenic strong { color: var(--green); }

/* Zitate in Aufzählungen und Schritt-Listen */
.steps li .cite, .proscons li .cite { margin-left: 4px; }

/* ---------- Quellenverzeichnis ---------- */
.refs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
    align-items: start;
}
.refs-group h3 { font-size: 1.1rem; color: #fff; margin: 0 0 14px; }
.refs-group .refs + h3 { margin-top: 30px; }
.refs { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.refs li {
    position: relative;
    padding: 16px 18px 16px 58px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.9rem;
    line-height: 1.55;
    color: #c3d0e3;
    scroll-margin-top: 100px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.refs li::before {
    content: '[' attr(data-n) ']';
    position: absolute;
    left: 18px;
    top: 16px;
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--cyan);
}
.refs li:target { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(58, 214, 255, 0.14); }
.refs li a { margin-left: 4px; white-space: nowrap; }
.ref-used { display: block; margin-top: 6px; font-size: 0.84rem; color: var(--muted); }
.refs-note { margin: 28px 0 0; font-size: 0.85rem; color: var(--faint); }

/* ---------- 05 Forschung ---------- */
.pub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.pub-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
    grid-template-rows: auto 1fr auto;
    column-gap: 32px;
    row-gap: 8px;
    padding: 20px 26px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.4s ease, transform 0.5s var(--ease), background-color 0.4s ease;
}
.pub-card:hover {
    border-color: rgba(58, 214, 255, 0.45);
    background: var(--surface-2);
    transform: translateY(-3px);
}
.pub-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--cyan);
    font-weight: 600;
    letter-spacing: 0.02em;
}
.pub-meta span:last-child { color: var(--faint); flex-shrink: 0; }
.pub-card .pub-meta { grid-column: 1; grid-row: 1; justify-content: flex-start; flex-wrap: wrap; gap: 4px 12px; }
.pub-card .pub-title { grid-column: 1; grid-row: 2; font-size: 1rem; }
.pub-card .pub-sum { grid-column: 2; grid-row: 1 / span 3; align-self: center; padding-left: 28px; border-left: 1px solid var(--border); }
.pub-card .pub-note { grid-column: 2; grid-row: 3; align-self: end; padding-left: 28px; }
.pub-card .pub-link { grid-column: 1; grid-row: 3; }
.pub-title {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    margin: 0;
}
.pub-link {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--muted);
}
.pub-card:hover .pub-link { color: var(--cyan); }

.pub-skeleton {
    height: 150px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.03) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.pub-error { color: var(--muted); font-style: italic; }
.pub-source { margin-top: 18px; font-size: 0.82rem; color: var(--faint); }

/* Kurz-Zusammenfassung in Studien- und Publikationskarten */
.pub-sum { display: flex; flex-direction: column; gap: 8px; }
.pub-sum p { margin: 0; font-size: 0.9rem; line-height: 1.55; color: var(--muted); }
.pub-sum strong {
    display: block;
    margin-bottom: 2px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan);
}
.pub-sum .trial-pending strong { color: var(--amber); }
.pub-heading { margin: 56px 0 18px; font-size: 1.3rem; }

/* Live-Zähler klinische Studien */
.trials { margin-bottom: 8px; }
.trials-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 30px 34px;
    border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(58, 214, 255, 0.12), transparent 60%),
        radial-gradient(120% 140% at 100% 100%, rgba(255, 79, 154, 0.10), transparent 60%),
        var(--surface);
    overflow: hidden;
}
.trials-num {
    font-family: var(--font-head);
    font-size: clamp(3.4rem, 8vw, 5.2rem);
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    min-width: 2ch;
}
.trials-text strong { display: block; font-family: var(--font-head); font-size: clamp(1.1rem, 2.2vw, 1.4rem); line-height: 1.35; color: #fff; }
.trials-sub { display: block; margin-top: 8px; font-size: 0.85rem; color: var(--faint); }
.trials-live {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(70, 214, 176, 0.6);
    animation: trials-pulse 2s ease-out infinite;
}
@keyframes trials-pulse {
    0% { box-shadow: 0 0 0 0 rgba(70, 214, 176, 0.55); }
    70% { box-shadow: 0 0 0 12px rgba(70, 214, 176, 0); }
    100% { box-shadow: 0 0 0 0 rgba(70, 214, 176, 0); }
}
.trials-countries { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 22px; }
.trial-chip {
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.8rem;
    color: var(--muted);
}
.trials-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
.trial-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
    grid-template-rows: auto 1fr auto;
    column-gap: 32px;
    row-gap: 8px;
    padding: 20px 26px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.4s ease, transform 0.5s var(--ease), background-color 0.4s ease;
}
.trial-card:hover { border-color: rgba(58, 214, 255, 0.45); background: var(--surface-2); transform: translateY(-3px); }
.trial-card:hover .pub-link { color: var(--cyan); }
.trial-card .pub-meta { grid-column: 1; grid-row: 1; justify-content: flex-start; flex-wrap: wrap; gap: 4px 12px; }
.trial-card .pub-title { grid-column: 1; grid-row: 2; font-size: 1rem; }
.trial-card .pub-sum { grid-column: 2; grid-row: 1 / span 3; align-self: center; padding-left: 28px; border-left: 1px solid var(--border); }
.trial-card .pub-link { grid-column: 1; grid-row: 3; }
.trial-card.is-extra { display: none; }
.trials.show-all .trial-card.is-extra { display: grid; }
.trials-more { margin-top: 18px; padding: 10px 18px; font-size: 0.9rem; }

/* Weltkarte der Studienorte */
.trial-map {
    max-width: 620px;
    margin: 0 auto 22px;
    padding: 18px 18px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: radial-gradient(80% 120% at 50% 0%, rgba(47, 125, 255, 0.08), transparent 70%), var(--surface);
}
.trial-map svg { display: block; width: 100%; height: auto; }
.tm-land circle { fill: rgba(148, 190, 255, 0.2); }
.tm-dot { fill: var(--green); filter: drop-shadow(0 0 1.2px rgba(70, 214, 176, 0.9)); }
.tm-ring {
    fill: none;
    stroke: var(--green);
    stroke-width: 0.35;
    transform-box: fill-box;
    transform-origin: center;
    animation: tm-ping 2.4s ease-out infinite;
}
.tm-sites a { cursor: pointer; }
.tm-sites a:hover .tm-dot, .tm-sites a:focus .tm-dot { fill: #fff; }
@keyframes tm-ping {
    0% { transform: scale(0.6); opacity: 0.9; }
    80%, 100% { transform: scale(3.2); opacity: 0; }
}
.tm-caption { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 0.82rem; color: var(--faint); }
.tm-legend { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px rgba(70, 214, 176, 0.8); flex-shrink: 0; }
.pub-note:empty { display: none; }
.pub-note { font-size: 0.75rem; color: var(--faint); font-style: italic; }
@media (prefers-reduced-motion: reduce) { .tm-ring { animation: none; opacity: 0; } }
@media (max-width: 760px) {
    .trial-card, .pub-card { grid-template-columns: 1fr; grid-template-rows: none; padding: 20px 22px; }
    .trial-card .pub-meta, .trial-card .pub-title, .trial-card .pub-sum, .trial-card .pub-link,
    .pub-card .pub-meta, .pub-card .pub-title, .pub-card .pub-sum, .pub-card .pub-note, .pub-card .pub-link { grid-column: 1; grid-row: auto; }
    .trial-card .pub-sum, .pub-card .pub-sum, .pub-card .pub-note { padding-left: 0; border-left: 0; }
    .trials-head { flex-direction: column; align-items: flex-start; gap: 12px; padding: 26px 22px; }
    .trial-map { padding: 10px 8px 10px; }
    .tm-caption { padding: 0 6px; }
}
@media (prefers-reduced-motion: reduce) { .trials-live { animation: none; } }

/* ---------- 06 Über mich ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 72px;
    align-items: center;
}

.portrait {
    position: relative;
    margin: 0;
}
.portrait-frame {
    position: relative;
    padding: 6px;
    border-radius: 30px;
    background: linear-gradient(140deg, var(--cyan), var(--blue) 45%, var(--pink));
    box-shadow: 0 40px 80px -30px rgba(47, 125, 255, 0.55);
}
.portrait img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 35%;
    border-radius: 25px;
}
.portrait-badge {
    position: absolute;
    left: -18px;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 16px;
    background: rgba(8, 19, 38, 0.86);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-strong);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
    font-size: 0.85rem;
    line-height: 1.35;
}
.portrait-badge strong { display: block; color: #fff; }
.portrait-badge span { color: var(--muted); }

.quote {
    margin: 30px 0;
    padding: 4px 0 4px 24px;
    border-left: 3px solid;
    border-image: linear-gradient(to bottom, var(--cyan), var(--pink)) 1;
    font-family: var(--font-head);
    font-size: 1.3rem;
    line-height: 1.45;
    color: #fff;
}

.facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 30px 0 34px;
}
.fact {
    padding: 14px 18px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
}
.fact small {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
}
.fact span { color: #fff; font-weight: 500; font-size: 0.95rem; }

/* ---------- 07 FAQ ---------- */
.faq-grid {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 72px;
    align-items: start;
}

.faq-list { display: grid; gap: 12px; }

.faq-list details {
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
.faq-list details[open] {
    border-color: var(--border-strong);
    background: var(--surface-2);
}
.faq-list summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    color: #fff;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: '';
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background:
        linear-gradient(var(--cyan), var(--cyan)) center/11px 2px no-repeat,
        linear-gradient(var(--cyan), var(--cyan)) center/2px 11px no-repeat;
    transition: transform 0.4s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p {
    margin: 0;
    padding: 0 24px 22px;
    color: var(--muted);
}

/* ---------- 08 Kontakt ---------- */
.contact-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    padding: 56px;
    border-radius: 32px;
    background:
        radial-gradient(600px 400px at 0% 0%, rgba(58, 214, 255, 0.12), transparent 70%),
        radial-gradient(500px 400px at 100% 100%, rgba(255, 79, 154, 0.10), transparent 70%),
        var(--bg-2);
    border: 1px solid var(--border);
}
.contact-card h2 { margin-top: 16px; }

.contact-form {
    display: grid;
    gap: 14px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.contact-form label {
    display: grid;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font: 400 1rem var(--font-body);
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--cyan);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(58, 214, 255, 0.12);
}
.contact-form .btn { justify-self: start; margin-top: 6px; }
.form-note { font-size: 0.8rem; color: var(--faint); margin: 4px 0 0; }

/* Trenner „oder“ zwischen Formular und LinkedIn-Knopf */
.contact-or {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 12px 0 0;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
}
.contact-or::before,
.contact-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 64px 0 40px;
    background: #040913;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}
.footer-top p { color: var(--muted); font-size: 0.92rem; max-width: 360px; margin-top: 14px; }
.footer-top h4 {
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 14px;
}
.footer-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-top a { color: #c3d0e3; text-decoration: none; font-size: 0.95rem; }
.footer-top a:hover { color: var(--cyan); }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 26px;
    font-size: 0.82rem;
    color: var(--faint);
}

/* Dezenter Zugang zum internen Bereich (passwortgeschützt, nicht für die Öffentlichkeit) */
.footer-intern {
    color: var(--faint);
    text-decoration: none;
    border-bottom: 1px dotted rgba(148, 190, 255, 0.3);
    padding-bottom: 1px;
}
.footer-intern:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.page-header {
    padding: 160px 0 50px;
    background:
        radial-gradient(900px 400px at 80% 0%, rgba(47, 125, 255, 0.16), transparent 65%),
        var(--bg);
}
.page-header h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-top: 14px; }
.legal { padding: 20px 0 110px; }
.legal .card { max-width: 820px; padding: 44px; }
.legal h2, .legal h3 { font-size: 1.25rem; margin: 30px 0 10px; }
.legal .card > :first-child { margin-top: 0; }
.legal p { color: #c3d0e3; }
.notice {
    padding: 16px 20px;
    border-radius: 14px;
    background: rgba(58, 214, 255, 0.07);
    border: 1px solid rgba(58, 214, 255, 0.25);
    color: #cfeefa;
    margin-bottom: 26px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .split, .about-grid, .faq-grid { gap: 48px; }
    .infection-viewer { grid-template-columns: minmax(0, 1fr); }
    .infection-panel { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.08); }
    .infection-canvas { min-height: 460px; }
    .infection-info .infection-text { min-height: 0; }
    .infection-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

/* Menü klappt früher ein, damit Links + Radar-Button immer Platz haben */
@media (max-width: 1240px) {
    .nav-toggle { display: inline-block; }
    .nav-links {
        position: fixed;
        inset: 74px 0 auto 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 12px 24px 28px;
        background: rgba(5, 11, 22, 0.97);
        border-bottom: 1px solid var(--border);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, transform 0.4s var(--ease), visibility 0.3s;
    }
    body.nav-open .nav-links {
        opacity: 1;
        transform: none;
        visibility: visible;
    }
    .nav-links a {
        width: 100%;
        padding: 14px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border);
    }
    .nav-links a::after { display: none; }
}

@media (max-width: 920px) {
    .split, .about-grid, .faq-grid, .therapy-grid, .contact-card { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; margin-top: 56px; }
    .cycle-grid, .proscons, .pub-grid, .refs-grid { grid-template-columns: 1fr; }
    .potm-panel { grid-template-columns: 1fr; gap: 32px; padding: 30px; }
    .potm-tabs { grid-template-columns: 1fr 1fr; }
    .big-stat { position: static; }
    .portrait { max-width: 380px; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-top > :first-child { grid-column: 1 / -1; }
    .scroll-cue { display: none; }
}

@media (max-width: 700px) {
    body { font-size: 16px; }
    .section { padding: 84px 0; }
    .section-head { margin-bottom: 40px; }
    /* Handy: oben eine eigene „Bühne“ für die 3D-Landung, der Text beginnt darunter */
    .hero-main { padding-top: calc(78px + 36svh); align-items: flex-start; }
    /* Die Szene läuft nach unten weich aus, statt an einer harten Kante zu enden –
       so geht sie in den Text über, statt wie ein aufgeklebter Kasten zu wirken. */
    #hero-canvas {
        -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 43%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0) 68%);
        mask-image: linear-gradient(180deg, #000 0%, #000 43%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0) 68%);
    }
    /* Sanftes Licht hinter der Szene, damit sie nicht im Nichts schwebt */
    .hero:not(.no-3d) {
        background-image: radial-gradient(62% 24% at 50% 19%, rgba(58, 214, 255, 0.12), transparent 72%);
    }
    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: -1;
        /* oben ganz frei, damit der Phage nicht abgedunkelt wird; erst unter der Bühne abdunkeln */
        background: linear-gradient(180deg, rgba(5, 11, 22, 0) 0%, rgba(5, 11, 22, 0) 33%, rgba(5, 11, 22, 0.45) 52%, rgba(5, 11, 22, 0.78) 100%);
        pointer-events: none;
    }
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
    #hero-canvas.ready { opacity: 1; }
    .hero-actions .btn { flex: 1 1 auto; }
    .cycle-card, .big-stat { padding: 30px 24px; }
    .contact-card { padding: 32px 22px; gap: 36px; }
    .form-row { grid-template-columns: 1fr; }
    .facts, .potm-facts { grid-template-columns: 1fr; }
    .potm-panel { padding: 22px 18px; }
    .potm-tab { padding: 14px 14px; }
    .potm-star { position: static; margin-top: 6px; }
    .refs li { padding: 14px 14px 14px 50px; }
    .refs li::before { left: 14px; top: 14px; }
    .portrait-badge { left: 12px; }
    .infection-canvas { min-height: 380px; }
    .infection-panel { padding: 20px 18px; }
    .infection-steps { grid-template-columns: 1fr; }
    .legal .card { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero .anim { animation: none; opacity: 1; transform: none; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .eyebrow .pulse, .scroll-cue::after, .pub-skeleton { animation: none; }
}

/* Hinweis auf bakteriophage.ch (Therapie-Abschnitt) */
.ch-callout {
    display: flex; align-items: center; gap: 18px; margin-top: 28px; padding: 18px 22px;
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px;
    color: var(--text); text-decoration: none; transition: border-color 0.25s ease, background-color 0.25s ease;
}
.ch-callout:hover, .ch-callout:focus-visible { border-color: var(--cyan); background: var(--surface-2); }
.ch-logo { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, 0.92); color: #15171c; }
.ch-logo svg { width: 28px; height: 28px; }
.ch-text { display: flex; flex-direction: column; gap: 3px; }
.ch-text strong { font-family: var(--font-head); font-size: 1.05rem; }
.ch-text span { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.ch-arrow { margin-left: auto; flex: none; font-size: 1.3rem; color: var(--cyan); transition: transform 0.25s ease; }
.ch-callout:hover .ch-arrow { transform: translateX(4px); }
@media (max-width: 560px) { .ch-callout { align-items: flex-start; padding: 16px; gap: 14px; } .ch-arrow { display: none; } }
