/*
 * Voredos SRL — Site-Style.
 * Schlanke Static-Site, keine Frameworks, eine Datei.
 * Farben: deep blue + clean white, akademisch-business hybrid (passt zu
 * AIRRDB-Tonalität).
 */

:root {
    --color-bg: #ffffff;
    --color-surface: #f7f9fc;
    --color-text: #1a2332;
    --color-text-muted: #5a6478;
    --color-accent: #1d4e89;       /* deep blue */
    --color-accent-soft: #e8f0fa;
    --color-border: #e1e6ee;
    --color-link: #1d4e89;

    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --radius: 6px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);

    --max-w: 1100px;
    --max-w-text: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--color-link); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-text);
}

h1 { font-size: 2.4rem; margin-bottom: 1rem; letter-spacing: -0.02em; }
h2 { font-size: 1.7rem; margin: 2.5rem 0 1rem; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }

p { margin-bottom: 1rem; max-width: var(--max-w-text); }

ul { margin: 0.5rem 0 1rem 1.5rem; }
li { margin-bottom: 0.4rem; }

/* ─── Layout ────────────────────────────────────────────────────────── */

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

main { padding: 2rem 0 4rem; }

/* ─── Header ────────────────────────────────────────────────────────── */

header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.92);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    padding: 1rem 1.5rem;
    max-width: var(--max-w);
    margin: 0 auto;
}

.logo a { display: block; }
.logo img {
    height: 36px;
    width: auto;
    max-width: 60vw;       /* Logo darf max 60% der Viewport-Breite belegen */
    object-fit: contain;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    flex-wrap: wrap;
}

nav a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
}

nav a:hover { color: var(--color-accent); text-decoration: none; }

nav a.active { color: var(--color-accent); }

/* ─── Hero ──────────────────────────────────────────────────────────── */

.hero {
    /* Bild + dunkler Gradient-Overlay (links zu rechts heller, damit der
     * IgG-Y rechts sichtbar bleibt, der Text links auf dunklem Grund
     * lesbar). */
    background:
        linear-gradient(90deg,
            rgba(10, 25, 50, 0.92) 0%,
            rgba(10, 25, 50, 0.65) 55%,
            rgba(10, 25, 50, 0.35) 100%),
        url('../bilder/hero.png') center / cover no-repeat;
    color: #fff;
    padding: 5rem 0 4rem;
    border-bottom: 1px solid var(--color-border);
    /* min-height konstant zwischen Index- und AIRRDB-Hero — sonst hüpft
     * der Content beim Page-Wechsel. Wert orientiert sich am Index-Hero
     * mit Headline + Lead + CTA-Button. */
    min-height: 360px;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 2.8rem;
    max-width: 800px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero .lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 700px;
    margin-top: 1rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero .cta {
    background: #fff;
    color: var(--color-accent);
}

.hero .cta:hover { background: rgba(255,255,255,0.92); }

/* ─── Hero-Variante für AIRRDB-Detail-Seite ──────────────────────────── */

.hero-airrdb {
    /* Override Background-Image — Padding/min-height/flex erbt von .hero */
    background:
        linear-gradient(90deg,
            rgba(10, 25, 50, 0.88) 0%,
            rgba(10, 25, 50, 0.55) 60%,
            rgba(10, 25, 50, 0.25) 100%),
        url('../bilder/antibody.png') center / cover no-repeat;
}

/* ─── Cards ─────────────────────────────────────────────────────────── */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card h3 { margin-top: 0; color: var(--color-accent); }

.card p { font-size: 0.95rem; color: var(--color-text-muted); }

/* ─── CTA-Button ────────────────────────────────────────────────────── */

.cta {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    margin-top: 1rem;
    transition: opacity 0.2s ease;
}

.cta:hover { opacity: 0.9; text-decoration: none; }

.cta-outline {
    display: inline-block;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    margin-top: 1rem;
}

.cta-outline:hover { background: var(--color-accent-soft); text-decoration: none; }

/* ─── Person-Block ──────────────────────────────────────────────────── */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
    /* keine max-width: var(--max-w-text) — Team-Grid darf voll bis var(--max-w) gehen */
}

.person {
    background: var(--color-surface);
    border-left: 3px solid var(--color-accent);
    padding: 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 0;
}

.person p {
    max-width: none;  /* sonst reißt der p-Selector aus dem Body die Breite ab */
}

.person-photo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    filter: grayscale(100%);
    border: 4px solid var(--color-bg);
    box-shadow: 0 0 0 1px var(--color-border), var(--shadow-md);
    background: var(--color-surface);
}

.person h3 { color: var(--color-accent); margin-top: 0; }

.person .role {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

/* ─── Footer ────────────────────────────────────────────────────────── */

footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 2rem 0;
    margin-top: 4rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

footer a { color: var(--color-text-muted); }
footer a:hover { color: var(--color-accent); }

footer .footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
}

.footer-credit {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.footer-credit a {
    color: var(--color-text-muted);
    text-decoration: underline;
    text-decoration-color: var(--color-border);
}

.footer-credit a:hover {
    color: var(--color-accent);
    text-decoration-color: var(--color-accent);
}

/* ─── Responsive ────────────────────────────────────────────────────── */

@media (max-width: 720px) {
    .hero h1 { font-size: 2rem; }
    .hero .lead { font-size: 1.05rem; }
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }
    .logo img {
        height: 40px;
        max-width: 100%;
    }
    nav { width: 100%; }
    nav ul {
        gap: 1rem 1.25rem;
        justify-content: flex-start;
    }
    nav a { font-size: 0.95rem; }
    .footer-inner { flex-direction: column; }
}

@media (max-width: 420px) {
    nav ul { gap: 0.75rem 1rem; }
    nav a { font-size: 0.9rem; }
}

/* ─── Utilities ─────────────────────────────────────────────────────── */

.section { padding: 2rem 0; }
.text-center { text-align: center; }
.muted { color: var(--color-text-muted); }
.small { font-size: 0.9rem; }
