/* =========================================================
   META AGENTUR — style.css
   Dark Agency Theme | Mobile First
   ========================================================= */

/* --- FONTS --- */
@font-face {
  font-family: 'Sora';
  src: url('../fonts/sora-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sora';
  src: url('../fonts/sora-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --- TOKENS --- */
:root {
  --color-bg:        #0a0f1e;
  --color-surface:   #111827;
  --color-primary:   #1877f2;
  --color-accent:    #6366f1;
  --color-text:      #f1f5f9;
  --color-muted:     #94a3b8;
  --color-border:    rgba(255,255,255,0.08);
  --radius:          12px;
  --radius-lg:       20px;
  --space-sm:        0.5rem;
  --space-md:        1rem;
  --space-lg:        2rem;
  --space-xl:        4rem;
  --font-heading:    'Sora', system-ui, sans-serif;
  --font-body:       'DM Sans', system-ui, sans-serif;
  --transition:      all 0.25s ease-out;
  --header-h:        72px;
  --shadow-glow:     0 0 40px rgba(24,119,242,0.15);
  --shadow-card:     0 4px 24px rgba(0,0,0,0.4);
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

/* Subtle noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

section { scroll-margin-top: var(--header-h); }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p  { color: var(--color-muted); line-height: 1.75; }

.text-primary { color: var(--color-primary); }
.text-accent  { color: var(--color-accent); }
.text-muted   { color: var(--color-muted); }

/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

@media (min-width: 640px)  { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

.section {
  padding-block: var(--space-xl);
  position: relative;
  z-index: 1;
}
.section--alt { background-color: var(--color-surface); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(24,119,242,0.1);
  border: 1px solid rgba(24,119,242,0.25);
  border-radius: 100px;
  padding: 0.25rem 0.85rem;
  margin-bottom: var(--space-sm);
}

.section-header {
  margin-bottom: var(--space-lg);
}
.section-header h2 {
  margin-bottom: 0.4rem;
}
.section-header p {
  max-width: 600px;
}
.section-header--center {
  text-align: center;
}
.section-header--center p {
  margin-inline: auto;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(24,119,242,0.35);
}
.btn--primary:hover {
  background: #1a6de0;
  box-shadow: 0 6px 28px rgba(24,119,242,0.5);
  transform: translateY(-2px);
}
.btn--primary:active { transform: translateY(0); }

/* Fix 6 — contact form submit: dampened glow + centered text */
#contact-form button[type="submit"] {
  box-shadow: 0 4px 14px rgba(24,119,242,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}
#contact-form button[type="submit"]:hover {
  box-shadow: 0 6px 20px rgba(24,119,242,0.30);
  transform: translateY(-1px);
}
#contact-form button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(24,119,242,0.15);
}

.btn--secondary {
  background: rgba(255,255,255,0.07);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn--secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn--outline:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

.btn--ghost {
  color: var(--color-primary);
  padding: 0.75rem 0;
}
.btn--ghost:hover { opacity: 0.8; }

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* --- HEADER --- */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
#site-header.scrolled {
  background: rgba(10,15,30,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-md);
  gap: var(--space-md);
}

@media (min-width: 640px)  { .header-inner { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .header-inner { padding-inline: 2rem; } }

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-text);
  flex-shrink: 0;
  text-decoration: none;
}
.header-logo img { width: 140px; height: auto; }
.header-logo span { display: none; }

@media (min-width: 1024px) {
  .header-logo img { width: 160px; }
}

.header-nav {
  display: none;
}
.header-nav ul {
  display: flex;
  gap: 0.25rem;
}
.header-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  border-radius: var(--radius);
  transition: var(--transition);
}
.header-nav a:hover {
  color: var(--color-text);
  background: rgba(255,255,255,0.06);
}
.header-nav a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.header-cta { display: none; }

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius);
  transition: var(--transition);
  z-index: 1100;
  position: relative;
}
.hamburger:hover { background: rgba(255,255,255,0.06); }
.hamburger:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10,15,30,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
}
.mobile-menu nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.mobile-menu nav a {
  display: block;
  padding: 0.75rem 2rem;
  font-size: 1.3rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
  border-radius: var(--radius);
  transition: var(--transition);
  text-align: center;
}
.mobile-menu nav a:hover { color: var(--color-primary); }
.mobile-menu nav a:focus-visible { outline: 2px solid var(--color-primary); }

@media (min-width: 1024px) {
  .hamburger { display: none; }
  .mobile-menu { display: none !important; }
  .header-nav { display: flex; margin-left: auto; }
  .header-cta { display: flex; }
}

/* --- HERO --- */
#hero {
  height: 100svh;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

.hero-inner-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding-top: var(--header-h);
  padding-bottom: var(--space-xl);
  width: 100%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(99,102,241,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(24,119,242,0.1) 0%, transparent 60%);
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
}

.hero-inner {
  display: grid;
  gap: var(--space-xl);
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.hero-content { max-width: 560px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(24,119,242,0.1);
  border: 1px solid rgba(24,119,242,0.3);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

#hero h1 {
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--color-text) 0%, rgba(241,245,249,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--color-muted);
  margin-bottom: var(--space-lg);
  max-width: 480px;
}

.hero-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: var(--space-lg);
}
.hero-bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text);
}
.hero-bullet-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.platform-badges {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
}
.platform-badge svg { width: 16px; height: 16px; }

/* Hero SVG Dashboard */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-svg-wrap {
  width: 100%;
  max-width: 500px;
  position: relative;
}
.hero-svg-wrap::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse, rgba(99,102,241,0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Dashboard SVG animations */
.bar-anim { animation: barGrow 2s ease-out forwards; }
.bar-anim-2 { animation: barGrow 2s 0.2s ease-out forwards; }
.bar-anim-3 { animation: barGrow 2s 0.4s ease-out forwards; }
.bar-anim-4 { animation: barGrow 2s 0.6s ease-out forwards; }
.line-anim { animation: lineDraw 2s 0.5s ease-out forwards; }
.dot-pulse { animation: dotPulse 2s ease-in-out infinite; }
.dot-pulse-2 { animation: dotPulse 2s 0.5s ease-in-out infinite; }
.dot-pulse-3 { animation: dotPulse 2s 1s ease-in-out infinite; }
.counter-anim { animation: fadeUp 0.8s 1s both; }

@keyframes barGrow {
  from { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
  to   { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
}
@keyframes lineDraw {
  from { stroke-dashoffset: 300; opacity: 0; }
  to   { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes dotPulse {
  0%, 100% { r: 4; opacity: 1; }
  50% { r: 7; opacity: 0.6; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- SCROLL REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- CARDS --- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: var(--transition);
}
.card:hover {
  border-color: rgba(99,102,241,0.25);
  box-shadow: var(--shadow-card), 0 0 30px rgba(99,102,241,0.08);
  transform: translateY(-4px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(24,119,242,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}
.card-icon svg { width: 24px; height: 24px; }

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.card p { font-size: 0.9rem; }

.grid-3 {
  display: grid;
  gap: var(--space-md);
}
.grid-2 {
  display: grid;
  gap: var(--space-lg);
}
.grid-4 {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 640px)  { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px)  { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* --- PROBLEM & VORTEILE GRIDS (Fix 2 & 3) --- */
.problem__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .problem__grid { grid-template-columns: 3fr 2fr; }
}

.problem__image img,
.vorteile__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 1px solid var(--color-border);
}

.vorteile__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .vorteile__grid { grid-template-columns: 2fr 3fr; }
}

/* --- PROBLEM SECTION --- */
#problem .section-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
#problem .section-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.disadvantage-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.disadvantage-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  transition: var(--transition);
}
.disadvantage-item:hover {
  border-color: rgba(24,119,242,0.25);
}
.disadvantage-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: rgba(24,119,242,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}
.disadvantage-icon svg { width: 20px; height: 20px; }
.disadvantage-item h4 { margin-bottom: 0.25rem; font-size: 0.95rem; }
.disadvantage-item p { font-size: 0.85rem; }

/* --- SOLUTION SECTION --- */
#loesung .cta-wrap {
  text-align: center;
  margin-top: var(--space-xl);
}

/* --- VORTEILE --- */
.vorteile-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: var(--space-md);
}
.vorteil-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.check-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #22c55e;
  margin-top: 2px;
}

/* --- BESONDERHEITEN --- */
.feature-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.feature-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border-left: 3px solid var(--color-primary);
  transition: var(--transition);
}
.feature-item:hover {
  box-shadow: var(--shadow-card);
  transform: translateX(4px);
}
.feature-item h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--space-sm);
}
.feature-item h3 span.icon {
  font-size: 1.3rem;
}

/* --- PROZESS --- */
.prozess-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  position: relative;
}
@media (min-width: 1024px) {
  .prozess-steps {
    flex-direction: row;
    align-items: flex-start;
  }
  .prozess-steps::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    z-index: 0;
  }
}
.prozess-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}
.prozess-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  margin: 0 auto var(--space-md);
  box-shadow: 0 0 0 6px rgba(24,119,242,0.12), var(--shadow-glow);
}
.prozess-step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}
.prozess-step p { font-size: 0.85rem; }
.prozess-cta { text-align: center; }

/* --- KUNDEN LOGO GRID (Fix 4) --- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  gap: 1px;
  background: var(--color-border);
  margin-top: var(--space-lg);
}
@media (min-width: 640px)  { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .logo-grid { grid-template-columns: repeat(5, 1fr); } }

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: var(--color-surface);
  transition: background 0.2s ease;
  min-height: 100px;
}
.logo-item:hover {
  background: rgba(255,255,255,0.05);
}
.logo-item img {
  max-height: 50px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.logo-item:hover img { opacity: 1; }
.logo-more {
  text-align: center;
  margin-top: var(--space-md);
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* --- TESTIMONIALS --- */
.testimonial-grid {
  display: grid;
  gap: var(--space-md);
}
@media (min-width: 768px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  transition: var(--transition);
}
.testimonial-card:hover {
  border-color: rgba(99,102,241,0.25);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}
.testimonial-quote {
  font-size: 2.5rem;
  line-height: 1;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}
.testimonial-text {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  font-style: italic;
}
.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--space-md);
}
.star { color: #f59e0b; font-size: 0.9rem; }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 16px rgba(24,119,242,0.3);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-info h4 { font-size: 0.9rem; margin-bottom: 0.1rem; }
.author-info span { font-size: 0.78rem; color: var(--color-muted); }

/* --- CONTACT SECTION --- */
#kontakt .contact-grid {
  display: grid;
  gap: var(--space-xl);
}
@media (min-width: 1024px) {
  #kontakt .contact-grid { grid-template-columns: 1.2fr 1fr; }
}

.contact-form-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.form-group {
  margin-bottom: var(--space-md);
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}
.form-group label span[aria-hidden] {
  color: #ef4444;
  margin-left: 2px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--color-muted); opacity: 0.6; }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
}
.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  background: rgba(24,119,242,0.05);
  box-shadow: 0 0 0 3px rgba(24,119,242,0.12);
}
.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}
.form-error {
  font-size: 0.78rem;
  color: #ef4444;
  margin-top: 0.3rem;
  display: none;
}
.form-error.visible { display: block; }
.form-group textarea { resize: vertical; min-height: 120px; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  cursor: pointer;
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.checkbox-label a { color: var(--color-primary); text-decoration: underline; }

.form__field--checkbox {
  margin-bottom: 1.25rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-lg);
}
.form-success.visible { display: block; }
.form-success-icon {
  width: 64px;
  height: 64px;
  background: rgba(34,197,94,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: #22c55e;
}
.form-success h3 { margin-bottom: 0.5rem; }

.contact-side { display: flex; flex-direction: column; gap: var(--space-md); }

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-decoration: none;
  color: var(--color-text);
  transition: var(--transition);
}
.contact-card:hover {
  border-color: rgba(24,119,242,0.3);
  transform: translateX(4px);
}
.contact-card:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card-icon svg { width: 24px; height: 24px; }
.contact-card-icon--wa { background: rgba(37,211,102,0.1); color: #25d366; }
.contact-card-icon--fb { background: rgba(24,119,242,0.1); color: var(--color-primary); }
.contact-card-icon--tel { background: rgba(99,102,241,0.1); color: var(--color-accent); }
.contact-card h4 { font-size: 0.9rem; margin-bottom: 0.2rem; }
.contact-card p { font-size: 0.8rem; color: var(--color-muted); }

.contact-person {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}
.contact-person img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--color-primary);
}
.contact-person h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.contact-person a { color: var(--color-muted); font-size: 0.85rem; display: block; }
.contact-person a:hover { color: var(--color-primary); }

.calendly-banner {
  background: linear-gradient(135deg, rgba(24,119,242,0.15) 0%, rgba(99,102,241,0.15) 100%);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  margin-top: var(--space-xl);
}
.calendly-banner h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.3rem;
}
.calendly-banner p {
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
}

/* --- FOOTER --- */
#site-footer {
  background: #070c1a;
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-xl) var(--space-lg);
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-brand p {
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-muted);
  max-width: 280px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-text);
  text-decoration: none;
  margin-bottom: var(--space-sm);
}
.footer-logo img { width: 130px; height: auto; }

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-md);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a {
  font-size: 0.875rem;
  color: var(--color-muted);
  transition: var(--transition);
}
.footer-col a:hover { color: var(--color-text); }
.footer-col a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-bottom p, .footer-bottom a {
  font-size: 0.8rem;
  color: var(--color-muted);
}
.footer-bottom a:hover { color: var(--color-text); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }

/* --- TO-TOP BUTTON --- */
#to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(24,119,242,0.4);
  cursor: pointer;
  border: none;
}
#to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
#to-top:hover { background: #1a6de0; transform: translateY(-2px); }
#to-top:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; }
#to-top svg { width: 20px; height: 20px; }

/* --- DIVIDER / SEPARATOR --- */
.gradient-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.3;
  margin-block: 0;
}

/* --- 404 PAGE --- */
.page-error {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}
.page-error .error-code {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-md);
}

/* --- LEGAL PAGES --- */
.legal-content {
  padding-top: calc(var(--header-h) + var(--space-xl));
  padding-bottom: var(--space-xl);
}
.legal-content .container {
  max-width: 800px;
}
.legal-content h1 { margin-bottom: var(--space-lg); }
.legal-content h2 { margin-top: var(--space-lg); margin-bottom: var(--space-sm); font-size: 1.3rem; }
.legal-content h3 { margin-top: var(--space-md); margin-bottom: 0.4rem; font-size: 1.1rem; }
.legal-content p { margin-bottom: var(--space-sm); }
.legal-content a { color: var(--color-primary); text-decoration: underline; }
.legal-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: var(--space-sm); }
.legal-content ul li { color: var(--color-muted); margin-bottom: 0.25rem; }

/* --- SKIP LINK (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 500;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

/* --- REDUCED MOTION --- */
@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;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Footer Layout (Aufgabe 5) ── */
#site-footer .container {
  max-width: 1200px !important;
  margin-inline: auto !important;
  padding-inline: 3rem !important;
  width: 100%;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
  width: 100%;
}
@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    justify-content: space-between;
    gap: 4rem;
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer__logo-link { display: inline-block; }

.footer__tagline {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 28ch;
}
.footer__copy {
  font-size: 0.78rem;
  color: var(--color-muted);
  opacity: 0.6;
  margin-top: auto;
}

.footer__right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  justify-items: start;
  justify-self: end;
}
@media (max-width: 480px) {
  .footer__right { grid-template-columns: 1fr; }
}

.footer__col-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer__list a {
  font-size: 0.875rem;
  color: var(--color-muted);
  text-decoration: none;
  line-height: 1.6;
  transition: color 0.2s ease;
  display: inline-block;
}
.footer__list a:hover { color: var(--color-text); }
.footer__list a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.footer__cookie-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--color-muted);
  text-align: left;
  transition: color 0.2s;
}
.footer__cookie-btn:hover { color: var(--color-text); }
.footer__cookie-btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* ── Fix 8: Mobile Fixes ── */
html, body { overflow-x: hidden; }

@media (max-width: 767px) {
  section { padding: 3rem 0; }

  .problem__grid,
  .vorteile__grid {
    grid-template-columns: 1fr !important;
  }

  .vorteile__image { order: -1; }

  a, button { min-height: 44px; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    text-align: center;
    justify-content: center;
  }
}

/* ── TASK 1: Testimonials ── */
.testimonials__grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}
@media (min-width: 768px) { .testimonials__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonials__grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: var(--transition);
}
.testimonial__card:hover {
  border-color: rgba(99,102,241,0.25);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}
.testimonial__body { flex: 1; }
.testimonial__stars {
  color: #f59e0b;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}
.testimonial__text {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.7;
  font-style: italic;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}
.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.testimonial__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  margin: 0;
}
.testimonial__role {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin: 0;
}

/* ── TASK 2: Contact Person ── */
.contact__person {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}
.contact__person-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.contact__person-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  margin: 0;
}
.contact__person-info a {
  font-size: 0.875rem;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
}
.contact__person-info a:hover { color: var(--color-text); }
.contact__person-link {
  font-size: 0.875rem;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
}
.contact__person-link:hover { color: var(--color-text); }

/* ── TASK 5: SVG Icons in feature-item ── */
.icon svg {
  display: block;
  color: var(--color-primary);
  width: 28px;
  height: 28px;
}

/* ── TASK 7: Hero CTAs ── */
.hero__ctas {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
@media (max-width: 640px) {
  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__ctas .btn {
    text-align: center;
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 1023px) {
  .hero-badge { display: none !important; }
  .hero-content {
    text-align: center;
    max-width: 100%;
    padding-top: 3rem;
  }
  .hero-bullets { align-items: center; }
  .hero-bullet { justify-content: center; }
  .hero__ctas { justify-content: center; }
  .hero-sub { margin-inline: auto; }
}

/* ── TASK 8: Social Icons ── */
.header__social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
  min-height: auto;
}
.social-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.social-icon:hover {
  color: var(--color-text);
  background: rgba(255,255,255,0.08);
}
.social-icon:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
@media (max-width: 767px) {
  .header__social { display: none; }
}
@media (min-width: 1024px) {
  .header__social { display: flex; }
}

/* ── TASK 9: Hero Headline ── */
.hero__headline {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  margin-top: 2rem;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  position: relative;
  z-index: 1;
}
.hero__headline-line {
  display: block;
}

/* ── TASK 10: Mobile — Calendly Banner + Footer ── */
@media (max-width: 767px) {
  .calendly-banner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.25rem;
  }
  .calendly-banner .btn {
    width: 100%;
    max-width: 360px;
    text-align: center;
    justify-content: center;
    display: flex;
  }

  .footer__inner {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    padding: 2rem 1.25rem !important;
    text-align: left !important;
  }
  .footer__right {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
    justify-self: start !important;
  }
  .footer__brand { width: 100%; }
  .footer__list { gap: 0.4rem !important; }
  .footer__list a {
    font-size: 0.875rem !important;
    padding: 0.1rem 0;
    min-height: unset;
    display: inline;
  }
  footer { overflow-x: hidden; }
}

/* ── COOKIE BANNER ── */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
}
.cookie-banner.is-visible { display: block; }

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
  margin: 0 0 0.25rem;
}

.cookie-banner__text {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.6;
  flex: 1;
  min-width: 200px;
  margin: 0;
}

.cookie-banner__link {
  color: var(--color-primary);
  text-decoration: underline;
  white-space: nowrap;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .cookie-banner__actions {
    flex-direction: column;
  }
  .cookie-banner__actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ── PRINT STYLES ── */
@media print {
  .header__nav,
  .hamburger,
  .mobile-menu,
  .cookie-banner,
  .btn,
  #to-top,
  .hero__ctas,
  .prozess-cta,
  .cta-wrap,
  .calendly-banner {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #555;
  }

  a[href^="#"]::after,
  a[href^="tel:"]::after,
  a[href^="mailto:"]::after {
    content: none;
  }

  h2, h3 {
    page-break-after: avoid;
  }

  img {
    max-width: 100%;
    page-break-inside: avoid;
  }
}
