:root {
    --bg: #F9F6F1;
    --bg-card: #F0EDE7;
    --text: #1A1A1A;
    --text-muted: #5A5650;
    --accent: #8B1A2F;
    --accent-hover: #6D1425;
    --accent-light: rgba(139, 26, 47, 0.07);
    --accent-glow: rgba(139, 26, 47, 0.15);
    --border: #E0DCD6;
    --white: #FFFFFF;
    --font-heading: 'Lora', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --max-width: 860px;
    --section-gap: clamp(48px, 6vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font-body); font-size: 17px; line-height: 1.7; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--accent-hover); }
::selection { background: var(--accent); color: var(--white); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.25; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 1.2rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); margin-bottom: 0.6rem; }
p + p { margin-top: 1em; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
section { padding: var(--section-gap) 0; }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(249,246,241,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); transition: box-shadow 0.3s ease; }
.nav.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.06); }
.nav-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; transition: opacity 0.2s; }
.nav-logo:hover { opacity: 0.8; }
.nav-logo img { width: 30px; height: 30px; border-radius: 3px; }
.nav-logo-text { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav-links a { font-size: 0.87rem; font-weight: 500; color: var(--text-muted); text-decoration: none; letter-spacing: 0.01em; transition: color 0.2s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1.5px; background: var(--accent); transition: width 0.3s ease; }
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
.lang-switch { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); background: none; border: 1.5px solid var(--border); border-radius: 4px; padding: 3px 10px; cursor: pointer; font-family: var(--font-body); transition: all 0.25s; }
.lang-switch:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-light); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: all 0.3s; border-radius: 1px; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-nav { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: rgba(249,246,241,0.98); backdrop-filter: blur(16px); z-index: 99; padding: 2rem clamp(20px, 5vw, 40px); }
.mobile-nav.open { display: flex; flex-direction: column; }
.mobile-nav a { display: block; font-size: 1.1rem; font-weight: 500; color: var(--text); padding: 0.8rem 0; border-bottom: 1px solid var(--border); text-decoration: none; }
.mobile-nav a:hover { color: var(--accent); }
.mobile-lang-switch { margin-top: 1.5rem; }
@media (max-width: 768px) { .nav-links { display: none; } .hamburger { display: block; } }

/* HERO */
.hero { padding-top: calc(64px + clamp(50px, 7vw, 90px)); padding-bottom: var(--section-gap); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.hero-name { font-family: var(--font-heading); font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.hero-tagline { font-size: 0.92rem; font-weight: 500; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.8rem; }
.hero-dot { display: inline-block; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; margin: 0 0.5rem; vertical-align: middle; opacity: 0.5; }
.hero-statement { font-family: var(--font-heading); font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.5; font-weight: 400; color: var(--text); margin-bottom: 1.5rem; max-width: 640px; }
.hero-text { font-size: 1rem; color: var(--text-muted); line-height: 1.75; max-width: 600px; }
.hero-photo-wrapper { position: relative; max-width: 280px; }
.hero-photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 15%; border-radius: 4px; }
.hero-photo-wrapper::before { content: ''; position: absolute; top: -8px; right: -8px; width: 50px; height: 50px; border-top: 3px solid var(--accent); border-right: 3px solid var(--accent); border-radius: 0 4px 0 0; opacity: 0.4; pointer-events: none; }
.hero-photo-credit { font-size: 0.73rem; color: var(--text-muted); margin-top: 0.5rem; font-style: italic; opacity: 0.7; }
@media (min-width: 769px) { .hero-grid { grid-template-columns: 1fr auto; align-items: start; gap: 3.5rem; } }

/* SECTIONS */
.section-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.section-label::before { content: ''; display: inline-block; width: 18px; height: 2px; background: var(--accent); opacity: 0.5; }
.section-divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ABOUT */
.about-text { font-size: 1.02rem; line-height: 1.78; color: var(--text); max-width: 680px; }
.about-text p + p { margin-top: 1.1em; }

/* PROJECTS */
.projects-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.project-card { background: var(--bg-card); border-radius: 6px; padding: clamp(1.5rem, 3vw, 2rem); transition: box-shadow 0.3s, transform 0.3s; border-left: 3px solid transparent; }
.project-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.06); border-left-color: var(--accent); transform: translateY(-2px); }
.project-meta { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.project-card h3 { font-size: clamp(1.08rem, 2vw, 1.22rem); margin-bottom: 0.8rem; }
.project-card p { font-size: 0.95rem; line-height: 1.7; color: var(--text-muted); }
.project-links { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }
.project-links a { font-size: 0.88rem; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s, text-underline-offset 0.2s; }
.project-links a:hover { text-underline-offset: 5px; }

/* AWARDS */
.awards-list { list-style: none; margin-top: 1rem; }
.awards-list li { padding: 0.75rem 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; line-height: 1.6; transition: padding-left 0.25s; }
.awards-list li:hover { padding-left: 0.4rem; }
.awards-list li:last-child { border-bottom: none; }
.award-badge { display: inline-block; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; background: var(--accent); color: var(--white); padding: 2px 8px; border-radius: 3px; margin-right: 0.4rem; vertical-align: middle; }
.award-org { color: var(--text-muted); font-size: 0.88rem; }

/* TALKS */
.talks-category { margin-top: 2rem; }
.talks-category:first-of-type { margin-top: 1rem; }
.talks-category h3 { font-size: 0.95rem; font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.8rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--accent); display: inline-block; }
.talks-list { list-style: none; }
.talks-list li { padding: 0.55rem 0; font-size: 0.93rem; line-height: 1.6; }
.talk-event { font-weight: 500; }
.talk-detail { color: var(--text-muted); }
.talk-link { font-size: 0.84rem; font-weight: 500; margin-left: 0.3rem; text-decoration: underline; text-underline-offset: 2px; }

/* PHOTO STRIP */
.photo-strip { display: flex; gap: 0.8rem; margin-top: 2.5rem; overflow-x: auto; padding-bottom: 0.5rem; scroll-snap-type: x mandatory; }
.photo-strip img { height: 180px; width: auto; border-radius: 4px; object-fit: cover; scroll-snap-align: start; transition: transform 0.3s; flex-shrink: 0; }
.photo-strip img:hover { transform: scale(1.03); }
.photo-strip-credit { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.4rem; font-style: italic; opacity: 0.6; }
.photo-strip::-webkit-scrollbar { height: 4px; }
.photo-strip::-webkit-scrollbar-track { background: var(--border); border-radius: 2px; }
.photo-strip::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 2px; }

/* ENGAGEMENT */
.engagement-intro { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; max-width: 640px; font-style: italic; }
.engagement-list { list-style: none; }
.engagement-list li { padding: 0.65rem 0; border-bottom: 1px solid var(--border); font-size: 0.93rem; line-height: 1.65; }
.engagement-list li:last-child { border-bottom: none; }
.engagement-org { font-weight: 600; }
.engagement-role { color: var(--text-muted); }

/* GEDANKEN & NOTIZEN */
.notes-intro { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; font-style: italic; }
.notes-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 600px) { .notes-grid { grid-template-columns: 1fr 1fr 1fr; } }
.note-card { background: var(--bg-card); border-radius: 6px; padding: 1.4rem 1.5rem; transition: box-shadow 0.3s, transform 0.3s; position: relative; overflow: hidden; }
.note-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), transparent); opacity: 0; transition: opacity 0.3s; }
.note-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); transform: translateY(-2px); }
.note-card:hover::before { opacity: 1; }
.note-card-date { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.note-card-title { font-family: var(--font-heading); font-size: 1.02rem; font-weight: 600; line-height: 1.35; }
.note-card-title a { color: var(--text); text-decoration: none; }
.note-card-title a:hover { color: var(--accent); }

/* CONTACT */
.contact-intro { font-size: 1rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 2rem; max-width: 560px; }
.contact-form { max-width: 480px; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.35rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.65rem 0.8rem; font-family: var(--font-body); font-size: 0.93rem; color: var(--text); background: var(--white); border: 1px solid var(--border); border-radius: 4px; transition: border-color 0.25s, box-shadow 0.25s; appearance: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A5650' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.8rem center; padding-right: 2.2rem; }
.btn-submit { font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; color: var(--white); background: var(--accent); border: none; border-radius: 4px; padding: 0.7rem 2rem; cursor: pointer; transition: background 0.25s, transform 0.15s, box-shadow 0.25s; }
.btn-submit:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 12px var(--accent-glow); }
.btn-submit:active { transform: translateY(0); }
.contact-alt { margin-top: 1.5rem; font-size: 0.93rem; color: var(--text-muted); }
.contact-alt a { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 2rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer p { font-size: 0.82rem; color: var(--text-muted); }
.footer-logo { width: 22px; height: 22px; border-radius: 2px; opacity: 0.4; transition: opacity 0.2s; }
.footer-logo:hover { opacity: 0.7; }

/* ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }

/* LANGUAGE */
[data-lang="en"] { display: none; }
body.lang-en [data-lang="de"] { display: none; }
body.lang-en [data-lang="en"] { display: block; }
span[data-lang="en"], a[data-lang="en"] { display: none; }
body.lang-en span[data-lang="de"], body.lang-en a[data-lang="de"] { display: none; }
body.lang-en span[data-lang="en"], body.lang-en a[data-lang="en"] { display: inline; }

/* ============================================
   BLOG POST PAGE
   ============================================ */
.post {
    padding-top: calc(64px + clamp(40px, 6vw, 80px));
    padding-bottom: var(--section-gap);
}

.post-header {
    margin-bottom: 2.5rem;
}

.post-back {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.post-back:hover {
    color: var(--accent);
}

.post-date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.post-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    max-width: 680px;
}

.post-body {
    max-width: 680px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.post-body h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    margin-top: 2.5rem;
    margin-bottom: 0.8rem;
}

.post-body h3 {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-top: 2rem;
    margin-bottom: 0.6rem;
}

.post-body p {
    margin-bottom: 1.2em;
}

.post-body a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-body blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1.2rem;
    margin: 1.5em 0;
    color: var(--text-muted);
    font-style: italic;
}

.post-body ul, .post-body ol {
    margin: 1em 0;
    padding-left: 1.5rem;
}

.post-body li {
    margin-bottom: 0.4em;
}

.post-body strong {
    font-weight: 600;
}

.post-body img {
    border-radius: 4px;
    margin: 1.5em 0;
}

.post-body code {
    font-size: 0.9em;
    background: var(--bg-card);
    padding: 0.15em 0.4em;
    border-radius: 3px;
}

.post-body pre {
    background: var(--bg-card);
    padding: 1rem 1.2rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.post-body pre code {
    background: none;
    padding: 0;
}

.post-body hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5em 0;
}

@media (max-width: 480px) {
    .hero-photo-wrapper { max-width: 220px; }
    .photo-strip img { height: 140px; }
}
