/* ============================================================
   Q4 Media AG — Production CSS (consolidated)
   Sources: project/styles.css, navigation.css, hero.css,
            sections.css, extras.css, footer.css
   ============================================================ */

/* ===== Local Fonts (DSGVO) ===== */
/* @font-face stubs — Dateien werden via /bin/install-fonts.php geladen.
   Solange Fonts fehlen, fallen wir sauber auf system-ui zurück. */
@font-face { font-family: 'Space Grotesk'; src: local('Space Grotesk'), url('/assets/fonts/space-grotesk-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: local('Space Grotesk Medium'), url('/assets/fonts/space-grotesk-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: local('Space Grotesk SemiBold'), url('/assets/fonts/space-grotesk-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: local('Space Grotesk Bold'), url('/assets/fonts/space-grotesk-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: local('Inter'), url('/assets/fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: local('Inter Medium'), url('/assets/fonts/inter-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: local('Inter SemiBold'), url('/assets/fonts/inter-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: local('Inter Bold'), url('/assets/fonts/inter-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: local('JetBrains Mono'), url('/assets/fonts/jetbrains-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: local('JetBrains Mono Medium'), url('/assets/fonts/jetbrains-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --q4-blue: #4A90E2;
  --q4-blue-600: #2F77D1;
  --q4-blue-700: #1E5DB0;
  --q4-blue-100: #E8F1FC;
  --q4-blue-50:  #F4F8FE;
  --q4-teal: #14B8A6;
  --q4-teal-600: #0D9488;
  --q4-teal-100: #CCFBF1;
  --ink: #0B1220;
  --ink-2: #1B2436;
  --slate-700: #334155;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;
  --paper: #FBFCFE;
  --white: #FFFFFF;
  --bg: var(--paper);
  --surface: var(--white);
  --border: #E6ECF3;
  --border-strong: #D6DEE9;
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 22px; --r-2xl: 32px;
  --shadow-xs: 0 1px 2px rgba(15,23,42,0.04);
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 6px 24px -8px rgba(30,93,176,0.15), 0 2px 6px rgba(15,23,42,0.04);
  --shadow-lg: 0 20px 60px -20px rgba(30,93,176,0.25), 0 4px 12px rgba(15,23,42,0.05);
  --shadow-glow: 0 0 0 1px rgba(74,144,226,0.18), 0 20px 60px -20px rgba(74,144,226,0.45);
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --ease-in-out: cubic-bezier(.65,.05,.35,1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin:0; padding:0; background:var(--bg); color:var(--ink); font-family:var(--font-body); font-size:16px; line-height:1.55; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
body { overflow-x:hidden; background: radial-gradient(1200px 800px at 80% -10%, rgba(74,144,226,0.10), transparent 60%), radial-gradient(1000px 700px at -10% 30%, rgba(20,184,166,0.07), transparent 55%), var(--paper); }
img { max-width:100%; display:block; }
a { color:inherit; text-decoration:none; }
button { font:inherit; cursor:pointer; border:0; background:transparent; color:inherit; }
::selection { background:var(--q4-blue); color:white; }

/* A11y: skip link */
.skip-link { position:absolute; left:-9999px; top:0; padding:10px 16px; background:var(--ink); color:#fff; z-index:1000; border-radius:0 0 var(--r-md) 0; }
.skip-link:focus { left:0; outline:2px solid var(--q4-blue); }

/* A11y: visible focus */
:focus-visible { outline:2px solid var(--q4-blue); outline-offset:2px; border-radius:4px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
  .reveal, .reveal-stagger > * { opacity:1 !important; transform:none !important; }
}

.display, h1, h2, h3, h4 { font-family:var(--font-display); letter-spacing:-0.02em; color:var(--ink); line-height:1.05; font-weight:600; margin:0; text-wrap:balance; }
h1 { font-size:clamp(44px,6.4vw,92px); letter-spacing:-0.035em; }
h2 { font-size:clamp(34px,4.4vw,60px); letter-spacing:-0.025em; }
h3 { font-size:clamp(22px,2.2vw,28px); letter-spacing:-0.015em; }
h4 { font-size:18px; letter-spacing:-0.01em; }
p { margin:0; color:var(--slate-700); text-wrap:pretty; }
.mono { font-family:var(--font-mono); font-feature-settings:"tnum" 1, "ss01" 1; letter-spacing:0; }
.container { max-width:var(--container); margin:0 auto; padding:0 var(--gutter); }
section { position:relative; padding:clamp(80px,10vw,140px) 0; }

.eyebrow { display:inline-flex; align-items:center; justify-self:start; width:fit-content; gap:10px; font-family:var(--font-mono); font-size:12px; font-weight:500; letter-spacing:0.12em; text-transform:uppercase; color:var(--q4-blue-700); padding:6px 12px; border-radius:999px; background:var(--q4-blue-100); border:1px solid rgba(74,144,226,0.18); }
.eyebrow .dot { width:6px; height:6px; border-radius:50%; background:var(--q4-teal); box-shadow:0 0 0 3px rgba(20,184,166,0.18); }

.btn { display:inline-flex; align-items:center; gap:10px; padding:13px 22px; border-radius:999px; font-weight:500; font-size:15px; letter-spacing:-0.005em; transition:transform .25s var(--ease-out),background .25s,color .25s,box-shadow .25s,border-color .25s; white-space:nowrap; border:1px solid transparent; }
.btn .arrow { width:16px; height:16px; transition:transform .3s var(--ease-out); }
.btn:hover .arrow { transform:translateX(3px); }
.btn-primary { background:var(--ink); color:white; box-shadow:0 1px 0 rgba(255,255,255,0.06) inset, 0 8px 24px -10px rgba(11,18,32,0.5); }
.btn-primary:hover { background:var(--ink-2); transform:translateY(-1px); box-shadow:0 1px 0 rgba(255,255,255,0.08) inset, 0 12px 30px -10px rgba(11,18,32,0.6); }
.btn-accent { background:var(--q4-blue); color:white; box-shadow:0 8px 24px -8px rgba(74,144,226,0.55); }
.btn-accent:hover { background:var(--q4-blue-600); transform:translateY(-1px); box-shadow:0 12px 30px -10px rgba(74,144,226,0.7); }
.btn-ghost { background:white; color:var(--ink); border-color:var(--border-strong); }
.btn-ghost:hover { border-color:var(--ink); }
.btn-link { padding:0; color:var(--ink); font-weight:500; display:inline-flex; align-items:center; }
.btn-link:hover { color:var(--q4-blue-700); }

.card { background:white; border:1px solid var(--border); border-radius:var(--r-lg); box-shadow:var(--shadow-sm); transition:transform .35s var(--ease-out),box-shadow .35s,border-color .25s; }
.card:hover { transform:translateY(-3px); border-color:var(--border-strong); box-shadow:var(--shadow-md); }

.section-head { display:grid; grid-template-columns:1fr; gap:18px; margin-bottom:56px; max-width:880px; }
.section-head .lead { font-size:clamp(17px,1.6vw,19px); color:var(--slate-700); line-height:1.6; max-width:720px; }

.dot-grid { position:absolute; inset:0; background-image:radial-gradient(rgba(74,144,226,0.18) 1px,transparent 1px); background-size:28px 28px; mask-image:radial-gradient(ellipse at center,black 30%,transparent 75%); pointer-events:none; }
.hairline { height:1px; background:linear-gradient(90deg,transparent,var(--border-strong),transparent); border:0; margin:0; }

.reveal { opacity:0; transform:translateY(24px); transition:opacity .8s var(--ease-out),transform .8s var(--ease-out); }
.reveal.in { opacity:1; transform:none; }
.reveal-stagger > * { opacity:0; transform:translateY(20px); transition:opacity .7s var(--ease-out),transform .7s var(--ease-out); }
.reveal-stagger.in > * { opacity:1; transform:none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay:0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay:80ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay:160ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay:240ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay:320ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay:400ms; }

::-webkit-scrollbar { width:10px; height:10px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--slate-200); border-radius:999px; border:2px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background:var(--slate-300); }

/* ===== Navigation ===== */
.nav { position:fixed; top:0; left:0; right:0; z-index:100; padding:18px var(--gutter); transition:padding .35s var(--ease-out),background .35s,backdrop-filter .35s,border-color .35s; border-bottom:1px solid transparent; }
.nav.is-scrolled { padding:10px var(--gutter); background:rgba(251,252,254,0.72); backdrop-filter:saturate(160%) blur(18px); -webkit-backdrop-filter:saturate(160%) blur(18px); border-bottom-color:var(--border); }
.nav-inner { max-width:var(--container); margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:28px; }
.nav-brand { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.nav-logo { width:36px; height:36px; object-fit:contain; transition:width .35s var(--ease-out),height .35s var(--ease-out); }
.is-scrolled .nav-logo { width:30px; height:30px; }
.nav-brand-text { font-family:var(--font-display); font-weight:600; letter-spacing:-0.02em; font-size:17px; color:var(--ink); }
.nav-links { display:flex; align-items:center; gap:4px; background:rgba(255,255,255,0.6); border:1px solid var(--border); padding:6px; border-radius:999px; transition:background .35s,border-color .35s; }
.is-scrolled .nav-links { background:rgba(255,255,255,0.4); }
.nav-link { padding:8px 14px; border-radius:999px; font-size:14px; font-weight:500; color:var(--slate-700); transition:color .2s,background .2s; }
.nav-link:hover { color:var(--ink); background:var(--slate-100); }
.nav-actions { display:flex; align-items:center; gap:10px; }
.nav-cta { padding:10px 18px; font-size:14px; }
.nav-lang { padding:8px 12px; font-size:12px; font-family:var(--font-mono); font-weight:500; letter-spacing:0.08em; color:var(--slate-700); border:1px solid var(--border); border-radius:999px; background:white; }
.nav-lang:hover { color:var(--ink); border-color:var(--border-strong); }
.nav-burger { display:none; width:40px; height:40px; border-radius:var(--r-md); border:1px solid var(--border); background:white; align-items:center; justify-content:center; flex-direction:column; gap:4px; }
.nav-burger span { width:16px; height:1.5px; background:var(--ink); border-radius:2px; }
.nav-mobile { display:none; flex-direction:column; gap:4px; padding:16px; margin-top:12px; background:white; border:1px solid var(--border); border-radius:var(--r-lg); box-shadow:var(--shadow-md); }
.nav-mobile-link { padding:12px 16px; border-radius:var(--r-md); font-weight:500; }
.nav-mobile-link:hover { background:var(--slate-50); }
@media (max-width:1024px) { .nav-links { display:none; } .nav-burger { display:flex; } .nav-cta { display:none; } }
@media (max-width:1024px) { .nav.is-mobile-open .nav-mobile { display:flex; } }

/* ===== Hero ===== */
.hero { position:relative; min-height:100vh; padding-top:140px; padding-bottom:80px; display:flex; align-items:center; overflow:hidden; }
.hero-bg { position:absolute; inset:0; pointer-events:none; z-index:0; }
.hero-mesh { position:absolute; border-radius:50%; filter:blur(80px); opacity:0.65; animation:heroFloat 18s ease-in-out infinite; }
.hero-mesh-1 { width:720px; height:720px; top:-200px; right:-120px; background:radial-gradient(circle, rgba(74,144,226,0.40), rgba(74,144,226,0) 70%); }
.hero-mesh-2 { width:600px; height:600px; bottom:-200px; left:-100px; background:radial-gradient(circle, rgba(20,184,166,0.30), rgba(20,184,166,0) 70%); animation-delay:-6s; }
.hero-mesh-3 { width:520px; height:520px; top:40%; left:35%; background:radial-gradient(circle, rgba(180,220,255,0.35), transparent 70%); animation-delay:-12s; }
@keyframes heroFloat { 0%,100% { transform:translate(0,0) scale(1); } 33% { transform:translate(40px,-30px) scale(1.05); } 66% { transform:translate(-30px,40px) scale(0.95); } }
.hero-grid { position:absolute; inset:0; background-image:linear-gradient(rgba(74,144,226,0.06) 1px,transparent 1px), linear-gradient(90deg,rgba(74,144,226,0.06) 1px,transparent 1px); background-size:64px 64px; mask-image:radial-gradient(ellipse at 60% 40%,black 10%,transparent 70%); -webkit-mask-image:radial-gradient(ellipse at 60% 40%,black 10%,transparent 70%); }
.hero-scene { position:absolute; top:0; right:0; width:65%; height:100%; z-index:1; pointer-events:none; mask-image:radial-gradient(ellipse at 70% 50%,black 30%,transparent 75%); -webkit-mask-image:radial-gradient(ellipse at 70% 50%,black 30%,transparent 75%); }
.hero-content { position:relative; z-index:2; max-width:1240px; }
.hero-eyebrow { margin-bottom:28px; opacity:0; animation:heroFadeUp .9s var(--ease-out) .1s forwards; }
.hero-title { max-width:13ch; margin-bottom:28px; opacity:0; animation:heroFadeUp 1s var(--ease-out) .25s forwards; }
.hero-title-accent { position:relative; display:inline-block; background:linear-gradient(95deg,var(--q4-blue) 10%,var(--q4-teal) 90%); -webkit-background-clip:text; background-clip:text; color:transparent; font-style:italic; font-weight:500; }
.hero-underline { position:absolute; left:0; right:0; bottom:-8px; width:100%; height:12px; opacity:0.7; }
.hero-sub { max-width:620px; font-size:clamp(16px,1.4vw,18px); line-height:1.65; margin-bottom:38px; color:var(--slate-700); opacity:0; animation:heroFadeUp 1s var(--ease-out) .45s forwards; }
.hero-ctas { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:80px; opacity:0; animation:heroFadeUp 1s var(--ease-out) .6s forwards; }
.hero-meta { display:flex; align-items:center; gap:28px; flex-wrap:wrap; padding-top:32px; border-top:1px solid var(--border); max-width:700px; opacity:0; animation:heroFadeUp 1s var(--ease-out) .8s forwards; }
.hero-meta-item { min-width:0; }
.hero-meta-num { font-size:24px; font-weight:500; color:var(--ink); line-height:1; margin-bottom:6px; letter-spacing:-0.02em; }
.hero-meta-num span { color:var(--q4-blue); }
.hero-meta-num .mono-soft { color:var(--slate-400); font-size:18px; margin-left:4px; }
.hero-meta-label { font-size:12px; color:var(--slate-500); text-transform:uppercase; letter-spacing:0.08em; font-family:var(--font-mono); font-weight:500; }
.hero-meta-divider { width:1px; height:36px; background:var(--border); }
.hero-scroll-hint { position:absolute; left:var(--gutter); bottom:32px; z-index:3; display:flex; flex-direction:column; align-items:center; gap:10px; font-size:11px; letter-spacing:0.16em; text-transform:uppercase; color:var(--slate-400); opacity:0; animation:heroFadeUp 1s var(--ease-out) 1.1s forwards; }
.hero-scroll-line { width:1px; height:36px; background:linear-gradient(to bottom,var(--slate-300),transparent); animation:scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { transform:scaleY(0.5); transform-origin:top; opacity:.5; } 50% { transform:scaleY(1); opacity:1; } }
@keyframes heroFadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:none; } }
@media (max-width:900px) { .hero-scene { width:100%; opacity:0.5; } .hero-meta-divider { display:none; } .hero-meta { gap:20px; } .hero-scroll-hint { display:none; } }

/* ===== Kompetenz ===== */
.competence { padding-top:clamp(60px,8vw,100px); }
.competence-grid { display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:start; margin-bottom:80px; }
.competence-text p { font-size:17px; line-height:1.7; margin-bottom:18px; }
.timeline { position:relative; padding:8px 0 8px 28px; }
.timeline-track { position:absolute; left:5px; top:16px; bottom:16px; width:1px; background:linear-gradient(to bottom,var(--q4-blue),var(--q4-teal)); }
.timeline-point { position:relative; padding-bottom:28px; display:grid; grid-template-columns:80px 1fr; gap:16px; align-items:baseline; }
.timeline-point:last-child { padding-bottom:0; }
.timeline-dot { position:absolute; left:-28px; top:6px; width:12px; height:12px; border-radius:50%; background:white; border:2px solid var(--q4-blue); box-shadow:0 0 0 4px rgba(74,144,226,0.12); }
.timeline-year { font-size:13px; color:var(--q4-blue-700); font-weight:500; letter-spacing:0.04em; }
.timeline-text { font-size:15px; color:var(--ink); font-weight:500; }
.stats-band { display:grid; grid-template-columns:repeat(4,1fr); gap:0; border:1px solid var(--border); border-radius:var(--r-lg); background:white; overflow:hidden; box-shadow:var(--shadow-sm); }
.stat { padding:32px 28px; border-right:1px solid var(--border); position:relative; }
.stat:last-child { border-right:0; }
.stat-num { font-family:var(--font-display); font-size:38px; letter-spacing:-0.03em; line-height:1; color:var(--ink); font-weight:600; margin-bottom:12px; }
.stat-label { font-size:14px; font-weight:500; color:var(--ink); margin-bottom:4px; }
.stat-sub { font-size:12.5px; color:var(--slate-500); line-height:1.5; }
@media (max-width:880px) { .competence-grid { grid-template-columns:1fr; gap:48px; } .stats-band { grid-template-columns:1fr 1fr; } .stat:nth-child(2) { border-right:0; } .stat:nth-child(1),.stat:nth-child(2) { border-bottom:1px solid var(--border); } }

/* ===== Pivot ===== */
.pivot { padding:clamp(40px,6vw,80px) 0; }
.pivot-card { background:linear-gradient(135deg,var(--ink) 0%,#0F1B2E 100%); border-radius:var(--r-2xl); padding:clamp(40px,5vw,72px); position:relative; overflow:hidden; color:white; }
.pivot-card::before { content:''; position:absolute; top:-200px; right:-200px; width:500px; height:500px; background:radial-gradient(circle,rgba(74,144,226,0.4),transparent 60%); filter:blur(40px); pointer-events:none; }
.pivot-card::after { content:''; position:absolute; bottom:-160px; left:-160px; width:420px; height:420px; background:radial-gradient(circle,rgba(20,184,166,0.25),transparent 60%); filter:blur(40px); pointer-events:none; }
.pivot-grid { display:grid; grid-template-columns:1.3fr 1fr; gap:60px; align-items:center; position:relative; z-index:1; min-width:0; }
.pivot-grid > * { min-width:0; }
.pivot-text { min-width:0; overflow-wrap: anywhere; }
.pivot-visual { min-width:0; max-width:100%; }
.pivot-text .eyebrow { background:rgba(74,144,226,0.18); border-color:rgba(74,144,226,0.3); color:#B8D4F5; }
.pivot-text h2 { color:white; margin:18px 0 24px; }
.pivot-text p { color:rgba(255,255,255,0.78); font-size:16px; line-height:1.7; margin-bottom:16px; }
.pivot-tagline { font-family:var(--font-display); font-size:clamp(18px,1.6vw,22px) !important; color:white !important; margin-top:32px !important; line-height:1.4; letter-spacing:-0.01em; }
.grad-text { background:linear-gradient(95deg,#B8D4F5 0%,#7DD3C0 100%); -webkit-background-clip:text; background-clip:text; color:transparent; }
.pivot-visual { display:flex; justify-content:center; }
.pivot-arrow { display:flex; flex-direction:column; gap:24px; width:100%; max-width:360px; }
.pivot-from,.pivot-to { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; }
.pivot-chip { padding:8px 14px; border-radius:999px; font-size:12px; letter-spacing:0.04em; background:rgba(255,255,255,0.08); color:rgba(255,255,255,0.7); border:1px solid rgba(255,255,255,0.1); }
.pivot-chip.mute { opacity:0.5; text-decoration:line-through; text-decoration-color:rgba(255,255,255,0.3); }
.pivot-chip.active { background:linear-gradient(135deg,rgba(74,144,226,0.3),rgba(20,184,166,0.2)); color:white; border-color:rgba(74,144,226,0.4); box-shadow:0 0 20px rgba(74,144,226,0.25); }
.pivot-svg { width:100%; height:60px; }
@media (max-width:880px) { .pivot-grid { grid-template-columns:1fr; gap:40px; } }

/* ===== Leistungen ===== */
.services-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:0; border:1px solid var(--border); border-radius:var(--r-xl); background:white; overflow:hidden; box-shadow:var(--shadow-sm); }
.service-card { position:relative; padding:36px 32px; border-right:1px solid var(--border); border-bottom:1px solid var(--border); transition:background .35s var(--ease-out); cursor:pointer; }
.service-card:nth-child(3n) { border-right:0; }
.service-card:nth-last-child(-n+3) { border-bottom:0; }
.service-card:hover { background:var(--q4-blue-50); }
.service-card:hover .service-arrow { transform:translate(4px,-4px); opacity:1; color:var(--q4-blue); }
.service-card:hover .service-icon { transform:scale(1.05); }
.service-num { font-size:11px; color:var(--slate-400); letter-spacing:0.1em; margin-bottom:24px; }
.service-icon { width:56px; height:56px; border-radius:var(--r-md); background:linear-gradient(135deg,var(--q4-blue-50),white); border:1px solid var(--q4-blue-100); display:flex; align-items:center; justify-content:center; margin-bottom:24px; transition:transform .35s var(--ease-out); }
.service-icon svg { width:28px; height:28px; }
.service-title { font-size:22px; margin-bottom:12px; letter-spacing:-0.015em; }
.service-desc { font-size:15px; line-height:1.6; color:var(--slate-700); margin-bottom:20px; }
.service-tags { display:flex; flex-wrap:wrap; gap:6px; }
.service-tag { font-size:11px; padding:4px 10px; background:var(--slate-100); color:var(--slate-700); border-radius:999px; letter-spacing:0.04em; }
.service-arrow { position:absolute; top:28px; right:28px; width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--slate-400); opacity:0.6; transition:transform .3s var(--ease-out),color .3s,opacity .3s; }
.service-arrow svg { width:14px; height:14px; }
@media (max-width:900px) { .services-grid { grid-template-columns:1fr 1fr; } .service-card:nth-child(3n) { border-right:1px solid var(--border); } .service-card:nth-child(2n) { border-right:0; } .service-card:nth-last-child(-n+3) { border-bottom:1px solid var(--border); } .service-card:nth-last-child(-n+2) { border-bottom:0; } }
@media (max-width:600px) { .services-grid { grid-template-columns:1fr; } .service-card { border-right:0 !important; border-bottom:1px solid var(--border) !important; } .service-card:last-child { border-bottom:0 !important; } }

/* ===== Projekte ===== */
.projects { background:linear-gradient(180deg,transparent,rgba(74,144,226,0.04),transparent); }
.projects-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.project-card { background:white; border:1px solid var(--border); border-radius:var(--r-xl); padding:32px; transition:transform .35s var(--ease-out),box-shadow .35s,border-color .25s; box-shadow:var(--shadow-sm); }
.project-card:hover { transform:translateY(-3px); box-shadow:var(--shadow-md); border-color:var(--q4-blue-100); }
.project-card-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.project-num { font-size:12px; color:var(--slate-400); letter-spacing:0.08em; }
.status-pill { display:inline-flex; align-items:center; gap:8px; padding:5px 11px; font-family:var(--font-mono); font-size:11px; font-weight:500; letter-spacing:0.06em; text-transform:uppercase; border-radius:999px; border:1px solid; }
.status-dot { width:6px; height:6px; border-radius:50%; background:currentColor; animation:statusPulse 2.4s ease-in-out infinite; }
@keyframes statusPulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.6; transform:scale(0.8); } }
.status-dev { color:#C2810E; background:#FEF6E5; border-color:#F4D78F; }
.status-pilot { color:#1E5DB0; background:var(--q4-blue-50); border-color:#BBD5F4; }
.status-live { color:#0D9488; background:var(--q4-teal-100); border-color:#7DD3C0; }
.project-title { font-size:24px; letter-spacing:-0.018em; margin-bottom:12px; }
.project-desc { font-size:15px; line-height:1.65; color:var(--slate-700); margin-bottom:20px; }
.project-tech { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:24px; }
.tech-tag { font-size:11px; padding:4px 10px; border:1px solid var(--border-strong); color:var(--slate-700); border-radius:4px; letter-spacing:0.03em; background:white; }
.project-foot { display:flex; gap:24px; padding-top:18px; border-top:1px solid var(--border); }
.btn-link.muted { color:var(--slate-500); }
.btn-link.muted:hover { color:var(--ink); }
@media (max-width:800px) { .projects-grid { grid-template-columns:1fr; } }

/* ===== Q4 Group ===== */
.group { background: radial-gradient(800px 600px at 80% 50%,rgba(74,144,226,0.06),transparent 60%), radial-gradient(600px 500px at 10% 30%,rgba(20,184,166,0.05),transparent 60%); }
.group-grid { display:grid; grid-template-columns:1fr 1.2fr; gap:80px; align-items:center; }
.group-text p { font-size:16px; line-height:1.7; margin-bottom:16px; }
.group-text h2 { margin:18px 0 24px; }
.group-cta { margin-top:32px; }
.orbital { display:flex; align-items:center; justify-content:center; position:relative; }
.orbital-stage { position:relative; width:100%; max-width:560px; aspect-ratio:1; }
.orbital-rings { position:absolute; inset:0; width:100%; height:100%; }
.orbital-ring { position:absolute; inset:0; animation:orbitalSpin 60s linear infinite; }
@keyframes orbitalSpin { to { transform:rotate(360deg); } }
.orbital-sat { position:absolute; top:50%; left:50%; width:0; height:0; transform:rotate(var(--angle)) translate(180px) rotate(calc(var(--angle) * -1)); }
.orbital-sat-inner { position:absolute; transform:translate(-50%,-50%); background:white; border:1px solid var(--border); border-radius:var(--r-md); padding:12px 16px; white-space:nowrap; box-shadow:var(--shadow-sm); text-align:left; min-width:160px; animation:orbitalCounter 60s linear infinite; }
@keyframes orbitalCounter { to { transform:translate(-50%,-50%) rotate(-360deg); } }
.orbital-sat.is-primary .orbital-sat-inner { border-color:var(--q4-blue); box-shadow:0 0 0 4px rgba(74,144,226,0.08), var(--shadow-md); background:linear-gradient(180deg,white,var(--q4-blue-50)); }
.orbital-sat-label { font-family:var(--font-display); font-size:14px; font-weight:600; color:var(--ink); letter-spacing:-0.01em; }
.orbital-sat-sub { font-size:11px; color:var(--slate-500); margin-top:2px; letter-spacing:0.02em; }
.orbital-center { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); z-index:2; }
.orbital-center-disc { position:relative; width:140px; height:140px; border-radius:50%; background:linear-gradient(135deg,var(--q4-blue) 0%,var(--q4-blue-700) 100%); display:flex; flex-direction:column; align-items:center; justify-content:center; box-shadow:0 0 0 8px white,0 0 0 9px var(--q4-blue-100),var(--shadow-lg); color:white; }
.orbital-center-label { font-size:14px; letter-spacing:0.1em; opacity:0.8; margin-bottom:2px; }
.orbital-center-name { font-family:var(--font-display); font-size:32px; font-weight:600; letter-spacing:-0.02em; }
.orbital-center-pulse { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:140px; height:140px; border-radius:50%; border:1px solid var(--q4-blue); animation:pulseOut 3s ease-out infinite; }
.orbital-center-pulse.delay { animation-delay:1.5s; }
@keyframes pulseOut { 0% { transform:translate(-50%,-50%) scale(0.8); opacity:0.6; } 100% { transform:translate(-50%,-50%) scale(2.4); opacity:0; } }
@media (max-width:980px) { .group-grid { grid-template-columns:1fr; gap:60px; } .orbital-stage { max-width:480px; margin:0 auto; } }
@media (max-width:600px) { .orbital-sat { transform:rotate(var(--angle)) translate(140px) rotate(calc(var(--angle) * -1)); } .orbital-sat-inner { min-width:130px; padding:8px 12px; } .orbital-sat-label { font-size:12px; } .orbital-sat-sub { font-size:10px; } .orbital-center-disc { width:110px; height:110px; } .orbital-center-pulse { width:110px; height:110px; } .orbital-center-name { font-size:26px; } }

/* ===== Kontakt ===== */
.contact { background:linear-gradient(180deg,transparent,rgba(20,184,166,0.04)); }
.contact-light { text-align:center; padding-bottom:clamp(60px,8vw,100px); }
.contact-light h2 { margin:18px 0 16px; max-width:18ch; margin-left:auto; margin-right:auto; }
.contact-light p { font-size:17px; line-height:1.65; max-width:640px; margin:0 auto 32px; }
.contact-light-actions { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-bottom:48px; }
.contact-info-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:0; max-width:880px; margin:0 auto; border:1px solid var(--border); border-radius:var(--r-lg); background:white; overflow:hidden; }
.contact-info-cell { padding:24px; border-right:1px solid var(--border); text-align:left; }
.contact-info-cell:last-child { border-right:0; }
.contact-info-label { font-size:10.5px; font-family:var(--font-mono); text-transform:uppercase; letter-spacing:0.1em; color:var(--slate-400); margin-bottom:6px; }
.contact-info-value { font-size:14.5px; color:var(--ink); font-weight:500; }
.contact-info-value.muted { color:var(--slate-500); font-weight:400; }
.contact-info-value.link { color:var(--q4-blue-700); }
.contact-info-value.link:hover { text-decoration:underline; }
@media (max-width:800px) { .contact-info-grid { grid-template-columns:1fr 1fr; } .contact-info-cell:nth-child(2) { border-right:0; } .contact-info-cell:nth-child(1),.contact-info-cell:nth-child(2) { border-bottom:1px solid var(--border); } }
@media (max-width:480px) { .contact-info-grid { grid-template-columns:1fr; } .contact-info-cell { border-right:0 !important; border-bottom:1px solid var(--border); } .contact-info-cell:last-child { border-bottom:0; } }

/* ===== Modal + Form ===== */
.modal-backdrop { position:fixed; inset:0; background:rgba(11,18,32,0.45); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); z-index:200; display:flex; align-items:center; justify-content:center; padding:32px 20px; animation:modalFadeIn .25s var(--ease-out); overflow-y:auto; }
@keyframes modalFadeIn { from { opacity:0; } to { opacity:1; } }
.modal-shell { width:100%; max-width:720px; background:white; border-radius:var(--r-2xl); box-shadow:0 40px 100px -20px rgba(11,18,32,0.45); border:1px solid var(--border); overflow:hidden; animation:modalRise .35s var(--ease-out); margin:auto; }
@keyframes modalRise { from { transform:translateY(20px) scale(0.98); opacity:0; } to { transform:none; opacity:1; } }
.modal-head { display:flex; justify-content:space-between; align-items:center; padding:22px 32px; border-bottom:1px solid var(--border); background:linear-gradient(180deg,white,var(--slate-50)); }
.modal-head-title { display:flex; align-items:baseline; gap:10px; }
.modal-head-num { font-family:var(--font-mono); font-size:12px; color:var(--slate-400); letter-spacing:0.08em; }
.modal-head-text { font-family:var(--font-display); font-weight:600; font-size:18px; letter-spacing:-0.015em; }
.modal-close { width:36px; height:36px; border-radius:50%; background:white; border:1px solid var(--border); display:inline-flex; align-items:center; justify-content:center; color:var(--slate-700); transition:background .2s,border-color .2s,color .2s; }
.modal-close:hover { background:var(--slate-100); border-color:var(--border-strong); color:var(--ink); }
.modal-body { padding:32px; display:grid; gap:16px; }
.modal-info { display:flex; gap:24px; padding:16px 20px; background:var(--slate-50); border-radius:var(--r-md); border:1px solid var(--border); font-size:13px; }
.modal-info-block { display:flex; flex-direction:column; gap:2px; }
.modal-info-label { font-family:var(--font-mono); font-size:10.5px; text-transform:uppercase; letter-spacing:0.1em; color:var(--slate-400); }
.modal-info-value { color:var(--ink); font-weight:500; }
.modal-info-value.link { color:var(--q4-blue-700); }
@media (max-width:600px) { .modal-backdrop { padding:16px; } .modal-head { padding:18px 22px; } .modal-body { padding:22px; } .modal-info { flex-direction:column; gap:12px; } }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px; }
.form-field { margin-bottom:16px; }
.form-label { display:block; font-size:12px; font-weight:500; color:var(--slate-700); margin-bottom:8px; letter-spacing:0.02em; }
.form-label .req { color:var(--q4-blue); margin-left:4px; }
.form-input { width:100%; padding:12px 14px; background:var(--slate-50); border:1px solid var(--border); border-radius:var(--r-md); font-family:var(--font-body); font-size:14.5px; color:var(--ink); transition:background .2s,border-color .2s,box-shadow .2s; outline:none; }
.form-input:focus { background:white; border-color:var(--q4-blue); box-shadow:0 0 0 3px rgba(74,144,226,0.15); }
.form-input.is-error { border-color:#EF4444; background:#FFF5F5; }
.form-input.is-error:focus { border-color:#EF4444; box-shadow:0 0 0 3px rgba(239,68,68,0.15); }
textarea.form-input { resize:vertical; min-height:100px; font-family:var(--font-body); }
.form-chips { display:flex; flex-wrap:wrap; gap:6px; }
.form-chip { padding:8px 14px; border-radius:999px; background:var(--slate-50); border:1px solid var(--border); font-size:13px; font-weight:500; color:var(--slate-700); transition:all .2s; }
.form-chip:hover { background:white; border-color:var(--border-strong); color:var(--ink); }
.form-chip.is-active { background:var(--ink); color:white; border-color:var(--ink); }
.form-check { display:flex; gap:12px; align-items:flex-start; padding:16px 0; font-size:13px; color:var(--slate-700); line-height:1.5; cursor:pointer; }
.form-check input { margin-top:2px; width:16px; height:16px; accent-color:var(--q4-blue); }
.form-submit { width:100%; justify-content:center; padding:15px 22px; margin-top:8px; }
.form-submit.is-disabled,.form-submit:disabled { opacity:0.5; cursor:not-allowed; pointer-events:none; }
.form-success { text-align:center; padding:32px 20px; }
.form-success-icon { width:56px; height:56px; border-radius:50%; background:var(--q4-teal-100); color:var(--q4-teal-600); display:inline-flex; align-items:center; justify-content:center; margin:0 auto 20px; }
.form-success-icon svg { width:28px; height:28px; }
.form-success h3 { margin-bottom:12px; }
.form-success p { margin-bottom:24px; }
.form-error-msg { padding:12px 16px; background:#FEF2F2; border:1px solid #FECACA; color:#991B1B; border-radius:var(--r-md); font-size:13px; }
.frc-captcha { width:100%; }
altcha-widget {
  --altcha-border-width: 1px;
  --altcha-border-radius: var(--r-md);
  --altcha-color-base: var(--slate-50);
  --altcha-color-border: var(--border);
  --altcha-color-text: var(--slate-700);
  --altcha-color-border-focus: var(--q4-blue);
  --altcha-color-error-text: #991B1B;
  --altcha-color-footer-bg: var(--slate-50);
  --altcha-max-width: 100%;
  font-family: var(--font-body);
  display: block;
}
@media (max-width:600px) { .form-row { grid-template-columns:1fr; } }

/* ===== Referenzen ===== */
.referenzen { padding:clamp(70px,8vw,110px) 0; background:linear-gradient(180deg,transparent,rgba(74,144,226,0.03),transparent); overflow:hidden; }
.referenzen-head { display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:end; margin-bottom:48px; padding:0 var(--gutter); max-width:var(--container); margin-left:auto; margin-right:auto; }
.referenzen-head-left { display:flex; flex-direction:column; gap:16px; }
.referenzen-title { font-size:clamp(28px,3.4vw,44px); letter-spacing:-0.02em; }
.referenzen-lead { font-size:16px; line-height:1.65; color:var(--slate-700); max-width:520px; }
@media (max-width:800px) { .referenzen-head { grid-template-columns:1fr; gap:24px; } }
.marquee { position:relative; width:100%; overflow:hidden; padding:12px 0; margin:8px 0; }
.marquee-fade { position:absolute; top:0; bottom:0; width:120px; z-index:2; pointer-events:none; }
.marquee-fade-l { left:0; background:linear-gradient(90deg,var(--paper) 10%,rgba(251,252,254,0)); }
.marquee-fade-r { right:0; background:linear-gradient(-90deg,var(--paper) 10%,rgba(251,252,254,0)); }
.marquee-track { display:flex; gap:16px; width:max-content; animation:marqueeScroll 60s linear infinite; will-change:transform; }
.marquee:hover .marquee-track { animation-play-state:paused; }
@keyframes marqueeScroll { from { transform:translateX(0); } to { transform:translateX(-50%); } }
.ref-card { flex:0 0 auto; display:flex; align-items:center; gap:18px; background:white; border:1px solid var(--border); border-radius:var(--r-lg); padding:18px 24px; min-width:320px; box-shadow:var(--shadow-xs); transition:transform .35s var(--ease-out),box-shadow .35s,border-color .25s; }
.ref-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-md); border-color:var(--border-strong); }
.ref-card-name { font-family:var(--font-display); font-weight:600; font-size:15px; color:var(--ink); letter-spacing:-0.01em; }
.ref-card-desc { font-size:12.5px; color:var(--slate-500); margin-top:2px; line-height:1.4; }
.ref-logo { display:flex; align-items:center; gap:10px; }
.ref-logo-mono { width:32px; height:32px; border-radius:8px; display:inline-flex; align-items:center; justify-content:center; color:white; font-family:var(--font-display); font-weight:700; font-size:16px; letter-spacing:-0.02em; }
.ref-logo-text { font-family:var(--font-display); font-weight:600; font-size:15px; letter-spacing:-0.015em; }
.referenzen-foot { margin-top:32px; padding:0 var(--gutter); max-width:var(--container); margin-left:auto; margin-right:auto; }
.referenzen-foot-line { display:flex; justify-content:center; align-items:center; gap:12px; font-size:12px; color:var(--slate-500); letter-spacing:0.04em; flex-wrap:wrap; text-align:center; }
.dotsep { color:var(--slate-300); }

/* ===== Voice CTA ===== */
.voice-cta { position:relative; padding:clamp(40px,5vw,64px) 0; }
.voice-cta-card { background:linear-gradient(135deg,#FBFCFE 0%,#F1F7FF 100%); border:1px solid var(--q4-blue-100); border-radius:var(--r-2xl); padding:clamp(32px,4vw,48px); display:grid; grid-template-columns:auto 1fr auto; gap:32px; align-items:center; position:relative; overflow:hidden; }
.voice-cta-card::before { content:''; position:absolute; top:-100px; right:-100px; width:320px; height:320px; background:radial-gradient(circle,rgba(74,144,226,0.18),transparent 70%); filter:blur(40px); pointer-events:none; }
.voice-orb { position:relative; width:96px; height:96px; border-radius:50%; background:linear-gradient(135deg,var(--q4-blue),var(--q4-teal)); display:flex; align-items:center; justify-content:center; box-shadow:0 20px 50px -10px rgba(74,144,226,0.55); flex-shrink:0; }
.voice-orb::before,.voice-orb::after { content:''; position:absolute; inset:-2px; border-radius:50%; border:1px solid rgba(74,144,226,0.4); animation:voicePulse 2.4s ease-out infinite; }
.voice-orb::after { animation-delay:1.2s; }
@keyframes voicePulse { 0% { transform:scale(1); opacity:0.7; } 100% { transform:scale(1.6); opacity:0; } }
.voice-orb-bars { display:flex; align-items:center; gap:3px; }
.voice-orb-bars span { width:3px; background:white; border-radius:2px; animation:voiceBars 1.4s ease-in-out infinite; }
.voice-orb-bars span:nth-child(1) { height:12px; animation-delay:0s; }
.voice-orb-bars span:nth-child(2) { height:22px; animation-delay:.15s; }
.voice-orb-bars span:nth-child(3) { height:30px; animation-delay:.3s; }
.voice-orb-bars span:nth-child(4) { height:22px; animation-delay:.45s; }
.voice-orb-bars span:nth-child(5) { height:12px; animation-delay:.6s; }
@keyframes voiceBars { 0%,100% { transform:scaleY(0.5); } 50% { transform:scaleY(1); } }
.voice-cta-text { position:relative; z-index:1; min-width:0; }
.voice-cta-eyebrow { font-family:var(--font-mono); font-size:11px; font-weight:500; letter-spacing:0.12em; text-transform:uppercase; color:var(--q4-blue-700); margin-bottom:10px; }
.voice-cta-title { font-family:var(--font-display); font-size:clamp(20px,2vw,26px); font-weight:600; letter-spacing:-0.018em; color:var(--ink); line-height:1.25; margin-bottom:8px; }
.voice-cta-title .voice-name { background:linear-gradient(95deg,var(--q4-blue),var(--q4-teal)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.voice-cta-sub { font-size:14.5px; color:var(--slate-700); line-height:1.55; max-width:580px; }
.voice-cta-actions { display:flex; flex-direction:column; gap:8px; align-items:flex-end; position:relative; z-index:1; }
.voice-cta-actions .btn { white-space:nowrap; }
.voice-cta-hint { font-family:var(--font-mono); font-size:11px; color:var(--slate-500); letter-spacing:0.04em; }
@media (max-width:800px) { .voice-cta-card { grid-template-columns:auto 1fr; grid-template-areas:"orb text" "actions actions"; gap:20px; } .voice-orb { grid-area:orb; width:72px; height:72px; } .voice-cta-text { grid-area:text; } .voice-cta-actions { grid-area:actions; align-items:stretch; flex-direction:row; } .voice-cta-hint { display:none; } }

/* ===== Footer XL ===== */
.footer-xl { margin-top:60px; background:linear-gradient(180deg,white,#F4F8FC); border-top:1px solid var(--border); padding:0 0 24px; }
.trust-band { display:grid; grid-template-columns:repeat(4,1fr); gap:0; border:1px solid var(--border); border-radius:var(--r-xl); background:white; overflow:hidden; box-shadow:var(--shadow-sm); margin-top:-56px; margin-bottom:56px; position:relative; z-index:2; }
.trust-badge { display:flex; align-items:center; gap:14px; padding:22px 24px; border-right:1px solid var(--border); }
.trust-badge:last-child { border-right:0; }
.trust-badge-icon { width:44px; height:44px; border-radius:12px; background:linear-gradient(135deg,var(--q4-blue-50),white); border:1px solid var(--q4-blue-100); color:var(--q4-blue); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.trust-badge-icon svg { width:22px; height:22px; }
.trust-badge-mark { width:56px; height:56px; flex-shrink:0; filter: drop-shadow(0 6px 14px rgba(30,93,176,0.18)); transition: transform .35s var(--ease-out); }
.trust-badge-mark svg { width:100%; height:100%; }
.trust-badge:hover .trust-badge-mark { transform: scale(1.06) rotate(-2deg); }
.trust-badge-title { font-family:var(--font-display); font-weight:600; font-size:14px; color:var(--ink); letter-spacing:-0.01em; }
.trust-badge-sub { font-size:12px; color:var(--slate-500); margin-top:2px; line-height:1.4; }
@media (max-width:980px) { .trust-band { grid-template-columns:1fr 1fr; } .trust-badge:nth-child(2) { border-right:0; } .trust-badge:nth-child(1),.trust-badge:nth-child(2) { border-bottom:1px solid var(--border); } }
@media (max-width:560px) { .trust-band { grid-template-columns:1fr; margin-top:-32px; } .trust-badge { border-right:0 !important; border-bottom:1px solid var(--border); } .trust-badge:last-child { border-bottom:0; } }
.footer-main { display:grid; grid-template-columns:1.5fr 1fr; gap:56px; padding:16px 0 48px; align-items:start; }
.footer-col { display:flex; flex-direction:column; gap:10px; }
.footer-col a,.footer-col .link-strong { font-size:14px; color:var(--slate-700); transition:color .2s; }
.footer-col a:hover { color:var(--ink); }
.footer-col .link-strong { color:var(--ink); font-weight:500; }
.footer-col .muted { color:var(--slate-500); }
.footer-col-title { font-size:11px; text-transform:uppercase; letter-spacing:0.12em; color:var(--slate-400); margin-bottom:8px; }
.footer-col-brand .footer-brand { display:flex; align-items:center; gap:12px; margin-bottom:4px; }
.footer-col-brand .footer-logo { width:40px; height:40px; }
.footer-brand-name { font-family:var(--font-display); font-weight:600; font-size:16px; letter-spacing:-0.01em; }
.footer-brand-sub { font-size:11px; color:var(--slate-500); letter-spacing:0.04em; margin-top:2px; }
.footer-blurb { font-size:13.5px; color:var(--slate-700); line-height:1.6; max-width:380px; margin:8px 0 16px; }
.footer-seals { display:flex; gap:10px; flex-wrap:wrap; margin-top:8px; }
.seal { position:relative; width:64px; height:64px; border-radius:50%; background:white; border:1px solid var(--border); display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-xs); }
.seal-ring { position:absolute; inset:4px; border-radius:50%; border:1px dashed var(--q4-blue); opacity:0.5; }
.seal-inner { text-align:center; z-index:1; }
.seal-label { font-family:var(--font-display); font-weight:700; font-size:11px; color:var(--q4-blue-700); letter-spacing:-0.01em; line-height:1; }
.seal-sub { font-family:var(--font-mono); font-size:8.5px; color:var(--slate-500); text-transform:uppercase; letter-spacing:0.08em; margin-top:3px; }
.footer-address { font-size:13px; color:var(--slate-700); line-height:1.6; margin-top:8px; }
.footer-cta { margin-top:12px; align-self:flex-start; padding:10px 18px; font-size:13px; }
@media (max-width:600px) { .footer-main { grid-template-columns:1fr; gap:32px; } }
.footer-legal { display:grid; grid-template-columns:1fr 1fr; gap:48px; padding:32px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.legal-title { font-size:11px; text-transform:uppercase; letter-spacing:0.1em; color:var(--slate-400); margin-bottom:10px; }
.legal-text { font-size:12.5px; color:var(--slate-500); line-height:1.7; }
.legal-text a { color:var(--q4-blue-700); }
.legal-text a:hover { text-decoration:underline; }
.legal-text strong { color:var(--ink); font-weight:600; }
@media (max-width:800px) { .footer-legal { grid-template-columns:1fr; gap:24px; } }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; padding:20px 0 0; gap:16px; flex-wrap:wrap; }
.footer-bottom-meta { font-size:11px; color:var(--slate-400); letter-spacing:0.02em; }
.footer-bottom-links { display:flex; gap:18px; flex-wrap:wrap; align-items:center; }
.footer-bottom-links a,.footer-bottom-link-btn { font-size:12px; color:var(--slate-500); transition:color .2s; background:transparent; border:0; cursor:pointer; padding:0; font-family:inherit; }
.footer-bottom-links a:hover,.footer-bottom-link-btn:hover { color:var(--ink); }

/* ===== Floating Privacy & Accessibility Widget ===== */
.q4-fab {
  position: fixed; bottom: 20px; left: 20px; z-index: 240;
  width: 52px; height: 52px; border-radius: 50%;
  background: white; border: 1px solid var(--border-strong);
  color: var(--q4-blue);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease-out), box-shadow .25s, background .25s, color .25s;
}
.q4-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: var(--shadow-lg); background: var(--q4-blue-50); }
.q4-fab:focus-visible { outline-offset: 4px; }
.q4-fab-icon { width: 26px; height: 26px; }

.q4-fab-panel {
  position: fixed; bottom: 84px; left: 20px; z-index: 245;
  width: min(360px, calc(100vw - 40px));
  background: white; border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: 0 24px 60px -16px rgba(11,18,32,0.35);
  padding: 0; overflow: hidden;
  animation: fabRise .25s var(--ease-out);
}
@keyframes fabRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.q4-fab-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, white, var(--slate-50));
}
.q4-fab-title { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: -0.01em; color: var(--ink); }
.q4-fab-close { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--slate-700); }
.q4-fab-close:hover { background: var(--slate-100); color: var(--ink); }

.q4-fab-section { padding: 16px 18px; }
.q4-fab-section-title { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-500); margin: 0 0 12px; }
.q4-fab-text { font-size: 13px; line-height: 1.55; color: var(--slate-700); margin: 0 0 10px; }
.q4-fab-link { display: inline-block; font-size: 13px; font-weight: 500; color: var(--q4-blue-700); }
.q4-fab-link:hover { text-decoration: underline; }

.q4-fab-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.q4-fab-row-label { font-size: 13.5px; color: var(--ink); font-weight: 500; }

.q4-fab-size-group { display: inline-flex; gap: 4px; padding: 3px; background: var(--slate-100); border-radius: 999px; }
.q4-fab-size-btn { padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--slate-700); transition: background .2s, color .2s; }
.q4-fab-size-btn:hover { color: var(--ink); }
.q4-fab-size-btn.is-active { background: var(--ink); color: white; }

.q4-fab-toggle-row { cursor: pointer; position: relative; }
.q4-fab-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.q4-fab-toggle { width: 36px; height: 20px; border-radius: 999px; background: var(--slate-200); position: relative; transition: background .25s; flex-shrink: 0; }
.q4-fab-toggle-knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: white; border-radius: 50%; transition: transform .25s var(--ease-out); box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.q4-fab-toggle-input:checked + .q4-fab-toggle { background: var(--q4-blue); }
.q4-fab-toggle-input:checked + .q4-fab-toggle .q4-fab-toggle-knob { transform: translateX(16px); }
.q4-fab-toggle-input:focus-visible + .q4-fab-toggle { outline: 2px solid var(--q4-blue); outline-offset: 2px; }

.q4-fab-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.q4-fab-reset { padding: 6px 12px; font-size: 12px; }
.q4-fab-sep { border: 0; border-top: 1px solid var(--border); margin: 0; }

@media (max-width: 480px) {
  .q4-fab { bottom: 16px; left: 16px; width: 48px; height: 48px; }
  .q4-fab-panel { bottom: 76px; left: 16px; right: 16px; width: auto; }
}

/* ===== Accessibility-Klassen, durch Widget gesetzt ===== */
html.q4-text-l { font-size: 18px; }
html.q4-text-s { font-size: 14px; }
html.q4-reduce-motion *, html.q4-reduce-motion *::before, html.q4-reduce-motion *::after {
  animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important; scroll-behavior: auto !important;
}
html.q4-reduce-motion .reveal, html.q4-reduce-motion .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
html.q4-reduce-motion .hero-scene { display: none; }
html.q4-high-contrast {
  --slate-700: #000;
  --slate-500: #1f2937;
  --slate-400: #4b5563;
  --border: #000;
  --border-strong: #000;
  --paper: #fff;
  --bg: #fff;
  --q4-blue-700: #00367a;
  --q4-blue: #1f4ea3;
}
html.q4-high-contrast body { background: #fff; }
html.q4-high-contrast a { text-decoration: underline; }
html.q4-high-contrast .btn-accent { background: #00367a; }
html.q4-high-contrast .pivot-card { background: #000; }

/* ===== Cookie Banner (legacy classes — nicht mehr verwendet) ===== */
.cookie-banner { position:fixed; bottom:20px; left:20px; right:20px; z-index:250; background:white; border:1px solid var(--border-strong); border-radius:var(--r-xl); box-shadow:0 30px 80px -20px rgba(11,18,32,0.35); animation:cookieRise .35s var(--ease-out); max-width:980px; margin:0 auto; }
@keyframes cookieRise { from { transform:translateY(40px); opacity:0; } to { transform:none; opacity:1; } }
.cookie-banner-inner { display:grid; grid-template-columns:auto 1fr auto; gap:22px; padding:22px 26px; align-items:center; }
.cookie-banner-icon { width:48px; height:48px; border-radius:12px; background:linear-gradient(135deg,var(--q4-blue-50),white); border:1px solid var(--q4-blue-100); color:var(--q4-blue); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.cookie-banner-icon svg { width:26px; height:26px; }
.cookie-banner-title { font-family:var(--font-display); font-weight:600; font-size:15px; color:var(--ink); margin-bottom:4px; letter-spacing:-0.01em; }
.cookie-banner-text p { font-size:13px; color:var(--slate-700); line-height:1.55; max-width:560px; margin:0; }
.cookie-banner-text a { color:var(--q4-blue-700); text-decoration:underline; }
.cookie-banner-actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.cookie-banner-actions .btn { padding:11px 18px; font-size:13px; }
.cookie-link { color:var(--slate-500); font-size:13px; font-weight:500; }
.cookie-link:hover { color:var(--ink); }
.cookie-prefs { margin-top:16px; display:flex; flex-direction:column; gap:4px; border-top:1px solid var(--border); padding-top:16px; }
.cookie-row { display:flex; align-items:center; gap:16px; padding:10px 0; cursor:pointer; position:relative; }
.cookie-row.is-disabled { cursor:not-allowed; opacity:0.85; }
.cookie-row-text { flex:1; min-width:0; }
.cookie-row-label { font-size:13.5px; font-weight:500; color:var(--ink); display:flex; align-items:center; gap:8px; }
.cookie-required { font-size:9.5px; color:var(--slate-400); text-transform:uppercase; letter-spacing:0.08em; padding:2px 6px; background:var(--slate-100); border-radius:4px; }
.cookie-row-desc { font-size:12px; color:var(--slate-500); margin-top:2px; line-height:1.45; }
.cookie-toggle { flex-shrink:0; width:36px; height:20px; border-radius:999px; background:var(--slate-200); position:relative; transition:background .25s; }
.cookie-toggle.is-on { background:var(--q4-blue); }
.cookie-toggle-knob { position:absolute; top:2px; left:2px; width:16px; height:16px; background:white; border-radius:50%; transition:transform .25s var(--ease-out); box-shadow:0 1px 3px rgba(0,0,0,0.2); }
.cookie-toggle.is-on .cookie-toggle-knob { transform:translateX(16px); }
@media (max-width:800px) { .cookie-banner { left:12px; right:12px; bottom:12px; } .cookie-banner-inner { grid-template-columns:auto 1fr; grid-template-areas:"icon text" "actions actions"; gap:16px; padding:18px; } .cookie-banner-icon { grid-area:icon; } .cookie-banner-text { grid-area:text; } .cookie-banner-actions { grid-area:actions; justify-content:flex-end; } }

/* ===== Legal pages (Impressum / Datenschutz / Barrierefreiheit) ===== */
.legal-page { padding-top:160px; padding-bottom:80px; }
.legal-page .container { max-width:880px; }
.legal-page h1 { font-size:clamp(36px,5vw,56px); margin-bottom:32px; }
.legal-page h2 { font-size:clamp(22px,2.4vw,30px); margin-top:48px; margin-bottom:16px; }
.legal-page h3 { font-size:18px; margin-top:28px; margin-bottom:8px; }
.legal-page p, .legal-page li { color:var(--slate-700); line-height:1.7; margin-bottom:14px; font-size:15.5px; }
.legal-page ul { padding-left:1.4em; }
.legal-page a { color:var(--q4-blue-700); text-decoration:underline; }
.legal-page strong { color:var(--ink); }
.legal-meta { font-size:13px; color:var(--slate-500); margin-top:48px; padding-top:20px; border-top:1px solid var(--border); }
