/* ============================================================
   Nathalie Seidel – Portfolio Stylesheet
   ============================================================ */

/* ── CSS Variables ────────────────────────────────────────── */
:root {
    --bg:           #F9F5FF;
    --bg-white:     #FFFFFF;
    --lilac-light:  #EDE0FF;
    --lilac:        #C4A8E8;
    --lilac-dark:   #9B72CF;
    --text:         #2D2D2D;
    --text-muted:   #6B6B6B;

    --radius-card:  16px;
    --radius-pill:  50px;
    --shadow-card:  0 14px 40px rgba(155, 114, 207, 0.14);
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

/* ── Typography ───────────────────────────────────────────── */
.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--lilac-dark);
    margin-bottom: 0.6rem;
    display: block;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

/* ── Layout Helpers ───────────────────────────────────────── */
.wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.stripe { background: var(--bg-white); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-pill);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s;
    cursor: pointer;
    border: 2px solid var(--lilac-dark);
}

.btn-primary {
    background: var(--lilac-dark);
    color: white;
}

.btn-primary:hover {
    background: transparent;
    color: var(--lilac-dark);
}

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

.btn-outline:hover {
    background: var(--lilac-dark);
    color: white;
}

/* ── Navigation ───────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(249, 245, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--lilac-light);
    transition: box-shadow 0.3s;
}

nav.scrolled {
    box-shadow: 0 4px 20px rgba(155, 114, 207, 0.1);
}

.nav-logo {
    color: var(--lilac-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: opacity 0.25s;
}

.nav-logo:hover { opacity: 0.7; }

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.25s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--lilac-dark); }

/* ── Footer ───────────────────────────────────────────────── */
footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    border-top: 1px solid var(--lilac-light);
}

footer a {
    color: var(--lilac-dark);
    text-decoration: none;
}

/* ============================================================
   INDEX PAGE
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 10% 4rem;
    background: linear-gradient(140deg, #F9F5FF 0%, #EDE0FF 100%);
    position: relative;
    overflow: hidden;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    background: var(--lilac);
    opacity: 0.18;
    pointer-events: none;
}

.hero-blob-1 { width: 480px; height: 480px; top: -160px; right: -120px; }
.hero-blob-2 { width: 220px; height: 220px; bottom: 80px;  left:   40px; }

.hero-greeting {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--lilac-dark);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero-name, .hero-tagline, .hero-actions, .scroll-hint {
    position: relative;
    z-index: 1;
}

.hero-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.2rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 1.5rem;
}

.hero-name em {
    color: var(--lilac-dark);
    font-style: italic;
}

.hero-tagline {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 0.78rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    animation: nudge 2.2s ease-in-out infinite;
}

.scroll-hint svg { width: 18px; height: 18px; }

@keyframes nudge {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(7px); }
}

/* ── Hero entrance animation ─────────────────────────────── */
.hero-greeting, .hero-name, .hero-tagline, .hero-actions, .scroll-hint {
    animation: hero-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-greeting { animation-delay: 0.15s; }
.hero-name     { animation-delay: 0.35s; }
.hero-tagline  { animation-delay: 0.6s; }
.hero-actions  { animation-delay: 0.85s; }
.scroll-hint   { animation-delay: 1.1s; }

@keyframes hero-enter {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Blob drift ──────────────────────────────────────────── */
.hero-blob-1 { animation: blob-drift-1 18s ease-in-out infinite; }
.hero-blob-2 { animation: blob-drift-2 14s ease-in-out infinite; }

@keyframes blob-drift-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(-40px, 30px) scale(1.05); }
    66%      { transform: translate(25px, -20px) scale(0.97); }
}

@keyframes blob-drift-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40%      { transform: translate(30px, -35px) scale(1.08); }
    70%      { transform: translate(-20px, 15px) scale(0.95); }
}

/* ── Particles ───────────────────────────────────────────── */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.hero-particle {
    position: absolute;
    border-radius: 50%;
    background: var(--lilac-dark);
    animation: particle-drift linear forwards;
}

@keyframes particle-drift {
    0%   { transform: translate(0, 0);                     opacity: inherit; }
    70%  { opacity: inherit; }
    100% { transform: translate(var(--dx), var(--dy));     opacity: 0; }
}

/* ── Scroll Reveal ───────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.event-tile.reveal {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible,
.reveal-left.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ── About ────────────────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.avatar {
    width: 260px;
    height: 260px;
    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
    object-fit: cover;
    background-color: var(--lilac-light);
    border: 4px solid var(--lilac-light);
    animation: morph 9s ease-in-out infinite;
}

@keyframes morph {
    0%   { border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%; }
    50%  { border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%; }
    100% { border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%; }
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* ── Timeline ─────────────────────────────────────────────── */
.timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--lilac-light), var(--lilac-dark));
    border-radius: 2px;
}

.tl-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 2.5rem;
}

.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
    content: '';
    position: absolute;
    left: calc(-1.5rem - 5px);
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--lilac-dark);
    border: 3px solid var(--bg-white);
    box-shadow: 0 0 0 2px var(--lilac-dark);
}

.tl-year {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lilac-dark);
}

.tl-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0.2rem 0 0.25rem;
}

.tl-sub {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ── Cards (Ehrenamt) ─────────────────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.card {
    background: var(--bg-white);
    border-radius: var(--radius-card);
    padding: 1.75rem;
    border: 1px solid var(--lilac-light);
    transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.card-icon  { font-size: 2rem; margin-bottom: 0.9rem; }
.card-title { font-weight: 700; margin-bottom: 0.3rem; }
.card-desc  { font-size: 0.875rem; color: var(--text-muted); }

/* ── Skill Tags ───────────────────────────────────────────── */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill {
    background: var(--lilac-light);
    color: var(--lilac-dark);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: default;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
}

.skill:hover {
    transform: scale(1.12) translateY(-2px);
    background: var(--lilac);
}

/* ── Project Cards ────────────────────────────────────────── */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.project-card {
    display: block;
    background: var(--bg-white);
    border-radius: var(--radius-card);
    padding: 2rem;
    border: 1px solid var(--lilac-light);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.25s, box-shadow 0.25s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.project-card.mystery {
    background: var(--lilac-dark);
    color: white;
    border-color: var(--lilac-dark);
}

.project-card.mystery .project-desc { color: rgba(255, 255, 255, 0.75); }

.project-emoji  { font-size: 2.4rem; margin-bottom: 0.9rem; }

.project-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.project-desc { font-size: 0.875rem; color: var(--text-muted); }

/* ── Contact ──────────────────────────────────────────────── */
.contact-sub {
    color: var(--text-muted);
    max-width: 460px;
    margin: 0 auto 2.5rem;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ── Event Tiles ──────────────────────────────────────────── */
.event-category { margin-bottom: 2.5rem; }

.event-category-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--lilac-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 0.75rem;
}

.event-tile {
    background: var(--bg-white);
    border: 1px solid var(--lilac-light);
    border-radius: 12px;
    min-height: 140px;
    perspective: 700px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.event-tile:not(.flipped):hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

/* ── Flip inner wrapper ───────────────────────────────────── */
.tile-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 140px;
    transform-style: preserve-3d;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-tile.flipped .tile-inner {
    transform: rotateY(180deg);
}

.tile-front,
.tile-back {
    position: absolute;
    inset: 0;
    border-radius: 11px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* ── Front ───────────────────────────────────────────────── */
.tile-front {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

/* ── Back ────────────────────────────────────────────────── */
.tile-back {
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tile-back.no-photo {
    background: linear-gradient(135deg, var(--lilac) 0%, var(--lilac-dark) 100%);
}

.tile-back.has-photo {
    background-size: cover;
    background-position: center;
}

.tile-back.has-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(100, 60, 160, 0.65);
    border-radius: inherit;
}

.tile-back-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem;
    text-align: center;
    color: white;
}

.tile-back-logo {
    width: 26px;
    height: 26px;
    filter: brightness(0) invert(1);
    opacity: 0.75;
    margin-bottom: 0.2rem;
}

.tile-back-name {
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.25;
}

.tile-back-location {
    font-size: 0.72rem;
    opacity: 0.85;
}

.tile-back-link {
    margin-top: 0.5rem;
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    transition: background 0.2s;
}

.tile-back-link:hover {
    background: rgba(255, 255, 255, 0.38);
}

.tile-back-badge {
    margin-top: 0.35rem;
    background: rgba(255, 255, 255, 0.25);
    padding: 0.15rem 0.55rem;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
}

.tile-year {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--lilac-dark);
    letter-spacing: 0.06em;
}

.tile-name {
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.3;
    color: var(--text);
}

.tile-location {
    font-size: 0.75rem;
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 0.4rem;
}

.tile-role {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    align-self: flex-start;
}

.role-lead    { background: var(--lilac-dark);  color: white; }
.role-active  { background: var(--lilac-dark);  color: white; opacity: 0.75; }
.role-exhibit { background: var(--lilac-light);  color: var(--text); }

/* ── Mobile Nav Toggle ────────────────────────────────────── */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    nav { padding: 1rem 1.5rem; }

    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(249, 245, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 1.5rem 2rem;
        gap: 1.2rem;
        border-bottom: 1px solid var(--lilac-light);
        box-shadow: 0 10px 30px rgba(155, 114, 207, 0.12);
        z-index: 99;
    }

    .nav-links.open { display: flex; }

    #hero { padding: 7rem 1.5rem 4rem; }

    .wrapper { padding: 3.5rem 1.5rem; }

    .section-title { font-size: 1.8rem; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .avatar { width: 200px; height: 200px; }

    .hero-actions { flex-direction: column; }
    .hero-actions .btn { text-align: center; }

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

    .event-tiles { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }

    .contact-actions { flex-direction: column; align-items: center; }
    .contact-actions .btn { width: 100%; max-width: 280px; text-align: center; }
}

/* ============================================================
   SUB PAGES (Rezeptbuch, Bahnbingo etc.)
   ============================================================ */

.page-hero {
    padding: 10rem 2rem 5rem;
    text-align: center;
    background: linear-gradient(140deg, #F9F5FF 0%, #EDE0FF 100%);
}

.page-hero .section-label { justify-content: center; }

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-title em {
    color: var(--lilac-dark);
    font-style: italic;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 2rem;
}

.coming-soon-badge {
    display: inline-block;
    background: var(--lilac-light);
    color: var(--lilac-dark);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}
