/* ======================================
   EPSIA — AI-Enablement Website Styles
   Brand: Red (#E30613), Dark (#0f0f1e), White
   Font: Inter (Google Fonts)
   ====================================== */

/* --- Variables --- */
:root {
  --epsia-red: #E30613;
  --epsia-red-dark: #b8050f;
  --epsia-red-light: #ff2d3b;
  --epsia-red-glow: rgba(227, 6, 19, 0.35);
  --epsia-dark: #0f0f1e;
  --epsia-dark-light: #1a1a2e;
  --epsia-dark-card: #161628;
  --epsia-gray: #7a7f8e;
  --epsia-gray-light: #b0b5c3;
  --epsia-border: #e2e5ec;
  --epsia-light: #f5f6f8;
  --epsia-white: #ffffff;
  --epsia-text: #1e1e2f;
  --epsia-text-light: #9a9eb0;
  --epsia-green: #22c55e;
  --epsia-green-dark: #16a34a;
  --epsia-orange: #f59e0b;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 50px -5px rgba(0, 0, 0, 0.1), 0 10px 20px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 40px var(--epsia-red-glow);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 160px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  color: var(--epsia-text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  background: var(--epsia-white);
}

a { color: var(--epsia-red); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--epsia-red-dark); }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  color: var(--epsia-text);
  letter-spacing: -0.02em;
}

/* --- Header / Navigation --- */
#header {
  background: rgba(15, 15, 30, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Row 1: Logo + Nav */
.header-row-1 {
  display: flex;
  align-items: center;
}

.header-version {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.6rem;
  font-weight: 600;
  margin-left: 12px;
}

.header-nav {
  margin-left: auto;
}

.header-nav ul {
  display: flex;
  list-style: none;
  gap: 2px;
  margin: 0;
  padding: 0;
  align-items: center;
}

/* Row 2: Phone + CTA */
.header-row-2 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding-top: 8px;
}

.header-cta {
  display: inline-block;
  background: var(--epsia-red);
  color: var(--epsia-white) !important;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: 0 2px 12px var(--epsia-red-glow);
  text-decoration: none;
}

.header-cta:hover {
  background: var(--epsia-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--epsia-red-glow);
  color: var(--epsia-white) !important;
}

/* Language switcher (DE | EN) — segmented pill toggle */
.header-lang {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--epsia-red);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}

.header-lang a {
  color: var(--epsia-red);
  text-decoration: none;
  transition: var(--transition);
  padding: 4px 11px;
}

.header-lang a:hover {
  background: var(--epsia-light);
  color: var(--epsia-red);
}

.header-lang a.active {
  background: var(--epsia-red);
  color: #fff;
  cursor: default;
}

.header-lang a.active:hover {
  background: var(--epsia-red);
}

.header-lang .sep {
  display: none;
}

/* Honeypot-Feld (Spam-Schutz) — für Menschen unsichtbar, für Bots sichtbar */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Statusmeldung unter den Formularen */
.form-status {
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 600;
}
.form-status.ok {
  color: #1a7f37;
}
.form-status.err {
  color: #c0050f;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  height: 110px;
  width: auto;
  border-radius: 10px;
}

/* (navbar ul styles in .header-nav ul above) */

.nav-link {
  color: rgba(255, 255, 255, 0.65) !important;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 10px !important;
  border-radius: var(--radius-xs);
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.nav-link:hover {
  color: var(--epsia-white) !important;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.cta-btn {
  background: var(--epsia-red);
  color: var(--epsia-white) !important;
  font-weight: 600;
  padding: 8px 18px !important;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px var(--epsia-red-glow);
  font-size: 0.8rem;
  white-space: nowrap;
}

.nav-link.cta-btn:hover {
  background: var(--epsia-red-dark);
  box-shadow: 0 4px 20px var(--epsia-red-glow);
  transform: translateY(-1px);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--epsia-white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0;
}

/* --- Hero Section --- */
.hero-section {
  background: var(--epsia-dark);
  color: var(--epsia-white);
  padding-top: 160px;
  padding-bottom: 80px;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.hero-video-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(227, 6, 19, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, rgba(15, 15, 30, 0.88) 0%, rgba(15, 15, 30, 0.78) 40%, rgba(15, 15, 30, 0.92) 100%);
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(227, 6, 19, 0.12);
  border: 1px solid rgba(227, 6, 19, 0.25);
  color: var(--epsia-red-light);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.hero-section h1 {
  font-size: 3.8rem;
  font-weight: 800;
  color: var(--epsia-white);
  margin-bottom: 24px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 620px;
}

.text-accent {
  background: linear-gradient(135deg, var(--epsia-red) 0%, #ff4d5a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.75;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--epsia-red) !important;
  border-color: var(--epsia-red) !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 14px 32px;
  font-size: 0.95rem;
  transition: var(--transition);
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px var(--epsia-red-glow);
}

.btn-primary:hover {
  background: var(--epsia-red-dark) !important;
  border-color: var(--epsia-red-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--epsia-red-glow);
}

.btn-outline-light {
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 14px 32px;
  font-size: 0.95rem;
  border-width: 1.5px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat { display: flex; flex-direction: column; }

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--epsia-white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 8px;
  line-height: 1.4;
  font-weight: 500;
}

/* Hero Visual — Score Preview */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.score-preview { text-align: center; }

.score-circle {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.03) 70%);
  border: 3px solid rgba(34, 197, 94, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto 24px;
  box-shadow: 0 0 80px rgba(34, 197, 94, 0.15), inset 0 0 40px rgba(34, 197, 94, 0.05);
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 60px rgba(34, 197, 94, 0.1), inset 0 0 30px rgba(34, 197, 94, 0.03); }
  50% { box-shadow: 0 0 100px rgba(34, 197, 94, 0.2), inset 0 0 50px rgba(34, 197, 94, 0.06); }
}

.score-value {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--epsia-green);
  line-height: 1;
  letter-spacing: -0.03em;
}

.score-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  margin-top: 4px;
}

.score-change {
  color: var(--epsia-green);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.8;
}

.score-change i { margin-right: 4px; }

/* --- Section Waves --- */
.section-wave { position: relative; margin-top: -1px; }
.section-wave svg { display: block; width: 100%; height: 80px; }
/* Wave sits flush at the section bottom edge — remove padding-bottom so the
   section background does not create a color stripe below the wave. */
.section:has(.section-wave) { padding-bottom: 0; }

/* --- Trust Bar --- */
.trust-bar {
  background: var(--epsia-white);
  padding: 48px 0;
  border-bottom: 1px solid var(--epsia-border);
}

.trust-label {
  text-align: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--epsia-gray);
  margin-bottom: 28px;
  font-weight: 600;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}

.trust-logos img {
  height: 32px;
  width: auto;
  filter: grayscale(100%) opacity(0.35);
  transition: var(--transition);
}

.trust-logos img:hover {
  filter: grayscale(0%) opacity(0.9);
}

/* --- Radar Chart --- */
.radar-chart-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.radar-chart-container canvas {
  max-width: 100%;
  height: auto;
}

/* --- Sections General --- */
.section {
  padding: 120px 0;
  position: relative;
}

.bg-white { background: var(--epsia-white); }

.bg-light-section {
  background: var(--epsia-light);
}

.bg-dark-section {
  background: var(--epsia-dark);
  color: var(--epsia-white);
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-header h2 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.section-header.light h2 {
  color: var(--epsia-white);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--epsia-gray);
  max-width: 560px;
  margin: 0 auto;
  font-weight: 400;
}

.section-header.light .section-subtitle {
  color: var(--epsia-text-light);
}

/* --- Problem Section --- */
.problem-card {
  background: var(--epsia-white);
  border-radius: var(--radius);
  padding: 40px 32px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--epsia-border);
  transition: var(--transition);
}

.problem-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.problem-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(227, 6, 19, 0.1), rgba(227, 6, 19, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.problem-icon i {
  font-size: 1.5rem;
  color: var(--epsia-red);
}

.problem-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.problem-stat {
  font-size: 3rem;
  font-weight: 800;
  color: var(--epsia-red);
  margin-bottom: 16px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.problem-card p {
  color: var(--epsia-gray);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* --- Solution Section --- */
.solution-text h3 {
  color: var(--epsia-white);
  font-size: 2rem;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.solution-text p {
  color: var(--epsia-text-light);
  font-size: 1.05rem;
  margin-bottom: 36px;
  line-height: 1.8;
}

.solution-list {
  list-style: none;
  padding: 0;
}

.solution-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
}

.solution-list li:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.solution-list li i {
  color: var(--epsia-green);
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.solution-list li strong {
  display: block;
  color: var(--epsia-white);
  font-size: 0.95rem;
  font-weight: 600;
}

.solution-list li span {
  color: var(--epsia-text-light);
  font-size: 0.85rem;
}

/* Before / After Cards */
.before-after {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ba-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  padding: 32px 28px;
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.ba-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.ba-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--epsia-text-light);
  margin-bottom: 8px;
  font-weight: 600;
}

.ba-score {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.before .ba-score { color: var(--epsia-red); }
.after .ba-score { color: var(--epsia-green); }

.ba-status {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  display: inline-block;
}

.status-red {
  background: rgba(227, 6, 19, 0.15);
  color: var(--epsia-red-light);
}

.status-green {
  background: rgba(34, 197, 94, 0.15);
  color: var(--epsia-green);
}

.ba-card ul { list-style: none; padding: 0; margin: 0; }

.ba-card ul li {
  padding: 5px 0;
  font-size: 0.82rem;
  color: var(--epsia-text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.before ul li i { color: var(--epsia-red); font-size: 0.85rem; }
.after ul li i { color: var(--epsia-green); font-size: 0.85rem; }

.ba-arrow {
  font-size: 2rem;
  color: var(--epsia-red);
  flex-shrink: 0;
  opacity: 0.6;
}

/* --- Score Section — Dimension Cards --- */
.dimension-card {
  background: var(--epsia-white);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  height: 100%;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--epsia-border);
  transition: var(--transition);
  position: relative;
}

.dimension-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.dimension-weight {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--epsia-red), #ff4d5a);
  color: var(--epsia-white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.dimension-card i {
  font-size: 1.8rem;
  color: var(--epsia-red);
  margin-bottom: 12px;
  display: block;
  opacity: 0.8;
}

.dimension-card h4 {
  font-size: 0.88rem;
  margin-bottom: 6px;
  font-weight: 700;
}

.dimension-card p {
  font-size: 0.78rem;
  color: var(--epsia-gray);
  margin: 0;
  line-height: 1.5;
}

/* Score Scale */
.score-scale {
  display: flex;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 56px;
  box-shadow: var(--shadow-md);
}

.scale-item {
  flex: 1;
  padding: 18px 12px;
  text-align: center;
  color: var(--epsia-white);
}

.scale-range {
  display: block;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.scale-label {
  display: block;
  font-size: 0.7rem;
  opacity: 0.85;
  margin-top: 4px;
  font-weight: 500;
}

.scale-red { background: #dc3545; }
.scale-orange { background: #f97316; }
.scale-yellow { background: #d4a017; }
.scale-lightgreen { background: #22c55e; }
.scale-green { background: #16a34a; }

/* --- Service Cards --- */
.service-card {
  background: var(--epsia-white);
  border-radius: var(--radius);
  padding: 36px 30px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--epsia-border);
  transition: var(--transition);
  position: relative;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-card.featured {
  border: 2px solid var(--epsia-red);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--epsia-red);
}

.service-card.featured:hover {
  box-shadow: var(--shadow-xl), 0 0 30px var(--epsia-red-glow);
}

.service-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: linear-gradient(135deg, var(--epsia-red), #ff4d5a);
  color: var(--epsia-white);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 12px var(--epsia-red-glow);
}

.service-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: rgba(227, 6, 19, 0.08);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  font-weight: 700;
}

.service-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--epsia-red);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.service-card > p {
  color: var(--epsia-gray);
  font-size: 0.88rem;
  margin-bottom: 18px;
  line-height: 1.65;
}

.service-includes {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
}

.service-includes li {
  padding: 5px 0;
  font-size: 0.83rem;
  color: var(--epsia-text);
  font-weight: 500;
}

.service-includes li::before {
  content: '✓ ';
  color: var(--epsia-green);
  font-weight: 800;
}

.service-duration {
  font-size: 0.82rem;
  color: var(--epsia-gray);
  font-weight: 500;
}

.service-duration i { margin-right: 4px; }

/* --- Process Timeline --- */
.process-timeline {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--epsia-red), var(--epsia-green));
  border-radius: 2px;
}

.process-step {
  display: flex;
  gap: 28px;
  margin-bottom: 48px;
  position: relative;
}

.process-step:last-child { margin-bottom: 0; }

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--epsia-red), #ff4d5a);
  color: var(--epsia-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--epsia-white), 0 4px 12px var(--epsia-red-glow);
}

.step-content { padding-top: 8px; }

.step-content h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.step-content p {
  color: var(--epsia-gray);
  font-size: 0.92rem;
  margin-bottom: 10px;
  line-height: 1.7;
}

.step-result {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--epsia-red);
  background: rgba(227, 6, 19, 0.06);
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  display: inline-block;
}

/* --- Förderung Section --- */
.foerderung-rechnung {
  background: var(--epsia-white);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--epsia-border);
}

.foerderung-rechnung h3 {
  margin-bottom: 28px;
  font-size: 1.3rem;
}

.rechnung-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--epsia-border);
  font-size: 0.95rem;
}

.rechnung-row.total {
  font-weight: 700;
  font-size: 1.05rem;
  border-top: 2px solid var(--epsia-text);
  margin-top: 8px;
  padding-top: 18px;
}

.rechnung-row.foerderung {
  color: var(--epsia-green);
  font-weight: 700;
  font-size: 1.05rem;
}

.rechnung-row.eigenanteil {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--epsia-red);
  border-bottom: none;
  padding-bottom: 0;
}

.rechnung-note {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--epsia-gray);
  font-style: italic;
}

.foerder-list { margin-bottom: 24px; }

.foerder-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--epsia-border);
}

.foerder-item h4 {
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.foerder-item p {
  font-size: 0.85rem;
  color: var(--epsia-gray);
  margin: 0;
}

.foerder-note {
  font-size: 0.88rem;
  color: var(--epsia-gray);
}

/* --- CTA / Quick Check Section --- */
.cta-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(227, 6, 19, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, var(--epsia-dark) 0%, var(--epsia-dark-light) 100%);
  color: var(--epsia-white);
}

.cta-section h2 {
  color: var(--epsia-white);
  font-size: 2.6rem;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.cta-subtitle {
  color: var(--epsia-text-light);
  font-size: 1.05rem;
  margin-bottom: 20px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

.cta-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--epsia-white);
  margin-bottom: 36px;
  letter-spacing: -0.02em;
}

.quickcheck-form .form-control {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--epsia-white);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition: var(--transition);
}

.quickcheck-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.quickcheck-form .form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--epsia-red);
  box-shadow: 0 0 0 3px var(--epsia-red-glow);
  color: var(--epsia-white);
}

.form-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--epsia-text-light);
}

/* --- About Section --- */
.about-text p {
  font-size: 1.05rem;
  color: var(--epsia-gray);
  margin-bottom: 18px;
  line-height: 1.8;
}

.about-values { margin-top: 36px; }

.about-values .value {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--epsia-light);
  border: 1px solid var(--epsia-border);
  transition: var(--transition);
}

.about-values .value:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.about-values .value i {
  font-size: 1.4rem;
  color: var(--epsia-red);
  margin-top: 2px;
  flex-shrink: 0;
}

.about-values .value strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}

.about-values .value span {
  font-size: 0.85rem;
  color: var(--epsia-gray);
}

.about-facts {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fact-card {
  background: var(--epsia-white);
  border: 1px solid var(--epsia-border);
  border-radius: var(--radius-sm);
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
}

.fact-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.fact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(227, 6, 19, 0.1), rgba(227, 6, 19, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fact-icon i {
  font-size: 1.1rem;
  color: var(--epsia-red);
}

.fact-card strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
}

.fact-card span {
  font-size: 0.82rem;
  color: var(--epsia-gray);
}

/* --- Contact Section --- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.contact-item i {
  font-size: 1.3rem;
  color: var(--epsia-red);
  margin-top: 4px;
  flex-shrink: 0;
  opacity: 0.8;
}

.contact-item strong {
  display: block;
  color: var(--epsia-white);
  margin-bottom: 3px;
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-item p {
  margin: 0;
  color: var(--epsia-text-light);
  font-size: 0.95rem;
}

.contact-item a { color: var(--epsia-text-light); }
.contact-item a:hover { color: var(--epsia-red); }

.contact-form .form-control {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--epsia-white);
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition: var(--transition);
}

.contact-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.contact-form .form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--epsia-red);
  box-shadow: 0 0 0 3px var(--epsia-red-glow);
  color: var(--epsia-white);
}

/* --- Footer --- */
#footer {
  background: #0a0a18;
  padding: 72px 0 24px;
  color: var(--epsia-text-light);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo {
  height: 50px;
  width: auto;
  border-radius: 6px;
}

#footer p {
  font-size: 0.88rem;
  color: var(--epsia-text-light);
  line-height: 1.7;
}

#footer h4 {
  color: var(--epsia-white);
  font-size: 0.85rem;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

#footer ul { list-style: none; padding: 0; }

#footer ul li {
  padding: 4px 0;
  font-size: 0.88rem;
}

#footer ul li a { color: var(--epsia-text-light); }
#footer ul li a:hover { color: var(--epsia-red); }

.footer-links {
  margin-top: 18px;
  font-size: 0.82rem;
}

.footer-links a { color: var(--epsia-text-light); }
.footer-links a:hover { color: var(--epsia-red); }

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  margin: 0;
  opacity: 0.6;
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  background: var(--epsia-dark);
  color: var(--epsia-white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-to-top.visible { opacity: 1; visibility: visible; }

.back-to-top:hover {
  background: var(--epsia-red);
  color: var(--epsia-white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .hero-section h1 { font-size: 2.8rem; }
  .hero-stats { flex-wrap: wrap; gap: 28px; }
  .before-after { flex-direction: column; }
  .ba-arrow { transform: rotate(90deg); }
  .section { padding: 80px 0; }
  .section-header h2 { font-size: 2.1rem; }
  .section-header { margin-bottom: 48px; }
}

@media (max-width: 767px) {
  .hero-section h1 { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  .mobile-nav-toggle { display: block; }

  .header-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--epsia-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  }

  .header-nav.active {
    display: block;
  }

  .header-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .header-nav ul .nav-link {
    padding: 12px 16px !important;
  }

  .header-row-2 {
    padding-top: 6px;
  }

  .header-cta {
    font-size: 0.75rem;
    padding: 6px 14px;
  }

  .navbar ul.active { display: flex; }
  .nav-link { padding: 12px 16px !important; }
  .score-scale { flex-direction: column; }

  .process-timeline::before { left: 20px; }
  .step-number { width: 42px; height: 42px; font-size: 1rem; }
  .hero-stats { gap: 20px; }
  .stat-number { font-size: 1.8rem; }
  .section { padding: 60px 0; }
  .logo-img { height: 60px; }
  .section-header { margin-bottom: 40px; }
  .section-header h2 { font-size: 1.8rem; }
  .trust-logos { gap: 32px; }
  .trust-logos img { height: 24px; }
}

/* --- Testimonials --- */
.testimonial-card {
  background: var(--epsia-white);
  border: 1px solid var(--epsia-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  transform: translateY(-4px);
}

.testimonial-quote {
  margin-bottom: 24px;
  position: relative;
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--epsia-red);
  opacity: 0.15;
  line-height: 1;
  position: absolute;
  top: -16px;
  left: -4px;
  font-family: Georgia, serif;
}

.testimonial-quote p {
  font-size: 0.92rem;
  color: var(--epsia-text);
  line-height: 1.7;
  font-style: italic;
  margin: 0;
  padding-top: 16px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--epsia-border);
  margin-top: auto;
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--epsia-border);
}

.testimonial-author strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--epsia-text);
}

.testimonial-author span {
  font-size: 0.75rem;
  color: var(--epsia-gray);
  line-height: 1.4;
}

/* --- Header Phone --- */
.header-phone a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  font-weight: 500;
  transition: var(--transition);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.header-phone a:hover {
  color: var(--epsia-white);
}

.header-phone i {
  margin-right: 6px;
  color: var(--epsia-red);
  font-size: 0.9rem;
}

/* --- FAQ Section --- */
.accordion-item {
  background: var(--epsia-white);
  border: 1px solid var(--epsia-border) !important;
  border-radius: var(--radius) !important;
  margin-bottom: 12px;
  overflow: hidden;
}

.accordion-button {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  color: var(--epsia-text);
  padding: 20px 28px;
  background: var(--epsia-white);
  box-shadow: none !important;
  letter-spacing: -0.01em;
}

.accordion-button:not(.collapsed) {
  background: var(--epsia-white);
  color: var(--epsia-red);
}

.accordion-button::after {
  background-size: 1rem;
  width: 1rem;
  height: 1rem;
}

.accordion-body {
  padding: 0 28px 24px;
  font-size: 0.92rem;
  color: var(--epsia-gray);
  line-height: 1.8;
}

/* --- Blog Cards --- */
.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.blog-card-link:hover {
  color: inherit;
}

.blog-card {
  background: var(--epsia-white);
  border: 1px solid var(--epsia-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  height: 100%;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.blog-tag {
  display: inline-block;
  background: rgba(227, 6, 19, 0.08);
  color: var(--epsia-red);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  align-self: flex-start;
}

.blog-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.35;
}

.blog-card p {
  font-size: 0.88rem;
  color: var(--epsia-gray);
  line-height: 1.7;
  flex: 1;
}

.blog-meta {
  font-size: 0.78rem;
  color: var(--epsia-gray-light);
  font-weight: 500;
  font-style: italic;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--epsia-border);
}

/* --- Legal Pages --- */
.legal-page { padding-top: 180px; }

.legal-page h1 {
  font-size: 2.2rem;
  margin-bottom: 36px;
}

.legal-page h2 {
  font-size: 1.3rem;
  margin-top: 40px;
  margin-bottom: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--epsia-border);
}

.legal-page h2:first-of-type { border-top: none; }

.legal-page h3 {
  font-size: 1.05rem;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-page p {
  color: var(--epsia-gray);
  margin-bottom: 14px;
  line-height: 1.8;
}

/* --- Form Checkbox (DSGVO) --- */
.form-check-label {
  font-size: 0.82rem;
  color: var(--epsia-text-light);
  line-height: 1.5;
}

.form-check-label a {
  color: var(--epsia-red-light);
  text-decoration: underline;
}

.form-check-input:checked {
  background-color: var(--epsia-red);
  border-color: var(--epsia-red);
}

/* ===== Quellenverweise (Fußnoten) ===== */
sup.ref {
  font-size: 0.55em;
  font-weight: 600;
  color: var(--epsia-red);
  margin-left: 1px;
  line-height: 0;
  vertical-align: super;
}

.quellen-section {
  background: var(--epsia-light);
  border-top: 1px solid var(--epsia-border);
  padding: 3rem 0;
}

.quellen-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--epsia-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.quellen-list {
  margin: 0;
  padding-left: 1.4rem;
  color: var(--epsia-gray);
  font-size: 0.82rem;
  line-height: 1.7;
}

.quellen-list li {
  margin-bottom: 0.5rem;
}

.quellen-list a {
  color: var(--epsia-red);
  text-decoration: underline;
  word-break: break-word;
}
