/* ================================================================
   PORTFOLIO DAMIAN SCHMID — style.css
   ----------------------------------------------------------------
   Inhaltsverzeichnis:
   1.  CSS-Variablen & Reset
   2.  Stage (Startbildschirm + Kopfleiste)
   3.  Stage: Profilbild & Text
   4.  Stage: Intro-Video
   5.  Stage: Navigation (Header-Buttons)
   6.  Hamburger-Menü & Mobile Seitenleiste
   7.  Hauptinhalt (main-content)
   8.  Sektions-Wechsel (Portfolio / CV / Skills)
   9.  Portfolio: Projektkarten (16:9 & 9:16)
   10. CV: Layout & Einträge
   11. Skills: Karten-Grid mit Balken
   12. Übergänge & Animationen
   13. Footer
   ================================================================ */


/* ----------------------------------------------------------------
   1. CSS-VARIABLEN & RESET
   ---------------------------------------------------------------- */
:root {
    /* Farben */
    --bg:           #d4cdc4;
    --surface:      #f2efe9;
    --border:       #d4cfc8;
    --accent:       #2c2c2c;
    --text:         #3d3a36;
    --muted:        #888078;
    --highlight:    #b5903a;
    --nav-active:   #2c2c2c;
    --nav-inactive: #888078;

    /* Schriften */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'DM Sans', sans-serif;

    /* Radien & Schatten */
    --radius-sm:    8px;
    --radius-md:    16px;
    --radius-lg:    24px;
    --shadow-soft:  0 4px 24px rgba(0,0,0,0.08);
    --shadow-card:  0 8px 40px rgba(0,0,0,0.10);

    /* Header-Höhe */
    --header-h:     72px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
}


/* ----------------------------------------------------------------
   2. STAGE: FULLSCREEN STARTBILDSCHIRM
   ---------------------------------------------------------------- */
.stage {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    z-index: 100;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header-Modus: sticky Leiste oben */
.stage.header-mode {
    position: sticky;
    top: 0;
    height: var(--header-h);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    background: #c9c2b9;
    border-bottom: 1px solid var(--border);
}


/* ----------------------------------------------------------------
   3. STAGE: PROFILBILD & TEXT
   ---------------------------------------------------------------- */
.profile-part {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
    transition:
        transform      0.7s cubic-bezier(0.4, 0, 0.2, 1),
        flex-direction 0.5s ease,
        gap            0.5s ease;
}

.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 40% 0%;
    cursor: pointer;
    transition:
        width      0.7s cubic-bezier(0.4, 0, 0.2, 1),
        height     0.7s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.profile-pic:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.18); }

.name {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.01em;
    margin-top: 20px;
    line-height: 1.15;
    transition: font-size 0.7s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.5s ease;
}

.subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 6px;
    transition: font-size 0.5s ease, opacity 0.5s ease, margin-top 0.5s ease;
}

.email-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--highlight);
    text-decoration: none;
    transition: opacity 0.3s ease;
    margin-top: 6px;
    display: inline-block;
}

.email-link:hover { text-decoration: underline; }

/* --- Header-Modus: Profil wird zur kompakten Zeile --- */
.stage.header-mode .profile-part {
    flex-direction: row;
    align-items: center;
    gap: 14px;
}

.stage.header-mode .profile-pic {
    width: 42px;
    height: 42px;
}

.stage.header-mode .profile-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.stage.header-mode .name {
    font-size: 1.05rem;
    margin-top: 0;
}

.stage.header-mode .subtitle {
    font-size: 0.7rem;
    margin-top: 1px;
    letter-spacing: 0.1em;
}

/* ÄNDERUNG (Desktop Header):
   Abstand zwischen Subtitle (Content Specialist) und E-Mail-Adresse kleiner.
   Vorher: margin-top: 1px (implizit durch gap:0 auf profile-text).
   Jetzt: explizit kein margin-top — die E-Mail rückt dichter an den Subtitle. */
.stage.header-mode .email-link {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-top: 0;        /* ← vorher: 1px; jetzt direkt unter dem Subtitle */
}


/* ----------------------------------------------------------------
   4. STAGE: INTRO-VIDEO
   ---------------------------------------------------------------- */
/* Der Video-Container */
.video-part {
    position: absolute;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    z-index: 200;
    transition: opacity 0.5s ease;
}

/* 9:16 Format: Die goldene Mitte */
.video-wrapper-9-16 {
    height: 95vh;           /* Lässt oben und unten einen Hauch Platz */
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background-color: var(--bg);
    transform: scale(1.20);
    mask-image: radial-gradient(ellipse at center, black 75%, transparent 95%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 75%, transparent 95%);
}

.local-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateY(-1.5%);
}

/* Header-Modus: Video unsichtbar */
.stage.header-mode .video-part {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 640px) {
    .video-part {
        align-items: stretch;
        justify-content: stretch;
    }

    .video-wrapper-9-16 {
        width: 100vw;
        height: 100vh;
        aspect-ratio: unset;
        mask-image: none;
        transform: scale(1.05);
    }

    .local-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: translateY(-5%);
    }
}


/* ----------------------------------------------------------------
   5. STAGE: DESKTOP-NAVIGATION (nur im Header-Modus)
   ---------------------------------------------------------------- */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    right: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease 0.1s;
}

.stage.header-mode .main-nav {
    opacity: 1;
    pointer-events: all;
}

.nav-btn {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--nav-inactive);
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.nav-btn:hover { color: var(--accent); background: rgba(0,0,0,0.05); }

.nav-btn.active {
    color: var(--surface);
    background: var(--nav-active);
    font-weight: 500;
}

/* Desktop-Nav auf Mobile ausblenden */
@media (max-width: 640px) {
    .main-nav { display: none; }
}


/* ----------------------------------------------------------------
   6. HAMBURGER-MENÜ & MOBILE SEITENLEISTE
   ---------------------------------------------------------------- */

/* Hamburger-Button — nur auf Mobile im Header-Modus sichtbar */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.hamburger:hover { background: rgba(0,0,0,0.06); }

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger sichtbar machen: nur Mobile + Header-Modus */
@media (max-width: 640px) {
    .stage.header-mode .hamburger {
        display: flex;
        position: absolute;
        right: 16px;
    }

    /* ÄNDERUNG (Mobile Header):
       Profilbild, Name, Beruf und Mail leicht nach links versetzt.
       Vorher: kein spezifischer left-Abstand (zentriert durch flex).
       Jetzt: padding-left auf profile-part, damit der Inhalt vom linken Rand
       einen angenehmen Mindestabstand hat. */
    .stage.header-mode .profile-part {
        padding-left: 4px;   /* ← leicht nach links, weg vom zu engen Rand */
    }
}

/* Aktiv-Zustand: X-Form */
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Dunkles Overlay hinter der Seitenleiste */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 290;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.is-open {
    opacity: 1;
}

/* ÄNDERUNG (Mobile Seitenleiste):
   Leicht transparenter Hintergrund für die Seitenleiste.
   Vorher: background: var(--surface) → komplett opak (#f2efe9).
   Jetzt:  rgba mit 88% Deckkraft + backdrop-filter für Glassmorphism-Effekt. */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -260px;         /* Versteckt rechts außen */
    width: 240px;
    height: 100%;
    background: rgba(242, 239, 233, 0.88);   /* ← vorher: var(--surface); jetzt leicht transparent */
    backdrop-filter: blur(12px);              /* ← Glassmorphism-Weichzeichner */
    -webkit-backdrop-filter: blur(12px);
    z-index: 300;
    display: flex;
    flex-direction: column;
    padding: 80px 28px 40px;
    gap: 8px;
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.is-open {
    right: 0;
}

/* Schließen-Button */
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    color: var(--muted);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, background 0.2s ease;
}

.mobile-menu-close:hover { color: var(--accent); background: rgba(0,0,0,0.05); }

/* Mobile Nav-Buttons */
.mobile-nav-btn {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--accent);
    background: transparent;
    border: none;
    text-align: left;
    padding: 12px 0;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.01em;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav-btn:last-child { border-bottom: none; }

.mobile-nav-btn:hover {
    color: var(--highlight);
    padding-left: 8px;
}

/* Overlay + Menü nur auf Mobile anzeigen */
.mobile-menu-overlay.is-open { display: block; }

@media (min-width: 641px) {
    .mobile-menu,
    .mobile-menu-overlay,
    .hamburger { display: none !important; }
}


/* ----------------------------------------------------------------
   8. HAUPTINHALT (main-content)
   ---------------------------------------------------------------- */
.main-content {
    padding-top: calc(var(--header-h) - 80px);
    min-height: 100vh;
    position: relative;
    z-index: 10;
    background: var(--bg);
}

.section-main-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 64px;        /* ← Abstand zwischen Trennlinie und erster Karte */
    padding-bottom: 28px;       /* ← Abstand zwischen Titeltext und Trennlinie */
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.01em;
}


/* ----------------------------------------------------------------
   8. SEKTIONS-WECHSEL
   ---------------------------------------------------------------- */
.section-panel {
    display: block;
    opacity: 1;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    margin-top: 40px;
}

.section-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px 80px;
}

@media (max-width: 640px) {
    .section-inner { padding: 0 16px 60px; }
}


/* ----------------------------------------------------------------
   9. PORTFOLIO: PROJEKTKARTEN (16:9 & 9:16)
   ---------------------------------------------------------------- */

.project-card {
    display: grid;
    gap: 40px;
    align-items: start;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.project-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* ── 16:9 LANDSCAPE ────────────────────────────────────────────── */

/* Standard: Text links (1fr) | Video rechts (2fr) */
.project-landscape {
    grid-template-columns: 1fr 2fr;
}

/* Reversed: Video links (2fr) | Text rechts (1fr).
   DOM-Reihenfolge bleibt Text → Video; order tauscht die visuelle Position. */
.project-landscape.project-landscape--reversed {
    grid-template-columns: 2fr 1fr;
}
.project-landscape.project-landscape--reversed .project-info  { order: 2; }
.project-landscape.project-landscape--reversed .project-media { order: 1; }


/* ── 9:16 PORTRAIT ─────────────────────────────────────────────── */

/* Standard: Text links (1fr) | Video rechts (0.7fr) */
.project-portrait {
    grid-template-columns: 1fr 0.7fr;
    align-items: center;
}

/* Reversed: Video links (0.7fr) | Text rechts (1fr).
   DOM-Reihenfolge bleibt Text → Video; order tauscht die visuelle Position. */
.project-portrait.project-portrait--reversed {
    grid-template-columns: 0.7fr 1fr;
}
.project-portrait.project-portrait--reversed .project-info  { order: 2; }
.project-portrait.project-portrait--reversed .project-media { order: 1; }


/* ── PORTRAIT MEDIA WRAPPER ────────────────────────────────────── */

/* Standard (rechts): Video am rechten Rand der Spalte */
.project-media--portrait-right {
    display: flex;
    justify-content: flex-end;
}

/* Reversed (links): Video am linken Rand der Spalte */
.project-media--portrait-left {
    display: flex;
    justify-content: flex-start;
}

/* ratio-9-16 innerhalb der Portrait-Wrapper: volle Spaltenbreite, max 340px */
.project-media--portrait-right .ratio-9-16,
.project-media--portrait-left  .ratio-9-16 {
    width: 100%;
    max-width: 340px;
}


/* ── GEMEINSAME STYLES ─────────────────────────────────────────── */

.project-info { padding-top: 8px; }

.project-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1.2;
    margin-bottom: 16px;
}

.project-desc {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.7;
    font-weight: 300;
    max-width: 38ch;
}

/* Portrait-Karten: Textfeld füllt die Spalte vollständig aus.
   max-width aufheben, damit kein künstlicher Rand entsteht. */
.project-portrait .project-desc {
    max-width: none;
}

/* ── VIDEO FRAMES ──────────────────────────────────────────────── */

.video-frame {
    position: relative;
    background: #1a1a1a;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    width: 100%;
}

.video-frame iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
    z-index: 10;
}

.video-frame iframe ~ video { display: none; }

.ratio-16-9 { aspect-ratio: 16 / 9; }

.ratio-9-16 {
    aspect-ratio: 9 / 16;
    max-width: 340px;   /* Fallback ohne portrait-media-Wrapper */
}

.video-frame video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* Platzhalter-Overlay */
.video-placeholder-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    pointer-events: none;
}

.video-frame video:not([src=""]) ~ .video-placeholder-overlay { display: none; }

.placeholder-label {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.08em;
    user-select: none;
}

/* Hover */
.project-card:hover .video-frame {
    box-shadow: 0 12px 50px rgba(0,0,0,0.15);
    transition: box-shadow 0.3s ease;
}


/* ── RESPONSIVE ────────────────────────────────────────────────── */

/* Unter 900px: alle Karten einspaltiger Stack.
   order-Reset stellt sicher, dass reversed-Karten auf Mobile
   in der natürlichen DOM-Reihenfolge (Text oben, Video unten) erscheinen. */
@media (max-width: 900px) {

    .project-landscape,
    .project-landscape.project-landscape--reversed,
    .project-portrait,
    .project-portrait.project-portrait--reversed {
        grid-template-columns: 1fr;
    }

    /* Reversed-Karten: order zurücksetzen → DOM-Reihenfolge (Text zuerst) */
    .project-landscape.project-landscape--reversed .project-info,
    .project-landscape.project-landscape--reversed .project-media,
    .project-portrait.project-portrait--reversed .project-info,
    .project-portrait.project-portrait--reversed .project-media {
        order: unset;
    }

    .project-card {
        margin-bottom: 36px;
        padding-bottom: 36px;
    }

    /* Portrait-Videos auf Mobile: immer zentriert */
    .project-media--portrait-right,
    .project-media--portrait-left {
        justify-content: center;
    }

    .project-media--portrait-right .ratio-9-16,
    .project-media--portrait-left  .ratio-9-16,
    .ratio-9-16 {
        max-width: 260px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .section-main-title {
        font-size: 2.4rem;
        margin-bottom: 40px;
        padding-bottom: 20px;
    }
}



/* ----------------------------------------------------------------
   10. CV: LAYOUT & EINTRÄGE
   ---------------------------------------------------------------- */
.cv-layout {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.cv-block {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 40px 44px;
    box-shadow: var(--shadow-soft);
}

.cv-category-title {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.01em;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.cv-entry {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.cv-entry:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cv-entry-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.cv-entry-title {
    font-family: var(--font-body);
    font-size: 0.97rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.01em;
}

.cv-entry-period {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--highlight);
    letter-spacing: 0.08em;
    white-space: nowrap;
    text-transform: uppercase;
}

.cv-entry-org {
    font-size: 0.83rem;
    font-style: italic;
    color: var(--muted);
    margin-bottom: 6px;
    line-height: 1.5;
}

.cv-entry-desc {
    font-size: 0.87rem;
    color: var(--text);
    line-height: 1.65;
    font-weight: 300;
    max-width: 64ch;
}

@media (max-width: 640px) {
    .cv-block { padding: 28px 24px; }
    .cv-entry-header {
        flex-direction: column;
        gap: 2px;
    }
}


/* ----------------------------------------------------------------
   11. SKILLS: KARTEN-GRID MIT BALKEN
   ----------------------------------------------------------------
   Zweispaltiges Karten-Grid. Jede Karte: Skill-Name | Niveau-Badge + Balken.
   ---------------------------------------------------------------- */
/* =================================================================
   ANGEPASSTER SKILLS-BEREICH (Badge immer unter dem Skill-Namen)
   ================================================================= */

/* ÄNDERUNG (Desktop & Mobile Skills-Titelblock):
   Vorher: skills-title-block war flex-direction: row (Titel + Untertitel nebeneinander).
   Jetzt:  flex-direction: column — Untertitel erscheint unter "Skills", nicht daneben. */
.skills-title-block {
    display: flex;
    flex-direction: column;      
    align-items: flex-start;
    gap: 4px;                    
    margin-bottom: 32px;         
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* section-main-title innerhalb Skills: kein eigener margin/border mehr */
.section-main-title { margin-bottom: -20px; border-bottom: none; padding-bottom: 0; }

.skills-subtitle {
    margin-bottom: -20px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--muted);
    font-style: italic;
}

/* Grid-Layout für die Skill-Karten */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 1016px;    
}

@media (max-width: 640px) {
    .skills-grid { grid-template-columns: 1fr; }
}

/* Einzelne Skill-Karte */
.skill-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 14px; /* Hält den Abstand zwischen Header, Badge und Balken gleichmässig */
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

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

/* NEU: Kopfzeile der Karte komplett auf Spalten-Layout umgestellt.
   Das zwingt das Badge auf Desktop und Mobile IMMER unter den Namen. */
.skill-card-header {
    display: flex;
    flex-direction: column;   /* ← ÄNDERUNG: Zwingt Elemente untereinander */
    align-items: flex-start;  /* ← ÄNDERUNG: Richtet alles linksbündig aus */
    justify-content: flex-start;
    gap: 8px;                 /* ← Definiert den exakten Abstand zwischen Text und Badge */
}

/* Der Media Query für max-width: 640px an dieser Stelle wurde gelöscht, 
   da das Layout nun standardmässig überall sauber untereinander fliesst. */

.skill-name {
    font-family: var(--font-body);
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--accent);
    line-height: 1.3;
}

/* Niveau-Badges */
.niveau-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.70rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    margin-bottom: 2px;       /* ← Kleiner Bonus-Abstand nach unten zum Balken hin */
}

/* Farbvarianten der Badges */
.niveau-experte {
    background: rgba(44,44,44,0.12);
    color: #1a1a1a;
    border: 1px solid rgba(44,44,44,0.25);
}
.niveau-fortgeschritten {
    background: rgba(100,95,90,0.1);
    color: #4a4742;
    border: 1px solid rgba(100,95,90,0.2);
}
.niveau-grundkenntnisse {
    background: rgba(160,154,148,0.1);
    color: var(--muted);
    border: 1px solid rgba(160,154,148,0.2);
}

/* Fortschrittsbalken-Spur */
.skill-bar-track {
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

/* Gefüllter Balken */
.skill-bar-fill {
    height: 100%;
    width: 0;                                           
    border-radius: 4px;
    background: linear-gradient(90deg, var(--muted), var(--highlight));
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Farbvarianten je nach Niveau-Klasse */
.skill-card:has(.niveau-experte) .skill-bar-fill {
    background: linear-gradient(90deg, #555, #1a1a1a);
}
.skill-card:has(.niveau-fortgeschritten) .skill-bar-fill {
    background: linear-gradient(90deg, #888078, #4a4742);
}
.skill-card:has(.niveau-grundkenntnisse) .skill-bar-fill {
    background: linear-gradient(90deg, #bbb5af, #888078);
}

/* ----------------------------------------------------------------
   12. ÜBERGÄNGE & ANIMATIONEN
   ---------------------------------------------------------------- */
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.section-panel.active {
    animation: fadeSlideIn 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.skill-card {
    animation: fadeSlideIn 0.4s ease backwards;
}

.skill-card:nth-child(1)  { animation-delay: 0.05s; }
.skill-card:nth-child(2)  { animation-delay: 0.10s; }
.skill-card:nth-child(3)  { animation-delay: 0.15s; }
.skill-card:nth-child(4)  { animation-delay: 0.20s; }
.skill-card:nth-child(5)  { animation-delay: 0.25s; }
.skill-card:nth-child(6)  { animation-delay: 0.30s; }
.skill-card:nth-child(7)  { animation-delay: 0.35s; }
.skill-card:nth-child(8)  { animation-delay: 0.40s; }
.skill-card:nth-child(9)  { animation-delay: 0.45s; }
.skill-card:nth-child(10) { animation-delay: 0.50s; }

/* ----------------------------------------------------------------
   13. FOOTER
   ---------------------------------------------------------------- */
.site-footer {
    padding: 40px 32px;
    background: #c9c2b9;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-content {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--muted);
}

.footer-nav a {
    color: var(--muted);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}

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

@media (max-width: 640px) {
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
    .footer-nav a {
        margin: 0 10px;
    }
}
