/* ── Schriftarten (selbst gehostet, DSGVO-konform) ──────────── */
@font-face {
    font-family: "IBM Plex Sans";
    src: url("fonts/IBMPlexSans-VariableFont_wdth,wght.ttf") format("truetype");
    font-weight: 100 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "IBM Plex Sans";
    src: url("fonts/IBMPlexSans-Italic-VariableFont_wdth,wght.ttf") format("truetype");
    font-weight: 100 700;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "IBM Plex Serif";
    src: url("fonts/IBMPlexSerif-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "IBM Plex Serif";
    src: url("fonts/IBMPlexSerif-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "IBM Plex Serif";
    src: url("fonts/IBMPlexSerif-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "IBM Plex Serif";
    src: url("fonts/IBMPlexSerif-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design-Tokens ───────────────────────────────────────── */
:root {
    --bg:           #003459;
    --bg-dark:      #00171f;
    --bg-card:      rgba(255, 255, 255, 0.06);
    --accent:       #9eb3c2;   /* warmes Gold – hoher Kontrast auf Dunkelgrün */
    --accent-hover: #f5d384;
    --text:         #DDD5C8;   /* warmes Hellgrau – gut lesbar, nicht weiß */
    --text-muted:   #9e9487;
    --border:       rgba(233, 196, 106, 0.22);
    --shadow:       0 4px 20px rgba(0, 0, 0, 0.35);
}

/* ── Basis ───────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    /* Serifenlose Schrift für Fließtext */
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.75;
}

/* Serifenschrift für alle Überschriften */
h1, h2, h3, h4 {
    font-family: "IBM Plex Serif", Georgia, serif;
    color: var(--accent);
    line-height: 1.25;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Navigation ──────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(0, 23, 31, 0.55);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid rgba(158, 179, 194, 0.12);
    box-shadow: var(--shadow);
    z-index: 200;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.03em;
}
.nav-logo:hover { text-decoration: none; color: var(--accent-hover); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text);
    font-size: 0.93rem;
    letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }

/* Hamburger (mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.hamburger span {
    display: block;
    width: 26px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.25s;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    background: linear-gradient(160deg, #00171f 0%, #003459 55%, #00476b 100%);
}

.hero-name {
    font-size: clamp(2.8rem, 7vw, 5rem);
    margin-bottom: 0.4rem;
}

.hero-sub {
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    letter-spacing: 0.04em;
}

.hero-divider {
    width: 60px; height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: 0 auto;
}

/* ── Sections ────────────────────────────────────────────── */
section {
    padding: 5.5rem 2rem;
}

section:nth-of-type(even) {
    background-color: var(--bg-dark);
}

.section-inner {
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--border);
}

.section-title .icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

/* ── Über mich ───────────────────────────────────────────── */
.about-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-top: 1.5rem;
}

.portrait-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    border: 2px dashed rgba(158, 179, 194, 0.35);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.83rem;
    text-align: center;
    padding: 1rem;
    cursor: default;
    user-select: none;
}

.portrait-placeholder .p-icon {
    font-size: 2.8rem;
    opacity: 0.45;
}

.portrait-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(158, 179, 194, 0.2);
    display: block;
}

/* ── Studium ─────────────────────────────────────────────── */
.studium-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.card {
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(158, 179, 194, 0.15);
    border-radius: 10px;
    padding: 1.5rem;
    transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Zwei-Spalten-Reihe für Schwerpunkt + Ausbildung */
.studium-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card .tag {
    display: inline-block;
    font-size: 0.75rem;
    background: rgba(233, 196, 106, 0.15);
    color: var(--accent);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.15rem 0.7rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
}

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

/* Aktuelles Studium – hervorgehobene Karte */
.card--main {
    border-left: 4px solid var(--accent);
    border-radius: 0 10px 10px 0;
    padding: 1.75rem 1.75rem 1.75rem 1.5rem;
}

.card--main h3 {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
}

.studium-university {
    color: var(--text);
    font-size: 0.97rem;
    margin-bottom: 0.2rem !important;
}

.studium-meta {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 0 !important;
}

/* Schwerpunkt – Topic-Chips */
.focus-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.focus-tag {
    background: rgba(158, 179, 194, 0.12);
    border: 1px solid rgba(158, 179, 194, 0.25);
    border-radius: 20px;
    padding: 0.3rem 0.85rem;
    font-size: 0.88rem;
    color: var(--text);
}

/* Vorherige Ausbildung – Timeline-Punkt */
.edu-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.edu-year {
    font-size: 0.8rem;
    color: var(--accent);
    font-family: "IBM Plex Serif", Georgia, serif;
    white-space: nowrap;
    flex-shrink: 0;
}

.edu-desc {
    color: var(--text-muted);
    font-size: 0.93rem;
    margin: 0 !important;
}

/* ── Hochschulpolitik ────────────────────────────────────── */
.hopo-list {
    list-style: none;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hopo-list li {
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(158, 179, 194, 0.15);
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
}

.hopo-list li strong {
    display: block;
    color: var(--accent);
    font-family: "IBM Plex Serif", Georgia, serif;
    margin-bottom: 0.2rem;
}

.hopo-list li span {
    font-size: 0.93rem;
    color: var(--text-muted);
}

/* ── Tools ──────────────────────────────────────────────── */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.tool-card {
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(158, 179, 194, 0.15);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
    transition: border-color 0.2s, transform 0.2s;
    cursor: pointer;
}

.tool-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Stretched link – der Titel-Link deckt die gesamte Karte ab */
.tool-card h3 a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
}

.tool-card h3 {
    font-size: 1.1rem;
}

.tool-card h3 a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.tool-card h3 a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    background: rgba(158, 179, 194, 0.1);
    color: var(--text-muted);
    border: 1px solid rgba(158, 179, 194, 0.2);
    border-radius: 20px;
    padding: 0.15rem 0.6rem;
    margin-top: 0.25rem;
    white-space: nowrap;
    align-self: flex-start;
}

.tool-card p {
    color: var(--text-muted);
    font-size: 0.93rem;
    flex: 1;
}

/* ── Kontakt ─────────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(158, 179, 194, 0.15);
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

/* Anschrift-Karte überspannt alle Spalten */
.contact-card--wide {
    grid-column: 1 / -1;
}

.contact-card .c-icon {
    font-size: 1.35rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
    opacity: 0.75;
}

.contact-card .c-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.2rem;
}

.contact-card .c-value {
    font-size: 0.95rem;
    line-height: 1.55;
}

.dsgvo-notice {
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    background: rgba(233, 196, 106, 0.07);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
    background: #1b2e30;
    text-align: center;
    padding: 1.75rem 2rem;
    font-size: 0.83rem;
    color: var(--text-muted);
}

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

.footer-note {
    margin-top: 0.4rem;
    font-size: 0.78rem;
    opacity: 0.7;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 700px) {
    .hamburger { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px; left: 0; right: 0;
        flex-direction: column;
        background: rgba(0, 23, 31, 0.7);
        -webkit-backdrop-filter: blur(18px) saturate(160%);
        backdrop-filter: blur(18px) saturate(160%);
        border-bottom: 1px solid rgba(158, 179, 194, 0.12);
        padding: 1rem 2rem 1.5rem;
        gap: 0.75rem;
        box-shadow: var(--shadow);
    }
    .nav-links.open { display: flex; }

    .about-layout { grid-template-columns: 1fr; }
    .portrait-placeholder, .portrait-img { max-width: 180px; aspect-ratio: 1 / 1; }
    .studium-row { grid-template-columns: 1fr; }

    .legal-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
    .file-item { flex-direction: column; align-items: flex-start; }
    .contact-grid { grid-template-columns: 1fr; }
}
