@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ============ THEME TOKENS ============
   Zwei Themes: dunkel (mit durchlaufendem Glow) und hell (bewusst farbiger,
   angelehnt an Kategorie-Farben aus der Datenanalyse). Fließtext verwendet
   ausschließlich --text / --text-muted, damit der Kontrast in beiden Themes
   zuverlässig hoch bleibt. Die vier "Suit"-Farben dienen nur als Akzent. */
:root {
  --bg: #0A0A10;
  --bg-alt: #100D17;
  --bg-card: #14121C;
  --bg-card-alt: #1B1726;
  --text: #EEF0F3;
  --text-muted: #9CA5B1;
  --text-faint: rgba(238, 240, 243, 0.58);
  --text-bright: #FFFFFF;
  --ink-on-accent: #FFFFFF;
  --accent: #FF8A3D;
  --accent-hover: #FFA35F;
  --accent-on-dark: #FF8A3D;
  --accent-soft: rgba(255, 138, 61, 0.16);
  --accent-grad: #B1580F;
  --border: rgba(238, 240, 243, 0.10);
  --suit-spade: #EEF0F3;
  --suit-heart: #FF5C7A;
  --suit-diamond: #7AA6FF;
  --suit-club: #4ADE94;
  --card-gold: #E6B84F;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --glow-alt: transparent;
  --glow-card: rgba(255, 255, 255, 0.035);
  --glow-footer: transparent;
  --panel-bg: rgba(255, 255, 255, 0.045);
  --page-bg:
    radial-gradient(1100px circle at 10% 0%, rgba(155, 92, 255, 0.20), transparent 55%),
    radial-gradient(1000px circle at 90% 18%, rgba(255, 61, 128, 0.15), transparent 55%),
    radial-gradient(1200px circle at 50% 100%, rgba(122, 166, 255, 0.10), transparent 55%),
    var(--bg);
  --font-sans: 'Space Grotesk', Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #F5F6FA;
  --bg-alt: #E6E9F2;
  --bg-card: #FFFFFF;
  --bg-card-alt: #E1E5F0;
  --text: #14161B;
  --text-muted: #52545C;
  --text-faint: rgba(20, 22, 27, 0.64);
  --text-bright: #05060A;
  --ink-on-accent: #FFFDFA;
  --accent: #B1580F;
  --accent-hover: #98490B;
  --accent-on-dark: #E1975B;
  --accent-soft: rgba(177, 88, 15, 0.16);
  --accent-grad: #B1580F;
  --border: rgba(20, 22, 27, 0.18);
  --suit-spade: #14161B;
  --suit-heart: #C6383B;
  --suit-diamond: #2F5FCB;
  --suit-club: #1F8A5F;
  --card-gold: #A8791F;
  --shadow: 0 20px 50px rgba(20, 22, 27, 0.1);
  --glow-alt: var(--bg-alt);
  --glow-card: var(--bg-card);
  --glow-footer: var(--bg-alt);
  --panel-bg: var(--bg-card);
  --page-bg: var(--bg);
  color-scheme: light;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page-bg);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

* { box-sizing: border-box; }

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: var(--ink-on-accent); }
img { display: block; max-width: 100%; }

@keyframes nobsPulse { 0%, 100% { opacity: .25 } 50% { opacity: 1 } }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important }
}

.page { width: 100%; overflow-x: clip; background: transparent; }
.muted { color: var(--text-muted); }

/* Reveal-on-scroll */
[data-reveal] { will-change: opacity, transform, filter; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px clamp(18px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
  font-family: var(--font-sans);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-grad);
  color: var(--ink-on-accent);
  font-size: 19px;
  font-weight: 700;
}
a.brand-mark:hover { color: var(--ink-on-accent); opacity: .85; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.brand-tagline {
  margin-left: -3px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text); white-space: nowrap;
}
.brand-tagline::before { content: '– '; }
@media (max-width: 560px) {
  .brand-tagline { display: none; }
}

.nav { display: flex; align-items: center; gap: 6px; font-size: 14.5px; flex-wrap: wrap; justify-content: flex-end; }
.nav-link { padding: 9px 14px; border-radius: 999px; font-weight: 600; color: var(--text-bright); transition: background .2s ease, color .2s ease; }
.nav-link:hover { background: var(--panel-bg); color: var(--text); }
.nav-cta {
  margin-left: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent-grad);
  color: var(--ink-on-accent);
  font-weight: 600;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), filter .25s ease;
}
.nav-cta:hover { transform: translateY(-1px); filter: brightness(1.08); color: var(--ink-on-accent); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 8px;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ---------- Hero ----------
   Ein einzelnes Foto füllt den ganzen Hero als Hintergrund (statisch, keine
   Animation/Parallax). */
.hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: clamp(480px, 78vh, 780px);
  display: flex;
  align-items: flex-end;
}
.hero-photo { position: absolute; inset: 0; z-index: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; transition: object-position .2s ease; }
.hero-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--bg) 4%, color-mix(in srgb, var(--bg) 82%, transparent) 32%, color-mix(in srgb, var(--bg) 20%, transparent) 62%, color-mix(in srgb, var(--bg) 4%, transparent) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px) clamp(40px, 6vw, 72px); }
.hero-copy { max-width: 640px; }
.hero-title {
  margin: 0;
  color: var(--text-bright);
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}
.hero-sub {
  margin: clamp(22px, 2.6vw, 30px) 0 0;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.7;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 48ch;
  text-wrap: pretty;
}
.eyebrow-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 26px; border-radius: 999px; background: var(--accent-grad); color: var(--ink-on-accent);
  font-weight: 600; font-size: 16px; text-decoration: none; border: none; cursor: pointer; font-family: inherit;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), filter .25s ease;
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); color: var(--ink-on-accent); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--panel-bg); backdrop-filter: blur(16px); font-weight: 500; font-size: 16px;
  color: var(--text); text-decoration: none; cursor: pointer; font-family: inherit;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .25s ease;
}
.btn-secondary:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--panel-bg); backdrop-filter: blur(16px); color: var(--text);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .25s ease;
}
.btn-icon:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn-icon[hidden] { display: none; }

/* Social-Icons: alle gleich groß, im Look der jeweiligen Plattform */
.contact-socials { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn-social {
  display: block; width: 52px; height: 52px; border-radius: 14px; overflow: hidden;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.5);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
}
.btn-social svg { display: block; width: 100%; height: 100%; }
.btn-social:hover { transform: translateY(-3px); box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.6); }
.btn-social[hidden] { display: none; }

/* ---------- Section shell ---------- */
.section { max-width: 1280px; margin: 0 auto; padding: clamp(48px, 6vw, 80px) clamp(18px, 4vw, 48px); }
.section-alt { background: var(--glow-alt); }
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
/* Wechselt sich Section für Section mit der zentrierten Variante ab —
   zusammen mit .section-alt entsteht so ein leichter Zickzack-Rhythmus
   beim Runterscrollen, ohne dass jede Section ein eigenes Bild braucht. */
.section-head-left { align-items: flex-start; text-align: left; margin-left: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--panel-bg); backdrop-filter: blur(16px); font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
}
.section-title { margin: 0; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
.section-title .muted { color: var(--text-faint); }
.section-desc { margin: 0; font-size: 17px; line-height: 1.65; color: var(--text-muted); max-width: 52ch; text-wrap: pretty; }

/* ---------- Steps / Services cards ---------- */
.card-row { margin-top: clamp(28px, 3.4vw, 44px); display: flex; flex-wrap: wrap; gap: clamp(14px, 1.6vw, 20px); align-items: stretch; }
.step-card {
  flex: 1 1 210px; position: relative; overflow: hidden;
  background: var(--panel-bg); backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: 22px; padding: clamp(22px, 2.4vw, 28px);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s ease;
}
.step-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.card-icon {
  display: grid; place-items: center; position: relative;
  width: 46px; height: 62px; border-radius: 7px;
  background: #FFFFFF; color: var(--accent-on-dark); font-size: 27px; font-weight: 600;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.55);
}
.card-icon::before {
  content: attr(data-rank);
  position: absolute; top: 4px; left: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; line-height: 1; color: inherit;
}
.suit-spade { color: var(--suit-spade); }
.suit-heart { color: var(--suit-heart); }
.suit-diamond { color: var(--suit-diamond); }
.suit-club { color: var(--suit-club); }
/* Die card-icon-Badges haben immer eine weiße Kartenfläche (beide Themes) —
   die Tinte braucht darum feste, auf Weiß kontrastierende Töne statt der
   theme-abhängigen --suit-Werte. */
.card-icon.suit-spade { color: #14161B; }
.card-icon.suit-diamond { color: #2F5FCB; }
.card-icon.suit-club { color: #0F6E47; }

/* ---------- Nav card-deal transition ---------- */
.nav-card-overlay { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.nav-flying-card {
  position: relative; width: 120px; height: 168px; border-radius: 12px;
  background: var(--text); box-shadow: 0 40px 70px -20px rgba(0, 0, 0, 0.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; font-weight: 700;
  animation: navCardDeal .68s cubic-bezier(.2, .8, .2, 1) forwards;
}
.nav-flying-card .corner { position: absolute; display: flex; flex-direction: column; align-items: center; font-family: var(--font-mono); font-size: 15px; font-weight: 600; line-height: 1.1; }
.nav-flying-card .corner.tl { top: 10px; left: 12px; }
.nav-flying-card .corner.br { bottom: 10px; right: 12px; transform: rotate(180deg); }
@keyframes navCardDeal {
  0% { opacity: 0; transform: translateY(50px) scale(.55) rotate(-10deg); }
  32% { opacity: 1; transform: translateY(0) scale(1.06) rotate(3deg); }
  55% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translateY(-46px) scale(.92) rotate(6deg); }
}
@media (prefers-reduced-motion: reduce) { .nav-flying-card { animation: none; opacity: 0; } }

.card-no { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; color: var(--text-faint); }
.step-card h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.step-card p { margin: 10px 0 0; font-size: 15px; line-height: 1.65; color: var(--text-muted); }

/* ---------- Übergang zu Projekte ---------- */
.scroll-hint {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  padding: clamp(48px, 7vw, 80px) clamp(18px, 4vw, 48px); text-decoration: none; color: var(--text-bright);
  font-size: clamp(1.7rem, 3.8vw, 2.4rem); font-weight: 700; letter-spacing: -0.01em; text-align: center;
  text-wrap: balance; transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.scroll-hint:hover { color: var(--text-bright); transform: translateY(4px); }
/* Der Button "ist" ein kleiner Kartenstapel (gleiche Optik wie .card-icon) —
   fächert beim Hover leicht auf und zeigt per Pfeil nach unten zu den
   echten Projekt-Karten. */
.scroll-hint-stack {
  display: inline-block; position: relative;
  width: clamp(64px, 9vw, 84px); aspect-ratio: 3 / 4; flex-shrink: 0;
  animation: scrollHintBounce 1.8s ease-in-out infinite;
}
.scroll-hint-card {
  position: absolute; inset: 0; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: #FFFFFF; box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.scroll-hint-card-3 { transform: rotate(-5deg); z-index: 1; }
.scroll-hint-card-2 { transform: rotate(-2deg); z-index: 2; }
.scroll-hint-card-1 { color: var(--accent); z-index: 3; transform: rotate(0deg); }
.scroll-hint-stack:hover .scroll-hint-card-3 { transform: translate(-16px, 3px) rotate(-13deg); }
.scroll-hint-stack:hover .scroll-hint-card-2 { transform: translate(-8px, 1px) rotate(-7deg); }
.scroll-hint-arrow { width: 42%; height: 42%; }
@keyframes scrollHintBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .scroll-hint-stack { animation: none; } }

/* ---------- Projekte / Karussell ----------
   3D-Coverflow: die aktive Karte steht vorne und mittig, die Nachbarkarten
   sind seitlich versetzt, verkleinert und um die Y-Achse gedreht sichtbar —
   wie an einem Kartentisch aufgefächert. Wechselt automatisch alle ~7s und
   lässt sich über die Pfeile darunter manuell durchblättern. */
.projekte-carousel { max-width: 1200px; margin: clamp(28px, 3.4vw, 44px) auto 0; }
.carousel-viewport {
  position: relative;
  height: clamp(420px, 52vw, 580px);
  perspective: 1600px;
}
.carousel-track { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.carousel-track > * {
  position: absolute; top: 50%; left: 50%; width: clamp(260px, 32vw, 400px); aspect-ratio: 3 / 4;
  margin: 0;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .6s ease;
  will-change: transform, opacity;
}

/* Größe/Position kommen von ".carousel-track > *" (die Karte ist dessen
   direktes Kind) — hier nur Optik, kein width/height/position doppeln. */
.gallery-card {
  display: block; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border); background: var(--panel-bg); backdrop-filter: blur(16px);
  color: var(--text); cursor: pointer;
}
.gallery-card:hover { border-color: var(--accent); }
/* Projektkarte: oben das Bild (nimmt den restlichen Platz, ca. zwei Drittel),
   darunter eine Textfläche, die mit der Textmenge mitwächst (mind. ein Drittel). */
.gallery-card:not(.gallery-card-empty) { display: flex; flex-direction: column; }
.gallery-card:not(.gallery-card-empty) > img,
.gallery-card:not(.gallery-card-empty) > div:first-child { flex: 1 1 0; min-height: 0; width: 100%; height: auto; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.gallery-card-body {
  position: static; flex: 0 0 auto; min-height: 32%; box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: clamp(12px, 1.8vw, 18px) clamp(14px, 2vw, 20px);
  border-top: 2px solid var(--accent-grad);
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-card-alt));
}
:root[data-theme="light"] .gallery-card-body {
  background: color-mix(in srgb, var(--accent) 9%, var(--bg-alt));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.gallery-card-body h3 { font-size: clamp(1.05rem, 1.6vw, 1.3rem); margin: 0 0 4px; font-weight: 700; color: var(--text); }
.gallery-card-body p { margin: 0; font-size: clamp(.85rem, 1.1vw, .95rem); color: var(--text); opacity: .85; }
.gallery-card .card-corner {
  position: absolute; top: 12px; left: 12px; padding: 6px 8px; border-radius: 9px;
  font-family: var(--font-mono); font-size: 1rem; display: flex; flex-direction: column;
  align-items: center; line-height: 1.1; color: var(--text);
  background: color-mix(in srgb, var(--bg-card) 78%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.gallery-card:hover .gallery-card-body h3 { color: var(--accent); }
.gallery-card-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  background: repeating-linear-gradient(135deg, var(--accent-soft) 0 10px, transparent 10px 20px), var(--panel-bg);
  color: var(--text-muted); cursor: default;
}
.gallery-card-empty .card-icon { position: static; margin-bottom: 4px; }
.gallery-card-empty span:not(.card-icon) { font-weight: 600; color: var(--text); font-size: clamp(1rem, 1.4vw, 1.15rem); }
.gallery-card-empty small { font-size: clamp(.8rem, 1vw, .9rem); color: var(--text-faint); }
/* Vorher groß in der Mitte, darunter ein Pfeil, darunter Nachher (je volle Breite). */
/* Formatierte Texte (aus dem Backend-Editor) */
.rich { line-height: 1.7; }
.rich p { margin: 0 0 14px; }
.rich h2 { font-size: 1.5rem; margin: 18px 0 10px; }
.rich h3 { font-size: 1.2rem; margin: 16px 0 8px; }
.rich ul, .rich ol { margin: 0 0 14px 1.4em; }
.rich a { color: var(--accent); text-decoration: underline; }
.project-tableau-link {
  margin: 48px 0 40px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.story-frame {
  width: 100%; margin-top: 8px; overflow: hidden; border-radius: 16px;
  border: 2px solid var(--accent-grad);
  background: color-mix(in srgb, var(--accent-grad) 6%, var(--bg-card));
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent-grad) 22%, transparent);
}
.story-frame-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 14px;
  background: var(--accent-grad); color: #fff; font-size: .88rem; font-weight: 600; line-height: 1.35;
}
.project-tableau-link .project-embed { margin: 0; width: 100%; height: auto; min-height: 240px; display: flex; align-items: center; justify-content: center; border: none; border-radius: 0; background: transparent; }
.project-tableau-link .project-embed.is-loaded { background: #fff; }
.project-tableau-link .project-embed .embed-gate { padding: 24px 16px; }
.project-tableau-link .project-embed.is-loaded { display: block; min-height: 0; }
.projects-more-link { font-size: .92rem; color: var(--accent); font-weight: 600; }
.projects-more-link:hover { text-decoration: underline; }
.project-tableau-link h3 { margin: 0; font-size: 1.25rem; font-weight: 700; }
.project-tableau-link p { margin: 0; max-width: 56ch; color: var(--text-muted); line-height: 1.65; }
.project-ba { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 40px 0; }
.project-ba-col { margin: 0; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.project-ba-arrow { color: var(--accent); display: flex; justify-content: center; }
.project-ba-label {
  align-self: center; padding: 5px 14px; border-radius: 999px; font-family: var(--font-mono);
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--border);
  background: var(--panel-bg); color: var(--text-muted);
}
.project-ba-col.is-after .project-ba-label { background: var(--accent-grad); color: var(--ink-on-accent); border-color: transparent; }
.project-ba-col img { width: 100%; border-radius: 14px; border: 1px solid var(--border); background: #fff; display: block; }
/* Vorher = rot (schlecht), Nachher = grün (gut): Beschriftung und Bildunterschrift klar hervorgehoben */
.project-ba-col { --tone: var(--suit-heart); }
.project-ba-col.is-after { --tone: var(--suit-club); }
.project-ba-col .project-ba-label {
  font-size: .95rem; font-weight: 700; padding: 8px 20px; letter-spacing: .14em;
  color: var(--tone); border-color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, transparent);
}
.project-ba-col.is-after .project-ba-label { color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, transparent); border-color: var(--tone); }
.project-ba-col img { border: 2px solid var(--tone); box-shadow: 0 0 32px -10px var(--tone); }
.project-ba-col figcaption {
  width: 100%; box-sizing: border-box; padding: 14px 18px; border-radius: 12px;
  font-size: 1.08rem; font-weight: 700; line-height: 1.4; color: var(--text);
  background: color-mix(in srgb, var(--tone) 13%, transparent); border: 1px solid color-mix(in srgb, var(--tone) 45%, transparent);
}
.project-ba-arrow { color: var(--suit-club); }
.project-ba-arrow svg { width: 44px; height: 44px; }
.projects-more { text-align: center; margin-top: 28px; }
.projects-more a {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px;
  font-size: 1.02rem; font-weight: 700; color: var(--accent);
  border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent);
  transition: background .25s ease, color .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.projects-more a:hover { background: var(--accent); color: var(--ink-on-accent); transform: translateY(-2px); }
.projects-more a[hidden] { display: none; }
.gallery-empty-note { margin-top: 18px; font-size: .85rem; color: var(--text-faint); text-align: center; }

.carousel-arrows { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 20px; }
.carousel-arrow {
  width: 42px; height: 42px; border-radius: 999px; flex-shrink: 0;
  border: 1px solid var(--border); background: var(--panel-bg); backdrop-filter: blur(16px);
  color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: border-color .2s ease, color .2s ease;
}
.carousel-arrow:hover { border-color: var(--accent); color: var(--accent); }
.carousel-arrow svg { width: 18px; height: 18px; }
.carousel-dots { display: flex; align-items: center; gap: 8px; }
.carousel-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--border); border: none; padding: 0; cursor: pointer; }
.carousel-dot.is-active { background: var(--accent); width: 20px; }

/* ---------- Über mich ---------- */
.about-section { position: relative; overflow: hidden; }
.about-glow {
  position: absolute; right: -10%; top: 10%; width: 46%; height: 70%; pointer-events: none;
  border-radius: 50%; filter: blur(100px); opacity: .35;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%);
}
.about-grid {
  position: relative; max-width: 1280px; margin: 0 auto; padding: clamp(48px, 6vw, 80px) clamp(18px, 4vw, 48px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(26px, 3vw, 48px); align-items: start;
}
.about-title { margin: 22px 0 0; font-size: clamp(28px, 3.8vw, 46px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
.about-icon { width: min(220px, 60%); height: auto; aspect-ratio: 1; margin: 36px auto 0; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.22)); }
.about-icon svg { display: block; width: 100%; height: 100%; }
.about-copy p { margin: 0; font-size: 16.5px; line-height: 1.78; color: var(--text-muted); text-wrap: pretty; }
.about-copy p + p { margin-top: 16px; }
.about-copy .about-highlight {
  margin-top: 24px; padding: 18px 22px; border-radius: 14px;
  background: color-mix(in srgb, var(--accent-grad) 10%, transparent);
  border-left: 3px solid var(--accent-grad);
  font-size: 17.5px; font-weight: 600; color: var(--text); line-height: 1.6;
  text-align: center;
}

/* ---------- Gratis Ressourcen: Pokerhand ---------- */
.res-hand {
  display: flex; justify-content: center; align-items: flex-end;
  padding: 64px 10px 72px; margin-top: 8px;
}
.res-card {
  --w: 150px;
  --face: var(--bg-card-alt); --ink: var(--text); --ink-soft: var(--text-muted); --edge: rgba(255, 255, 255, 0.16);
  --s-spade: #F2EFF7; --s-heart: #FF5C7A; --s-diamond: #7AA6FF; --s-club: #4ADE94;
  position: relative; flex: 0 0 var(--w); width: var(--w); height: calc(var(--w) * 1.4);
  margin-left: calc(var(--w) * -0.28); border-radius: 12px; border: 1px solid var(--edge);
  background: var(--face); color: var(--ink); font-family: inherit; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px;
  box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.6);
  transform-origin: 50% 120%;
  transform: translateY(calc(var(--abs) * var(--abs) * 6px)) rotate(calc(var(--off) * 7deg));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}
.res-card:first-child { margin-left: 0; }
.res-card:hover, .res-card:focus-visible {
  transform: translateY(-26px) rotate(0deg) scale(1.04); z-index: 50 !important;
  box-shadow: 0 22px 36px -14px rgba(0, 0, 0, 0.7); outline: none;
}
.res-card.is-selected {
  transform: translateY(-38px) rotate(0deg) scale(1.06); z-index: 40 !important;
  border-color: #9DB8FF; box-shadow: 0 0 0 2px #9DB8FF, 0 0 30px -2px rgba(122, 166, 255, 0.55), 0 24px 40px -14px rgba(0, 0, 0, 0.7);
}
:root[data-theme="light"] .res-card.is-selected {
  border-color: var(--accent-grad); box-shadow: 0 0 0 3px var(--accent-grad), 0 24px 40px -14px rgba(0, 0, 0, 0.7);
}
.res-card-corner { position: absolute; top: 9px; left: 11px; display: flex; flex-direction: column; align-items: center; font-family: var(--font-mono); font-size: 15px; font-weight: 600; line-height: 1.05; }
:root[data-theme="light"] .res-card {
  --face: #FFFFFF; --ink: #14161B; --ink-soft: #5B5F6B; --edge: rgba(0, 0, 0, 0.18);
  --s-spade: #14161B; --s-heart: #C6383B; --s-diamond: #2F5FCB; --s-club: #0F6E47;
}
.res-card-type { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.res-card-title { font-size: 1.05rem; font-weight: 700; line-height: 1.2; text-align: center; letter-spacing: -0.01em; }
.res-card-suit { position: absolute; right: 12px; bottom: 8px; font-size: 22px; transform: rotate(180deg); }
.res-card .suit-spade { color: var(--s-spade); }
.res-card .suit-heart { color: var(--s-heart); }
.res-card .suit-diamond { color: var(--s-diamond); }
.res-card .suit-club { color: var(--s-club); }
.res-detail { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; max-width: 60ch; margin: 0 auto; min-height: 120px; }
.res-detail-text { margin: 0; font-size: 1.02rem; line-height: 1.7; color: var(--text-muted); }
.res-detail .btn-primary[hidden] { display: none; }
@media (max-width: 720px) {
  .res-card { --w: 118px; }
  .res-hand { justify-content: flex-start; padding-left: 24px; overflow-x: auto; overflow-y: hidden; }
}

/* ---------- Preis ---------- */
.price-card {
  max-width: 640px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: clamp(34px, 5vw, 54px) clamp(24px, 5vw, 48px); border-radius: 28px;
  border: 1px solid var(--border); background: var(--glow-card); backdrop-filter: blur(16px);
}
.price-range {
  margin: 0; font-size: clamp(2.1rem, 5vw, 3.1rem); font-weight: 700; letter-spacing: -0.02em;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price-note { margin: 0; font-size: 15px; line-height: 1.75; color: var(--text-muted); max-width: 46ch; }
.price-card .pill { color: var(--accent-grad); }

/* ---------- Kontakt ---------- */
.contact-card {
  position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 32px;
  background: var(--glow-card); backdrop-filter: blur(16px);
  padding: clamp(30px, 4.5vw, 58px); text-align: center;
}
.contact-glow {
  position: absolute; left: 50%; top: -40%; width: 70%; height: 120%; transform: translateX(-50%);
  pointer-events: none; border-radius: 50%; filter: blur(110px); opacity: .4;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 68%);
}
.contact-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.contact-pill { background: color-mix(in srgb, var(--bg) 40%, transparent); }
.contact-title { margin: 0; font-size: clamp(28px, 4.4vw, 54px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; max-width: 22ch; text-wrap: balance; }
.contact-desc { margin: 0; font-size: 17px; line-height: 1.7; color: var(--text-muted); max-width: 50ch; text-wrap: pretty; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
/* Klick auf die E-Mail öffnet kein mailto direkt, sondern ein kleines Menü:
   Adresse kopieren, oder doch das Mail-Programm öffnen. */
.contact-email-group { position: relative; display: inline-flex; }
.contact-email-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  z-index: 20; min-width: 220px; padding: 8px; border-radius: 16px;
  background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 2px;
}
.contact-email-menu[hidden] { display: none; }
.contact-email-menu a, .contact-email-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: 10px; border: none; background: none;
  font-family: inherit; font-size: .92rem; font-weight: 500; color: var(--text);
  cursor: pointer; text-align: left; text-decoration: none;
}
.contact-email-menu a:hover, .contact-email-menu button:hover { background: var(--panel-bg); color: var(--accent); }
.contact-email-menu svg { width: 18px; height: 18px; flex-shrink: 0; }
#contact-email-copy-action.is-copied span::after { content: ' ✓'; }
.contact-note { margin: 6px 0 0; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.contact-requirements {
  width: 100%; max-width: 60ch; margin: 12px auto 0; padding-top: 22px;
  border-top: 1px solid var(--border); text-align: center;
}
.contact-requirements-heading {
  margin: 0 0 12px; font-size: 1.05rem; font-weight: 700; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--accent-grad);
}
.contact-requirements-heading:not(:first-child) { margin-top: 4px; }
.contact-requirements-list { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.contact-requirements-list:last-child { margin-bottom: 0; }
.contact-requirements-list li { display: flex; align-items: flex-start; justify-content: center; gap: 9px; font-size: 1.05rem; color: var(--text); }
.contact-requirements-list .check-icon-inline { flex-shrink: 0; width: 15px; height: 15px; margin-top: 3px; color: var(--accent); }
.contact-requirements-list .check-icon-inline svg { display: block; width: 100%; height: 100%; }
.contact-requirements-note {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 20px auto 0; max-width: 44ch; padding: 16px 20px; border-radius: 14px;
  background: color-mix(in srgb, var(--accent-grad) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-grad) 32%, transparent);
  font-size: .92rem; font-weight: 500; line-height: 1.6; color: var(--text);
  text-align: center;
}
.requirements-note-icon { flex-shrink: 0; width: 34px; height: 34px; }

/* ---------- Schwebender Kontakt-Button ----------
   Fix rechts unten auf jeder Seite, öffnet bei Hover (bzw. Klick auf
   Touch-Geräten) E-Mail und WhatsApp, egal wo man gerade scrollt. */
.contact-fab { position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.contact-fab-menu {
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  opacity: 0; transform: translateY(10px) scale(.94); pointer-events: none;
  transition: opacity .22s ease, transform .22s cubic-bezier(.2, .8, .2, 1);
}
.contact-fab:hover .contact-fab-menu,
.contact-fab.is-open .contact-fab-menu { opacity: 1; transform: none; pointer-events: auto; }
.contact-fab-icon { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-fab-icon svg { width: 20px; height: 20px; }
/* Klick auf die schwebende Blase öffnet eine Karte: E-Mail-Adresse als Label
   oben, darunter direkt die beiden Aktionen (kopieren / Mail-Programm öffnen). */
.contact-fab-card {
  min-width: 220px; padding: 10px; border-radius: 16px;
  background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 2px;
}
.contact-fab-card-label {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px 10px;
  font-size: .92rem; font-weight: 600; color: var(--text); white-space: nowrap;
  border-bottom: 1px solid var(--border); margin-bottom: 4px;
}
.contact-fab-card a, .contact-fab-card button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: 10px; border: none; background: none;
  font-family: inherit; font-size: .92rem; font-weight: 500; color: var(--text);
  cursor: pointer; text-align: left; text-decoration: none; white-space: nowrap;
}
.contact-fab-card a:hover, .contact-fab-card button:hover { background: var(--panel-bg); color: var(--accent); }
.contact-fab-card svg { width: 18px; height: 18px; flex-shrink: 0; }
#fab-email-copy-action.is-copied span::after { content: ' ✓'; }
.contact-fab-toggle {
  width: 56px; height: 56px; border-radius: 999px; border: none; flex-shrink: 0;
  background: var(--accent-grad); color: var(--ink-on-accent); cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.contact-fab-toggle:hover { transform: scale(1.06); }
.contact-fab-toggle svg { width: 24px; height: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--glow-footer); }
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: clamp(30px, 4vw, 44px) clamp(18px, 4vw, 48px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
}
.footer-brand { display: flex; align-items: center; gap: 9px; }
.footer-brand .brand-mark { width: 28px; height: 28px; font-size: 17px; }
.footer-brand span.name { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.footer-suits { display: flex; gap: 10px; cursor: pointer; user-select: none; font-size: 16px; background: none; border: none; padding: 0; }
.footer-suits span { color: var(--text-faint); transition: transform .4s cubic-bezier(.2, .8, .2, 1), color .4s ease; }
.footer-suits.is-dealt span:nth-child(1) { color: var(--suit-spade); transform: translateY(-9px) rotate(-15deg); }
.footer-suits.is-dealt span:nth-child(2) { color: var(--suit-heart); transform: translateY(-9px) rotate(-5deg); }
.footer-suits.is-dealt span:nth-child(3) { color: var(--suit-diamond); transform: translateY(-9px) rotate(5deg); }
.footer-suits.is-dealt span:nth-child(4) { color: var(--suit-club); transform: translateY(-9px) rotate(15deg); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; }
.footer-links a { padding: 8px 13px; border-radius: 999px; color: var(--text-muted); transition: background .2s ease, color .2s ease; }
.footer-links a:hover { background: var(--panel-bg); color: var(--text); }
.footer-copy { font-size: 13.5px; color: var(--text-faint); }

/* ---------- Cookie-Hinweis ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px;
  padding: 16px clamp(18px, 4vw, 40px); background: var(--bg-card); border-top: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: .86rem; line-height: 1.5; color: var(--text-muted); max-width: 640px; }
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-banner .btn-primary { flex-shrink: 0; padding: 10px 22px; font-size: 14px; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions .btn-secondary { padding: 10px 22px; font-size: 14px; min-width: 120px; justify-content: center; }

/* ---------- Simple content pages (Impressum / Datenschutz / Projekt) ---------- */
.page-header { border-bottom: 1px solid var(--border); }
.simple-page { max-width: 780px; margin: 0 auto; padding: clamp(48px, 8vw, 88px) clamp(18px, 4vw, 48px) clamp(80px, 10vw, 120px); }
.simple-page h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 8px; }
.simple-page .eyebrow-label { margin-bottom: 8px; }
.simple-page h2 { font-size: 1.15rem; margin: 36px 0 12px; }
.simple-page p { color: var(--text-muted); margin-bottom: 14px; line-height: 1.65; }
.simple-page a.inline-link { color: var(--accent); }
.placeholder-field { background: var(--accent-soft); color: var(--accent); padding: 1px 6px; border-radius: 5px; font-family: var(--font-mono); font-size: .92em; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: .92rem; margin-bottom: 24px; }
.back-link:hover { color: var(--accent); }
.project-hero-image { width: 100%; max-height: 420px; object-fit: cover; border-radius: 16px; border: 1px solid var(--border); margin-bottom: 32px; background: var(--panel-bg); }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.project-tag { font-family: var(--font-mono); font-size: .76rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); }
.project-body p { color: var(--text); margin-bottom: 16px; line-height: 1.7; }
.project-empty { text-align: center; padding: 60px 0; color: var(--text-muted); }

/* Tableau-Dashboard/Story: eigene Höhe statt festem 16:9, weil Tableau-Views
   meist breiter/niedriger sind als Video. */
.project-embed {
  width: 100%; height: clamp(420px, 62vw, 640px); margin: 36px 0;
  border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--panel-bg);
}
.project-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.project-video {
  position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 36px 0;
  border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--panel-bg);
}
.project-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.project-video-vertical { aspect-ratio: 9 / 16; max-width: 380px; margin-left: auto; margin-right: auto; }
.embed-gate {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 20px; text-align: center;
}
.project-embed .embed-gate { position: static; height: 100%; }
.embed-gate-note { margin: 0; max-width: 42ch; font-size: .85rem; line-height: 1.55; color: var(--text-muted); }
.embed-gate-note a { text-decoration: underline; }

/* Schritt-für-Schritt-Abschnitte: Bild und Text nebeneinander, wechselt pro
   Abschnitt die Seite für einen Zickzack-Lesefluss. */
.project-sections { display: flex; flex-direction: column; gap: 44px; margin-top: 20px; }
.project-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 44px); align-items: center;
}
.project-section-reverse { direction: rtl; }
.project-section-reverse > * { direction: ltr; }
.project-section-text-only { grid-template-columns: 1fr; max-width: 68ch; }
.project-section-image {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--panel-bg);
  aspect-ratio: 4 / 3;
}
.project-section-image img { width: 100%; height: 100%; object-fit: cover; }
.project-section-text h3 { margin: 0 0 10px; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.project-section-text p { color: var(--text-muted); line-height: 1.7; margin-bottom: 12px; }

@media (max-width: 720px) {
  .project-section { grid-template-columns: 1fr; }
  .project-section-reverse { direction: ltr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-link { display: none; }
  .pricing-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
