/* =============================================================================
   Malte Mattick – Digitaler Lebenslauf · styles.css
   Design: Japanese Minimal × Modern Professional
   Palette: Washi-Weiß · Ai-Iro-Indigo · Kinari-Warmgrau · Sumi-Tinte
   ============================================================================

   Inhaltsverzeichnis
   1.  Lokale Schriften (@font-face)
   2.  Design-Tokens (CSS Custom Properties)
   3.  Dark-Mode-Tokens & umfassende Kontrast-Fixes
   4.  Reset & Basis
   5.  Hilfsklassen
   6.  Scroll-Fortschrittsleiste
   7.  Navigation / Header
   8.  Hero + Aurora
   9.  Metriken-Band
  10.  Bento-Grid (Schwerpunkte)
  11.  Sektionsmuster (shared)
  12.  Timeline – Werdegang (alternierend)
  13.  Timeline – Bildung (single-rail)
  14.  Chevron-Aufzählungen
  15.  Skill-Matrix
  16.  Extras (Zertifikate, Sprachen)
  17.  Kontakt & Formular
  18.  Footer & Impressum-Dialog
  19.  Buttons
  20.  Scroll-Reveal-Animationen
  21.  Responsives Verhalten
  22.  prefers-reduced-motion
   ============================================================================ */

/* 1. Lokale Schriften ------------------------------------------------------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* 2. Design-Tokens (Japanese Minimal) --------------------------------------- */
:root {
  /* Farbpalette — Ai-Iro (藍色 · Traditionelles Japanindigo) + Washi-Weiß */
  --navy-900: #0c1e3a;
  --navy:     #1e3a5f;   /* Ai-iro – tiefes Indigo */
  --navy-600: #2a5298;
  --navy-100: #eaeef7;
  --ice:      #f3f2ee;   /* Kinari-iro – warmes Naturweiß */
  --ice-200:  #eceae5;
  --white:    #fafaf8;   /* Washi – leicht warmes Weiß */
  --text:     #1e1e22;   /* Sumi-iro – Tuschwarz */
  --muted:    #6a6a76;
  --line:     #dedad5;   /* Warme Haarlinie */
  --azure:    #2979c8;   /* Zurückgenommener Blauakzent */
  --accent-clr: var(--navy);  /* Akzent: Navy Light, Azure Dark */

  /* Typografie */
  --font-head: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display: clamp(2.8rem, 1.4rem + 5.5vw, 4.75rem);
  --fs-h2:      clamp(1.75rem, 1rem + 2.5vw, 2.4rem);
  --fs-h3:      clamp(1.1rem, 0.95rem + 0.6vw, 1.28rem);
  --fs-lead:    clamp(0.98rem, 0.88rem + 0.4vw, 1.14rem);
  --fs-body:    1rem;
  --fs-small:   0.875rem;
  --fs-eye:     0.72rem;

  /* Abstände – großzügiges Ma (間) */
  --container:  1180px;
  --gutter:     clamp(20px, 5vw, 72px);
  --section-py: clamp(5rem, 10vw, 9rem);
  --r-sm: 4px; --r-md: 8px; --r-lg: 14px; --r-pill: 999px;

  /* Schatten – subtil, luftig */
  --shadow-sm:    0 1px 3px rgba(0,10,30,.04), 0 2px 8px rgba(0,10,30,.03);
  --shadow-hover: 0 8px 32px rgba(0,10,30,.10);
  --shadow-lg:    0 24px 60px rgba(0,10,30,.13);

  /* Motion */
  --dur-fast: 200ms;
  --dur-slow: 460ms;
  --ease:     cubic-bezier(.2,.7,.2,1);

  --bg:     var(--white);
  --bg-alt: var(--ice);
}

/* 3. Dark-Mode-Tokens & umfassende Kontrast-Fixes -------------------------- */
[data-theme="dark"] {
  --bg:      #0f0f11;
  --bg-alt:  #161618;
  --text:    #d2d0cb;
  --muted:   #76767f;
  --line:    #222228;
  --navy-100: #131f33;
  --ice:     #161618;
  --ice-200: #1c1c22;
  --white:   #0f0f11;
  color-scheme: dark;
  --accent-clr: #8fc1ff;  /* Kontrast 10:1 auf dunkel */
}
[data-theme="dark"] body { background: var(--bg); }
[data-theme="dark"] .site-header {
  background: rgba(15,15,17,.9);
  border-color: var(--line);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}

/* Karten – Glas-Optik im Dark Mode */
[data-theme="dark"] .tl-card    { background: rgba(30,58,95,.28); border-color: rgba(143,193,255,.15); }
[data-theme="dark"] .skill-card { background: rgba(30,58,95,.28); border-color: rgba(143,193,255,.15); }
[data-theme="dark"] .info-card  { background: rgba(30,58,95,.28); border-color: rgba(143,193,255,.15); }
[data-theme="dark"] .bento-tile { background: rgba(30,58,95,.30); border-color: rgba(143,193,255,.18); }

/* Navigation */
[data-theme="dark"] .nav-links  { background: rgba(15,15,17,.98); border-color: var(--line); }
[data-theme="dark"] .nav-links a:hover { background: var(--bg-alt); }

/* Buttons: --white = #0f0f11 im DM → sichtbare Texte erzwingen */
[data-theme="dark"] .btn                  { color: #ffffff; }
[data-theme="dark"] .btn:hover            { color: #ffffff; }
[data-theme="dark"] .btn--ghost           { border-color: rgba(255,255,255,.22); color: var(--text); background: transparent; }
[data-theme="dark"] .btn--ghost:hover     { background: rgba(255,255,255,.08); color: var(--text); border-color: rgba(255,255,255,.32); }
[data-theme="dark"] .btn--light           { background: rgba(255,255,255,.08); color: var(--text); border-color: var(--line); }
[data-theme="dark"] .btn--light:hover     { background: var(--navy-600); color: #ffffff; border-color: var(--navy-600); }

/* Hero-Badge */
[data-theme="dark"] .badge { color: #ffffff; }

/* Metriken (Wert immer weiß, da auf Navy-Hintergrund) */
[data-theme="dark"] .metric__value { color: #ffffff; }

/* Chevron-Pfeile: hartcodierte Farbe → Blauvariante */
[data-theme="dark"] .chevron-list > li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='none' stroke='%235fa8ff' stroke-width='40' stroke-linecap='round' stroke-linejoin='round' d='M96 48l80 80-80 80'/%3E%3C/svg%3E");
}
[data-theme="dark"] .chevron-list strong { color: var(--accent-clr); }

/* Timeline */
[data-theme="dark"] .tl-item::before               { background: var(--bg-alt); }
[data-theme="dark"] .section .tl-item::before      { box-shadow: 0 0 0 5px var(--bg); }
[data-theme="dark"] .section--ice .tl-item::before { box-shadow: 0 0 0 5px var(--bg-alt); }
[data-theme="dark"] .tl-period                     { color: #dbe6f0; }
[data-theme="dark"] .tl-card::after                { background: rgba(255,255,255,.12); }

/* Skill-Balken */
[data-theme="dark"] .skill-meter i.on { background: #3a7dd4; }
[data-theme="dark"] .reveal-ready [data-reveal].is-visible .skill-meter i.on { background: #3a7dd4; }
[data-theme="dark"] .skill-card:hover .skill-meter i.on  { background: var(--azure); }

/* Sprachen */
[data-theme="dark"] .lang-bar > span    { background: #3a7dd4; }
[data-theme="dark"] .lang-switch a[aria-current="true"] { color: #dbe6f0; }

/* Abschnitts-Ikonen */
[data-theme="dark"] .head-icon             { background: var(--bg-alt); border-color: var(--line); color: var(--accent-clr); }
[data-theme="dark"] .section--ice .head-icon { background: var(--bg); }
[data-theme="dark"] .bento-tile:hover .bento-icon    { color: #dbe6f0; }
[data-theme="dark"] .skill-card:hover .skill-card__icon { color: #dbe6f0; }
[data-theme="dark"] .bento-icon            { background: var(--bg); color: var(--accent-clr); }
[data-theme="dark"] .skill-card__icon      { background: var(--bg); color: var(--accent-clr); }
[data-theme="dark"] .info-card > h3 svg   { color: var(--accent-clr); }
[data-theme="dark"] .def-list .term        { color: var(--text); }

/* Kontakt-Formular */
[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea { color: #dbe6f0; }
[data-theme="dark"] .contact-intro h2      { color: #ffffff; }

/* Sektionshintergründe */

[data-theme="dark"] .section--ice {
  background: radial-gradient(ellipse 80% 50% at 80% 90%, rgba(41,121,200,.04) 0%, transparent 60%),
              var(--bg-alt);
}

/* Eyebrow accent line */
[data-theme="dark"] .eyebrow::before { background: var(--accent-clr); }
[data-theme="dark"] a { color: var(--accent-clr); }
[data-theme="dark"] a:hover { color: #b8d6ff; }
[data-theme="dark"] .section--navy .eyebrow::before { background: rgba(255,255,255,.3); }

/* 4. Reset & Basis ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,h2,h3,h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.025em;
}
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3 { color: #e8f2ff; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--navy-600); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--navy); }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; border-radius: var(--r-sm); }

/* 5. Hilfsklassen ----------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 300;
  background: var(--navy); color: #ffffff;
  padding: 12px 20px; border-radius: var(--r-md); font-weight: 600;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 16px; color: #ffffff; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* Eyebrow – Haarlinie à la Japanischer Pinselstrich */
.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-eye);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  flex: 0 0 28px;
  height: 1.5px;
  background: var(--navy);
  opacity: 0.45;
  border-radius: 2px;
}
/* Eyebrow innerhalb section__head – icon übernimmt die Akzentfunktion */
.section__head .eyebrow { display: block; }
.section__head .eyebrow::before { display: none; }
[data-theme="dark"] .eyebrow { color: var(--accent-clr); }
[data-theme="dark"] .section__head .eyebrow { color: var(--accent-clr); }

/* 6. Scroll-Fortschrittsleiste --------------------------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 1.5px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--azure) 100%);
  transform: scaleX(0); transform-origin: left; z-index: 201;
  transition: transform 0.08s linear;
  will-change: transform;
}

/* 7. Navigation / Header ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,248,.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background var(--dur-fast) var(--ease);
}
.nav {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px; height: 70px;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  color: var(--navy); white-space: nowrap; letter-spacing: -0.01em;
}
.brand:hover { color: var(--navy); }
.brand .monogram {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--navy); color: #ffffff;
  border-radius: 50%;          /* Kreis – japanisch-minimalistisch */
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.brand .monogram svg { width: 20px; height: 20px; }
.brand:hover .monogram { background: var(--navy-900); transform: rotate(-8deg); }
.nav-links {
  display: flex; align-items: center; gap: 0; margin-left: auto;
}
.nav-links a {
  color: var(--muted); font-weight: 500; font-size: 0.875rem;
  padding: 8px 12px; border-radius: var(--r-sm);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  letter-spacing: 0.01em; white-space: nowrap;
}
.nav-links a:hover { color: var(--navy); background: var(--ice); }
.nav-links a[aria-current="true"] { color: var(--navy); font-weight: 600; background: var(--navy-100); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch {
  display: inline-flex; border: 1px solid var(--line);
  border-radius: var(--r-pill); overflow: hidden; background: transparent;
}
.lang-switch a {
  padding: 5px 11px; font-weight: 600; font-size: 0.78rem;
  color: var(--muted); letter-spacing: 0.05em;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.lang-switch a[aria-current="true"] { background: var(--navy); color: #ffffff; }
.dark-toggle {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--r-sm); color: var(--muted); cursor: pointer;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.dark-toggle:hover { color: var(--navy); background: var(--ice); }
.dark-toggle svg { width: 17px; height: 17px; }
.nav-toggle {
  display: none; width: 40px; height: 40px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--navy); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* 8. Hero + Aurora ---------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(4rem, 8vw, 7rem);
  background: linear-gradient(155deg, rgba(243,242,238,.90) 0%, transparent 68%);
}
[data-theme="dark"] .hero {
  background: linear-gradient(155deg, rgba(22,22,26,.85) 0%, transparent 68%);
}

.hero-grid {
  display: grid; grid-template-columns: 1.55fr 1fr;
  gap: clamp(2.5rem, 5.5vw, 5rem); align-items: start;
  position: relative; z-index: 1;
}
.hero-kicker {
  font-family: var(--font-head); font-size: var(--fs-eye);
  font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center; margin-bottom: 22px;
}
.hero-kicker .sep { opacity: .3; }
.hero h1 {
  font-size: var(--fs-display);
  letter-spacing: -0.04em;
  font-weight: 700;
  margin-bottom: 12px;
  font-variant: all-small-caps;
}
.hero .role {
  font-family: var(--font-head); font-weight: 600;
  font-size: var(--fs-h3); color: var(--muted);
  margin-bottom: 26px; letter-spacing: 0.01em;
}
.hero .lead {
  font-size: var(--fs-lead); max-width: 52ch;
  color: var(--text); margin-bottom: 32px; line-height: 1.8;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px 16px; font-size: 0.9rem; color: var(--muted);
}
.hero-meta .item { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta .sep { opacity: .25; }
.hero-meta svg { width: 16px; height: 16px; color: var(--navy); flex: 0 0 auto; }
.hero-meta a { color: var(--muted); font-weight: 500; }
.hero-meta a:hover { color: var(--navy); }
/* Portrait */
.hero-portrait {
  position: relative; border-radius: var(--r-lg);
  aspect-ratio: 4/5; overflow: visible;
  max-width: 390px;
  margin: 2.5rem 0 0 auto;   /* top-offset = ~Kicker-Hoehe, right-align */
  box-shadow: 0 0 0 1px rgba(30,58,95,.10), var(--shadow-lg);
}
.hero-portrait img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; border-radius: var(--r-lg);
  transition: transform var(--dur-slow) var(--ease);
}
.hero-portrait:hover img { transform: scale(1.025); }
.hero-portrait::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-lg);
  background: linear-gradient(180deg, transparent 52%, rgba(14,30,58,.48) 100%);
  pointer-events: none;
}
.badge {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--r-md); padding: 12px 18px;
  color: #ffffff; box-shadow: 0 4px 24px rgba(0,0,0,.22);
}
.badge strong { display: block; font-family: var(--font-head); font-size: 1.5rem; line-height: 1; }
.badge span { font-size: 0.76rem; opacity: .82; margin-top: 3px; display: block; letter-spacing: 0.03em; }
.ext-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.ext-link svg { width: 12px; height: 12px; transition: transform var(--dur-fast) var(--ease); }
.ext-link:hover svg { transform: translate(2px,-2px); }

/* 9. Metriken-Band ---------------------------------------------------------- */
.metrics { background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy) 55%, #1e4c80 100%); }
.metrics-inner {
  display: grid; grid-template-columns: repeat(5, 1fr);
  max-width: var(--container); margin-inline: auto;
  padding-inline: var(--gutter);
  border-left: 1px solid rgba(255,255,255,.08);
}
.metric {
  padding: 2.8rem clamp(14px, 2vw, 32px) 2.6rem;
  border-right: 1px solid rgba(255,255,255,.08);
  text-align: center;
}
.metric__value {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.85rem, 3.2vw, 2.9rem);
  letter-spacing: -0.04em; line-height: 1;
  color: #ffffff; display: block;
  white-space: nowrap;
}
/* Einheitssuffixe dezent gedimmt – nicht aufdringlich blau */
.metric__value .accent { color: #ffffff; }
.metric__label {
  font-size: 0.72rem; color: rgba(255,255,255,.76);
  margin-top: 10px; line-height: 1.45; display: block;
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* 10. Bento-Grid (Schwerpunkte) --------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
/* Glasmorphismus à la Shōji-Screen (障子) */
.bento-tile {
  background: rgba(237,240,250,.70);     /* zarte Navy-Tönung */
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(30,58,95,.14);  /* Navy-Haarlinie */
  border-radius: var(--r-lg); padding: 28px 24px;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 2px 12px rgba(0,10,30,.06), inset 0 1px 0 rgba(255,255,255,.95);
}
.bento-tile:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-hover);
  border-color: rgba(30,58,95,.15);
}
.bento-tile:hover .bento-icon { background: var(--navy); color: #ffffff; transform: scale(1.08) rotate(-5deg); }

/* Tile-Größen */
.bento-tile--lead { grid-column: span 4; }
.bento-tile--sm   { grid-column: span 2; }
.bento-tile--wide { grid-column: span 4; } /* Projekt-Agentursteuerung */
.bento-tile--half { grid-column: span 3; } /* Marketing+Wiss / Generative KI */

/* Icon: Kreis statt Rounded-Rect */
.bento-icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--ice); color: var(--navy); border-radius: 50%;
  flex: 0 0 auto; border: 1px solid var(--line);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.bento-icon svg { width: 22px; height: 22px; }
.bento-tile h3 { font-size: 1.05rem; margin: 0; line-height: 1.2; letter-spacing: -0.02em; }
.bento-tile p { font-size: 0.91rem; color: var(--muted); margin: 0; line-height: 1.65; }
.bento-tile--lead p { max-width: 55ch; }

/* 11. Sektionsmuster -------------------------------------------------------- */
.section { padding-block: var(--section-py); position: relative; overflow: hidden; }
.section--ice  { background: var(--ice); }
.section--navy { background: var(--navy); color: #dce6f0; }
.section--navy .eyebrow { color: rgba(255,255,255,.5); }
.section--navy .eyebrow::before { background: rgba(255,255,255,.3); opacity: 1; }
.section--navy h2 { color: #ffffff; }
.section--navy p { color: rgba(255,255,255,.72); }

/* Subtile Verlauf-Hintergründe – macht Glasmorphismus sichtbar */
#werdegang, #bildung, #projekte {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  background-repeat: repeat;
  /* kein background-color → globale Orb-Ebene scheint durch */
}
.section--ice {
  background:
    radial-gradient(ellipse 80% 50% at 82% 88%, rgba(30,58,95,.055) 0%, transparent 60%),
    radial-gradient(ellipse 40% 70% at 8% 18%, rgba(30,58,95,.04) 0%, transparent 70%),
    var(--ice);
}

/* Section Head – mit feiner Haarlinie als Einleitung */
.section__head {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.section--navy .section__head { border-top-color: rgba(255,255,255,.15); }
.head-icon {
  width: 48px; height: 48px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 50%;            /* Kreis – Kanso-Ästhetik */
  color: var(--navy);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.section--ice .head-icon { background: var(--bg); }
.head-icon svg { width: 24px; height: 24px; }
/* Dark-Section-Variante (z. B. Kontakt) */
.head-icon--on-dark {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: #ffffff;
}
[data-theme="dark"] .head-icon--on-dark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); }

/* 12. Timeline – Werdegang -------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute;
  top: 14px; bottom: 0; left: 22px; width: 1px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--line) 100%);
}
.tl-item { position: relative; padding: 0 0 22px 58px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute;
  left: 14px; top: 22px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--navy);
  box-shadow: 0 0 0 4px var(--bg);
  z-index: 2;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.section--ice .tl-item::before { box-shadow: 0 0 0 4px var(--ice); }
.section .tl-item::before { box-shadow: 0 0 0 4px var(--bg); }
.tl-item:hover::before { background: var(--navy); transform: scale(1.35); }

/* Glasmorphismus-Karten */
.tl-card {
  position: relative;
  background: rgba(250,250,248,.76);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: var(--r-lg); padding: 22px 24px;
  box-shadow: 0 2px 8px rgba(0,10,30,.05), 0 8px 32px rgba(0,10,30,.07), inset 0 1px 0 rgba(255,255,255,.95);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.tl-item:hover .tl-card { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: rgba(30,58,95,.12); }
.tl-period {
  display: inline-flex; align-items: center;
  background: var(--navy); color: #ffffff;
  font-family: var(--font-head); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.05em; padding: 4px 12px; border-radius: var(--r-pill);
  margin-bottom: 12px;
}
.tl-role { font-size: var(--fs-h3); margin: 0 0 4px; }
.tl-org { font-weight: 500; color: var(--muted); margin-bottom: 14px; font-size: 0.94rem; }
.tl-org:last-child { margin-bottom: 0; }
.tl-org a { font-weight: 600; }
.tl-org .ext { display: inline-flex; align-items: center; gap: 4px; }
.tl-org .ext svg { width: 12px; height: 12px; transition: transform var(--dur-fast) var(--ease); }
.tl-org .ext:hover svg { transform: translate(2px,-2px); }

/* Desktop: alternierend */
@media (min-width: 921px) {
  .timeline { margin: 0 auto; }
  .timeline::before { left: 50%; transform: translateX(-50%); }
  .tl-item { width: 50%; padding: 0 0 16px; }
  .tl-item:nth-child(odd)  { padding-right: 52px; }
  .tl-item:nth-child(even) { margin-left: 50%; padding-left: 52px; }
  .tl-item::before { top: 22px; }
  .tl-item:nth-child(odd)::before  { left: auto; right: -9px; }
  .tl-item:nth-child(even)::before { left: -9px; }
  .tl-card::after {
    content: ""; position: absolute; top: 28px;
    width: 14px; height: 1px; background: var(--line);
  }
  .tl-item:nth-child(odd) .tl-card::after  { right: -16px; }
  .tl-item:nth-child(even) .tl-card::after { left: -16px; }
}

/* 13. Timeline – Bildung ---------------------------------------------------- */
.timeline--edu::before { left: 14px; }
.timeline--edu .tl-item { padding-left: 44px; padding-bottom: 18px; }
.timeline--edu .tl-item::before {
  left: 7px; top: 20px; width: 14px; height: 14px;
  border-width: 2px; box-shadow: 0 0 0 4px var(--bg);
}
.timeline--edu .tl-card { padding: 18px 20px; }
.timeline--edu .tl-role { font-size: 1.08rem; }
@media (min-width: 921px) {
  .timeline--edu { margin: 0; }
  .timeline--edu::before { left: 14px; transform: none; }
  .timeline--edu .tl-item { width: 100%; padding-left: 44px; padding-right: 0; margin-left: 0; }
  .timeline--edu .tl-item:nth-child(odd)  { padding-right: 0; }
  .timeline--edu .tl-item:nth-child(even) { margin-left: 0; padding-left: 44px; }
  .timeline--edu .tl-item:nth-child(odd)::before  { left: 7px; right: auto; }
  .timeline--edu .tl-item:nth-child(even)::before { left: 7px; }
  .timeline--edu .tl-card::after { display: none; }
}

/* 14. Chevron-Aufzählungen -------------------------------------------------- */
.chevron-list > li {
  position: relative; padding-left: 26px; margin-bottom: 10px;
}
.chevron-list > li::before {
  content: ""; position: absolute;
  left: 0; top: 0.3em; width: 14px; height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='none' stroke='%231e3a5f' stroke-width='40' stroke-linecap='round' stroke-linejoin='round' d='M96 48l80 80-80 80'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: contain;
  transition: transform var(--dur-fast) var(--ease);
}
.chevron-list > li:hover::before { transform: translateX(4px); }
.chevron-list strong { color: var(--navy); font-weight: 600; }

/* 15. Skill-Matrix ---------------------------------------------------------- */
.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.skill-card {
  background: rgba(250,250,248,.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: var(--r-lg); padding: 24px;
  box-shadow: 0 2px 8px rgba(0,10,30,.05), 0 8px 28px rgba(0,10,30,.07), inset 0 1px 0 rgba(255,255,255,.95);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.skill-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(30,58,95,.12); }
.skill-card:hover .skill-card__icon { background: var(--navy); color: #ffffff; border-color: var(--navy); transform: scale(1.08) rotate(-5deg); }
.skill-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.skill-card__icon {
  width: 44px; height: 44px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--ice); color: var(--navy); border-radius: 50%;
  border: 1px solid var(--line);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.skill-card__icon svg { width: 24px; height: 24px; }
.skill-card h3 { font-size: 1.05rem; margin: 0; }
.skill-rows { display: flex; flex-direction: column; gap: 12px; }
.skill-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.skill-name { font-size: 0.92rem; font-weight: 500; color: var(--text); }
.skill-meter { display: inline-flex; gap: 3px; }
.skill-meter i {
  width: 18px; height: 5px; border-radius: 2px;
  background: var(--ice-200);
}
.reveal-ready [data-reveal] .skill-meter i.on {
  opacity: 0; transform: scaleX(0); transform-origin: left;
}
.reveal-ready [data-reveal].is-visible .skill-meter i.on {
  opacity: 1; transform: scaleX(1);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.reveal-ready [data-reveal].is-visible .skill-meter i.on:nth-child(1) { transition-delay:  60ms; }
.reveal-ready [data-reveal].is-visible .skill-meter i.on:nth-child(2) { transition-delay: 110ms; }
.reveal-ready [data-reveal].is-visible .skill-meter i.on:nth-child(3) { transition-delay: 160ms; }
.reveal-ready [data-reveal].is-visible .skill-meter i.on:nth-child(4) { transition-delay: 210ms; }
.reveal-ready [data-reveal].is-visible .skill-meter i.on:nth-child(5) { transition-delay: 260ms; }
.skill-meter i.on { background: var(--navy); }
.skill-card:hover .skill-meter i.on { background: var(--navy-600); }

/* 16. Extras (Zertifikate, Sprachen) ---------------------------------------- */
.extras-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
.info-card {
  background: rgba(250,250,248,.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: var(--r-lg); padding: 26px;
  box-shadow: 0 2px 8px rgba(0,10,30,.05), 0 8px 28px rgba(0,10,30,.07), inset 0 1px 0 rgba(255,255,255,.95);
}
.info-card > h3 {
  display: flex; align-items: center; gap: 10px; font-size: 1.05rem;
  margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.info-card > h3 svg { width: 20px; height: 20px; color: var(--navy); flex: 0 0 auto; }
.def-list { display: flex; flex-direction: column; gap: 16px; }
.def-list .row { display: grid; gap: 2px; }
.def-list .term { font-weight: 700; color: var(--navy); font-size: 0.95rem; margin: 0; }
.def-list .desc { color: var(--muted); font-size: 0.91rem; margin: 0; }
.def-list .src { display: block; margin-top: 2px; font-size: 0.85rem; color: var(--muted); }

/* Sprachkenntnisse – gestapelt: Zeile 1 Name · Zeile 2 Level · Zeile 3 Balken */
.lang-row {
  display: flex; flex-direction: column; gap: 8px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.lang-row:last-child { padding-bottom: 0; border-bottom: none; }
.lang-head {
  display: flex;
  flex-direction: column;    /* Gestapelt: Name oben, Level darunter */
  align-items: flex-start;
  gap: 3px;
}
.lang-head .term {
  font-weight: 700; color: var(--navy); font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.lang-head .desc { color: var(--muted); font-size: 0.88rem; letter-spacing: 0.01em; }
.lang-bar {
  width: 100%; max-width: 220px; height: 2px;   /* Hauchdünne Linie */
  background: var(--ice-200); border-radius: var(--r-pill); overflow: hidden;
}
.lang-bar > span { display: block; height: 100%; background: var(--navy); border-radius: var(--r-pill); }

/* Zertifikate-Chips */
.cert-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cert-chip {
  font-size: 0.8rem; font-weight: 600; color: var(--navy);
  background: var(--navy-100); border-radius: var(--r-pill);
  padding: 4px 12px; border: 1px solid rgba(30,58,95,.12);
}

/* 17. Kontakt & Formular ---------------------------------------------------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5.5vw, 5rem); align-items: start;
}
/* Roofline */
.contact-head {
  display: flex; align-items: center; gap: 18px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.15);
  margin-bottom: 24px;
}
.contact-head h2 { margin: 0; color: #ffffff; }
.contact-intro p { color: rgba(255,255,255,.7); font-size: var(--fs-lead); max-width: 40ch; }
.contact-eyebrow { color: rgba(255,255,255,.45); letter-spacing: 0.18em; }
.contact-eyebrow::before { background: rgba(255,255,255,.3); opacity: 1; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Button-Hover auf Navy-Hintergrund sichtbar machen */
.section--navy .btn--light {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  border-color: rgba(255,255,255,.25);
}
.section--navy .btn--light:hover {
  background: rgba(255,255,255,.24);
  color: #ffffff;
  border-color: rgba(255,255,255,.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0,0,0,.28);
}

.contact-form { display: grid; gap: 14px; }
.contact-form .field { display: flex; flex-direction: column; gap: 6px; }
.contact-form label {
  font-family: var(--font-head); font-weight: 600;
  font-size: 0.84rem; color: rgba(255,255,255,.7); letter-spacing: 0.02em;
}
.contact-form .req { color: var(--azure); }
.contact-form input,
.contact-form textarea {
  font: inherit; font-size: 0.98rem; color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-md); padding: 11px 14px; width: 100%;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,.3); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--azure); background: rgba(255,255,255,.11); outline: none; }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { outline: 2px solid var(--azure); outline-offset: 2px; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { font-size: 0.88rem; font-weight: 600; min-height: 1.3em; color: rgba(255,255,255,.55); }
.form-status.is-ok  { color: #7dd9a0; }
.form-status.is-err { color: #ffb4a8; }

/* 18. Footer & Dialog ------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.45); font-size: 0.86rem; padding-block: 36px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer-meta { max-width: 60ch; }
.footer-meta .ai-note { display: block; margin-top: 5px; color: rgba(255,255,255,.28); font-size: 0.8rem; }
.site-footer a { color: rgba(255,255,255,.55); font-weight: 600; }
.site-footer a:hover { color: #ffffff; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: rgba(255,255,255,.55); font-weight: 600; }
.linkbtn:hover { color: #ffffff; text-decoration: underline; }
dialog.modal {
  border: 0; border-radius: var(--r-lg); padding: 0;
  max-width: 600px; width: calc(100% - 32px);
  box-shadow: 0 32px 80px rgba(0,10,30,.4); color: var(--text);
  background: var(--bg);
}
dialog.modal::backdrop { background: rgba(0,10,30,.55); backdrop-filter: blur(4px); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; background: var(--bg); }
.modal__head h2 { margin: 0; font-size: 1.2rem; }
.modal__body { padding: 24px; }
.modal__body h3 { font-size: 0.96rem; margin-top: 18px; }
.modal__body h3:first-child { margin-top: 0; }
.modal__body p { font-size: 0.93rem; }
.modal__body .linkbtn {
  color: var(--navy);
  text-decoration: underline;
}
.modal__close {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg); color: var(--navy); cursor: pointer; display: grid; place-items: center;
}
.modal__close:hover { background: var(--ice); }
.modal__close svg { width: 18px; height: 18px; }

/* 19. Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #ffffff;
  font-family: var(--font-head); font-weight: 600; font-size: 0.9rem;
  line-height: 1; padding: 12px 22px; border-radius: var(--r-pill);
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  letter-spacing: 0.01em;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.btn:hover { background: var(--navy-900); transform: translateY(-2px); box-shadow: var(--shadow-hover); color: #ffffff; }
.btn svg { width: 17px; height: 17px; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #ffffff; }
.btn--light { background: var(--bg); color: var(--navy); border-color: var(--line); }
.btn--light:hover { background: var(--navy); color: #ffffff; border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
/* Nav CTA */
.nav-desktop-cta { font-size: 0.84rem; padding: 9px 16px; }

/* 20. Scroll-Reveal-Animationen -------------------------------------------- */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(0.975);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
@media print { .reveal-ready [data-reveal] { opacity: 1 !important; transform: none !important; } }

/* 21. Responsives Verhalten ------------------------------------------------- */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-tile--lead { grid-column: span 2; }
  .bento-tile--sm   { grid-column: span 1; }
  .bento-tile--wide { grid-column: span 2; }
  .bento-tile--half { grid-column: span 1; }
}
@media (max-width: 980px) {
  .metrics-inner { grid-template-columns: repeat(3, 1fr); padding-inline: var(--gutter); }
  .metric:nth-child(4),
  .metric:nth-child(5) { border-top: 1px solid rgba(255,255,255,.08); }
  .nav-links {
    position: fixed; inset: 70px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 18px;
    box-shadow: var(--shadow-hover);
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px; font-size: 1rem; border-radius: var(--r-sm); }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 320px; aspect-ratio: 4/5; margin: 0 auto; }
}
@media (max-width: 920px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-actions { flex-direction: row; flex-wrap: wrap; }
  .nav-desktop-cta { display: none; }
}
@media (max-width: 700px) {
  .metrics-inner { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.08); }
  .metric:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-tile--lead { grid-column: span 2; }
  .bento-tile--sm   { grid-column: span 1; }
  .bento-tile--wide { grid-column: span 2; }
  .bento-tile--half { grid-column: span 1; }
  .skills-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .metrics-inner { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento-tile--lead,
  .bento-tile--sm,
  .bento-tile--wide,
  .bento-tile--half { grid-column: span 1; height: auto; min-height: 0; overflow: visible; }
}
@media (max-width: 400px) {
  .metrics-inner { grid-template-columns: 1fr; }
}

/* 22. prefers-reduced-motion ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-aurora::before, .hero-aurora::after { animation: none !important; }
  .reveal-ready [data-reveal],
  .reveal-ready [data-reveal] .skill-meter i.on {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}


/* =============================================================================
   ERWEITERUNGEN v2 — Glass-Tokens · Körnung · Blob-Hintergründe · Projekte
   ============================================================================= */

/* A. Glass-Tokens (ergänzend zu :root oben) -------------------------------- */
:root {
  --glass-bg:          rgba(250,250,248,.78);
  --glass-bg-fallback: rgba(245,244,240,.97);
  --glass-border:      rgba(255,255,255,.82);
  --glass-blur:        18px;
  --shadow-float:      0 24px 64px rgba(0,10,30,.22), 0 8px 24px rgba(0,10,30,.14);
  --glass-scrim:       rgba(0,24,54,.64);
}
[data-theme="dark"] {
  --glass-bg:          rgba(20,20,28,.80);
  --glass-bg-fallback: rgba(18,18,24,.97);
  --glass-border:      rgba(255,255,255,.09);
  --glass-scrim:       rgba(0,6,20,.76);
  --shadow-float:      0 24px 64px rgba(0,0,0,.46), 0 8px 24px rgba(0,0,0,.30);
}

/* B. Body-Punktraster (nur sichtbar wo keine Section-Fläche liegt) ---------- */
body {
  background-image: radial-gradient(circle, rgba(30,58,95,.055) 1px, transparent 1px);
  background-size: 28px 28px;
}
[data-theme="dark"] body {
  background-image: radial-gradient(circle, rgba(80,130,210,.045) 1px, transparent 1px);
}

/* C. Grain-Textur → nun in "Sektionsmuster" weiter oben geregelt */

/* D. Projekte-Grid --------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  list-style: none;
  padding: 0;
  margin: 0;
}

/* E. Flip-Cards ------------------------------------------------------------ */
.flip { perspective: 1600px; }

.flip-inner {
  position: relative;
  min-height: clamp(26rem, 30vw, 28rem);
  border-radius: var(--r-lg);
  transform-style: preserve-3d;
  cursor: pointer;
  transition: transform .7s cubic-bezier(.16,1,.3,1), box-shadow .7s cubic-bezier(.16,1,.3,1);
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}
.flip-inner:focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 3px;
}
.flip:hover .flip-inner,
.flip-inner:focus-within,
.flip-inner.is-flipped {
  transform: rotateY(180deg);
  box-shadow: var(--shadow-float);
}

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

/* Vorderseite – cleane Glasfläche */
.flip-front {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 2px 12px rgba(0,10,30,.06), inset 0 1px 0 rgba(255,255,255,.96);
  transition: border-color var(--dur-fast) var(--ease);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .flip-front { background: var(--glass-bg-fallback); }
}
.flip:hover .flip-front { border-color: rgba(30,58,95,.20); }

/* Rückseite – Bild + getöntes Scrim-Panel */
.flip-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #0c1e3a 0%, #1e3a5f 55%, #2a5298 100%);
}
.flip-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  display: block;
}
.flip-media.img-error { opacity: 0; }

.flip-back__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  color: #fff;
  background: var(--glass-scrim);
  border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .flip-back__panel { background: rgba(0,22,52,.90); }
}

/* Vorderseiten-Elemente */
.flip-front__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: 12px;
  padding: 0 clamp(1.25rem, 2.5vw, 1.75rem);
}
.flip-front__head .flip-icon {
  width: 32px; height: 32px;
  margin-bottom: 0;
}
.flip-front__head .flip-icon svg { width: 16px; height: 16px; }
.flip-front__head .flip-title { margin: 0; font-size: 1.05rem; }

.flip-front__caption {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 clamp(1.25rem, 2.5vw, 1.75rem);
}
.flip-front-media {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
  display: block;
}
.flip-front-credit {
  position: absolute;
  bottom: 8px;
  right: 12px;
  margin: 0;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.5);
  padding: 3px 6px;
  border-radius: 4px;
  text-align: right;
  z-index: 2;
}
.flip-front-credit a { color: inherit; text-decoration: underline; }

.flip-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--ice); color: var(--navy);
  border-radius: 50%;
  border: 1px solid var(--line);
  margin-bottom: 16px;
  flex: 0 0 auto;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.flip-icon svg { width: 22px; height: 22px; }
.flip:hover .flip-icon { background: var(--navy); color: #ffffff; transform: scale(1.08) rotate(-5deg); border-color: var(--navy); }
[data-theme="dark"] .flip-icon { background: var(--bg-alt); border-color: var(--line); color: var(--accent-clr); }
[data-theme="dark"] .flip:hover .flip-icon { background: var(--navy-600); color: #ffffff; border-color: var(--navy-600); }

.flip-title {
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.2;
  letter-spacing: -0.022em;
  color: var(--navy);
}
[data-theme="dark"] .flip-title { color: #e8f2ff; }

.flip-sub {
  font-size: 0.87rem;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
  line-height: 1.45;
}
.flip-role {
  font-size: 0.79rem;
  color: var(--muted);
  margin: 0;
  padding-top: 0;
  opacity: 0.68;
  font-style: italic;
}

/* Indikator-Pfeil oben rechts */
.flip-indicator {
  position: absolute;
  top: 1rem; right: 1rem;
  color: var(--muted);
  display: flex;
  transition: transform .4s cubic-bezier(.16,1,.3,1), color var(--dur-fast) var(--ease);
}
.flip-indicator svg { width: 15px; height: 15px; }
.flip-inner:hover .flip-indicator,
.flip-inner:focus-within .flip-indicator { transform: translate(2px,-2px) rotate(8deg); color: var(--navy); }
[data-theme="dark"] .flip-inner:hover .flip-indicator,
[data-theme="dark"] .flip-inner:focus-within .flip-indicator { color: var(--accent-clr); }

/* Rückseiten-Elemente */
.flip-back__title {
  font-family: var(--font-head);
  font-size: .97rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 9px;
  letter-spacing: -.015em;
  line-height: 1.18;
}
.flip-summary {
  font-size: 0.83rem;
  line-height: 1.70;
  color: rgba(255,255,255,.88);
  margin: 0 0 12px;
}
.flip-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 .5rem;
  list-style: none;
  padding: 0;
  margin: auto 0 0;
}
.flip-kpis li {
  font-size: 0.73rem;
  color: rgba(255,255,255,.76);
  font-weight: 600;
  padding: 5px 0;
  border-top: 1px solid rgba(255,255,255,.15);
  line-height: 1.38;
}
.flip-project-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #ffffff;
  font-family: var(--font-head); font-weight: 600; font-size: 0.9rem;
  line-height: 1; padding: 12px 22px; border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer; white-space: nowrap;
  letter-spacing: 0.01em;
  text-decoration: none;
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  margin-top: 0.75rem;
  align-self: flex-start;
}
.flip-project-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.flip-project-link:focus-visible,
.flip-front-credit a:focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 3px;
  border-radius: 4px;
}
.form-hint {
  font-size: 0.8rem;
  color: rgba(255,255,255,.6);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}
.form-hint .linkbtn {
  font-size: inherit;
  color: rgba(255,255,255,.85);
}

/* F. Responsive -------------------------------------------------------------- */
@media (max-width: 900px) {
  .projects-grid { grid-template-columns: 1fr; }
  .flip-inner { min-height: 25rem; }
  .flip-kpis { grid-template-columns: 1fr 1fr; }
}

/* G. prefers-reduced-motion: kein 3D-Flip, instant Opacity-Wechsel --------- */
@media (prefers-reduced-motion: reduce) {
  .flip-inner { transform-style: flat !important; }
  .flip:hover .flip-inner,
  .flip-inner:focus-within,
  .flip-inner.is-flipped { transform: none !important; box-shadow: none !important; }
  .flip-front, .flip-back {
    backface-visibility: visible !important;
    -webkit-backface-visibility: visible !important;
  }
  .flip-back { transform: none !important; opacity: 0; z-index: 1; }
  .flip:hover .flip-back,
  .flip-inner:focus-within .flip-back,
  .flip-inner.is-flipped .flip-back { opacity: 1 !important; z-index: 2; }
  .flip:hover .flip-front,
  .flip-inner:focus-within .flip-front,
  .flip-inner.is-flipped .flip-front { opacity: 0 !important; }
}

/* =============================================================================
   HINTERGRUNDSYSTEM v3 — Glow · Geometrie · Parallax
   Tuning-Parameter:
     Opazitaet:  Zahlenwerte in .glow-1/.glow-2 + .geo-ring/.geo-diam/.geo-ln
     Drift-Weg:  Pixel-Werte in @keyframes glow-a / glow-b
     Rotation:   animation-duration auf .geo-ring / .geo-diam
     Parallax:   data-px Attribute im HTML (Faktoren 0.08 / 0.12)
   ============================================================================= */

/* Stacking Context: Inhalt liegt ueber dem Orb-Layer */
main         { position: relative; z-index: 1; }
.site-footer { position: relative; z-index: 1; }

/* Container */
.orbs-bg {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}

/* ── Ebene 1: Lichtfelder ────────────────────────────────────────────────── */
/* Wrapper: Groesse + Position; kein eigener Effekt */
.glow-w { position: absolute; }
/* Inneres Element: Gradient + Blur + CSS-Drift (kein Konflikt mit JS-Parallax) */
.glow   { position: absolute; inset: 0; border-radius: 50%; }

.glow-w-1 { width: 82vw; height: 82vw; top: -28vh; left: -20vw; }
.glow-1 {
  background: radial-gradient(circle, rgba(0,51,102,.20) 0%, rgba(30,58,95,.10) 48%, transparent 70%);
  filter: blur(90px);
  animation: glow-a 22s ease-in-out infinite alternate;
}
[data-theme="dark"] .glow-1 {
  background: radial-gradient(circle, rgba(0,51,102,.40) 0%, rgba(30,58,95,.22) 48%, transparent 70%);
}

.glow-w-2 { width: 66vw; height: 66vw; top: 30vh; right: -20vw; }
.glow-2 {
  background: radial-gradient(circle, rgba(42,82,152,.17) 0%, rgba(58,111,168,.09) 52%, transparent 70%);
  filter: blur(110px);
  animation: glow-b 26s ease-in-out infinite alternate;
  animation-delay: -13s;
}
[data-theme="dark"] .glow-2 {
  background: radial-gradient(circle, rgba(42,82,152,.34) 0%, rgba(58,111,168,.20) 52%, transparent 70%);
}

/* Drift: 32px Wanderstrecke, kein Y-Drift (JS-Parallax liefert den Y-Versatz) */
@keyframes glow-a {
  from { transform: translate(  0px, 0px) scale(1);    }
  to   { transform: translate( 32px, 0px) scale(1.10); }
}
@keyframes glow-b {
  from { transform: translate(   0px, 0px) scale(1.04); }
  to   { transform: translate(-28px,  0px) scale(0.92); }
}

/* ── Ebene 2: Scharfe Geometrie ──────────────────────────────────────────── */
/* Wrapper: empfaengt JS-translateY; CSS-rotate-Property bleibt unabhaengig */
.geo-w { position: absolute; will-change: transform; }

/* Ring -- hinter Hero-Portraet, oben rechts */
.geo-w-ring { top: 5vh; right: 2vw; width: 400px; height: 400px; }
.geo-ring {
  width: 100%; height: 100%;
  color: var(--navy);
  opacity: 0.20;   /* 0.06 dezenter / 0.26 praesenster */
  animation: geo-cw 120s linear infinite;
}
[data-theme="dark"] .geo-ring { color: var(--accent-clr); opacity: 0.18; }

/* Raute -- nahe Kennzahlenband, Bildschirmmitte */
.geo-w-diam { top: 46vh; left: 40vw; width: 220px; height: 220px; }
.geo-diam {
  width: 100%; height: 100%;
  color: var(--navy);
  opacity: 0.17;   /* 0.04 dezenter / 0.22 praesenster */
  animation: geo-ccw 88s linear infinite;
  animation-delay: -28s;
}
[data-theme="dark"] .geo-diam { color: var(--accent-clr); opacity: 0.14; }

/* Linien -- CSS rotate-Property + JS transform: unabhaengige Ebenen */
.geo-w-ln1 { top: 52vh; left: 4vw;   rotate: -16deg; }
.geo-w-ln2 { top: 20vh; right: 24vw; rotate:  22deg; }
.geo-ln {
  position: absolute;
  background: var(--navy);
  width: 2px; border-radius: 1px;
  opacity: 0.16;   /* 0.03 fast unsichtbar / 0.22 deutlich */
}
[data-theme="dark"] .geo-ln { background: var(--accent-clr); opacity: 0.12; }
.geo-ln-1 { height: 58vh; }
.geo-ln-2 { height: 38vh; }

/* Rotations-Keyframes (nur transform, kein translate) */
@keyframes geo-cw  { to { transform: rotate( 360deg); } }
@keyframes geo-ccw { to { transform: rotate(-360deg); } }

/* prefers-reduced-motion: Drift + Rotation stoppen, Komposition bleibt */
@media (prefers-reduced-motion: reduce) {
  .glow-1, .glow-2, .geo-ring, .geo-diam { animation: none !important; }
}

/* Druckansicht */
@media print { .orbs-bg { display: none !important; } }

/* ── orbs-stage: Geometrie an Inhaltsspalte binden ──────────────────────── */
.orbs-stage {
  position: absolute;
  inset: 0;
  max-width: 1360px;
  width: 100%;
  margin-inline: auto;
  pointer-events: none;
}
/* Geo-Positionen jetzt relativ zur zentrierten Stage */
.geo-w-ring { top: 6vh; right: -50px; }   /* teilweise hinter Hero-Portraet */
.geo-w-diam { top: 48vh; left: calc(50% - 110px); }
.geo-w-ln1  { top: 58vh; left: 3%; }
.geo-w-ln2  { top: 18vh; right: 6%; }

/* ── Glow-3: Lichtfläche hinter Schwerpunkte / Bento ────────────────────── */
.glow-w-3 { width: 72vw; height: 50vw; top: 20vh; left: calc(50% - 36vw); }
.glow-3 {
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(30,58,95,.14) 0%, transparent 70%);
  filter: blur(80px);
  animation: glow-c 28s ease-in-out infinite alternate;
  animation-delay: -8s;
}
[data-theme="dark"] .glow-3 {
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(30,58,95,.30) 0%, transparent 70%);
}
@keyframes glow-c {
  from { transform: translate(0, 0) scale(1);    }
  to   { transform: translate(0, 18px) scale(1.04); }
}

/* ── Pulsierender Verfügbarkeits-Punkt ───────────────────────────────────── */
.avail-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  flex: 0 0 auto;
  animation: avail-pulse 2.4s ease-in-out infinite;
}
@keyframes avail-pulse {
  0%, 100% { opacity: 1;    transform: scale(1);    }
  50%       { opacity: 0.4;  transform: scale(0.65); }
}

/* prefers-reduced-motion: glow-3 + pulsierender Punkt */
@media (prefers-reduced-motion: reduce) {
  .glow-3 { animation: none !important; }
  .avail-dot { animation: none !important; }
  .to-top.is-visible { transition: none; }
}

/* ── Back to Top Button ──────────────────────────────────────────────────── */
.to-top {
  position: fixed;
  bottom: clamp(16px, 4vw, 28px);
  right: clamp(16px, 4vw, 28px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,10,30,.05), 0 8px 32px rgba(0,10,30,.07);
  z-index: 150;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease), background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  cursor: pointer;
}
.to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  background: var(--navy-900);
}
.to-top:focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 3px;
}
.to-top svg {
  width: 22px;
  height: 22px;
}
[data-theme="dark"] .to-top {
  background: rgba(255,255,255,.08);
  color: #ffffff;
  border: 1px solid var(--line);
}
[data-theme="dark"] .to-top:hover {
  background: var(--navy-600);
  border-color: var(--navy-600);
}
