/* ============================================================
   8uddy Studio — styles.css
   ============================================================ */

/* Self-hosted DM Sans — DSGVO-konform, keine externen Requests */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-v17-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-v17-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-v17-latin-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-v17-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-v17-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-v17-latin-700.woff2') format('woff2');
}

/* ── Design Tokens ─────────────────────────────────────────── */
:root, [data-theme="light"] {
  /* Schriftgrößen (fluid) */
  --text-xs:   clamp(0.72rem,  0.68rem + 0.20vw, 0.8125rem);
  --text-sm:   clamp(0.875rem, 0.82rem + 0.28vw, 1rem);
  --text-base: clamp(1rem,     0.96rem + 0.20vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.65vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.20vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.50vw, 3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4.00vw, 5rem);

  /* Abstände */
  --space-1: 0.25rem;  --space-2: 0.5rem;   --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.25rem;  --space-6: 1.5rem;
  --space-8: 2rem;     --space-10: 2.5rem;  --space-12: 3rem;
  --space-16: 4rem;    --space-20: 5rem;    --space-24: 6rem;

  /* Farben — Hell */
  --color-bg:             #f7f6f2;
  --color-surface:        #f9f8f5;
  --color-surface-2:      #fbfbf9;
  --color-surface-offset: #efece6;
  --color-border:         #d4d1ca;
  --color-divider:        #ddd8d0;
  --color-text:           #25231e;
  --color-text-muted:     #636158;
  --color-text-faint:     #a8a49c;
  --color-primary:        #8b2be2;
  --color-primary-hover:  #7a22cc;
  --color-primary-soft:   #ede9fe;
  --color-accent:         #b57bee;
  --color-accent-soft:    #f5f3ff;

  /* Schatten */
  --shadow-sm: 0 1px 3px rgba(30,25,20,0.07);
  --shadow-md: 0 12px 28px rgba(30,25,20,0.08);
  --shadow-lg: 0 24px 60px rgba(30,25,20,0.12);

  /* Radien */
  --radius-sm: 0.5rem;
  --radius-md: 0.9rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;

  /* Fokus-Ring — barrierearm, markenkonform */
  --focus-ring:        2px solid var(--color-primary);
  --focus-ring-offset: 2px;

  /* Sonstiges */
  --content-max:  1140px;
  --transition:   180ms cubic-bezier(0.16, 1, 0.3, 1);
  /* Emil Kowalski easing tokens — stronger than built-in CSS easings */
  --ease-out:     cubic-bezier(0.23, 1, 0.32, 1);
  /* Bubble-menu pop — subtle spring overshoot (bounce ~0.2, playful UI) */
  --ease-bubble:  cubic-bezier(0.34, 1.28, 0.64, 1);
  --font-body:    'DM Sans', sans-serif;
  --font-display: 'DM Sans', sans-serif;
}

[data-theme="dark"] {
  --color-bg:             #0f0f17;
  --color-surface:        #16161f;
  --color-surface-2:      #1d1d28;
  --color-surface-offset: #252535;
  --color-border:         #33334d;
  --color-divider:        #292940;
  --color-text:           #e4e3f0;
  --color-text-muted:     #9c9ab8;
  --color-text-faint:     #6a6882;
  --color-primary:        #c084fc;
  --color-primary-hover:  #d8b4fe;
  --color-primary-soft:   #231c4a;
  --color-accent:         #e9d5ff;
  --color-accent-soft:    #2c1f50;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.35);
  --shadow-md: 0 12px 28px rgba(0,0,0,0.40);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.50);
}


/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a  { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
ul, ol { padding-left: 0; margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }

/* ── Fokuszustände (Barrierefreiheit) ───────────────────────── */
/* Sichtbarer, markenkonformer Fokus-Ring nur bei Tastatur-Navigation. */
:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  border-radius: var(--radius-sm);
}
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.toggle:focus-visible,
.menu-btn:focus-visible,
.lang-link:focus-visible,
.social-link:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}
/* Pill-förmige Elemente: Ring der Form anpassen */
.btn:focus-visible,
.toggle:focus-visible,
.menu-btn:focus-visible,
.lang-link:focus-visible,
.social-link:focus-visible { border-radius: 999px; }
/* Maus-Klicks erzeugen keinen Ring (kein doppelter Rahmen) */
:focus:not(:focus-visible) { outline: none; }

/* ── Bewegung reduzieren (prefers-reduced-motion) ───────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* Hover-Verschiebungen neutralisieren, damit nichts „springt" */
  .btn-primary:hover,
  .btn-secondary:hover,
  .card:hover,
  .case-card:hover,
  .case-archive-card:hover,
  .blog-card:hover,
  .toggle:hover,
  .lang-link:hover,
  .menu-btn:hover,
  .social-link:hover { transform: none; }
  .btn-primary::after { display: none; }   /* kein Sheen-Sweep */
}

/* ── Skip Link ──────────────────────────────────────────────── */
.skip-link { position: absolute; left: -9999px; top: auto; }
.skip-link:focus {
  left: var(--space-4); top: var(--space-4);
  background: var(--color-surface); padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md); z-index: 1000;
  border: 1px solid var(--color-border);
}

/* ── Site Shell + Ambient Glows ─────────────────────────────── */
.site-shell { position: relative; overflow-x: hidden; }

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.45;
}
.site-shell::before {
  width: 24rem; height: 24rem;
  top: -8rem; right: -6rem;
  background: radial-gradient(circle, var(--color-primary-soft), transparent 70%);
}
.site-shell::after {
  width: 20rem; height: 20rem;
  bottom: 12%; left: -6rem;
  background: radial-gradient(circle, var(--color-accent-soft), transparent 70%);
}

/* ── Layout Utilities ───────────────────────────────────────── */
.container {
  width: min(calc(100% - 2rem), var(--content-max));
  margin-inline: auto;
}
.section { padding: clamp(var(--space-12), 8vw, var(--space-24)) 0; }

/* ── Typography Atoms ───────────────────────────────────────── */
.eyebrow {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  font-size: var(--text-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 700;
}
.eyebrow::before {
  content: "";
  width: 1.2rem; height: 1px;
  background: var(--color-primary);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.06;
  letter-spacing: -.025em;
  margin: var(--space-3) 0 var(--space-4);
  color: var(--color-text);
}
.section-lead {
  max-width: 64ch;
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

.kicker {
  display: inline-flex;
  padding: 0;
  background: none;
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  margin-bottom: var(--space-3);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.tag {
  display: inline-flex;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: 500;
}


/* ── Header & Navigation ────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--color-bg) 84%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  flex-shrink: 0;
}
.brand-mark {
  width: 2.3rem; height: 2.3rem;
  border-radius: 0.8rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  object-fit: cover;
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center bottom;
}
.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.1);
}
.brand:active .brand-mark {
  transform: rotate(6deg) scale(0.95);
  transition-duration: .1s;
}

.brand-text span  { display: block; line-height: 1.1; }
.brand-text small { display: block; color: var(--color-text-muted); font-size: var(--text-xs); font-weight: 500; }

/* Nav links */
.nav-links {
  display: flex;
  gap: var(--space-5);
  align-items: center;
}
.nav-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--color-text); }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: var(--space-2); }

.toggle,
.lang-link,
.menu-btn {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  transition: transform var(--transition),
              box-shadow var(--transition),
              border-color var(--transition),
              background-color var(--transition),
              color var(--transition);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
}
.toggle:hover, .lang-link:hover, .menu-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: var(--color-text-muted);
}
/* Press feedback — the control should feel like it heard the tap */
.toggle:active, .lang-link:active, .menu-btn:active {
  transform: scale(0.96);
  transition-duration: 100ms;
}

.menu-btn { display: none; }

/* Bubble menu — collapses at 1024px. Each item is its own rounded "bubble"
   pill that pops in with a staggered spring (inspired by reactbits' bubble
   menu), anchored to the menu button it sprang from. */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .menu-btn  { display: inline-flex; }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    position: absolute;
    left: auto; right: 1rem;
    top: calc(100% + 0.6rem);
    width: min(20rem, calc(100vw - 2rem));
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  /* Each link is a self-contained bubble */
  .nav.open .nav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.8rem 1.3rem;
    border-radius: 999px;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    /* Pop in from the top-right corner, where the menu button lives */
    transform-origin: right center;
    opacity: 0;
    transform: scale(0.6);
    animation: bubble-pop 420ms var(--ease-bubble) forwards;
  }
  /* Staggered cascade — bubbles pop one after another (40ms apart) */
  .nav.open .nav-links a:nth-child(1) { animation-delay: 30ms; }
  .nav.open .nav-links a:nth-child(2) { animation-delay: 70ms; }
  .nav.open .nav-links a:nth-child(3) { animation-delay: 110ms; }
  .nav.open .nav-links a:nth-child(4) { animation-delay: 150ms; }
  .nav.open .nav-links a:nth-child(5) { animation-delay: 190ms; }
  .nav.open .nav-links a:nth-child(6) { animation-delay: 230ms; }
  .nav.open .nav-links a:nth-child(7) { animation-delay: 270ms; }
  @keyframes bubble-pop {
    to { opacity: 1; transform: scale(1); }
  }

  /* Gate hover lift behind real pointers so touch taps don't trigger it */
  @media (hover: hover) and (pointer: fine) {
    .nav.open .nav-links a {
      transition: transform 160ms var(--ease-out),
                  border-color 160ms var(--ease-out),
                  box-shadow 160ms var(--ease-out);
    }
    .nav.open .nav-links a:hover {
      transform: scale(1.03);
      border-color: var(--color-text-muted);
      box-shadow: var(--shadow-md);
    }
  }
  /* Press feedback — the bubble compresses on tap */
  .nav.open .nav-links a:active {
    transform: scale(0.97);
    transition: transform 100ms var(--ease-out);
  }
}

@media (max-width: 480px) {
  .nav-actions .lang-link { display: none; }
}


/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 0.18s cubic-bezier(0.3, 1, 0.4, 1),
              box-shadow 0.25s ease,
              background 0.25s ease,
              border-color 0.2s ease,
              color 0.2s ease;
}

/* ── Primary — light-modeled, crafted surface ───────────────── */
.btn-primary {
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #a259ff 0%, #8b2be2 50%, #7117c9 100%);
  border-color: #6d12c4;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),   /* specular top edge */
    inset 0 -1px 0 rgba(20, 10, 35, 0.25),     /* grounded bottom edge */
    0 1px 1px rgba(20, 10, 35, 0.35),          /* tight contact shadow */
    0 6px 16px -6px rgba(124, 58, 237, 0.50);  /* soft brand cast */
}
/* Sheen sweep — sits between background and label, fires on hover only */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.38) 48%,
    rgba(255, 255, 255, 0.04) 60%,
    transparent 72%
  );
  transform: translateX(-130%) skewX(-12deg);
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #b070ff 0%, #9333ea 50%, #7c1fd6 100%);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(20, 10, 35, 0.25),
    0 2px 4px rgba(20, 10, 35, 0.40),
    0 14px 30px -10px rgba(124, 58, 237, 0.65);
}
.btn-primary:hover::after { transform: translateX(130%) skewX(-12deg); }
.btn-primary:active {
  transform: translateY(0);
  box-shadow:
    inset 0 1px 2px rgba(20, 10, 35, 0.35),
    0 1px 2px rgba(20, 10, 35, 0.30);
}

/* ── Secondary — refined hairline ghost ─────────────────────── */
.btn-secondary {
  background: color-mix(in srgb, var(--color-text) 4%, transparent);
  border-color: var(--color-border);
  color: var(--color-text);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.btn-secondary:hover {
  background: color-mix(in srgb, var(--color-text) 8%, transparent);
  border-color: color-mix(in srgb, var(--color-primary) 55%, var(--color-border));
  color: var(--color-text);
  transform: translateY(-1px);
}
.btn-secondary:active { transform: translateY(0); }


/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border: 1px solid color-mix(in srgb, var(--color-border) 90%, transparent);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: box-shadow var(--transition),
              transform var(--transition),
              border-color var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--color-primary) 32%, var(--color-border));
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: var(--space-2); }
.card p   { color: var(--color-text-muted); font-size: var(--text-sm); }

/* Service-Karten: Titel = Leistung, Lead = Versprechen darunter */
.service-card__lead {
  color: var(--color-text) !important;
  font-weight: 600;
  font-size: var(--text-base) !important;
  line-height: 1.3;
  margin-bottom: var(--space-2);
}


/* ── Grids ──────────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.split  { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: start; }

@media (max-width: 900px) {
  .grid-3, .grid-2, .split { grid-template-columns: 1fr; }
}


/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: clamp(var(--space-16), 11vw, var(--space-24)) 0 var(--space-16);
}

#particles-js {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#particles-js[data-particles-mode="margin"] {
  --_m: max(0px, calc((100% - var(--content-max)) / 2));
  -webkit-mask-image:
    linear-gradient(to bottom, black 0, transparent 260px),
    linear-gradient(
      to right,
      black 0,
      black calc(var(--_m) - 40px),
      transparent var(--_m),
      transparent calc(100% - var(--_m)),
      black calc(100% - var(--_m) + 40px),
      black 100%
    );
  -webkit-mask-composite: source-over;
  mask-image:
    linear-gradient(to bottom, black 0, transparent 260px),
    linear-gradient(
      to right,
      black 0,
      black calc(var(--_m) - 40px),
      transparent var(--_m),
      transparent calc(100% - var(--_m)),
      black calc(100% - var(--_m) + 40px),
      black 100%
    );
  mask-composite: add;
}

#particles-js canvas {
  pointer-events: none;
}

.site-shell {
  position: relative;
  z-index: 1;
}

@media print {
  #particles-js { display: none; }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: var(--space-10);
  align-items: end;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 1.2rem + 5vw, 6.4rem);
  line-height: .96;
  letter-spacing: -.04em;
  margin: var(--space-4) 0 var(--space-5);
}
.hero-copy p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 38rem;
}

/* Hero entrance — plays once on first load, so a little delight earns its
   keep. Fade-up cascade: eyebrow, then headline, then lead paragraph. */
.hero-copy > * {
  opacity: 0;
  animation: hero-rise 600ms var(--ease-out) forwards;
}
.hero-copy > *:nth-child(1),
.hero-copy > *:nth-child(2) { animation-delay: 60ms; }  /* eyebrow (de/en) */
.hero-copy > *:nth-child(3) { animation-delay: 140ms; } /* headline */
.hero-copy > *:nth-child(4),
.hero-copy > *:nth-child(5) { animation-delay: 220ms; } /* lead (de/en) */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-6);
}

/* Hero sidebar card */
.hero-card {
  background: linear-gradient(160deg, var(--color-surface), var(--color-surface-2));
  border: 1px solid color-mix(in srgb, var(--color-border) 90%, transparent);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
}
.hero-card h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: -.02em;
  margin: 0 0 var(--space-3);
}
.hero-card p { color: var(--color-text-muted); font-size: var(--text-sm); }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-6);
}
@media (max-width: 480px) {
  .metric-grid { grid-template-columns: 1fr; }
}

.metric {
  padding: var(--space-4);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.metric strong {
  display: block;
  font-size: var(--text-xl);
  font-family: var(--font-display);
  margin-bottom: var(--space-1);
  letter-spacing: -.02em;
}
.metric span { font-size: var(--text-xs); color: var(--color-text-muted); }

.hero-note {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-divider);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

/* ── Timeline ───────────────────────────────────────────────── */
.timeline { display: grid; gap: var(--space-3); }

.timeline-item {
  position: relative;
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 1.3rem; bottom: 1.3rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
}
.timeline-item strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: var(--text-sm);
  font-weight: 700;
}
.timeline-item p { color: var(--color-text-muted); font-size: var(--text-sm); }


/* ── Case Cards ─────────────────────────────────────────────── */
.case-card {
  display: grid;
  gap: var(--space-4);
  align-content: start;
  transition: box-shadow var(--transition), transform var(--transition);
}
.case-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--color-primary) 32%, var(--color-border));
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.case-meta { display: flex; gap: var(--space-2); flex-wrap: wrap; }

.case-link {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition);
}
.case-link:hover { gap: 0.55rem; }


/* ── Quote / Builder Block ──────────────────────────────────── */
.quote {
  padding: var(--space-6);
  background: linear-gradient(140deg, var(--color-surface), var(--color-surface-offset));
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}
.quote p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.3;
  margin: 0 0 var(--space-3);
  max-width: 28ch;
  color: var(--color-text);
}
.quote small { color: var(--color-text-muted); font-size: var(--text-sm); }


/* ── Contact / CTA Banner ───────────────────────────────────── */
.footer-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
  padding: var(--space-10) var(--space-8);
  /* Tiefe Royal-Purple-Fläche mit weichem Licht-Bloom (Tiefe statt flachem Block) */
  background:
    radial-gradient(125% 120% at 12% 0%, rgba(168, 85, 247, 0.42), transparent 55%),
    linear-gradient(160deg, #3a1d86 0%, #281556 55%, #1d1145 100%);
  color: #fff;
  border-radius: calc(var(--radius-xl) + 0.2rem);
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),   /* obere Lichtkante */
    inset 0 0 0 1px rgba(255, 255, 255, 0.04); /* feine Innenkontur */
  position: relative;
  overflow: hidden;
  cursor: default;
}
/* Feiner Licht-Sheen oben rechts — modelliert die Oberfläche */
.footer-cta::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 60%; height: 75%;
  background: radial-gradient(80% 80% at 100% 0%, rgba(255, 255, 255, 0.07), transparent 70%);
  pointer-events: none;
}
.footer-cta > * { position: relative; z-index: 1; }

.footer-cta p { color: rgba(255,255,255,.82); margin: 0; font-size: var(--text-sm); }
.footer-cta .section-title { color: #fff; }
.footer-cta .eyebrow { color: rgba(255,255,255,.64); }
.footer-cta .eyebrow::before { background: rgba(255,255,255,.5); }

/* Trust / benefit bullets inside footer-cta */
.cta-trust-list {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.cta-trust-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255,255,255,.78);
  line-height: 1.45;
}
.cta-trust-list li::before {
  content: "✓";
  font-size: .8rem;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  width: 1.4rem;
  height: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .05em;
}

@media (max-width: 900px) {
  .footer-cta { grid-template-columns: 1fr; padding: var(--space-6); gap: var(--space-6); }
}


/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  padding: var(--space-10) 0 var(--space-8);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}


/* ── Language Toggle ────────────────────────────────────────── */
.lang-en { display: none; }

html[data-lang="en"] .lang-de          { display: none; }
html[data-lang="en"] .lang-en          { display: revert; }
html[data-lang="en"] .lang-en.block       { display: block; }
html[data-lang="en"] .lang-en.flex        { display: flex; }
html[data-lang="en"] .lang-en.grid        { display: grid; }
html[data-lang="en"] .lang-en.skill-chip  { display: inline-flex; }
html[data-lang="en"] .lang-en.kicker      { display: inline-flex; }
html[data-lang="en"] .lang-en.eyebrow     { display: flex; }
html[data-lang="en"] .lang-de.block,
html[data-lang="en"] .lang-de.flex,
html[data-lang="en"] .lang-de.grid     { display: none; }

html[data-lang="de"] .lang-de.block    { display: block; }
html[data-lang="de"] .lang-de.flex     { display: flex; }
html[data-lang="de"] .lang-de.grid     { display: grid; }

/* Universelle Sprach-Hide-Regel mit erhöhter Spezifität (0,2,1).
   Schlägt alle Komponenten-Klassen wie .skill-chip { display:inline-flex }
   oder .case-list { display:grid } die denselben Spezifitätswert (0,1,0)
   haben aber später im Stylesheet stehen. */
html[data-lang="de"] .lang-en          { display: none; }
html[data-lang="en"] .lang-de          { display: none; }

/* Explizite Anzeige-Overrides für block/flex/grid-Elemente je Sprache */
html[data-lang="de"] .lang-en.block,
html[data-lang="de"] .lang-en.flex,
html[data-lang="de"] .lang-en.grid     { display: none; }


/* ── Case Page ──────────────────────────────────────────────── */
.case-hero {
  padding: var(--space-16) 0 var(--space-12);
  min-height: 60vh;
}
.case-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--space-8);
  align-items: start;
}
@media (max-width: 900px) {
  .case-layout { grid-template-columns: 1fr; }
}

.sidebar-card {
  position: sticky;
  top: 5.5rem;
}
.sidebar-card h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1rem + 3vw, 3.2rem);
  letter-spacing: -.03em;
  margin: 0 0 var(--space-3);
}
.sidebar-card p { font-size: var(--text-sm); color: var(--color-text-muted); }

.case-content { display: grid; gap: var(--space-5); }

.case-content section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}
.case-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: -.02em;
  margin: 0 0 var(--space-4);
}
.case-content p { color: var(--color-text-muted); font-size: var(--text-sm); }

.case-list {
  display: grid;
  gap: var(--space-3);
  list-style: none;
}
.case-list li {
  padding-left: 1.2rem;
  position: relative;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.case-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.2em;
}

.case-result {
  background: linear-gradient(140deg, var(--color-primary-soft), var(--color-surface));
  border-color: var(--color-primary-soft);
}
.case-result h2 { color: var(--color-primary); }
.case-result p  { color: var(--color-text-muted); }

/* Back link */
.back-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  transition: color var(--transition), gap var(--transition);
  margin-bottom: var(--space-8);
}
.back-link:hover { color: var(--color-text); gap: 0.2rem; }

/* Case image */
.case-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  display: block;
}

/* Placeholder image block */
.img-placeholder {
  background: var(--color-surface-offset);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-faint);
  font-size: var(--text-sm);
  text-align: center;
  padding: var(--space-8);
}


/* ── Utilities ──────────────────────────────────────────────── */
.mt-0  { margin-top: 0; }
.mt-2  { margin-top: var(--space-2); }
.mt-3  { margin-top: var(--space-3); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mb-0  { margin-bottom: 0; }
.mb-2  { margin-bottom: var(--space-2); }
.mb-3  { margin-bottom: var(--space-3); }
.text-center { text-align: center; }
.muted { color: var(--color-text-muted); }
.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;
}

/* ── CV Blocks (about.html) ─────────────────────────────────── */
.cv-blocks { display: grid; gap: var(--space-5); }

.cv-block { padding: var(--space-6); }

.cv-block-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-divider);
  margin-bottom: var(--space-5);
}

.cv-block-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-1);
}

.cv-block-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: -.02em;
  margin: 0 0 var(--space-1);
}

/* Education items */
.cv-edu-items { display: grid; gap: var(--space-4); }

.cv-edu-item {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: var(--space-4);
  align-items: start;
}
@media (max-width: 540px) {
  .cv-edu-item { grid-template-columns: 1fr; }
}

.cv-edu-meta { padding-top: 0.15rem; }

.cv-edu-body strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.cv-edu-note {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-top: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Sub-roles (PAUL Tech) */
.cv-sub-roles { display: grid; gap: var(--space-5); }

.cv-sub-role {
  padding-left: var(--space-5);
  border-left: 2px solid var(--color-primary-soft);
}

.cv-sub-role-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.cv-sub-role-header strong {
  font-size: var(--text-sm);
  font-weight: 700;
}

.cv-sub-period {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  min-width: 4.5rem;
}

.cv-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-2);
}

.cv-bullet-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.cv-bullet-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.1em;
}

/* About lead text */
.about-lead {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 58ch;
  margin: var(--space-4) 0 0;
}


/* ── About Teaser (index.html) ──────────────────────────────── */
.about-teaser {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-8);
  align-items: start;
  margin-top: var(--space-6);
}
@media (max-width: 640px) {
  .about-teaser { grid-template-columns: 1fr; }
}

.about-teaser-avatar {
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-border);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.about-teaser-body .section-title { margin-bottom: var(--space-3); }

.about-teaser-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}


/* ── About Page ─────────────────────────────────────────────── */
.about-hero { padding-bottom: 0; }

.about-hero-grid {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: var(--space-10);
  align-items: start;
  margin-top: var(--space-6);
}
@media (max-width: 760px) {
  .about-hero-grid { grid-template-columns: 1fr; }
}

.about-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  position: sticky;
  top: 5.5rem;
}

.about-avatar {
  width: 100%;
  max-width: 13rem;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  object-fit: cover;
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 760px) {
  .about-avatar-col { position: static; flex-direction: row; align-items: center; }
  .about-avatar { max-width: 6rem; border-radius: 50%; }
}

.about-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: -.03em;
  margin: var(--space-2) 0 0;
}

.about-role {
  font-size: var(--text-lg);
  color: var(--color-primary);
  font-weight: 600;
  margin: var(--space-1) 0 0;
}

.about-location {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: var(--space-1) 0 0;
}

.about-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* Social links */
.social-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 100%;
}
@media (max-width: 760px) {
  .social-links { flex-direction: row; }
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  transition: all var(--transition);
  justify-content: center;
}
.social-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}


/* ── CV Timeline ─────────────────────────────────────────────── */
.cv-timeline {
  display: grid;
  gap: var(--space-4);
}

.cv-item {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: var(--space-4);
  align-items: start;
}
@media (max-width: 640px) {
  .cv-item { grid-template-columns: 1fr; }
  .cv-meta { display: flex; align-items: center; gap: var(--space-3); }
}

.cv-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding-top: var(--space-4);
}

.cv-period {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.cv-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-primary);
  flex-shrink: 0;
}

.cv-body { padding: var(--space-5); }

.cv-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.cv-body strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.cv-org {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

.cv-body > p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.cv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}


/* ── Skills Grid ────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
@media (max-width: 640px) {
  .skills-grid { grid-template-columns: 1fr; }
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.skill-chip {
  display: inline-flex;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 600;
}


/* ── PDF Export Button ──────────────────────────────────────── */
.print-fab {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.25rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
}
.print-fab:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,103,102,.35);
}


/* ── Cases Archive Page ─────────────────────────────────────── */
.case-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-8);
}
@media (max-width: 720px) {
  .case-archive-grid { grid-template-columns: 1fr; }
}

.case-archive-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: box-shadow var(--transition), transform var(--transition);
}
.case-archive-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--color-primary) 32%, var(--color-border));
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.case-archive-header {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--space-2);
}
.case-archive-header .kicker { margin-bottom: 0; }

.case-archive-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.case-archive-card h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: var(--space-2) 0 0;
}
.case-archive-card p { color: var(--color-text-muted); font-size: var(--text-sm); }

/* Category badges */
.cat-badge {
  display: inline-flex;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .04em;
}
.cat-energy,
.cat-building,
.cat-iot,
.cat-infra,
.cat-blog,
.cat-product {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
[data-theme="dark"] .footer-cta {
  background:
    radial-gradient(125% 120% at 12% 0%, rgba(124, 58, 237, 0.40), transparent 55%),
    linear-gradient(160deg, #2a1660 0%, #1b1045 55%, #110a2c 100%);
}
[data-theme="dark"] .btn-primary:hover {
  box-shadow: var(--glow-primary-hover);
}

/* "Alle Cases ansehen" CTA below homepage case grid */
.cases-view-all {
  display: flex;
  justify-content: center;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}

/* Discrete "view all" text link — mirrors .about-produkte__all so the two
   sections feel cohesive (quiet, muted, brand-purple on hover) */
.view-all-link {
  display: inline-block;
  font-size: .8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  opacity: .55;
  text-decoration: none;
  transition: opacity var(--transition), color var(--transition);
}
.view-all-link:hover {
  opacity: 1;
  color: var(--color-primary);
}

/* ── Footer legal links ─────────────────────────────────────── */
.footer-link {
  color: inherit;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity var(--transition);
}
.footer-link:hover { opacity: 1; text-decoration: underline; }

/* ── Blog Archive ───────────────────────────────────────────── */
.blog-archive-grid {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: box-shadow var(--transition), transform var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.blog-card-body { flex: 1; display: flex; flex-direction: column; gap: var(--space-3); }

.blog-card h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: var(--space-2) 0 0;
}
.blog-card p { color: var(--color-text-muted); font-size: var(--text-sm); }

.blog-post-meta {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.blog-post-meta span { display: flex; align-items: center; gap: var(--space-1); }

/* ── Blog Article ───────────────────────────────────────────── */
.post-content {
  max-width: 68ch;
  margin: var(--space-10) auto 0;
  background: var(--color-bg);
  border-radius: var(--radius-lg, 12px);
  padding: var(--space-8);
  position: relative;
  z-index: 1;
}
.post-content h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: var(--space-10) 0 var(--space-4);
}
.post-content h3 { font-size: var(--text-lg); font-weight: 700; margin: var(--space-8) 0 var(--space-3); }
.post-content p { color: var(--color-text-muted); line-height: 1.75; margin: 0 0 var(--space-5); }
.post-content ul {
  color: var(--color-text-muted);
  padding-left: 1.5rem;
  margin: 0 0 var(--space-5);
  display: grid;
  gap: var(--space-2);
}
.post-content li { line-height: 1.6; }
.post-content blockquote {
  padding: var(--space-5) var(--space-6);
  margin: var(--space-8) 0;
  background: var(--color-primary-soft);
  border: 1px solid color-mix(in srgb, var(--color-primary) 18%, transparent);
  border-radius: var(--radius-md);
}
.post-content blockquote p { color: var(--color-text); margin: 0; font-style: italic; }
.post-content a:not(.btn) { color: var(--color-primary); text-decoration: underline; }
.post-content a:not(.btn):hover { color: var(--color-primary-hover); }
.post-citation {
  padding: var(--space-5);
  background: var(--color-surface-offset);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}
.post-citation p { margin: 0 0 var(--space-2); color: var(--color-text-muted); font-size: var(--text-sm); }
.post-citation p:last-child { margin: 0; }
.post-citation a { color: var(--color-primary); }

/* ── Product / Status Badge ─────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .04em;
}
.status-badge::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-dev  { background: var(--color-accent-soft);   color: var(--color-accent); }
.status-wip  { background: rgba(234,179,8,.12);        color: #ca8a04; }
.status-live { background: var(--color-primary-soft);  color: var(--color-primary); }


/* ── Einstieg-Seite: Kacheln über Particle-Background ───────── */
.page-einstieg .section > .container:not(.footer-cta):not(.no-card) {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  position: relative;
  z-index: 1;
}

/* Hero-Sektion: kein Card-Rand, nur dezenter Hintergrund */
.page-einstieg .einstieg-hero > .container {
  background: none;
  border: none;
  padding-left: 0;
  padding-right: 0;
}

/* CTA-Box: klar abgesetzt, primärfarbe */
.cta-box {
  margin-top: var(--space-8);
  padding: var(--space-8);
  background: var(--color-primary-soft);
  border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent);
  border-radius: var(--radius-xl);
  text-align: center;
}
.cta-box .price {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.cta-box .price-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.cta-box .btn-primary {
  width: 100%;
  justify-content: center;
  font-size: var(--text-base);
  padding: 1rem 2rem;
}

@media (max-width: 900px) {
  .page-einstieg .section > .container {
    padding: var(--space-8) var(--space-5);
  }
}

/* ── Print / DIN A4 ─────────────────────────────────────────── */
@media print {

  /* ── Seitenformat ── */
  @page {
    size: A4 portrait;
    margin: 5mm;
  }

  /* ── Elemente ausblenden ── */
  .header,
  .footer,
  .skip-link,
  .back-link,
  .print-fab,
  .toggle,
  .lang-link,
  section:has(.footer-cta) { display: none !important; }

  /* ── Ambient Glows weg ── */
  .site-shell::before,
  .site-shell::after { display: none; }

  /* ── Basis ── */
  *  { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  body {
    background: #fff;
    color: #1a1a18;
    font-size: 9.5pt;
    line-height: 1.55;
    font-family: 'DM Sans', sans-serif;
  }

  /* ── Hero Grid ── */
  .about-hero {
    padding: 0 0 18pt;
    min-height: unset;
  }

  .about-hero-grid {
    grid-template-columns: 10rem 1fr;
    gap: 20pt;
    margin-top: 0;
  }

  /* ── Avatar ── */
  .about-avatar-col {
    position: static;
    align-items: flex-start;
    gap: 10pt;
  }

  .about-avatar {
    max-width: 9rem;
    border-radius: 10pt;
    border: 1.5pt solid #d0cdc8;
    box-shadow: none;
  }

  /* ── Social Links ── */
  .social-links { flex-direction: column; gap: 4pt; }

  .social-link {
    font-size: 8pt;
    padding: 3pt 6pt;
    border: 1pt solid #ccc;
    border-radius: 4pt;
    background: none;
    color: #444;
    justify-content: flex-start;
    box-shadow: none;
  }

  /* ── Typografie ── */
  .about-name {
    font-size: 22pt;
    letter-spacing: -.03em;
    margin: 4pt 0 3pt;
  }

  .about-role {
    font-size: 11pt;
    color: #0f6766 !important;
    margin: 0 0 2pt;
  }

  .about-location {
    font-size: 8.5pt;
    color: #666;
    margin: 0 0 6pt;
  }

  .about-lead {
    font-size: 9.5pt;
    color: #3a3835;
    margin: 6pt 0 8pt;
    max-width: 100%;
  }

  .about-hero-tags { gap: 4pt; margin-top: 6pt; }

  .tag {
    font-size: 7.5pt;
    padding: 2pt 6pt;
    border: 1pt solid #ccc;
    background: #f4f3f0;
    border-radius: 20pt;
    color: #555;
  }

  .eyebrow { font-size: 7pt; margin-bottom: 2pt; }
  .section-title { font-size: 15pt; margin: 4pt 0 10pt; }

  /* ── CV Blöcke ── */
  .cv-blocks { gap: 10pt; }

  .cv-block {
    padding: 10pt 12pt;
    border: 1pt solid #d0cdc8;
    border-radius: 6pt;
    box-shadow: none;
    break-inside: avoid;
  }

  /* 8uddy Studio — grüner Hintergrund im Print erhalten */
  .cv-block[style*="primary-soft"] {
    background: #edf4f3 !important;
    border-color: #b5d4d3 !important;
  }

  .cv-block-header {
    padding-bottom: 7pt;
    margin-bottom: 7pt;
    border-bottom: 1pt solid #e0ddd8;
  }

  .cv-block-label { font-size: 7pt; margin-bottom: 1pt; }
  .cv-block-title { font-size: 11.5pt; margin: 0 0 1pt; }
  .cv-org        { font-size: 8.5pt; color: #666; }

  .kicker {
    font-size: 7.5pt;
    padding: 2pt 7pt;
    background: #edf4f3;
    color: #0f6766;
  }

  /* Aktuell-Badge */
  .kicker[style*="color:#fff"] {
    background: #0f6766 !important;
    color: #fff !important;
  }

  /* ── Sub-Rollen ── */
  .cv-sub-roles { gap: 8pt; margin-top: 8pt !important; }

  .cv-sub-role { padding-left: 10pt; border-left: 1.5pt solid #b5d4d3; }

  .cv-sub-role-header { gap: 8pt; margin-bottom: 4pt; }
  .cv-sub-role-header strong { font-size: 9pt; }

  .cv-sub-period { font-size: 7.5pt; color: #0f6766; }

  .cv-bullet-list { gap: 3pt; }
  .cv-bullet-list li { font-size: 8.5pt; color: #444; }

  /* ── Ausbildung ── */
  .cv-edu-items { gap: 8pt; }
  .cv-edu-item { grid-template-columns: 4.5rem 1fr; gap: 8pt; }
  .cv-edu-body strong { font-size: 9pt; }

  .cv-edu-note {
    font-size: 7.5pt;
    padding: 3pt 5pt;
    border: 1pt solid #e0ddd8;
    border-radius: 3pt;
    background: #f7f6f2;
  }

  /* ── Skills Grid ── */
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8pt;
    break-before: avoid;
  }

  .skills-grid .card {
    padding: 8pt 10pt;
    border: 1pt solid #d0cdc8;
    border-radius: 5pt;
    box-shadow: none;
    break-inside: avoid;
  }

  .skill-list { gap: 3pt; margin-top: 5pt; }

  .skill-chip {
    font-size: 7.5pt;
    padding: 2pt 6pt;
    background: #edf4f3;
    color: #0f6766;
    border-radius: 20pt;
  }

  /* ── Seitenumbrüche ── */
  .about-hero      { break-after: avoid; }
  .cv-block        { break-inside: avoid; }
  .skills-grid     { break-inside: avoid; }
  h2.section-title { break-after: avoid; }
}


/* ══════════════════════════════════════════════════════════════
   Klaro Consent Banner — Theme override
   ══════════════════════════════════════════════════════════════ */

/* ── Notice (banner) ────────────────────────────────────────── */
.klaro .cookie-notice {
  position: fixed !important;
  bottom: 1.25rem !important;
  left: 1.25rem !important;
  right: auto !important;
  max-width: 440px !important;
  width: calc(100vw - 2.5rem) !important;
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 1.25rem 1.5rem !important;
  font-family: var(--font-body) !important;
  font-size: var(--text-sm) !important;
  color: var(--color-text) !important;
  z-index: 9999 !important;
}

.klaro .cookie-notice p {
  color: var(--color-text-muted) !important;
  font-size: var(--text-sm) !important;
  line-height: 1.55 !important;
  margin-bottom: 1rem !important;
}

.klaro .cookie-notice a {
  color: var(--color-primary) !important;
  text-decoration: underline !important;
}

/* ── Notice buttons ─────────────────────────────────────────── */
.klaro .cookie-notice .cn-buttons {
  display: flex !important;
  gap: 0.5rem !important;
  flex-wrap: wrap !important;
}

.klaro .cookie-notice .cm-btn {
  font-family: var(--font-body) !important;
  font-size: var(--text-sm) !important;
  font-weight: 600 !important;
  border-radius: var(--radius-md) !important;
  padding: 0.5rem 1rem !important;
  border: 1px solid var(--color-border) !important;
  cursor: pointer !important;
  transition: all 180ms ease !important;
  white-space: nowrap !important;
}

.klaro .cookie-notice .cm-btn.cm-btn-success {
  background: var(--color-primary) !important;
  color: #fff !important;
  border-color: var(--color-primary) !important;
}

.klaro .cookie-notice .cm-btn.cm-btn-success:hover {
  background: var(--color-primary-hover) !important;
  border-color: var(--color-primary-hover) !important;
}

.klaro .cookie-notice .cm-btn.cm-btn-decline,
.klaro .cookie-notice .cm-btn.cm-btn-info {
  background: var(--color-surface-2) !important;
  color: var(--color-text-muted) !important;
  border-color: var(--color-border) !important;
}

.klaro .cookie-notice .cm-btn.cm-btn-decline:hover,
.klaro .cookie-notice .cm-btn.cm-btn-info:hover {
  background: var(--color-surface-offset) !important;
  color: var(--color-text) !important;
}

/* ── Modal ──────────────────────────────────────────────────── */
.klaro .cookie-modal {
  font-family: var(--font-body) !important;
  z-index: 10000 !important;
}

.klaro .cookie-modal .cm-modal {
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-lg) !important;
  color: var(--color-text) !important;
  font-family: var(--font-body) !important;
  max-width: 560px !important;
}

.klaro .cookie-modal .cm-header {
  border-bottom: 1px solid var(--color-divider) !important;
  padding: 1.25rem 1.5rem !important;
}

.klaro .cookie-modal .cm-header h1 {
  font-size: var(--text-base) !important;
  font-weight: 700 !important;
  color: var(--color-text) !important;
}

.klaro .cookie-modal .cm-body {
  padding: 1.25rem 1.5rem !important;
}

.klaro .cookie-modal p,
.klaro .cookie-modal .cm-service p {
  color: var(--color-text-muted) !important;
  font-size: var(--text-sm) !important;
  line-height: 1.55 !important;
}

.klaro .cookie-modal a {
  color: var(--color-primary) !important;
  text-decoration: underline !important;
}

.klaro .cookie-modal .cm-footer {
  border-top: 1px solid var(--color-divider) !important;
  padding: 1rem 1.5rem !important;
  display: flex !important;
  gap: 0.5rem !important;
  flex-wrap: wrap !important;
}

.klaro .cookie-modal .cm-btn {
  font-family: var(--font-body) !important;
  font-size: var(--text-sm) !important;
  font-weight: 600 !important;
  border-radius: var(--radius-md) !important;
  padding: 0.5rem 1rem !important;
  border: 1px solid var(--color-border) !important;
  cursor: pointer !important;
  transition: all 180ms ease !important;
}

.klaro .cookie-modal .cm-btn.cm-btn-success {
  background: var(--color-primary) !important;
  color: #fff !important;
  border-color: var(--color-primary) !important;
}

.klaro .cookie-modal .cm-btn.cm-btn-success:hover {
  background: var(--color-primary-hover) !important;
}

.klaro .cookie-modal .cm-btn.cm-btn-decline,
.klaro .cookie-modal .cm-btn.cm-btn-info,
.klaro .cookie-modal .cm-btn.cn-cancel {
  background: var(--color-surface-2) !important;
  color: var(--color-text-muted) !important;
  border-color: var(--color-border) !important;
}

.klaro .cookie-modal .cm-btn.cm-btn-decline:hover,
.klaro .cookie-modal .cm-btn.cm-btn-info:hover,
.klaro .cookie-modal .cm-btn.cn-cancel:hover {
  background: var(--color-surface-offset) !important;
  color: var(--color-text) !important;
}

/* ── Toggle switches ────────────────────────────────────────── */
.klaro .cookie-modal .cm-switch .slider {
  background: var(--color-border) !important;
}

.klaro .cookie-modal .cm-switch input:checked + .slider {
  background: var(--color-primary) !important;
}

/* ── Overlay ────────────────────────────────────────────────── */
.klaro .cookie-modal-overlay {
  background: rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(2px) !important;
}

/* ── Powered-by text (hidden) ───────────────────────────────── */
.klaro .cm-powered-by { display: none !important; }

/* ── Dark mode adjustments ──────────────────────────────────── */
[data-theme="dark"] .klaro .cookie-notice,
[data-theme="dark"] .klaro .cookie-modal .cm-modal {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
}
