/* Root Variables */
:root {
    --bg: #f8fafc;
    --bg-soft: #ffffff;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --brand: #0ea5e9;
    --brand-2: #22d3ee;
    --ring: rgba(14,165,233,.22);
    --container: 1100px;
    --radius: 16px;
    --shadow: 0 16px 40px rgba(15,23,42,.08);
    --shadow-soft: 0 8px 20px rgba(15,23,42,.06);
}

/* Base Styles */
* { 
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth; 
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    color: var(--text);
    background: var(--bg);
    background-attachment: fixed;
    line-height: 1.55;
    font-size: 18px;
}

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

img { 
    max-width: 100%; 
    display: block; 
    height: auto;
    border-radius: var(--radius);
}

/* Layout Components */
.container { 
    width: min(100%, var(--container));
    margin-inline: auto;
    padding-inline: 1.2rem;
}

.section { 
    padding-block: clamp(4rem, 8vw, 8rem);
    margin-bottom: 3rem;
}

/* Header Components */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    background: rgba(255,255,255,.85);
    border-bottom: 1px solid rgba(15,23,42,.08);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 64px;
}

.logo {
    font-weight: 800;
    font-size: 1.25rem;
}

.logo span {
    color: var(--brand);
}

/* Gradient-Text nur wenn unterstützt */
@supports (-webkit-background-clip: text) or (background-clip: text) {
    .logo span {
    background-image: linear-gradient(90deg, var(--brand), var(--brand-2));
    -webkit-background-clip: text; /* Safari/Chrome */
    background-clip: text;         /* Standard */
    -webkit-text-fill-color: transparent;
    color: transparent;
    }
}

/* Navigation */
.nav-links {
    display: flex;
    gap: .6rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links a {
    padding: .8rem 1.2rem;
    border-radius: 12px;
    color: var(--muted);
    font-weight: 600;
    font-size: 1.1rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: rgba(14,165,233,.14);
}

.menu-toggle {
    display: none;
    border: 1px solid rgba(14,165,233,.5);
    border-radius: 12px;
    padding: .6rem .8rem;
    background: #fff;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 4rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    line-height: 1.1;
    margin: 0 0 1.2rem;
}

.hero p {
    color: var(--muted);
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .95rem;
    color: var(--muted);
    margin-bottom: .8rem;
}

.eyebrow .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg,var(--brand),var(--brand-2));
    box-shadow: 0 0 24px var(--ring);
}

/* Buttons */
.actions {
    display: flex;
    gap: .9rem;
    margin-top: 1.4rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid var(--brand);
    font-weight: 700;
    box-shadow: var(--shadow-soft);
    min-height: 44px;
}

.btn-primary {
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--text);
}

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.skill-card { 
    background: var(--card); 
    border: 1px solid rgba(14,165,233,.5); 
    border-radius: var(--radius); 
    padding: 1.1rem; 
    box-shadow: var(--shadow-soft); 
    transition: transform .2s ease; 
}
.skill-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.skill-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(14,165,233,.12); margin-bottom: .6rem; }
.skill-name { 
    margin: 0 0 .2rem;
    font-size: 1.2rem; /* Größere Skill-Überschriften */
}
.skill-item { 
    margin: 0; 
    color: var(--muted); 
    font-size: 1.1rem; /* Größerer Skill-Text */
}

/* Timeline */
.timeline { position: relative; margin-left: .6rem; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 4px; bottom: 4px; width: 2px; background: linear-gradient(var(--brand), var(--brand-2)); opacity: .65; }
.timeline-item { 
    position: relative;
    padding-left: 2.5rem;
    margin: 2rem 0;
    font-size: 1.1rem;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.project-card {
    grid-column: span 12;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1rem;
    background: var(--card);
    border: 1px solid rgba(14,165,233,.5);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.project-image {
    background: radial-gradient(600px 300px at 30% 20%, rgba(14,165,233,.12), transparent 50%);
    display: grid;
    place-items: center;
    padding: 1rem;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 800px; /* Deutlich größer als vorher (war 260px) */
}

/* Responsive */
@media (max-width: 640px) {
    .project-image img {
        max-height: 400px; /* Auch mobile Version größer (war 200px) */
    }
}
