/* Reset / Basics */

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

:root {
    --bg: #020617;                /* Hintergrund */
    --bg-elevated: #020617;       /* Karten-Hintergrund */
    --border: #1f2937;            /* Border-Farbe */
    --text: #e5e7eb;              /* Schriftfarbe */
    --muted: #9ca3af;             /* schwache Schrift */
    --accent: #2563eb;            /* Hauptfarbe */
    --accent-soft: rgba(37,99,235,0.15);
    --accent-2: #22c55e;          /* zweite Akzentfarbe */
}


html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #0b1120, #020617 55%);
    color: var(--text);
    font-size: 18px;
}

body {
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Seite & Hintergrund */

.page {
    min-height: 100vh;
    position: relative;
}

/* Glow-Kreise im Hintergrund */

.bg-glow {
    position: fixed;
    border-radius: 999px;
    filter: blur(60px);
    opacity: 0.7;
    z-index: -1;
    pointer-events: none;
    animation: float 18s ease-in-out infinite;
}

.bg-glow-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.5), transparent);
    top: -80px;
    left: -80px;
}

.bg-glow-2 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.5), transparent);
    bottom: -120px;
    right: -60px;
}

@keyframes float {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(20px, -10px, 0);
    }
}

/* Header / Navigation */

.header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 1.8rem 8%;       /* vorher 1.2rem — jetzt höher */
    backdrop-filter: blur(18px);

    background: linear-gradient(
            to bottom,
            rgba(15, 23, 42, 0.9),
            rgba(15, 23, 42, 0.6),
            transparent
    );

    border-bottom: 1px solid rgba(80, 100, 130, 0.25); /* heller, sichtbarer */
}

.logo {
    font-weight: 700;
    letter-spacing: 0.12em;
    font-size: 1.2rem;   /* vorher 0.9rem */
    text-transform: uppercase;
}


.nav {
    display: flex;
    gap: 2rem;           /* vorher 1.3rem */
    font-size: 1rem;     /* vorher 0.9rem */
    font-weight: 500;
}


.nav a {
    color: var(--muted);
    position: relative;
    padding-bottom: 0.2rem;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #38bdf8);
    transition: width 0.22s ease-out;
}

.nav a:hover {
    color: var(--text);
}

.nav a:hover::after {
    width: 100%;
}

/* Layout */

.main {
    padding: 3rem 8% 4.5rem;    /* weniger Rand links/rechts, etwas mehr oben/unten */
    max-width: 2400px;          /* Inhalt darf breiter werden */
    margin: 0 auto;
}

/* Hero */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.hero-left {
    animation: fadeInUp 0.7s ease-out forwards;
}

.hero-right {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 14px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    font-size: 0.75rem;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.9);
    margin-bottom: 0.8rem;
}

.pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent-2);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

.hero-title {
    font-size: clamp(2.4rem, 4vw, 3rem);
    margin: 0.1rem 0 0.4rem;
}

.hero-highlight {
    background: linear-gradient(120deg, #60a5fa, #22c55e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    color: var(--muted);
    max-width: 620px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.5rem 0 0.8rem;
}

.hero-note {
    font-size: 0.85rem;
    color: var(--muted);
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: 1px solid #4b5563;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.14s ease-out,
    box-shadow 0.14s ease-out,
    background 0.14s ease-out,
    border-color 0.14s ease-out;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #38bdf8);
    border-color: transparent;
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 40px rgba(37, 99, 235, 0.5);
}

.btn-ghost {
    background: rgba(15, 23, 42, 0.9);
}

.btn-ghost:hover {
    background: rgba(15, 23, 42, 1);
    transform: translateY(-1px);
}

/* Hero-Card rechts */

.hero-card {
    background:
            radial-gradient(circle at top, rgba(56, 189, 248, 0.16), transparent 60%),
            rgba(15, 23, 42, 0.96);
    border-radius: 1.5rem;
    padding: 1.5rem 1.4rem 1.6rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: var(--shadow-soft);
}

.hero-card h2 {
    margin-top: 0;
    margin-bottom: 0.9rem;
    font-size: 1rem;
}

.hero-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #6b7280;
    margin-right: 0.5rem;
    display: inline-block;
}

.dot.online {
    background: var(--accent-2);
}

/* Sections */

.section {
    margin-top: 2.2rem;
}

.section h2 {
    margin-bottom: 0.8rem;
}

/* Cards */

.card {
    border-radius: 1.2rem;
    padding: 1.5rem 1.4rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.9);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.9);
}

/* Projekte */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
}

.project-card {
    border-radius: 1rem;
    padding: 1.2rem 1.1rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(31, 41, 55, 0.9);
    transition: transform 0.16s ease-out,
    box-shadow 0.16s ease-out,
    border-color 0.16s ease-out,
    background 0.16s ease-out;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.9);
    border-color: rgba(59, 130, 246, 0.7);
    background: radial-gradient(circle at top, var(--accent-soft), #020617);
}

.project-card h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.project-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.tags {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: var(--muted);
}

/* Tech-Stack Chips */

.chips {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    font-size: 0.8rem;
    color: var(--muted);
}

/* Timeline */

.timeline {
    position: relative;
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0.45rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    opacity: 0.4;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.4rem;
}

.timeline-dot {
    position: absolute;
    left: -0.1rem;
    top: 0.3rem;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.9);
}

.timeline-content h3 {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
}

.timeline-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

/* Kontakt */

.contact-links a {
    color: #93c5fd;
}

.contact-links a:hover {
    text-decoration: underline;
}

/* Footer */

.footer {
    padding: 1.4rem 10% 1.6rem;
    font-size: 0.8rem;
    color: var(--muted);
    border-top: 1px solid rgba(15, 23, 42, 0.9);
    text-align: center;
    margin-top: 2rem;
}

/* Responsive */

@media (max-width: 900px) {
    .header {
        padding-inline: 1.4rem;
    }

    .main {
        padding-inline: 1.4rem;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .nav {
        gap: 1rem;
        font-size: 0.8rem;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* ALT: 260px */
    gap: 1.4rem;
}
