:root {
    --bg: #030712;
    --bg-elevated: rgba(15,23,42,0.9);
    --bg-glass: rgba(15,23,42,0.82);
    --border-subtle: rgba(148,163,184,0.25);
    --accent: #556e7a;
    --accent-soft: rgba(99,102,241,0.15);
    --accent-strong: #4f46e5;
    --accent-secondary: #cdb57b;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --radius-lg: 18px;
    --radius-sm: 10px;
    --shadow-soft: 0 18px 40px rgba(15,23,42,0.75);
    --max-width: 1080px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at top left, #111827 0, #020617 50%, #000 100%);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Login Screen */

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: radial-gradient(circle at top, rgba(99,102,241,0.16), rgba(15,23,42,0.98));
    border-radius: 24px;
    padding: 32px 28px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 0 0, rgba(236,72,153,0.24), transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(56,189,248,0.22), transparent 65%);
    opacity: 0.5;
    pointer-events: none;
}

.login-inner {
    position: relative;
    z-index: 1;
}

.login-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.login-name {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.85);
    border: 1px solid rgba(148,163,184,0.4);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34,197,94,0.9);
}

.login-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.login-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,0.5);
    background: rgba(15,23,42,0.9);
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
    transition: border 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.login-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(99,102,241,0.5);
    background: rgba(15,23,42,1);
}

.login-error {
    margin-top: 8px;
    color: #f97373;
    font-size: 0.8rem;
}

.login-button {
    margin-top: 18px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 999px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 12px 30px rgba(79,70,229,0.5);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(79,70,229,0.6);
}

/* Layout */

.page-shell {
    min-height: 100vh;
    padding: 24px;
}

.page-inner {
    max-width: var(--max-width);
    margin: 0 auto 40px auto;
}

/* Top Navigation / Header */

.top-nav {
    position: sticky;
    top: 16px;
    z-index: 40;
    margin-bottom: 20px;
}

.top-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(15,23,42,0.94);
    border: 1px solid rgba(148,163,184,0.35);
    box-shadow: 0 14px 42px rgba(15,23,42,0.85);
    backdrop-filter: blur(16px);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at 10% 0, #4f46e5, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.nav-name-role {
    display: flex;
    flex-direction: column;
}

.nav-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-role {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
}

.nav-link {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--text-muted);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.1s ease, color 0.1s ease, border 0.1s ease;
}

.nav-link:hover {
    background: rgba(15,23,42,1);
    border-color: rgba(148,163,184,0.7);
    color: var(--text-main);
}

.nav-link.primary {
    background: var(--accent-soft);
    border-color: rgba(129,140,248,0.6);
    color: #e0e7ff;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-pill {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.5);
    color: var(--text-muted);
}

.logout-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.7rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 999px;
    transition: background 0.12s ease, color 0.12s ease;
}

.logout-btn:hover {
    background: rgba(248,113,113,0.12);
    color: #fecaca;
}

/* Hero / Header-Section */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 32px;
    margin-bottom: 32px;
}

.hero-main {
    background: var(--bg-glass);
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.hero-main::before {
    content: '';
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 10% 0, rgba(99,102,241,0.23), transparent 60%),
        radial-gradient(circle at 90% 100%, rgba(236,72,153,0.24), transparent 60%);
    opacity: 0.6;
    pointer-events: none;
}

.hero-main-inner {
    position: relative;
    z-index: 1;
}

.hero-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 8px;
}

.hero-role {
    font-size: 0.95rem;
    color: #c7d2fe;
    margin-bottom: 16px;
}

.hero-intro {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.hero-highlight {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.pill {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.5);
    background: rgba(15,23,42,0.9);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.btn {
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border 0.12s ease, color 0.12s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: #f9fafb;
    box-shadow: 0 14px 35px rgba(79,70,229,0.6);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 42px rgba(79,70,229,0.8);
}

.btn-ghost {
    background: rgba(15,23,42,0.9);
    color: var(--text-muted);
    border: 1px solid rgba(148,163,184,0.6);
}

.btn-ghost:hover {
    background: rgba(15,23,42,1);
    color: var(--text-main);
}

.hero-sub-note {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-card {
    background: var(--bg-glass);
    border-radius: var(--radius-lg);
    padding: 16px 16px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    font-size: 0.8rem;
}

.hero-card-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.hero-keyfacts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.hero-keyfact-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.hero-keyfact-value {
    font-size: 0.88rem;
}

.hero-tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-badge {
    font-size: 0.72rem;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.5);
    color: var(--text-muted);
}

/* Sections */

.sections {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
    gap: 24px;
}

.section-block {
    background: var(--bg-glass);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    padding: 20px 18px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.section-heading {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.section-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Timeline / Erfahrung */

.timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    gap: 12px;
    padding: 10px 10px;
    border-radius: var(--radius-sm);
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(31,41,55,0.9);
}

.timeline-period {
    font-size: 0.8rem;
    color: #a5b4fc;
}

.timeline-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.timeline-company {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.timeline-bullets {
    margin: 0;
    padding-left: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Projekte */

.project-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.project-item {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(31,41,55,0.9);
}

.project-title-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: baseline;
}

.project-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.project-period {
    font-size: 0.8rem;
    color: #a5b4fc;
}

.project-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.project-summary {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.project-highlights {
    margin: 0;
    padding-left: 16px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Skills */

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-item {
    font-size: 0.8rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.skill-label {
    color: var(--text-main);
}

.skill-level {
    color: var(--text-muted);
}

.skill-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(15,23,42,1);
    overflow: hidden;
    border: 1px solid rgba(31,41,55,1);
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
}

/* Lists */

.list-compact {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.list-compact li + li {
    margin-top: 6px;
}

.lang-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

/* Kontakt */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    font-size: 0.82rem;
}

.contact-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-muted);
}

.contact-label {
    color: var(--text-muted);
}

.contact-value {
    text-align: right;
    color: var(--text-main);
}

.footer-note {
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Responsive */

@media (max-width: 880px) {
    .top-nav {
        top: 8px;
    }

    .top-nav-bar {
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 20px;
    }

    .nav-links {
        display: none; /* Für mobile: einfacher Header, kein voller Nav */
    }

    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .sections {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .page-shell {
        padding: 16px;
    }

    .hero-main {
        padding: 18px 16px;
    }

    .section-block {
        padding: 16px 14px;
    }
}
