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

:root {
    --bg: #F4F5F0;
    --bg-card: #FAFBF8;
    --text: #1C1A24;
    --text-muted: #6B6878;
    --accent: #7A9E7E;
    --accent-dark: #5A7D5E;
    --accent-light: #E8EFEA;
    --accent2: #8B7BB5;
    --accent2-light: #EDE9F7;
    --border: rgba(28,26,36,0.11);
    --serif: 'Instrument Serif', Georgia, serif;
    --sans: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
    font-weight: 300;
}

/* NAV */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.25rem 4rem;
    background: rgba(244,245,240,0.88);
    backdrop-filter: blur(12px);
    border-bottom: 0.5px solid var(--border);
}
.nav-logo {
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--text);
    text-decoration: none;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent-dark); }

/* HERO */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 5rem;
}
.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 4rem;
}
.hero-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-dark);
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: flex; align-items: center; gap: 0.75rem;
}
.hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 2rem; height: 1px;
    background: var(--accent-dark);
}
.hero-title {
    font-family: var(--serif);
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.08;
    margin-bottom: 1.5rem;
}
.hero-title em {
    font-style: italic;
    color: var(--accent2);
}
.hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 38ch;
    margin-bottom: 2.5rem;
    line-height: 1.75;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    border-radius: 100px;
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent2); color: var(--accent2); }

.hero-right {
    position: relative;
    background: var(--accent2-light);
    overflow: hidden;
    display: flex; align-items: flex-end; justify-content: center;
}
.hero-art {
    position: absolute; inset: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, 1fr);
    opacity: 0.2;
}
.hero-art-dot {
    border-radius: 50%;
    background: var(--accent2);
    width: 4px; height: 4px;
    margin: auto;
}
.hero-card {
    position: relative; z-index: 2;
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: 20px 20px 0 0;
    padding: 2.5rem 2.5rem 0;
    width: 80%; max-width: 360px;
}
.hero-card-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--accent2);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif);
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: 1.25rem;
}
.hero-card-name { font-family: var(--serif); font-size: 1.35rem; margin-bottom: 0.25rem; }
.hero-card-title { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.hero-card-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }

.tag {
    font-size: 0.75rem; font-weight: 500;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    background: var(--accent-light);
    color: var(--accent-dark);
    letter-spacing: 0.02em;
}

/* SECTIONS */
section { padding: 6rem 4rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-dark);
    font-weight: 500;
    margin-bottom: 0.75rem;
    display: flex; align-items: center; gap: 0.75rem;
}
.section-label::before {
    content: '';
    display: inline-block;
    width: 1.5rem; height: 1px;
    background: var(--accent-dark);
}
.section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

/* ABOUT */
#om {
    background: var(--bg-card);
    border-top: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem; align-items: start;
    margin-top: 3rem;
}
.about-text p { color: var(--text-muted); margin-bottom: 1.25rem; font-size: 1.025rem; line-height: 1.8; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fact-card {
    background: var(--bg);
    border: 0.5px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
}
.fact-number {
    font-family: var(--serif);
    font-size: 2.25rem;
    color: var(--accent2);
    line-height: 1;
    margin-bottom: 0.25rem;
}
.fact-label { font-size: 0.8rem; color: var(--text-muted); }
.skills-list { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-pill {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    border: 0.5px solid var(--border);
    color: var(--text-muted);
    background: var(--bg-card);
}

/* PROJECTS */
#projekter { background: var(--bg); }
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}
.project-card {
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: 18px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    display: flex; flex-direction: column;
    transition: transform 0.2s, border-color 0.2s;
    position: relative; overflow: hidden;
}
.project-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s;
}
.project-card:hover { transform: translateY(-3px); border-color: rgba(139,123,181,0.3); }
.project-card:hover::before { transform: scaleX(1); }
.project-card.coming-soon { opacity: 0.5; cursor: default; pointer-events: none; }

.project-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--accent2-light);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.35rem;
}
.project-number {
    position: absolute; top: 1.75rem; right: 1.75rem;
    font-family: var(--serif);
    font-size: 2.5rem;
    color: var(--border);
    line-height: 1; font-style: italic;
}
.project-title { font-family: var(--serif); font-size: 1.35rem; margin-bottom: 0.5rem; }
.project-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; flex: 1; margin-bottom: 1.5rem; }
.project-stack { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.project-link {
    font-size: 0.8rem; font-weight: 500;
    color: var(--accent2);
    letter-spacing: 0.04em; text-transform: uppercase;
    display: flex; align-items: center; gap: 0.4rem;
}
.project-link::after { content: '→'; transition: transform 0.2s; }
.project-card:hover .project-link::after { transform: translateX(4px); }

/* CONTACT */
#kontakt { background: var(--text); color: #fff; }
#kontakt .section-label { color: #A89ED0; }
#kontakt .section-label::before { background: #A89ED0; }
#kontakt .section-title { color: #fff; }
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: center;
    margin-top: 3rem;
}
.contact-desc { font-size: 1.05rem; color: rgba(255,255,255,0.55); line-height: 1.8; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-link {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255,255,255,0.05);
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    text-decoration: none; color: #fff;
    transition: background 0.2s, border-color 0.2s;
}
.contact-link:hover { background: rgba(139,123,181,0.15); border-color: rgba(139,123,181,0.4); }
.contact-link-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.contact-link-text strong { display: block; font-size: 0.9rem; font-weight: 500; }
.contact-link-text span { font-size: 0.8rem; color: rgba(255,255,255,0.45); }

/* FOOTER */
footer {
    background: var(--text);
    border-top: 0.5px solid rgba(255,255,255,0.08);
    padding: 2rem 4rem;
    display: flex; justify-content: space-between; align-items: center;
}
footer p { font-size: 0.8rem; color: rgba(255,255,255,0.3); }

/* ANIMATIONS */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow { animation: fadeUp 0.6s ease both; }
.hero-title    { animation: fadeUp 0.6s 0.1s ease both; }
.hero-desc     { animation: fadeUp 0.6s 0.2s ease both; }
.hero-cta      { animation: fadeUp 0.6s 0.3s ease both; }
.hero-card     { animation: fadeUp 0.7s 0.2s ease both; }

/* RESPONSIVE */
@media (max-width: 900px) {
    nav { padding: 1rem 1.5rem; }
    .nav-links { gap: 1.25rem; }
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-left { padding: 7rem 1.5rem 3rem; }
    .hero-right { min-height: 320px; }
    section { padding: 4rem 1.5rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    footer { flex-direction: column; gap: 1rem; padding: 1.5rem; text-align: center; }
}