﻿/* ============================================================
   gabriel-tsonyev â€” Design System
   Marke: #2449b0 Â· Dunkel: #0a1330 Â· Fonts: Manrope / Inter / DM Mono
   Adaption aus mygermanland-v2 (Navy-Tokens statt Violet)
   ============================================================ */

/* ---------- Fonts (lokal, DSGVO-konform) ---------- */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope/Manrope-VF.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/Inter-Black.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('../fonts/dm-mono/DMMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Navy-Ramp */
  --navy-50:  #f0f4fd;
  --navy-100: #e1e9fc;
  --navy-200: #c3d2f8;
  --navy-300: #93aef0;
  --navy-400: #5e83e6;
  --navy-500: #3460d6;
  --navy-600: #2449b0;
  --navy-700: #1d3a8a;
  --navy-800: #16295f;
  --navy-900: #0f1d44;
  --navy-950: #0a1330;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --green-600: #16a34a;
  --green-100: #dcfce7;
  --red-600:   #dc2626;

  /* Neutral */
  --ink-900: #111118;
  --ink-700: #374151;
  --ink-600: #4b5563;
  --ink-400: #9ca3af;
  --paper:    #ffffff;
  --paper-alt: #f4f6fd;

  /* Typo */
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;

  --text-display: clamp(2.4rem, 5.2vw + 1rem, 4.6rem);
  --text-h2: clamp(1.8rem, 3vw + 0.8rem, 3rem);
  --text-h3: clamp(1.25rem, 1.2vw + 0.9rem, 1.6rem);
  --text-lg: clamp(1.05rem, 0.4vw + 0.95rem, 1.2rem);

  /* Layout */
  --container: 72rem;
  --section-y: clamp(4rem, 9vw, 8rem);
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;

  /* Tiefe (Navy-RGB: 10,19,48 fÃ¼r dark; 36,73,176 fÃ¼r primary) */
  --shadow-card: 0 1px 2px rgba(10,19,48,0.05), 0 8px 24px rgba(10,19,48,0.07);
  --shadow-lift: 0 2px 4px rgba(10,19,48,0.06), 0 16px 48px rgba(10,19,48,0.14);
  --shadow-cta:  0 8px 24px rgba(36,73,176,0.35);
  --glass-bg: rgba(255,255,255,0.10);
  --glass-border: rgba(255,255,255,0.18);

  /* --- Semantic surface/text aliases (light values; dark block overrides these) --- */
  --bg:           var(--paper);
  --bg-alt:       var(--paper-alt);
  --surface:      #fff;
  --surface-2:    var(--paper-alt);
  --border:       rgba(10,19,48,0.07);
  --border-strong:rgba(10,19,48,0.14);
  --ink:          var(--ink-900);
  --text:         var(--ink-700);
  --muted:        var(--ink-600);
  --faint:        var(--ink-400);
  --brand:        var(--navy-600);
  --brand-strong: var(--navy-700);
  --eyebrow-ink:  var(--navy-600);
  --on-accent:    #fff;

  /* --- Radius scale --- */
  --radius-sm:   0.5rem;
  --radius-md:   0.875rem;
  --radius-pill: 999px;

  /* --- Typographic scale --- */
  --text-xs:   0.74rem;
  --text-sm:   0.85rem;
  --text-base: 1rem;
  --text-md:   1.1rem;
  --lh-tight:  1.12;
  --lh-snug:   1.4;
  --lh-body:   1.65;

  /* --- Spacing (4px base) --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;

  /* --- Control heights --- */
  --control-h:    3rem;
  --control-h-lg: 3.5rem;
  --control-h-sm: 2.5rem;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 1rem;
}
h1 { font-size: var(--text-display); font-weight: 800; }
h2 { font-size: var(--text-h2); font-weight: 800; }
h3 { font-size: var(--text-h3); font-weight: 700; }
h4 { font-size: var(--text-md); font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--brand); }

@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-dark :focus-visible { outline-color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-950); color: #fff;
  padding: 0.75rem 1.25rem; border-radius: 0 0 0.75rem 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: var(--section-y); }
.section-alt { background: var(--bg-alt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.05rem; line-height: var(--lh-snug);
  min-height: var(--control-h); padding: 0.9rem 2rem;
  border-radius: var(--radius-pill); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .2s cubic-bezier(0.22,1,0.36,1), box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--navy-600); color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(36,73,176,0.45); }
.btn-secondary {
  background: transparent; color: var(--navy-700);
  border-color: var(--navy-200);
}
.btn-secondary:hover { background: var(--navy-50); border-color: var(--navy-400); }
.btn-inverse { background: #fff; color: var(--navy-700); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.btn-inverse:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,0,0,0.3); }
.btn-ghost-dark {
  background: transparent; color: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.28);
}
.btn-ghost-dark:hover { color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-lg { font-size: 1.15rem; min-height: var(--control-h-lg); padding: 1.1rem 2.6rem; }

/* ---------- Floating Nav ---------- */
.site-nav {
  position: fixed; top: 0.9rem; left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 1.5rem), 76rem);
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(10,19,48,0.08);
  box-shadow: 0 4px 24px rgba(10,19,48,0.08);
  transition: padding 0.3s ease, box-shadow 0.3s ease, top 0.3s ease;
}
.site-nav.shrunk { padding: 0.4rem 1.4rem; top: 0.5rem; box-shadow: 0 8px 32px rgba(10,19,48,0.14); }
.nav-brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.nav-brand span {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  letter-spacing: -0.02em; color: var(--ink-900);
  white-space: nowrap;
}
.nav-links { display: none; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 0.85rem; font-weight: 700; text-decoration: none; color: var(--ink);
  padding: 0.5rem 0.15rem;
}
.nav-links a:hover { color: var(--navy-600); }
.nav-actions { display: flex; align-items: center; gap: 0.8rem; }
.lang-switch {
  position: relative; display: inline-flex; border: 1px solid rgba(10,19,48,0.12); border-radius: var(--radius-pill); overflow: hidden;
  background: var(--navy-50);
}
.lang-switch button {
  font: inherit; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em;
  border: 0; background: transparent; color: var(--ink-600);
  padding: 0.45rem 0.8rem; cursor: pointer; min-height: 2.2rem;
}
.lang-switch button[aria-pressed="true"] { background: var(--navy-600); color: #fff; }
.nav-cta { display: none; }
@media (min-width: 64rem) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; min-height: var(--control-h-sm); padding: 0.5rem 1.3rem; font-size: 0.9rem; }
}

/* Mobile Bottom-Nav */
.mobile-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-around;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(10,19,48,0.08);
  padding: 0.4rem 0.3rem calc(0.4rem + env(safe-area-inset-bottom));
}
.mobile-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  text-decoration: none; color: var(--ink-600);
  font-size: 0.75rem; font-weight: 700;
  min-width: 3.5rem; min-height: 3rem; justify-content: center; border-radius: 0.8rem;
}
.mobile-nav a svg { width: 1.35rem; height: 1.35rem; }
.mobile-nav a[aria-current="page"], .mobile-nav a:hover { color: var(--navy-600); background: var(--navy-50); }
@media (min-width: 64rem) { .mobile-nav { display: none; } body { padding-bottom: 0; } }
@media (max-width: 63.99rem) { body { padding-bottom: 4.6rem; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  padding-top: clamp(7rem, 14vw, 11rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  background: linear-gradient(125deg, #0a1330, #16295f 38%, #2449b0 64%, #0f1d44 88%, #0a1330);
  background-size: 280% 280%;
  animation: hero-gradient 18s ease-in-out infinite;
}
@keyframes hero-gradient {
  0%   { background-position: 0% 30%; }
  50%  { background-position: 100% 70%; }
  100% { background-position: 0% 30%; }
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40rem 26rem at calc(85% + var(--mx,0) * 1.6rem) calc(8% + var(--my,0) * 1.6rem), rgba(94,131,230,0.28), transparent 65%),
    radial-gradient(30rem 22rem at calc(8% - var(--mx,0) * 1.2rem) calc(95% - var(--my,0) * 1.2rem), rgba(36,73,176,0.35), transparent 60%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero-grid {
  display: grid; gap: 3rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 64rem) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 4.5rem; } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--navy-200);
  background: rgba(36,73,176,0.3);
  border: 1px solid rgba(94,131,230,0.45);
  padding: 0.5rem 1rem; border-radius: var(--radius-pill); margin-bottom: 1.6rem;
}
.hero-sub { color: rgba(255,255,255,0.75); font-size: var(--text-lg); max-width: 36rem; margin-bottom: 2.2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.4rem; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.86rem; font-weight: 600; color: #fff;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.16);
  padding: 0.5rem 1rem; border-radius: var(--radius-pill);
}
.pill svg { width: 1rem; height: 1rem; flex-shrink: 0; }

/* Hero-Entrance: gestaffeltes Einblenden beim Seitenload */
@keyframes hero-enter {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badge  { animation: hero-enter 0.6s cubic-bezier(0.22,1,0.36,1) 0.05s both; }
.hero h1     { animation: hero-enter 0.75s cubic-bezier(0.22,1,0.36,1) 0.18s both; }
.hero-sub    { animation: hero-enter 0.7s cubic-bezier(0.22,1,0.36,1) 0.32s both; }
.hero-ctas   { animation: hero-enter 0.7s cubic-bezier(0.22,1,0.36,1) 0.46s both; }
.hero-photo-wrap { animation: hero-enter 0.9s cubic-bezier(0.22,1,0.36,1) 0.22s both; }

/* Foto: 16:9 in ~4:5 card mit object-position oben */
.hero-photo-wrap { position: relative; max-width: 32rem; margin-inline: auto; }
.hero-photo {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 2px solid rgba(255,255,255,0.18);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 15%; }

/* Foto schwebt sanft */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
.hero-photo { animation: float 6s ease-in-out infinite; }

/* Dezentes Badge-Overlay statt glass-stats */
.hero-photo-badge {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  padding: 0.6rem 1.2rem; border-radius: var(--radius-pill);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  font-size: 0.78rem; font-weight: 700; color: rgba(255,255,255,0.9);
  letter-spacing: 0.04em;
}

/* ---------- Scroll-Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
  transition-delay: calc(var(--stagger, 0) * 90ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

@supports (animation-timeline: view()) {
  .reveal {
    opacity: 1; transform: none; transition: none;
    animation: reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 38%;
    animation-delay: calc(var(--stagger, 0) * 0s);
  }
  @keyframes reveal-up {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: none; }
  }
}

/* Reveal von links */
.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
  transition-delay: calc(var(--stagger, 0) * 90ms);
}
.reveal-left.is-visible { opacity: 1; transform: none; }
@supports (animation-timeline: view()) {
  .reveal-left {
    opacity: 1; transform: none; transition: none;
    animation: reveal-left linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 38%;
  }
  @keyframes reveal-left {
    from { opacity: 0; transform: translateX(-28px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ---------- Bento-Grid ---------- */
.bento {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 48rem) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento > .span-4 { grid-column: span 4; }
  .bento > .span-3 { grid-column: span 3; }
  .bento > .span-2 { grid-column: span 2; }
  .bento > .span-6 { grid-column: span 6; }
}
.bento-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s cubic-bezier(0.22,1,0.36,1);
}
.bento-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.bento-card.dark {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  border-color: rgba(255,255,255,0.08); color: rgba(255,255,255,0.8);
}
.bento-card.dark h3 { color: #fff; }
.bento-card.tint { background: var(--navy-100); border-color: var(--navy-300); }
.bento-card.tint .bento-icon { background: var(--navy-300); color: var(--navy-800); }
.bento-card.tint-amber { background: rgba(245,158,11,0.22); border-color: rgba(245,158,11,0.45); }
.bento-card.tint-amber .bento-icon { background: rgba(245,158,11,0.3); color: #b45309; }
.bento-card.tint-green { background: rgba(22,163,74,0.20); border-color: rgba(22,163,74,0.4); }
.bento-card.tint-green .bento-icon { background: rgba(22,163,74,0.28); color: var(--green-600); }
.bento-card.tint-red { background: rgba(220,38,38,0.18); border-color: rgba(220,38,38,0.4); }
.bento-card.tint-red .bento-icon { background: rgba(220,38,38,0.28); color: var(--red-600); }
.bento-icon {
  width: 3rem; height: 3rem; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-100); color: var(--navy-700); margin-bottom: 1.2rem;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.bento-card:hover .bento-icon { transform: rotate(-8deg) scale(1.08); }
.bento-icon svg { width: 1.4rem; height: 1.4rem; }
.bento-card.dark .bento-icon { background: rgba(255,255,255,0.12); color: var(--navy-200); }

/* ---------- Projekt-Cards ---------- */
.project-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 48rem) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 75rem) { .project-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.project-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s cubic-bezier(0.22,1,0.36,1);
  display: flex; flex-direction: column;
}
.project-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.project-card.tint { background: var(--navy-100); border-color: var(--navy-300); }
.project-card.tint .project-icon { background: var(--navy-300); color: var(--navy-800); }
.project-card.tint-amber { background: rgba(245,158,11,0.22); border-color: rgba(245,158,11,0.45); }
.project-card.tint-amber .project-icon { background: rgba(245,158,11,0.3); color: #b45309; }
.project-card.tint-green { background: rgba(22,163,74,0.20); border-color: rgba(22,163,74,0.4); }
.project-card.tint-green .project-icon { background: rgba(22,163,74,0.28); color: var(--green-600); }
.project-card.tint-red { background: rgba(220,38,38,0.18); border-color: rgba(220,38,38,0.4); }
.project-card.tint-red .project-icon { background: rgba(220,38,38,0.28); color: var(--red-600); }
.project-card-top { flex: 1; }
.project-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-100); color: var(--navy-700); margin-bottom: 1.2rem; font-size: 1.6rem;
}
.tech-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.tech-badge {
  font-family: var(--font-mono); font-size: 0.72rem;
  background: var(--navy-50); color: var(--navy-700);
  border: 1px solid var(--navy-100); border-radius: var(--radius-pill);
  padding: 0.25rem 0.7rem;
}
.tech-badge { transition: transform 0.15s ease, border-color 0.15s ease; }
.tech-badge:hover { transform: translateY(-1px); border-color: var(--navy-300); }

.project-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1.5rem; font-size: 0.9rem; font-weight: 700;
  color: var(--navy-600); text-decoration: none;
}
.project-link:hover { color: var(--navy-700); }
.project-link svg { width: 1rem; height: 1rem; transition: transform 0.2s ease; }
.project-link:hover svg { transform: translate(3px, -3px); }

/* ---------- Skills-Grid ---------- */
.skills-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 38rem) { .skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .skills-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Dunkle Sektionen ---------- */
.dark-section {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: rgba(255,255,255,0.78);
}
.dark-section h2, .dark-section h3 { color: #fff; }

/* ---------- Kontakt-Links ---------- */
.contact-links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }
.contact-link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 0.85rem 1.8rem; border-radius: var(--radius-pill);
  text-decoration: none; transition: transform 0.2s cubic-bezier(0.22,1,0.36,1), box-shadow 0.2s ease;
}
.contact-link.primary { background: #fff; color: var(--navy-800); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.contact-link.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,0.28); }
.contact-link.ghost { background: transparent; color: rgba(255,255,255,0.85); border: 1.5px solid rgba(255,255,255,0.3); }
.contact-link.ghost:hover { color: #fff; border-color: rgba(255,255,255,0.6); transform: translateY(-2px); }
.contact-link svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950); color: rgba(255,255,255,0.6);
  padding: 3.5rem 0 2.5rem; margin-top: auto;
}
.site-footer a { color: rgba(255,255,255,0.75); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-grid { display: grid; gap: 2rem; text-align: center; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1fr auto 1fr; align-items: center; text-align: left; } }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; justify-content: center; }
@media (min-width: 48rem) { .footer-brand { justify-content: flex-start; } }
.footer-brand span { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: #fff; letter-spacing: -0.02em; }
.footer-legal { font-size: 0.8rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
@media (min-width: 48rem) { .footer-legal { justify-content: flex-end; } }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: 0.74rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--navy-600); margin-bottom: 1rem;
}
.on-dark .eyebrow { color: var(--navy-200); }
.lead { font-size: var(--text-lg); color: var(--muted); max-width: 42rem; }
.lead.center { margin-inline: auto; }
.mt-2 { margin-top: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
[hidden] { display: none !important; }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { animation: none; background-position: 50% 50%; }
  .hero-badge, .hero h1, .hero-sub, .hero-ctas, .hero-photo-wrap { animation: none; opacity: 1; }
  .hero-photo { animation: none; }
  .reveal, .reveal-left { opacity: 1; transform: none; transition: none; animation: none; }
  .btn, .bento-card, .project-card, .contact-link { transition: none; }
  .btn-primary:hover, .btn-inverse:hover, .bento-card:hover, .project-card:hover,
  .bento-card:hover .bento-icon, .project-link:hover svg { transform: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Wissensgraph (Signature) ---------- */
.graph-stage {
  position: relative; margin-top: 2.5rem;
  border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.03);
  padding: 0.75rem 0.75rem 1rem; overflow: hidden;
}
#graph-canvas { display: block; width: 100%; height: clamp(300px, 46vw, 430px); cursor: crosshair; }
@media (max-width: 47.99rem) {
  #graph-canvas { height: auto; aspect-ratio: 4 / 5; min-height: 380px; }
  .graph-stage { padding: 0.5rem 0.4rem 0.75rem; }
}
.graph-hint {
  margin: 0.5rem 0 0.85rem; text-align: center;
  font-size: 0.82rem; color: rgba(255,255,255,0.55);
}
.graph-legend { display: flex; flex-wrap: wrap; gap: 1.1rem; justify-content: center; }
.graph-legend > span { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: rgba(255,255,255,0.7); }
.graph-legend i { width: 0.6rem; height: 0.6rem; border-radius: 50%; display: inline-block; flex-shrink: 0; }

.graph-principles {
  display: grid; gap: 1rem; margin-top: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 38rem) { .graph-principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 48rem) { .graph-principles { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
@media (min-width: 64rem) { .graph-principles { grid-template-columns: repeat(4, 1fr); } }
.graph-principle {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), background 0.25s ease, border-color 0.25s ease;
}
.graph-principle:hover { transform: translateY(-4px); background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.28); }
.graph-principle .idx { font-family: var(--font-mono); font-size: 0.8rem; color: var(--navy-300); }
.graph-principle h3 { font-size: 1.05rem; color: #fff; margin: 0.5rem 0; }
.graph-principle p { font-size: 0.88rem; color: rgba(255,255,255,0.68); margin: 0; line-height: 1.55; }
@media (prefers-reduced-motion: reduce) { .graph-principle:hover { transform: none; } }

/* ---------- Anchor-Offset (Fixed-Nav Ã¼berdeckt Sprungziele) ---------- */
section[id], #main { scroll-margin-top: 6rem; }

/* ---------- Stats-Band ---------- */
.stats-band { padding-block: clamp(2.5rem,5vw,3.5rem); background: var(--bg); border-bottom: 1px solid var(--border); }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; text-align: center; }
@media (min-width: 48rem) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat-num {
  font-family: var(--font-mono); font-size: clamp(2rem, 3.6vw, 2.8rem);
  color: var(--navy-600); line-height: 1; font-variant-numeric: tabular-nums;
}
.stat-num.stat-text { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.stat-label { font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-top: 0.45rem; }

/* ---------- Coaching-Grid ---------- */
.coaching-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .coaching-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Scroll-Progress-Bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 4px; width: 0;
  background: linear-gradient(90deg, var(--navy-600), var(--navy-300));
  z-index: 200; pointer-events: none;
}

/* ---------- Hero-Parallax (Foto-Ebene, nur Pointer-GerÃ¤te) ---------- */
@media (pointer: fine) {
  .hero-photo img {
    transform: translate(calc(var(--mx,0) * -10px), calc(var(--my,0) * -10px)) scale(1.06);
    transition: transform 0.25s ease-out;
  }
}

/* ---------- Nav-Underline (animiert) ---------- */
.nav-links a::after {
  content: ""; position: absolute; left: 0.15rem; right: 0.15rem; bottom: 0.05rem;
  height: 2px; border-radius: 2px; background: var(--navy-600);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Lang-Switch: gleitender Pill-Indikator ---------- */
.lang-switch .lang-thumb {
  position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc(50% - 2px);
  background: var(--navy-600); border-radius: 999px; z-index: 0;
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1);
}
.lang-switch[data-active="en"] .lang-thumb,
.lang-switch:has(button[data-lang="en"][aria-pressed="true"]) .lang-thumb { transform: translateX(100%); }
.lang-switch button { position: relative; z-index: 1; background: var(--navy-50); color: var(--ink-700); }
.lang-switch button[aria-pressed="true"] { background: transparent; color: #fff; }

/* ---------- Button-Sheen (Glanz-Sweep on hover) ---------- */
.btn-primary, .btn-inverse { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after, .btn-inverse::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-18deg); transition: left 0.6s ease;
}
.btn-primary:hover::after, .btn-inverse:hover::after { left: 150%; }

/* ---------- Projekt-Cards: SVG-Icon + Hover-Glow + Corner-Arrow ---------- */
.project-icon svg { width: 1.7rem; height: 1.7rem; }
.project-card:hover { border-color: var(--navy-300); box-shadow: 0 18px 50px rgba(36,73,176,0.20); }
.project-corner {
  position: absolute; top: 1.1rem; right: 1.1rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-600); color: #fff;
  opacity: 0; transform: translateY(6px) scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
}
.project-corner svg { width: 1rem; height: 1rem; }
.project-card:hover .project-corner { opacity: 1; transform: translateY(0) scale(1); }

/* ---------- Reduced Motion: Polish-Effekte aus ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-photo img { transform: none; }
  .nav-links a::after, .lang-switch .lang-thumb,
  .btn-primary::after, .btn-inverse::after, .project-corner { transition: none; }
}

/* ---------- Dual-language (toggled by gtApplyLang) ---------- */
html[lang="de"] .i18n-en { display: none; }
html[lang="en"] .i18n-de { display: none; }

