/*
  ╔══════════════════════════════════════════════════════════════╗
  ║  style.css  –  Portfolio                                     ║
  ║  Farbschema: EDEKA Blau #0052A5 + Gelb #FFD000              ║
  ║                                                              ║
  ║  INHALTSVERZEICHNIS                                          ║
  ║  1.  CSS Custom Properties (Design-Token)                    ║
  ║  2.  Reset & Basis                                           ║
  ║  3.  Typografie                                              ║
  ║  4.  Layout (.container, .section)                           ║
  ║  5.  Buttons                                                 ║
  ║  6.  Header & Navigation                                     ║
  ║  7.  Hero Section                                            ║
  ║  8.  Section-Header (wiederverwendbar)                       ║
  ║  9.  Über mich (Timeline + Skills)                           ║
  ║  10. Projekte (Cards)                                        ║
  ║  11. Kontakt & Formular                                      ║
  ║  12. Easter Egg                                              ║
  ║  13. Footer                                                  ║
  ║  14. Scroll-Animationen (.reveal-*)                          ║
  ║  15. Responsive (≤900px, ≤768px, ≤480px)                    ║
  ╚══════════════════════════════════════════════════════════════╝
*/


/* ─────────────────────────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES
   Alle Werte hier ändern = Auswirkung auf die gesamte Seite.
   Farbschema: EDEKA Konzern → Blau dominant, Gelb als Akzent.
   ───────────────────────────────────────────────────────────── */
:root {

  --clr-primary:        #7c3aed;
  --clr-primary-dark:   #6d28d9;
  --clr-primary-light:  #a78bfa;
  --clr-primary-soft:   #ede9fe;

  --clr-accent:         #14b8a6;
  --clr-accent-dark:    #0f766e;

  --clr-bg:             #0f172a;
  --clr-surface:        #111827;
  --clr-surface-alt:    #1e293b;

  --clr-border:         #334155;

  --clr-dark:           #020617;

  --clr-text:           #e5e7eb;
  --clr-text-muted:     #94a3b8;
  --clr-text-inv:       #ffffff;

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 1.5rem;
  --sp-lg: 2.5rem;
  --sp-xl: 4rem;
  --sp-2xl: 6rem;

  --max-width: 1180px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.2);
  --shadow-md: 0 6px 24px rgba(0,0,0,.3);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.4);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --ease: cubic-bezier(.4,0,.2,1);

  --ease-out: cubic-bezier(.16,1,.3,1);

  --transition: 260ms var(--ease);
}
.easter-mouse {

  position: absolute;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 32px;
  height: 32px;

  border-radius: 8px;

  cursor: pointer;
  user-select: none;

  border: 1px solid transparent;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.easter-mouse:hover,
.easter-mouse:focus-visible {

  border-color: rgba(255,255,255,0.35);

  background: rgba(255,255,255,0.08);

  transform: scale(1.1);
}

/* ─────────────────────────────────────────────────────────────
   2. RESET & BASIS
   ───────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px; /* Offset: nicht unter sticky Header */
}

body {
  font-family:            var(--font-body);
  background-color:       var(--clr-bg);
  color:                  var(--clr-text);
  line-height:            1.7;
  font-size:              1rem;
  -webkit-font-smoothing: antialiased;
}

img  { max-width: 100%; height: auto; display: block; }
ul   { list-style: none; }

a {
  color:           var(--clr-primary);
  text-decoration: none;
  transition:      color var(--transition);
}
a:hover, a:focus-visible { color: var(--clr-primary-dark); }

/* Sichtbarer Fokus-Ring für Accessibility */
:focus-visible {
  outline:        2px solid var(--clr-accent);
  outline-offset: 3px;
}


/* ─────────────────────────────────────────────────────────────
   3. TYPOGRAFIE
   ───────────────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 900;
  color:       var(--clr-text);
}
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw,   2.6rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p  { max-width: 68ch; }


/* ─────────────────────────────────────────────────────────────
   4. LAYOUT
   ───────────────────────────────────────────────────────────── */
.container {
  width:          100%;
  max-width:      var(--max-width);
  margin-inline:  auto;
  padding-inline: var(--sp-md);
}

.section {
  padding-block: var(--sp-2xl);
}

/* Abwechselnde Hintergründe */
.about-section    { background-color: var(--clr-surface); }
.projects-section { background-color: var(--clr-surface-alt); }
.contact-section  { background-color: var(--clr-surface); }


/* ─────────────────────────────────────────────────────────────
   5. BUTTONS
   .btn-primary  – ausgefüllt blau
   .btn-ghost    – transparenter Rahmen
   .btn-block    – volle Breite (für Formular)
   ───────────────────────────────────────────────────────────── */
.btn {
  display:         inline-flex;
  align-items:     center;
  gap:             var(--sp-xs);
  padding:         0.8rem 1.8rem;
  border-radius:   var(--radius-md);
  font-family:     var(--font-body);
  font-size:       0.9rem;
  font-weight:     600;
  letter-spacing:  0.05em;
  text-transform:  uppercase;
  cursor:          pointer;
  border:          2px solid transparent;
  transition:      background var(--transition),
                   color       var(--transition),
                   border      var(--transition),
                   transform   var(--transition),
                   box-shadow  var(--transition);
  text-decoration: none;
  white-space:     nowrap;
}
.btn:hover   { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active  { transform: translateY(0); }

/* Primär-Button: Gelb auf Blau */
.btn-primary {
  background: var(--clr-primary);
  color:      var(--clr-text-inv);
  border-color: var(--clr-primary);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background:  var(--clr-primary-dark);
  border-color:var(--clr-primary-dark);
  color:       var(--clr-text-inv);
  text-decoration: none;
}

/* Ghost-Button: Rahmen blau, transparent */
.btn-ghost {
  background:  transparent;
  color:       var(--clr-primary);
  border-color:var(--clr-primary);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background:  var(--clr-primary);
  color:       var(--clr-text-inv);
  text-decoration: none;
}

/* Block: 100% Breite + Zentrierung (Formular-Submit) */
.btn-block { width: 100%; justify-content: center; }


/* ─────────────────────────────────────────────────────────────
   6. HEADER & NAVIGATION
   ───────────────────────────────────────────────────────────── */
.site-header {
  position:     sticky;
  top:          0;
  z-index:      1000;
  background:   var(--clr-surface);
  border-bottom: 3px solid var(--clr-accent); /* gelber Akzentstreifen */
  transition:   box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

/* Fortschrittsbalken (Scroll-Position) */
.scroll-progress {
  position:   absolute;
  bottom:     -3px;         /* direkt über dem Gelb-Streifen */
  left:       0;
  height:     3px;
  width:      0%;           /* via JS gesetzt */
  background: var(--clr-primary);
  transition: width 0.1s linear;
  z-index:    1001;
}

.nav-container {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding-block:   1.1rem;
}

/* Logo: Code-Klammer-Stil */
.nav-logo {
  font-family:     var(--font-display);
  font-size:       1.5rem;
  font-weight:     900;
  color:           var(--clr-text);
  text-decoration: none;
  letter-spacing:  -0.02em;
}
.nav-logo:hover  { color: var(--clr-primary); text-decoration: none; }
.logo-accent     { color: var(--clr-primary); }

/* Nav-Liste */
.nav-list { display: flex; gap: var(--sp-lg); align-items: center; }

.nav-link {
  font-size:      0.85rem;
  font-weight:    600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--clr-text-muted);
  text-decoration:none;
  padding:        0.3rem 0;
  position:       relative;
}
/* Unterstrich-Animation auf Hover/Aktiv */
.nav-link::after {
  content:    '';
  position:   absolute;
  left:       0; bottom: 0;
  width:      100%; height: 2px;
  background: var(--clr-accent);
  transform:  scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link:hover,
.nav-link.active        { color: var(--clr-primary); text-decoration: none; }

/* Hamburger */
.nav-toggle {
  display:        none;
  flex-direction: column;
  gap:            5px;
  background:     none;
  border:         none;
  cursor:         pointer;
  padding:        var(--sp-xs);
}
.burger-bar {
  display:       block;
  width:         26px; height: 2px;
  background:    var(--clr-text);
  border-radius: 2px;
  transition:    transform var(--transition), opacity var(--transition);
}
/* X-Animation */
.site-header.nav-open .burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .burger-bar:nth-child(2) { opacity: 0; }
.site-header.nav-open .burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ─────────────────────────────────────────────────────────────
   7. HERO SECTION
   ───────────────────────────────────────────────────────────── */
.hero-section {
  position:      relative;
  overflow:      hidden;
  background:    var(--clr-dark);   /* dunkles Blau-Schwarz */
  padding-block: var(--sp-2xl) calc(var(--sp-2xl) + 40px);
  color:         var(--clr-text-inv);
}

/* Geometrische Hintergrund-Dekoration */
.hero-bg-shape {
  position:       absolute;
  pointer-events: none;
  border-radius:  50%;
}
.hero-bg-shape--1 {
  width:      500px; height: 500px;
  background: var(--clr-primary);
  opacity:    .18;
  top:        -120px; right: -80px;
  filter:     blur(60px);
}
.hero-bg-shape--2 {
  width:      300px; height: 300px;
  background: var(--clr-accent);
  opacity:    .08;
  bottom:     -60px; left: 10%;
  filter:     blur(80px);
}

/* Flexbox: Text links, Bild rechts */
.hero-container {
  display:         flex;
  align-items:     center;
  gap:             var(--sp-xl);
  position:        relative;
  z-index:         1;
}

/* ── Hero-Text ── */
.hero-text { flex: 1; }

.hero-eyebrow {
  display:       flex;
  align-items:   center;
  gap:           var(--sp-xs);
  font-size:     0.8rem;
  font-weight:   600;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:         var(--clr-accent);
  margin-bottom: var(--sp-sm);
}
/* Pulsierender grüner Dot */
.eyebrow-dot {
  display:       inline-block;
  width:         8px; height: 8px;
  background:    #4ade80;
  border-radius: 50%;
  animation:     dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,100%{ box-shadow: 0 0 0 0 rgba(74,222,128,.5); }
  50%    { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}

.hero-title {
  color:         var(--clr-text-inv);
  margin-bottom: var(--sp-sm);
}

/* Name: gelb mit Unterstrich */
.hero-name {
  color:    var(--clr-accent);
  display:  block;
  position: relative;
  width:    fit-content;
}
.hero-name::after {
  content:          '';
  position:         absolute;
  left: 0; bottom:  -6px;
  width: 100%; height: 4px;
  background:       var(--clr-accent);
  border-radius:    2px;
  transform:        scaleX(0);
  transform-origin: left;
  transition:       transform 0.7s var(--ease-out) 0.4s;
}
.hero-section.visible .hero-name::after { transform: scaleX(1); }

/* Typewriter-Zeile */
.hero-role {
  font-size:     1.2rem;
  color:         rgba(255,255,255,.75);
  margin-bottom: var(--sp-sm);
  max-width:     none;
}
.role-typewriter {
  color:          var(--clr-accent);
  font-weight:    600;
  border-right:   2px solid var(--clr-accent);
  padding-right:  3px;
  animation:      cursorBlink 0.9s step-end infinite;
}
@keyframes cursorBlink { 0%,100%{ border-color: var(--clr-accent); } 50%{ border-color: transparent; } }

.hero-desc {
  font-size:     1rem;
  color:         rgba(255,255,255,.65);
  margin-bottom: var(--sp-md);
}

/* Skill-Badges */
.hero-badges {
  display:       flex;
  flex-wrap:     wrap;
  gap:           var(--sp-xs);
  margin-bottom: var(--sp-md);
}
.badge {
  font-size:      0.72rem;
  font-weight:    600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding:        4px 10px;
  border-radius:  var(--radius-full);
  background:     rgba(255,255,255,.1);
  color:          rgba(255,255,255,.85);
  border:         1px solid rgba(255,255,255,.15);
  transition:     background var(--transition), color var(--transition);
}
.badge:hover   { background: rgba(255,208,0,.2); color: var(--clr-accent); }
.badge--accent { background: var(--clr-accent); color: var(--clr-dark); border-color: var(--clr-accent); }

.hero-cta {
  display:  flex;
  gap:      var(--sp-sm);
  flex-wrap:wrap;
}

/* ── Profilbild ── */
.hero-image-wrap {
  position:   relative;
  flex-shrink: 0;
}
.hero-image-frame {
  position:      relative;
  width:         360px; height: 360px;
  border-radius: var(--radius-xl);
  overflow:      hidden;
  border:        3px solid rgba(255,208,0,.3);
  z-index:       1;
  /* Gelbe Ecke oben-rechts */
  box-shadow: 12px -12px 0 var(--clr-accent), var(--shadow-lg);
}
.hero-photo {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Dekor-Ring */
.hero-deco--ring {
  position:      absolute;
  inset:         -16px;
  border-radius: calc(var(--radius-xl) + 6px);
  border:        2px dashed rgba(255,208,0,.2);
  z-index:       0;
  animation:     ringRotate 20s linear infinite;
}
@keyframes ringRotate { to { transform: rotate(360deg); } }

/* Dekor-Punkte */
.hero-deco--dot1,
.hero-deco--dot2 {
  position:      absolute;
  border-radius: 50%;
  background:    var(--clr-accent);
  z-index:       2;
}
.hero-deco--dot1 { width: 14px; height: 14px; top:  -6px; left: 30px; opacity: .7; }
.hero-deco--dot2 { width:  8px; height:  8px; bottom: 20px; right: -6px; opacity: .5; }

/* Schwebende Karten */
.hero-float-card {
  position:       absolute;
  display:        flex;
  align-items:    center;
  gap:            8px;
  background:     rgba(255,255,255,.95);
  border-radius:  var(--radius-md);
  padding:        10px 16px;
  box-shadow:     var(--shadow-md);
  z-index:        3;
  animation:      cardFloat 4s ease-in-out infinite;
}
.hero-float-card--exp  { bottom: 28px; left: -48px; animation-delay: 0s; }
.hero-float-card--proj { top:   40px; right: -40px; animation-delay: 2s; }
@keyframes cardFloat {
  0%,100%{ transform: translateY(0);   }
  50%    { transform: translateY(-8px); }
}
.float-number {
  font-family: var(--font-display);
  font-size:   1.4rem;
  font-weight: 900;
  color:       var(--clr-primary);
  line-height: 1;
}
.float-label {
  font-size:   0.7rem;
  font-weight: 600;
  color:       var(--clr-text-muted);
  line-height: 1.3;
}

/* Scroll-Hinweis-Pfeil unten */
.scroll-hint {
  position:         absolute;
  bottom:           32px;
  left:             50%;
  transform:        translateX(-50%);
  display:          flex;
  flex-direction:   column;
  align-items:      center;
  color:            rgba(255,255,255,.4);
  font-size:        0.7rem;
  text-decoration:  none;
  animation:        scrollBounce 2s ease-in-out infinite;
  z-index:          1;
}
.scroll-hint-arrow { font-size: 1.2rem; }
@keyframes scrollBounce {
  0%,100%{ transform: translateX(-50%) translateY(0);    }
  50%    { transform: translateX(-50%) translateY(8px); }
}


/* ─────────────────────────────────────────────────────────────
   8. SECTION-HEADER (Wiederverwendbar)
   ───────────────────────────────────────────────────────────── */
.section-header {
  text-align:    center;
  margin-bottom: var(--sp-xl);
}
.section-header--left { text-align: left; }

/* Kleines Tag über dem Titel */
.section-tag {
  display:        inline-block;
  font-size:      0.72rem;
  font-weight:    700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:          var(--clr-primary);
  background:     var(--clr-primary-soft);
  padding:        4px 12px;
  border-radius:  var(--radius-full);
  margin-bottom:  var(--sp-xs);
}

.section-title {
  position:   relative;
  display:    inline-block;
  margin-bottom: 12px;
}
/* Gelber Unterstrich-Akzent */
.section-title::after {
  content:    '';
  position:   absolute;
  bottom:     -8px; left: 50%;
  transform:  translateX(-50%);
  width:      56px; height: 4px;
  background: var(--clr-accent);
  border-radius: 2px;
}
.section-header--left .section-title::after {
  left: 0; transform: none;
}

.section-subtitle {
  font-size:  1rem;
  color:      var(--clr-text-muted);
  margin-top: var(--sp-sm);
  max-width:  60ch;
  margin-inline: auto;
}
.section-header--left .section-subtitle { margin-inline: 0; }


/* ─────────────────────────────────────────────────────────────
   9. ÜBER MICH – Timeline + Skills
   ───────────────────────────────────────────────────────────── */
.about-grid {
  display:   grid;
  grid-template-columns: 1fr 1fr;
  gap:       var(--sp-xl);
  align-items: start;
}

/* Fließtext */
.bio-text {
  font-size:     1.02rem;
  color:         var(--clr-text-muted);
  margin-bottom: var(--sp-md);
}
.bio-text strong { color: var(--clr-primary); }

/* ── Timeline ── */
.timeline {
  position:    relative;
  padding-left: 28px;
}
/* Vertikale blaue Linie */
.timeline::before {
  content:    '';
  position:   absolute;
  left:       9px; top: 8px; bottom: 8px;
  width:      2px;
  background: linear-gradient(to bottom, var(--clr-accent), var(--clr-primary));
  border-radius: 2px;
}

.timeline-item {
  display:        flex;
  gap:            var(--sp-sm);
  padding-bottom: var(--sp-md);
  position:       relative;
}

/* Marker-Kreis */
.tl-marker {
  position:         absolute;
  left:             -24px; top: 2px;
  width:            22px; height: 22px;
  background:       var(--clr-surface);
  border:           2px solid var(--clr-primary);
  border-radius:    50%;
  display:          flex;
  align-items:      center;
  justify-content:  center;
  flex-shrink:      0;
  font-size:        0.7rem;
  z-index:          1;
}
/* Gelber Hintergrund beim letzten (aktiven) Eintrag */
.timeline-item:first-child .tl-marker { background: var(--clr-accent); border-color: var(--clr-accent); }

.tl-period {
  display:        block;
  font-size:      0.75rem;
  font-weight:    700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color:          var(--clr-primary);
  margin-bottom:  2px;
}
.tl-title  { font-size: 1rem; font-weight: 700; margin-bottom: 2px; color: var(--clr-text); }
.tl-detail { font-size: 0.875rem; color: var(--clr-text-muted); }

/* ── Skills ── */
.skills-heading {
  font-family:    var(--font-body);
  font-size:      0.78rem;
  font-weight:    700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          var(--clr-text-muted);
  margin-bottom:  var(--sp-md);
}

.skill-row {
  margin-bottom: var(--sp-sm);
}
.skill-meta {
  display:         flex;
  justify-content: space-between;
  align-items:     baseline;
  margin-bottom:   6px;
}
.skill-name { font-size: 0.9rem; font-weight: 600; color: var(--clr-text); }
.skill-pct  { font-size: 0.75rem; color: var(--clr-primary); font-weight: 700; }

/* Balken-Track */
.skill-track {
  height:        8px;
  background:    var(--clr-border);
  border-radius: var(--radius-full);
  overflow:      hidden;
}
/* Balken-Fill – Breite via JS (data-level) */
.skill-fill {
  height:     100%;
  width:      0%;    /* JS setzt korrekten Wert */
  /* Gelb → Blau-Gradient */
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-primary));
  border-radius: var(--radius-full);
  transition: width 1.1s var(--ease-out) 0.2s;
}

/* Tool-Tags */
.tool-tags {
  display:    flex;
  flex-wrap:  wrap;
  gap:        var(--sp-xs);
  margin-top: var(--sp-md);
}
.tool-tag {
  font-size:      0.72rem;
  font-weight:    600;
  background:     var(--clr-primary-soft);
  color:          var(--clr-primary);
  padding:        4px 10px;
  border-radius:  var(--radius-full);
  border:         1px solid var(--clr-primary);
  letter-spacing: 0.04em;
}


/* ─────────────────────────────────────────────────────────────
   10. PROJEKTE – Cards
   ───────────────────────────────────────────────────────────── */
.projects-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap:                   var(--sp-md);
}

.project-card {
  background:     var(--clr-surface);
  border:         1px solid var(--clr-border);
  border-radius:  var(--radius-lg);
  overflow:       hidden;
  display:        flex;
  flex-direction: column;
  transition:     transform var(--transition), box-shadow var(--transition);
}
.project-card:hover {
  transform:  translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Farbiger Akzentbalken oben */
.card-accent {
  height:     4px;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-primary));
  transform:  scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.project-card:hover .card-accent { transform: scaleX(1); }

/* WIP-Card: leicht gedämpft */
.project-card--wip { opacity: 0.72; }
.project-card--wip .card-accent { background: var(--clr-border); }

.card-body {
  padding: var(--sp-md);
  flex:    1;
  display: flex;
  flex-direction: column;
  gap:     var(--sp-xs);
}

.card-header {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
}
.card-tag {
  font-size:      0.68rem;
  font-weight:    700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--clr-primary);
  background:     var(--clr-primary-soft);
  padding:        3px 8px;
  border-radius:  var(--radius-full);
}
.card-emoji { font-size: 1.4rem; }

.card-title { font-size: 1.15rem; color: var(--clr-text); margin-block: 4px; }

.card-desc {
  font-size:  0.88rem;
  color:      var(--clr-text-muted);
  flex:       1;
  margin:     0;
  max-width:  none;
}

.card-tech {
  display:    flex;
  flex-wrap:  wrap;
  gap:        6px;
  margin-top: var(--sp-xs);
}
.card-tech li {
  font-size:     0.68rem;
  font-weight:   600;
  background:    var(--clr-surface-alt);
  border:        1px solid var(--clr-border);
  border-radius: var(--radius-full);
  padding:       2px 8px;
  color:         var(--clr-text-muted);
}

.card-footer {
  padding: var(--sp-sm) var(--sp-md);
  border-top: 1px solid var(--clr-border);
}
.card-link {
  font-size:   0.85rem;
  font-weight: 700;
  color:       var(--clr-primary);
  letter-spacing: 0.04em;
  transition:  gap var(--transition);
}
.card-link:hover { color: var(--clr-primary-dark); }

/* WIP-Badge */
.card-wip-badge {
  font-size:      0.72rem;
  font-weight:    700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color:          var(--clr-text-muted);
  border:         1px dashed var(--clr-border);
  padding:        3px 10px;
  border-radius:  var(--radius-full);
}


/* ─────────────────────────────────────────────────────────────
   11. KONTAKT & FORMULAR
   ───────────────────────────────────────────────────────────── */
.contact-container {
  display:   grid;
  grid-template-columns: 1fr 1.35fr;
  gap:       var(--sp-xl);
  align-items: start;
}

.contact-intro {
  color:         var(--clr-text-muted);
  margin-top:    var(--sp-sm);
  margin-bottom: var(--sp-lg);
  max-width:     42ch;
}

/* Kontaktliste */
.contact-list { display: flex; flex-direction: column; gap: var(--sp-sm); }
.contact-list li {
  display:     flex;
  align-items: center;
  gap:         var(--sp-xs);
  font-size:   0.95rem;
  color:       var(--clr-text-muted);
}
.ci { font-size: 1rem; flex-shrink: 0; }

/* ── Easter Egg Schloss ──────────────────────────────── */
.secret-contact { margin-top: var(--sp-sm); }

.secret-lock {
  background:    var(--clr-primary-soft);
  border:        1.5px dashed var(--clr-primary);
  border-radius: var(--radius-md);
  padding:       var(--sp-sm) var(--sp-md);
}
.secret-lock-top {
  display:     flex;
  align-items: flex-start;
  gap:         var(--sp-xs);
  margin-bottom: var(--sp-xs);
}
.lock-emoji {
  font-size:  1.4rem;
  animation:  lockPulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes lockPulse {
  0%,100%{ transform: scale(1); }
  50%    { transform: scale(1.12); }
}
.lock-msg {
  font-size:  0.85rem;
  color:      var(--clr-text-muted);
  margin:     0;
  max-width:  none;
}
.lock-msg strong { color: var(--clr-primary); }

.secret-pips {
  display:  flex;
  gap:      10px;
  font-size:1.1rem;
  margin-top: 4px;
}
.secret-pip {
  opacity:    0.3;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.secret-pip.found { opacity: 1; transform: scale(1.3); }

/* Freigeschaltete Kontaktdaten */
.secret-revealed {
  opacity:   0;
  transform: translateY(10px);
  transition:opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.secret-revealed.is-visible { opacity: 1; transform: translateY(0); }

.secret-success {
  font-size:     0.9rem;
  font-weight:   600;
  color:         var(--clr-primary);
  padding:       var(--sp-xs) var(--sp-sm);
  background:    var(--clr-primary-soft);
  border-left:   3px solid var(--clr-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: var(--sp-sm);
  max-width:     none;
}

/* ── Formular ── */
.contact-form-wrap {
  background:    var(--clr-surface);
  border:        1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding:       var(--sp-lg);
  box-shadow:    var(--shadow-card);
}

.contact-form { display: flex; flex-direction: column; gap: var(--sp-sm); }

/* Zweispaltiges Namefeld + Email */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-sm);
}

.form-group {
  display:        flex;
  flex-direction: column;
  gap:            4px;
}

.form-label {
  font-size:   0.82rem;
  font-weight: 600;
  color:       var(--clr-text);
  letter-spacing: 0.03em;
}
.req { color: var(--clr-primary); margin-left: 2px; }

.form-input {
  padding:       0.7rem 1rem;
  border:        1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  font-family:   var(--font-body);
  font-size:     0.95rem;
  color:         var(--clr-text);
  background:    var(--clr-bg);
  transition:    border-color var(--transition), box-shadow var(--transition);
  width:         100%;
}
.form-input:focus {
  outline:      none;
  border-color: var(--clr-primary);
  box-shadow:   0 0 0 3px rgba(0,82,165,.12);
}
.form-input.invalid { border-color: #dc2626; background: #fff5f5; }
.form-input.valid   { border-color: #16a34a; }

.form-textarea { resize: vertical; min-height: 120px; }

.form-error {
  font-size:   0.76rem;
  color:       #dc2626;
  font-weight: 500;
  min-height:  1em;
}

.form-check-group {
  flex-direction: row;
  align-items:    flex-start;
  gap:            var(--sp-xs);
  flex-wrap:      wrap;
}
.form-check-group input[type="checkbox"] {
  margin-top:   3px;
  accent-color: var(--clr-primary);
  flex-shrink:  0;
}
.form-check-label {
  font-size:  0.82rem;
  color:      var(--clr-text-muted);
  cursor:     pointer;
  line-height:1.5;
}

.form-status {
  text-align:  center;
  font-size:   0.88rem;
  font-weight: 600;
  padding:     var(--sp-xs) var(--sp-sm);
  border-radius: var(--radius-md);
  min-height:  1.4em;
}
.form-status.success { background: #f0fdf4; color: #16a34a; }
.form-status.error   { background: #fff5f5; color: #dc2626; }


/* ─────────────────────────────────────────────────────────────
   12. EASTER EGG – Versteckte Mäuse
   ─────────────────────────────────────────────────────────────
   Die Mäuse sind per position:absolute IN ihren jeweiligen
   Sections eingebettet (Hero, About, Projects, Contact, Footer).
   Sie scrollen mit der Seite mit – kein Fixed-Kleben mehr.

   Damit position:absolute korrekt funktioniert, muss das
   Elternelement position:relative haben. Das wird unten
   für alle betroffenen Sections gesetzt.
   ───────────────────────────────────────────────────────────── */

/* position:relative auf alle Container die eine Maus enthalten */
.hero-section,
.about-section,
.projects-section,
.contact-section,
.site-footer { position: relative; }

/* Basis-Stil aller Mäuse */
.easter-mouse {
  /* position:absolute wird direkt per inline-style gesetzt (HTML),
     damit jede Maus individuell positioniert werden kann.
     Hier nur die gemeinsamen Eigenschaften: */
  font-size:    1.25rem;
  cursor:       pointer;
  user-select:  none;
  opacity:      0.45;     /* dezent – nicht sofort auffällig */
  outline:      none;
  line-height:  1;
  transition:   transform 0.15s var(--ease), opacity 0.15s;
  animation:    mouseWiggle 5s ease-in-out infinite;
  /* Staffel-Delays per data-id */
}
.easter-mouse[data-id="1"] { animation-delay: 0s;   }
.easter-mouse[data-id="2"] { animation-delay: 0.7s; }
.easter-mouse[data-id="3"] { animation-delay: 1.5s; }
.easter-mouse[data-id="4"] { animation-delay: 2.3s; }
.easter-mouse[data-id="5"] { animation-delay: 3.1s; }

/* Hover / Fokus: Maus wird größer + deutlicher sichtbar */
.easter-mouse:hover,
.easter-mouse:focus-visible {
  transform:      scale(1.6) rotate(-12deg);
  opacity:        1;
  outline:        2px dashed var(--clr-accent);
  outline-offset: 4px;
}

/* Leerlauf-Wackel-Animation */
@keyframes mouseWiggle {
  0%,88%,100% { transform: rotate(0);     }
  91%         { transform: rotate(-8deg); }
  94%         { transform: rotate( 8deg); }
  97%         { transform: rotate(-4deg); }
}

/* Wegrennen-Animation beim Klick (Klasse via JS gesetzt) */
@keyframes mouseFlee {
  0%   { transform: scale(1.1) translateX(0);    opacity: 1;  }
  40%  { transform: scale(0.8) translateX(40px); opacity: .7; }
  100% { transform: scale(0)   translateX(90px); opacity: 0;  }
}
.easter-mouse--fleeing {
  animation:      mouseFlee 0.5s var(--ease) forwards !important;
  pointer-events: none;
}



/* ─────────────────────────────────────────────────────────────
   13. FOOTER
   ───────────────────────────────────────────────────────────── */
.site-footer {
  background:    var(--clr-dark);
  color:         rgba(255,255,255,.7);
  padding-block: var(--sp-md);
  border-top:    4px solid var(--clr-accent);
}
.footer-container {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  flex-wrap:       wrap;
  gap:             var(--sp-sm);
}
.footer-copy { font-size: 0.82rem; max-width: none; color: rgba(255,255,255,.5); }

.footer-links { display: flex; gap: var(--sp-sm); }
.footer-links a {
  font-size:  0.82rem;
  color:      rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--clr-accent); text-decoration: none; }


/* ─────────────────────────────────────────────────────────────
   14. SCROLL-ANIMATIONEN
   Elemente starten im unsichtbaren Zustand und werden per
   IntersectionObserver (app.js) mit .is-visible sichtbar gemacht.

   Klassen:
   .reveal-left   → von links hereinslidet + verblasst
   .reveal-right  → von rechts hereinslidet + verblasst
   .reveal-up     → von unten hereinslidet + verblasst
   .reveal-fade   → nur verblassen

   --delay (CSS-Variable): individuelle Staffelverzögerung
   Beispiel: style="--delay: 0.2s"
   ───────────────────────────────────────────────────────────── */

/* Alle Reveal-Elemente: Standard-Transition */
.reveal-left,
.reveal-right,
.reveal-up,
.reveal-fade {
  transition:
    opacity    0.7s var(--ease-out) var(--delay, 0s),
    transform  0.7s var(--ease-out) var(--delay, 0s);
}

/* Startzustand: unsichtbar + versetzt */
.reveal-left  { opacity: 0; transform: translateX(-52px); }
.reveal-right { opacity: 0; transform: translateX( 52px); }
.reveal-up    { opacity: 0; transform: translateY( 40px); }
.reveal-fade  { opacity: 0; transform: none; }

/* Endzustand: sichtbar + an Position (Klasse via JS) */
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-up.is-visible,
.reveal-fade.is-visible {
  opacity:   1;
  transform: translate(0);
}

/* Prefers-reduced-motion: Animationen deaktivieren */
@media (prefers-reduced-motion: reduce) {
  .reveal-left,
  .reveal-right,
  .reveal-up,
  .reveal-fade { transition: none !important; opacity: 1; transform: none; }
  .hero-deco--ring { animation: none; }
  .hero-float-card { animation: none; }
  .scroll-hint     { animation: none; }
}


/* ─────────────────────────────────────────────────────────────
   15. RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-container         { flex-direction: column; text-align: center; gap: var(--sp-lg); }
  .hero-name              { margin-inline: auto; }
  .hero-desc, .hero-role  { margin-inline: auto; }
  .hero-cta, .hero-badges { justify-content: center; }
  .hero-image-wrap        { order: -1; }
  .hero-float-card--exp   { bottom: -10px; left: -10px; }
  .hero-float-card--proj  { top: -10px; right: -10px; }
  .about-grid             { grid-template-columns: 1fr; }
  .contact-container      { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position:   absolute;
    top:        100%; left: 0; right: 0;
    background: var(--clr-surface);
    border-top: 1px solid var(--clr-border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow:   hidden;
    transition: max-height 0.35s var(--ease);
  }
  .site-header.nav-open .nav-menu { max-height: 400px; }
  .nav-list { flex-direction: column; padding: var(--sp-sm) var(--sp-md); gap: var(--sp-xs); }
  .nav-link { padding: var(--sp-xs) 0; font-size: 1rem; }

  .hero-image-frame { width: 260px; height: 260px; }
  .hero-float-card  { display: none; } /* zu eng auf kleinen Screens */

  .projects-grid { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn      { justify-content: center; }
  .contact-form-wrap { padding: var(--sp-md); }
}