/* ── Local Fonts ── */
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans-400.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans-500.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans-600.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans-700.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --primary: #2082b5;
  --primary-light: #2cb0f0;
  --secondary: #eb5a4f;
  --accent: #f88154;
  /* Abgedunkelte CI-Töne ausschließlich für Schrift auf hellem Grund.
     Die Originalfarben bleiben für Flächen, Ringe und Verläufe.
     #1f7eaf ≙ 4,5:1 · #d74109 ≙ 4,5:1 (WCAG 2.1 AA für Normaltext). */
  --primary-text: #1f7eaf;
  --accent-text: #d74109;
  --ink: #1e3a5f;
  --text: #2a4a6b;
  --text-light: #5a7a94;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --card-bg: rgba(255,255,255,0.96);
  --stroke: rgba(32,130,181,0.10);
  --shadow: 0 24px 64px rgba(32,130,181,0.10);
  --shadow-lg: 0 40px 80px rgba(32,130,181,0.12);
  --radius: 20px;
  --radius-lg: 28px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Loader ──
   Bewusst vollständig hier und nicht als style-Attribut im HTML: Die
   Content-Security-Policy in der .htaccess erlaubt kein inline-CSS. */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  transition: opacity 0.4s;
}
.loader-track {
  width: 180px;
  height: 2px;
  background: rgba(32,130,181,0.1);
  border-radius: 9px;
  overflow: hidden;
}
#loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2082b5, #f88154);
  transition: width 0.3s;
}
.loader-text {
  color: var(--text-light);
  font-size: 12px;
  margin-top: 12px;
  font-weight: 500;
}

/* ── Background Canvas ── */
#bgWrap {
  position: fixed !important; inset: 0 !important;
  width: 100vw !important; height: 100vh !important;
  z-index: 0 !important; overflow: hidden !important;
  pointer-events: none !important;
}
#bgCanvas {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important;
  display: block !important;
}

#postFrameBackdrop {
  position: fixed !important; inset: 0 !important;
  z-index: 1 !important; opacity: 0;
  background: #ffffff;
  pointer-events: none !important;
  transition: opacity 0.6s ease;
}

/* ── Noise Overlay ── */
.noise-overlay {
  position: fixed; inset: 0; z-index: 5;
  pointer-events: none; opacity: 0.025;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.5"/></svg>');
}

/* ── Overlay / Hero Layer ── */
#overlay {
  position: fixed; inset: 0; z-index: 10;
  pointer-events: none; padding: 0 4vw;
}

/* ── Navigation (own stacking context, above everything) ── */
.nav-pill {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1060px, 94vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 8px 32px rgba(32,130,181,0.12), 0 2px 8px rgba(0,0,0,0.06), 0 1px 0 rgba(255,255,255,0.5) inset;
  border: 1px solid rgba(32,130,181,0.10);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  transition: box-shadow 0.4s, background 0.4s;
  pointer-events: auto;
  z-index: 1000;
}
.nav-pill.scrolled {
  background: rgba(255,255,255,0.96);
  box-shadow: 0 16px 48px rgba(32,130,181,0.16), 0 4px 12px rgba(0,0,0,0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
}
.brand img {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text);
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover {
  background: rgba(32,130,181,0.08);
  color: var(--primary);
}

.nav-cta {
  pointer-events: auto;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 16px rgba(32,130,181,0.25);
  white-space: nowrap;
  font-family: inherit;
}
.nav-cta:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(32,130,181,0.3);
}

/* ── Mobile Hamburger ── */
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  pointer-events: auto;
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: absolute;
  left: 8px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger span:nth-child(1) { top: 11px; }
.nav-burger span:nth-child(2) { top: 17px; }
.nav-burger span:nth-child(3) { top: 23px; }
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Mobile Menu Overlay ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  padding: 14px 24px;
  border-radius: 999px;
  transition: background 0.25s, color 0.25s;
}
.mobile-menu a:hover {
  background: rgba(32,130,181,0.06);
  color: var(--primary);
}
.mobile-menu .button {
  margin-top: 16px;
  font-size: 1rem;
  padding: 16px 36px;
}

/* ── Hero ── */
#heroContent {
  position: absolute;
  top: 22vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(620px, 88vw);
  text-align: center;
  color: var(--ink);
  pointer-events: auto;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--primary);
  text-shadow: 0 1px 12px rgba(255,255,255,0.9);
}

#heroContent h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-shadow:
    0 0 20px rgba(255,255,255,1),
    0 0 40px rgba(255,255,255,1),
    0 0 80px rgba(255,255,255,0.8);
  animation: fadeUp 1s cubic-bezier(0.16,1,0.3,1) both;
}

#heroContent > p {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 36px;
  color: var(--ink);
  font-weight: 500;
  text-shadow:
    0 0 20px rgba(255,255,255,1),
    0 0 40px rgba(255,255,255,1),
    0 0 60px rgba(255,255,255,0.9),
    0 0 80px rgba(255,255,255,0.7);
}

/* Hero sub-card for readability */
.hero-sub-card {
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 18px 24px;
  border: 1px solid rgba(255,255,255,0.5);
  margin-bottom: 36px;
}
.hero-sub-card p {
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 520px;
  color: var(--ink);
  font-weight: 500;
  text-shadow: none;
}


.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  font-family: inherit;
  text-align: center;
}
.button.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 28px rgba(32,130,181,0.3);
}
.button.primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(32,130,181,0.35);
}
.button.secondary {
  background: rgba(255,255,255,0.8);
  color: var(--ink);
  border: 1px solid rgba(32,130,181,0.15);
  backdrop-filter: blur(8px);
}
.button.secondary:hover {
  background: rgba(255,255,255,1);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* ── Mid Chapter Cards ── */
.mid-chapter {
  position: absolute;
  bottom: 10vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 92vw);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  opacity: 0;
  pointer-events: auto;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.mid-chapter.active { opacity: 1; transform: translate(-50%, -10px); }

.mid-card {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(32,130,181,0.08);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.mid-card h4 {
  margin: 0 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
}
.mid-card p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

/* ── Main Content Area ── */
#pageRoot {
  position: relative;
  z-index: 20;
  pointer-events: auto;
  margin-top: 110vh;
  background: transparent;
}

section {
  padding: 10vh 7vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.section-shell {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 4rem clamp(2rem, 5vw, 4rem);
  box-shadow: var(--shadow);
}

.section-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-lede {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-light);
  max-width: 640px;
  margin-bottom: 0.5rem;
}

/* ── Stats ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 1rem;
}
.stat {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(32,130,181,0.06);
}
.stat strong {
  display: block;
  font-size: 2rem;
  color: var(--primary);
  font-weight: 700;
}
.stat span {
  display: block;
  font-size: 0.88rem;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-top: 4px;
}
.stat p {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ── Cards Grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 1rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(32,130,181,0.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover::before { opacity: 1; }
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.8rem;
  color: var(--ink);
}
.card p, .card ul {
  margin: 0;
  color: var(--text-light);
  line-height: 1.65;
  font-size: 0.92rem;
}
.card ul { padding-left: 1.1rem; }
.card ul li { margin-bottom: 0.4rem; }

.card-3d {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
}

/* ── Benefits ── */
.benefits-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 1rem;
}
.benefits-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ── Portfolio ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 1rem;
}
.portfolio-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(32,130,181,0.06);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s, transform 0.3s;
}
.portfolio-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.portfolio-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.6rem;
}
.portfolio-card p {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.9rem;
  margin: 0;
}

/* ── Process Steps (Cinematic) ── */
.process-steps-cinema {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2rem;
}
.step-cinema {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 3rem 2rem;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
  position: relative;
}
.step-cinema.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.step-cinema:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(32,130,181,0.12), transparent);
}
.step-cinema-visual {
  flex-shrink: 0;
}
.step-ring {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-ring svg {
  position: absolute;
  inset: 0;
}
.step-ring .step-progress {
  transition: stroke-dashoffset 2.5s cubic-bezier(0.16,1,0.3,1);
}
.step-cinema.is-visible .step-progress {
  stroke-dashoffset: 0 !important;
}
.step-ring-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.25;
  z-index: 1;
}
.step-cinema.is-visible .step-ring-number {
  opacity: 1;
  transition: opacity 0.6s 0.4s;
}
.step-cinema-content {
  flex: 1;
}
.step-cinema-content span {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.step-cinema-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.6rem;
}
.step-cinema-content p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.65;
  font-size: 0.92rem;
  max-width: 420px;
}

/* ── CTA Panel ── */
.contact-full {
  padding: 0 !important;
}
.cta-panel {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  padding: 4rem;
  text-align: center;
  box-shadow: 0 24px 64px rgba(32,130,181,0.2);
}
.cta-full {
  border-radius: 0;
  padding: 6rem 7vw;
  max-width: 100%;
  box-shadow: none;
}
.cta-panel h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin: 0 0 1rem;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.cta-panel p {
  margin: 0 auto 2rem;
  max-width: 560px;
  color: rgba(255,255,255,0.85);
  font-size: 1.02rem;
  line-height: 1.7;
}
.cta-panel .button.primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}
.cta-panel .button.primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.2);
}
.cta-panel .button.secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.cta-panel .button.secondary:hover {
  background: rgba(255,255,255,0.25);
}

/* ── Footer ── */
footer {
  padding: 4rem 7vw;
  background: var(--bg-soft);
  color: var(--ink);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  border-top: 1px solid rgba(32,130,181,0.06);
}
footer h4 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
footer p, footer a {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0.3rem 0;
}
footer a:hover { color: var(--primary); }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-brand img {
  height: 28px;
  width: auto;
}
.footer-bottom {
  padding: 1.5rem 7vw;
  background: var(--bg-soft);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-light);
  border-top: 1px solid rgba(32,130,181,0.04);
}

/* ── Animations ── */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ── Dynamic Background for Content Sections ── */
#dynamicBg {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}
#dynamicBg.active { opacity: 1; }

/* Scroll-reactive floating orbs */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 2;
  opacity: 0;
  transition: opacity 1s ease, transform 0.1s linear;
  will-change: transform, opacity;
}
.bg-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(32,130,181,0.12), transparent 70%);
  top: 10%; left: -5%;
}
.bg-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(248,129,84,0.10), transparent 70%);
  top: 40%; right: -5%;
}
.bg-orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(44,176,240,0.08), transparent 70%);
  bottom: 10%; left: 20%;
}
.bg-orb.active { opacity: 1; }

/* ── Card & Stat Icons ── */
.card-icon, .stat-icon {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--bg-soft);
  border: 1px solid rgba(32,130,181,0.06);
}
.stat-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  margin-bottom: 0.8rem;
}

/* ── Step Enhancements ── */
.step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(32,130,181,0.08);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.step-icon {
  margin-bottom: 0.8rem;
}
.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Portfolio Meta ── */
.portfolio-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 0.8rem;
}
.portfolio-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(32,130,181,0.06);
  padding: 4px 10px;
  border-radius: 999px;
}
.portfolio-result {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(248,129,84,0.06);
  padding: 4px 10px;
  border-radius: 999px;
}

.portfolio-card .mock {
  height: 200px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(32,130,181,0.08), rgba(248,129,84,0.08));
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Card Entrance Animations ── */
[data-animate-card] {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
[data-animate-card="left"] { transform: translateX(-40px) translateY(20px); }
[data-animate-card="right"] { transform: translateX(40px) translateY(20px); }
[data-animate-card="up"] { transform: translateY(50px); }
[data-animate-card].is-visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* ── Custom Cursor: Dot + Ring ── */
#cursorDot {
  position: fixed;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  pointer-events: none;
  z-index: 10000;
  top: 0; left: 0;
  will-change: transform;
  transition: width 0.3s, height 0.3s, background 0.3s, margin 0.3s;
}
#cursorDot.hover {
  width: 10px; height: 10px;
  background: var(--accent);
  margin: -2px 0 0 -2px;
}

#cursorRing {
  position: fixed;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(32,130,181,0.35);
  pointer-events: none;
  z-index: 10000;
  top: 0; left: 0;
  will-change: transform;
  transition: width 0.4s cubic-bezier(0.16,1,0.3,1), height 0.4s cubic-bezier(0.16,1,0.3,1),
              border-color 0.3s, margin 0.4s cubic-bezier(0.16,1,0.3,1),
              opacity 0.3s, background 0.3s;
}
#cursorRing.hover {
  width: 60px; height: 60px;
  border-color: rgba(248,129,84,0.3);
  background: rgba(32,130,181,0.04);
  margin: -10px 0 0 -10px;
}
#cursorRing.clicking {
  width: 32px; height: 32px;
  border-color: var(--primary);
  margin: 4px 0 0 4px;
}

body.custom-cursor,
body.custom-cursor * {
  cursor: none !important;
}

/* ══════════════════════════════
   RESPONSIVE
   ══════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .nav-links { gap: 2px; }
  .nav-links a { padding: 8px 10px; font-size: 0.78rem; }
  .nav-cta { padding: 10px 18px; font-size: 0.78rem; }
}

/* Tablet-Portrait / Large Phone */
@media (max-width: 900px) {
  #overlay { padding: 0 5vw; }

  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-pill { padding: 10px 18px; }
  .nav-cta { display: none; }

  section { padding: 6vh 5vw; }
  .section-shell { padding: 2.5rem 1.5rem; }
  .benefits-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .step-cinema { gap: 2rem; padding: 2rem 1.5rem; }

  #heroContent { top: 18vh; width: min(520px, 90vw); }
  #heroContent > p { font-size: 0.98rem; }

  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .button { width: 100%; max-width: 320px; }

  .cta-panel { padding: 2.5rem 1.5rem; }
  .cta-panel .hero-actions { flex-direction: column; align-items: center; }
  .cta-panel .hero-actions .button { width: 100%; max-width: 320px; }

  .mid-chapter { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .mid-card { padding: 14px 16px; }
  .mid-card p { font-size: 0.92rem; }

  footer { padding: 3rem 5vw; }
}

/* Phone */
@media (max-width: 600px) {
  #heroContent { top: 16vh; }
  #heroContent h1 { font-size: 1.8rem; line-height: 1.2; }
  #heroContent > p { font-size: 0.92rem; margin-bottom: 28px; }

  .hero-eyebrow { font-size: 0.72rem; }

  .mid-chapter {
    grid-template-columns: repeat(3, 1fr);
    bottom: 4vh;
    width: min(380px, 92vw);
    gap: 6px;
  }
  .mid-card { padding: 10px 12px; }
  .mid-card h4 { font-size: 0.62rem; }
  .mid-card p { font-size: 0.78rem; }

  .section-heading { font-size: 1.5rem; }
  .section-shell { padding: 2rem 1.2rem; border-radius: var(--radius); }

  .stats-row { grid-template-columns: 1fr; }
  .stat strong { font-size: 1.6rem; }

  .cards-grid { grid-template-columns: 1fr; }
  .benefits-wrap, .benefits-3 { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .step-cinema { flex-direction: column !important; gap: 1.5rem; text-align: center; padding: 2rem 1rem; }
  .step-cinema-content p { max-width: 100%; }
  .step-ring { width: 90px; height: 90px; }
  .step-ring svg { width: 90px; height: 90px; }
  .step-ring-number { font-size: 1.4rem; }

  .portfolio-card .mock { height: 160px; }
  .portfolio-card { padding: 1.5rem; }

  .card { padding: 1.5rem; }
  .step { padding: 1.5rem; }

  .cta-panel { padding: 2rem 1.2rem; border-radius: var(--radius); }
  .cta-full { padding: 3rem 5vw; border-radius: 0; }
  .contact-full { padding: 0 !important; }

  footer { grid-template-columns: 1fr; gap: 20px; }

  .button { padding: 13px 28px; font-size: 0.88rem; }
}

/* Very small phones */
@media (max-width: 380px) {
  .brand span { font-size: 0.82rem; }
  .brand img { height: 26px; }
  .nav-pill { padding: 8px 14px; top: 12px; }

  #heroContent { top: 14vh; }
  #heroContent h1 { font-size: 1.55rem; }
  #heroContent > p { font-size: 0.85rem; }
}

/* Landscape phone */
@media (max-height: 500px) and (orientation: landscape) {
  #heroContent { top: 12vh; }
  #heroContent h1 { font-size: 1.6rem; }
  #heroContent > p { display: none; }
  .mid-chapter { display: none; }
}

/* Disable 3D hover on touch */
@media (pointer: coarse) {
  .card-3d:hover { transform: none; }
  .card:hover { transform: none; }
  .portfolio-card:hover { transform: none; }
}

/* ══════════════════════════════════════════════════════════════
   ERWEITERUNGEN 2026 — Team, Referenzen, Prozess-Zickzack
   ══════════════════════════════════════════════════════════════ */

/* ── Eyebrow über Section-Headings ── */
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.7rem;
}

/* ── Sternchen-Verweis bei Kennzahlen ── */
.stat-ref {
  color: var(--text-light);
  font-weight: 700;
  padding-left: 2px;
  text-decoration: none;
}
.stat-ref:hover { color: var(--primary); }

.cta-note {
  margin: 1.2rem 0 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}

/* ══════════════════════════════
   TEAM
   ══════════════════════════════ */
.section-shell--team { padding: clamp(2rem, 4vw, 3.2rem); }

.team-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 3.4rem);
  align-items: center;
}

.team-photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ausschnitt leicht nach oben, damit die Gesichter mittig sitzen */
  object-position: center 38%;
  aspect-ratio: 4 / 3.4;
  transition: transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.team-photo:hover img { transform: scale(1.035); }

/* Dezenter CI-Verlauf über dem unteren Bildrand für die Bildunterschrift */
.team-photo::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(20,45,70,0.72), transparent);
  pointer-events: none;
  z-index: 1;
}
.team-photo figcaption {
  position: absolute;
  left: clamp(1rem, 3vw, 1.6rem);
  bottom: clamp(0.9rem, 3vw, 1.4rem);
  z-index: 2;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 10px rgba(0,0,0,0.35);
}

.team-copy .section-heading { margin-bottom: 1rem; }
.team-copy .section-lede { margin-bottom: 1.6rem; }

.team-points {
  list-style: none;
  margin: 0 0 1.9rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.team-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text-light);
}
.team-points li svg { flex: 0 0 auto; margin-top: 2px; color: var(--primary); }
.team-points li strong { color: var(--ink); font-weight: 600; }

.team-cta { align-self: flex-start; }

@media (max-width: 860px) {
  .team-split { grid-template-columns: 1fr; }
  .team-photo img { aspect-ratio: 16 / 10; }
}

/* ══════════════════════════════
   REFERENZEN — Bento-Showcase
   ══════════════════════════════ */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-top: 2.2rem;
}

/* Eine Akzentfarbe pro Karte, alles Farbige leitet sich daraus ab */
/* --ref-accent färbt Flächen und Rahmen, --ref-accent-text ist die
   abgedunkelte Variante für Schrift. Nötig, weil #2cb0f0 (2,45:1) und
   #f88154 (2,54:1) auf Weiß den WCAG-Mindestkontrast von 4,5:1 reißen. */
.ref-card--a { grid-column: 1 / 8;  grid-row: 1;     --ref-accent: var(--primary);       --ref-accent-text: var(--primary-text);       --shot-h: 300px; --scroll-dur: 3.2s; }
.ref-card--b { grid-column: 8 / 13; grid-row: 1 / 3; --ref-accent: var(--primary-light); --ref-accent-text: var(--primary-text);       --shot-h: 656px; --scroll-dur: 5s;   }
.ref-card--c { grid-column: 1 / 8;  grid-row: 2;     --ref-accent: var(--accent);        --ref-accent-text: var(--accent-text);        --shot-h: 300px; --scroll-dur: 3.2s; }
.ref-more    { grid-column: 1 / 13; grid-row: 3;     --ref-accent: var(--primary);       --ref-accent-text: var(--primary-text); }

.ref-card { position: relative; }

/* Hover-Bewegung sitzt auf dem inneren Element — das äußere trägt
   bereits die Reveal-transform aus [data-animate-card]. Nie mischen. */
.ref-card__inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(32,130,181,0.06);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.05);
  padding: 14px;
  overflow: hidden;
  color: inherit;
  transition: transform .45s cubic-bezier(0.16,1,0.3,1),
              box-shadow .45s cubic-bezier(0.16,1,0.3,1);
}
.ref-card__inner:hover,
.ref-card__inner:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Cursor-Spotlight in der Kartenfarbe */
.ref-card__inner::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity .4s;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
    rgba(32,130,181,0.10), transparent 62%);
}
@supports (background: color-mix(in oklab, red 10%, white)) {
  .ref-card__inner::before {
    background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
      color-mix(in oklab, var(--ref-accent) 14%, transparent), transparent 62%);
  }
}
@media (hover: hover) and (pointer: fine) {
  .ref-card__inner:hover::before { opacity: 1; }
}

/* 1px-Gradient-Border, erscheint erst beim Hover */
.ref-card__inner::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(135deg, var(--ref-accent), var(--secondary));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s;
}
.ref-card__inner:hover::after,
.ref-card__inner:focus-visible::after { opacity: 1; }

/* Geschwister dimmen. Ohne :has()-Support wird die Regel schlicht ignoriert. */
@media (hover: hover) and (pointer: fine) {
  .ref-grid .ref-card { transition: opacity .4s ease, filter .4s ease; }
  .ref-grid:has(.ref-card__inner:hover) .ref-card:not(:has(.ref-card__inner:hover)) {
    opacity: .58;
    filter: saturate(.75);
  }
}

/* ── Browser-Frame ── */
.frame {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--stroke);
  box-shadow: 0 2px 10px rgba(32,130,181,0.06);
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--stroke);
}
.frame-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(32,130,181,0.18);
  flex: 0 0 auto;
}
.frame-dot:first-child { background: var(--ref-accent); opacity: 0.55; }
.frame-url {
  margin-left: 8px;
  flex: 1;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-light);
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 3px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Screenshot-Viewport mit Hover-Durchlauf ── */
.frame-shot {
  height: var(--shot-h, 300px);
  overflow: hidden;
  background: var(--bg-soft);
}
.frame-shot img {
  width: 100%;
  height: auto;
  display: block;
  will-change: transform;
  transform: translateY(0);
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
/* Fallback über die bekannte Frame-Höhe — läuft überall */
.ref-card__inner:hover .frame-shot img,
.ref-card__inner:focus-visible .frame-shot img {
  transform: translateY(calc(var(--shot-h, 300px) - 100%));
  transition: transform var(--scroll-dur, 3.2s) cubic-bezier(0.33,0,0.25,1);
}
/* Enhancement: Container Query Units — unabhängig von der Bildlänge */
@supports (container-type: size) {
  .frame-shot { container-type: size; }
  .ref-card__inner:hover .frame-shot img,
  .ref-card__inner:focus-visible .frame-shot img {
    transform: translateY(calc(100cqh - 100%));
  }
}
/* Touch kennt kein Hover: Durchlauf startet beim Eintritt in den Viewport */
@media (hover: none) {
  .ref-card__inner.is-playing .frame-shot img {
    transform: translateY(calc(var(--shot-h, 300px) - 100%));
    transition: transform 6s cubic-bezier(0.33,0,0.25,1);
  }
}

/* ── Karteninhalt ── */
.ref-body { padding: 1.25rem 1rem 0.9rem; }
.ref-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 0.7rem; }
.ref-tag, .ref-kpi {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 4px 11px; border-radius: 999px;
}
.ref-tag {
  color: var(--text-light);
  background: var(--bg-soft);
  border: 1px solid var(--stroke);
  text-transform: uppercase;
}
.ref-kpi {
  color: var(--ref-accent-text, var(--ref-accent));
  background: rgba(32,130,181,0.07);
  border: 1px solid rgba(32,130,181,0.18);
}
@supports (background: color-mix(in oklab, red 10%, white)) {
  .ref-kpi {
    background: color-mix(in oklab, var(--ref-accent) 9%, #fff);
    border-color: color-mix(in oklab, var(--ref-accent) 22%, #fff);
  }
}
.ref-card h3 { font-size: 1.12rem; font-weight: 700; color: var(--ink); margin: 0 0 .5rem; }
.ref-card p  { font-size: .9rem; line-height: 1.6; color: var(--text-light); margin: 0; }

.ref-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 0.9rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ref-accent-text, var(--ref-accent));
}
.ref-link svg { transition: transform .3s; }
.ref-card__inner:hover .ref-link svg { transform: translate(2px, -2px); }

/* ── "Nur ein Ausschnitt"-Leiste ── */
.ref-more {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.6rem 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(32,130,181,0.05), rgba(248,129,84,0.05));
  border: 1px dashed rgba(32,130,181,0.26);
  color: var(--ink);
  transition: border-color .35s, transform .35s cubic-bezier(0.16,1,0.3,1);
}
.ref-more:hover { border-color: var(--primary); transform: translateY(-3px); }
.ref-more__text { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.ref-more__text strong { font-size: 1.05rem; font-weight: 700; }
.ref-more__text span   { font-size: .88rem; color: var(--text-light); line-height: 1.55; }

/* Gefächerte Mini-Frames — reine CSS-Deko, keine Bilddaten */
.ref-more__stack { display: flex; flex: 0 0 auto; }
.ref-more__stack i {
  width: 54px; height: 38px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid var(--stroke);
  box-shadow: 0 4px 14px rgba(32,130,181,0.10);
  transition: transform .45s cubic-bezier(0.16,1,0.3,1);
}
.ref-more__stack i:nth-child(1) { transform: rotate(-8deg) translateX(14px); }
.ref-more__stack i:nth-child(2) { z-index: 1; }
.ref-more__stack i:nth-child(3) { transform: rotate(8deg) translateX(-14px); }
.ref-more:hover .ref-more__stack i:nth-child(1) { transform: rotate(-13deg) translateX(4px); }
.ref-more:hover .ref-more__stack i:nth-child(3) { transform: rotate(13deg) translateX(-4px); }

.ref-more__arrow { color: var(--primary); transition: transform .35s; flex: 0 0 auto; }
.ref-more:hover .ref-more__arrow { transform: translateX(6px); }

@media (max-width: 1024px) {
  .ref-grid { grid-template-columns: 1fr; }
  .ref-card--a, .ref-card--b, .ref-card--c, .ref-more { grid-column: 1 / -1; grid-row: auto; }
  .ref-card--b { --shot-h: 380px; }
}
@media (max-width: 700px) {
  .ref-card--a, .ref-card--b, .ref-card--c { --shot-h: 260px; }
  .ref-more { flex-direction: column; align-items: flex-start; gap: 1.1rem; padding: 1.4rem 1.3rem; }
  .ref-body { padding: 1.1rem 0.6rem 0.7rem; }
}

/* ══════════════════════════════
   PROZESS — Zickzack
   ══════════════════════════════ */
.process-flow { position: relative; margin-top: 2rem; }

.step-cinema { --step-accent: var(--primary); --step-accent-text: var(--primary-text); position: relative; z-index: 1; }
.step-cinema[data-step="2"] { --step-accent: var(--primary-light); --step-accent-text: var(--primary-text); }
.step-cinema[data-step="3"] { --step-accent: var(--accent);       --step-accent-text: var(--accent-text); }

/* Reveal: von der jeweiligen Zickzack-Seite einfliegen statt von unten */
.step-cinema {
  opacity: 0;
  transform: translateX(-46px);
  transition: opacity .85s cubic-bezier(0.16,1,0.3,1),
              transform .85s cubic-bezier(0.16,1,0.3,1);
}
.step-cinema:nth-child(even) { transform: translateX(46px); }
.step-cinema.is-visible { opacity: 1; transform: translateX(0); }

/* Alte Trennlinie entfällt — die SVG-Zickzacklinie ersetzt sie */
.step-cinema:not(:last-child)::after { content: none; }

@media (min-width: 901px) {
  .step-cinema:nth-child(even) { flex-direction: row-reverse; text-align: right; }
  .step-cinema:nth-child(even) .step-cinema-content p { margin-left: auto; }
  .step-cinema:nth-child(odd)  { padding-right: 14%; }
  .step-cinema:nth-child(even) { padding-left: 14%; }
}

/* ── Verbindungslinie ── */
.process-path {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.process-path path { fill: none; stroke-width: 2; stroke-linecap: round; }
.process-path__track { stroke: rgba(32,130,181,0.10); }
.process-path__fill {
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--p, 0));
  filter: drop-shadow(0 0 6px rgba(44,176,240,0.28));
}
@media (max-width: 900px) { .process-path { display: none; } }

/* ── Ring, Nummer, Glow ── */
.step-cinema-visual { position: relative; }
.step-ring { color: var(--step-accent); }
.step-ring-number { color: var(--step-accent-text); }
.step-cinema-content span { color: var(--step-accent-text); }

.step-ring::before {
  content: '';
  position: absolute; inset: -22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32,130,181,0.20), transparent 68%);
  opacity: 0;
  transition: opacity .9s .3s;
  pointer-events: none;
}
@supports (background: color-mix(in oklab, red 10%, white)) {
  .step-ring::before {
    background: radial-gradient(circle, color-mix(in oklab, var(--step-accent) 22%, transparent), transparent 68%);
  }
}
.step-cinema.is-visible .step-ring::before { opacity: 1; }

/* Große Geister-Ziffer hinter dem Ring */
.step-num-ghost {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(5rem, 10vw, 8.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  color: rgba(32,130,181,0.10);
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .step-num-ghost {
    background: linear-gradient(150deg, var(--step-accent), transparent 76%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    opacity: 0.22;
  }
}
.step-ring { position: relative; z-index: 1; }

@media (max-width: 600px) {
  .step-num-ghost { font-size: 4.5rem; }
}

/* ══════════════════════════════
   FOOTER-ERGÄNZUNGEN
   ══════════════════════════════ */
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 1rem !important;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(32,130,181,0.06);
  border: 1px solid rgba(32,130,181,0.14);
  color: var(--primary) !important;
  font-size: 0.8rem !important;
  font-weight: 600;
}
.footer-notes {
  padding: 0 7vw 1.5rem;
  background: var(--bg-soft);
}
.footer-notes p {
  max-width: 900px;
  margin: 0 auto;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-light);
}

/* ══════════════════════════════
   ACCESSIBILITY
   ══════════════════════════════ */
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Endzustände direkt setzen, damit nichts unsichtbar hängen bleibt */
  [data-animate], [data-animate-card], .step-cinema, .ref-card__inner {
    opacity: 1 !important;
    transform: none !important;
  }
  .frame-shot img { transform: none !important; }
  .process-path__fill { stroke-dashoffset: 0 !important; }
  .step-cinema .step-progress { stroke-dashoffset: 0 !important; }
  #cursorDot, #cursorRing { display: none !important; }
  body.custom-cursor, body.custom-cursor * { cursor: auto !important; }
}

/* ── Hinweisblock zu den Kennzahlen (Auflösung der Sternchen) ── */
.footer-notes h2 {
  max-width: 900px;
  margin: 0 auto 0.8rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.footer-notes p + p { margin-top: 0.6rem; }
.footer-notes strong { color: var(--text); }

/* Noch auszufüllende Stelle — vor dem Live-Gang ersetzen */
.ph-inline {
  background: #fff4d6;
  border: 1px dashed #d99e00;
  border-radius: 5px;
  padding: 1px 7px;
  color: #8a6400;
  font-weight: 600;
}

/* Dritter Mini-Rahmen als angedeutete Leerstelle — "Platz für Ihr Projekt" */
.ref-more__stack i.is-empty {
  background: transparent;
  border: 1px dashed rgba(32,130,181,0.35);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ref-more__stack i.is-empty span {
  position: relative;
  width: 12px;
  height: 12px;
  opacity: 0.55;
}
.ref-more__stack i.is-empty span::before,
.ref-more__stack i.is-empty span::after {
  content: '';
  position: absolute;
  background: var(--primary);
  border-radius: 1px;
}
.ref-more__stack i.is-empty span::before { inset: 5px 0; }
.ref-more__stack i.is-empty span::after  { inset: 0 5px; }
.ref-more:hover .ref-more__stack i.is-empty {
  border-color: var(--primary);
}

/* Die große Karte überspannt zwei Rasterzeilen. Damit unten kein Leerraum
   entsteht, wächst ihr Vorschaufenster auf die verfügbare Höhe mit.
   Der Hover-Durchlauf rechnet über Container Query Units ohnehin mit der
   tatsächlichen Höhe, --shot-h dient nur noch als Mindestmaß. */
@media (min-width: 1025px) {
  .ref-card--b .ref-card__inner { height: 100%; }
  .ref-card--b .frame {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
  }
  .ref-card--b .frame-shot {
    flex: 1 1 auto;
    height: auto;
    min-height: var(--shot-h);
  }
}

/* Zentrierte Ausrichtung im Kontaktbereich — als Klasse statt style-Attribut,
   weil die Content-Security-Policy kein inline-CSS zulässt. */
.hero-actions--center { justify-content: center; }
