/* =========================================
   Design-Variablen (Light + Dark)
   ========================================= */

:root {
  /* Light-Mode als Standard */
  --bg: #f3f4f6;
  --bg-elevated: #ffffff;
  --bg-soft: #eef2ff;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.1);
  --accent-strong: #1d4ed8;
  --accent-warm: #ea580c;
  --text: #111827;
  --muted: #6b7280;
  --border-subtle: rgba(148, 163, 184, 0.5);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 18px 35px rgba(15, 23, 42, 0.1);
  --transition-fast: 180ms ease-out;
  --transition-med: 220ms ease-out;
}

/* Dark-Mode-Varianten der Farben */
body.theme-dark {
  --bg: #050816;
  --bg-elevated: #0b1020;
  --bg-soft: #10162a;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.15);
  --accent-strong: #22d3ee;
  --accent-warm: #f97316;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.3);
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.75);
  --shadow-card: 0 18px 35px rgba(15, 23, 42, 0.7);
}

/* =========================================
   Global / Base
   ========================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top left, #e5e7eb 0, #f9fafb 45%, #e5e7eb 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body.theme-dark {
  background: radial-gradient(circle at top left, #111827 0, #020617 45%, #020617 100%);
  color: #e5e7eb;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Utility */

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

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

.no-print {
  display: block;
}

.print-only {
  display: none;
}

/* =========================================
   Header / Navigation
   ========================================= */

header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.96),
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.75),
    rgba(255, 255, 255, 0)
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

body.theme-dark header {
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.96),
    rgba(2, 6, 23, 0.9),
    rgba(2, 6, 23, 0.75),
    rgba(2, 6, 23, 0)
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.6);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-text .title {
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--text);
}

.brand-text .subtitle {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  padding: 0.15rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f46e5, #22d3ee);
  transition: width var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  background: linear-gradient(135deg, #4f46e5, #22d3ee);
  color: #f9fafb;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.25);
}

body.theme-dark .nav-cta {
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.85);
}

.nav-cta span.icon {
  font-size: 1rem;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at 0 0, rgba(148, 163, 184, 0.35), transparent 60%);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body.theme-dark .nav-toggle {
  color: #e5e7eb;
}

.nav-toggle span {
  font-size: 1.1rem;
}

/* Theme Toggle Button */

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.1);
}

body.theme-dark .theme-toggle {
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

/* Mobile Nav */

.nav-mobile {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 0.7rem;
  display: none;
  flex-direction: column;
  gap: 0.8rem;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 0.92rem;
  color: var(--muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

.nav-mobile .nav-cta {
  margin-top: 0.4rem;
  align-self: flex-start;
}

/* Responsive Nav */

@media (max-width: 780px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* =========================================
   Main Layout / Sections
   ========================================= */

main {
  flex: 1;
}

section {
  padding: 3.5rem 1.5rem;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

/* Section headings */

.section-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-subtitle {
  font-size: 0.94rem;
  color: var(--muted);
  max-width: 32rem;
  line-height: 1.6;
  margin-bottom: 1.7rem;
}

/* =========================================
   Hero
   ========================================= */

#hero {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 2.8rem;
  align-items: center;
}

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.12rem 0.6rem 0.12rem 0.12rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at 0 0, rgba(34, 211, 238, 0.18), transparent 60%);
  margin-bottom: 1.4rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.hero-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
  font-weight: 500;
}

body.theme-dark .hero-eyebrow-pill {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
}

.hero-eyebrow-pill span.icon {
  font-size: 1rem;
}

.hero-title {
  font-size: clamp(2.1rem, 3vw + 1.6rem, 3.4rem);
  line-height: 1.05;
  margin-bottom: 1rem;
  letter-spacing: -0.035em;
}

.hero-title span.highlight {
  background: linear-gradient(120deg, #22d3ee, #4f46e5, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 34rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.hero-badge {
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.75rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.9);
}

body.theme-dark .hero-badge {
  background: rgba(15, 23, 42, 0.8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  background: radial-gradient(circle at 0 0, #22d3ee, #4f46e5 55%);
  color: #f9fafb;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
  transition: transform var(--transition-med), box-shadow var(--transition-med),
    filter var(--transition-fast);
}

body.theme-dark .btn-primary {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.btn-primary span.icon {
  font-size: 1.15rem;
}

.btn-primary:hover {
  transform: translateY(-1px) translateZ(0);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.25);
  filter: brightness(1.03);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(255, 255, 255, 0.85);
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast),
    background var(--transition-fast), transform var(--transition-fast);
}

body.theme-dark .btn-ghost {
  background: rgba(15, 23, 42, 0.85);
}

.btn-ghost span.icon {
  font-size: 1.05rem;
}

.btn-ghost:hover {
  border-color: rgba(148, 163, 184, 0.9);
  color: var(--text);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

body.theme-dark .btn-ghost:hover {
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.95);
}

.hero-meta {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-meta strong {
  color: var(--text);
}

body.theme-dark .hero-meta strong {
  color: #e5e7eb;
}

/* Hero right card */

.hero-card {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, #e5e7eb, #ffffff 70%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.3rem 1.4rem;
  position: relative;
  overflow: hidden;
}

body.theme-dark .hero-card {
  background: radial-gradient(circle at top, #0f172a, #020617 70%);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(
    circle at 10% -20%,
    rgba(56, 189, 248, 0.25),
    transparent 55%
  );
  opacity: 0.85;
  pointer-events: none;
}

.hero-card-inner {
  position: relative;
  z-index: 1;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.hero-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

body.theme-dark .hero-card-title {
  color: #e5e7eb;
}

.hero-card-pill {
  font-size: 0.7rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.55);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

body.theme-dark .hero-card-pill {
  background: rgba(15, 23, 42, 0.85);
}

.hero-card-pill span.icon {
  font-size: 0.85rem;
}

.hero-card-main {
  margin-bottom: 1.3rem;
}

.hero-card-highlight {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.03em;
}

.hero-card-highlight span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
}

.hero-card-text {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 20rem;
}

.hero-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.1rem;
  margin-top: 1.1rem;
}

.hero-mini {
  border-radius: var(--radius-md);
  padding: 0.6rem 0.7rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 0.75rem;
}

body.theme-dark .hero-mini {
  background: rgba(15, 23, 42, 0.92);
}

.hero-mini-label {
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.hero-mini-value {
  font-weight: 600;
  font-size: 0.8rem;
}

.hero-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.6rem;
}

.hero-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.hero-card-tag {
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  border: 1px dashed rgba(148, 163, 184, 0.45);
}

body.theme-dark .hero-card-tag {
  background: rgba(15, 23, 42, 0.9);
}

.hero-card-cta {
  font-size: 0.78rem;
  color: #4f46e5;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  white-space: nowrap;
}

body.theme-dark .hero-card-cta {
  color: #a5b4fc;
}

.hero-card-cta span.icon {
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  .hero-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================
   Benefits
   ========================================= */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

@media (max-width: 880px) {
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

.benefit-card {
  background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.08), #ffffff);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

body.theme-dark .benefit-card {
  background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.18), #020617);
}

.benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: radial-gradient(circle at 0 0, #22d3ee, #4f46e5 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
  font-size: 1.1rem;
  color: #f9fafb;
}

.benefit-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.benefit-text {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.45rem;
}

.benefit-chip {
  display: inline-flex;
  margin-top: 0.2rem;
  padding: 0.16rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 0.72rem;
  color: #4f46e5;
}

body.theme-dark .benefit-chip {
  background: rgba(15, 23, 42, 0.9);
  color: #a5b4fc;
}

/* =========================================
   KfW / Programme
   ========================================= */

.programs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 1.8rem;
  align-items: flex-start;
}

@media (max-width: 880px) {
  .programs-layout {
    grid-template-columns: 1fr;
  }
}

.program-table-wrap {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.program-table-head {
  padding: 0.9rem 1.1rem;
  background: radial-gradient(circle at 0 0, rgba(34, 197, 235, 0.18), #eef2ff);
  border-bottom: 1px solid rgba(129, 140, 248, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

body.theme-dark .program-table-head {
  background: radial-gradient(circle at 0 0, rgba(34, 197, 235, 0.18), #020617);
  border-bottom: 1px solid rgba(30, 64, 175, 0.8);
}

.program-table-head h3 {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.program-table-head span.badge {
  font-size: 0.76rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--muted);
}

body.theme-dark .program-table-head span.badge {
  background: rgba(15, 23, 42, 0.92);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.table thead {
  background: rgba(249, 250, 251, 0.98);
}

body.theme-dark .table thead {
  background: rgba(15, 23, 42, 0.98);
}

.table th,
.table td {
  padding: 0.6rem 0.8rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(209, 213, 219, 0.9);
}

body.theme-dark .table th,
body.theme-dark .table td {
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.table th {
  font-weight: 500;
  color: var(--muted);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:nth-child(even) td {
  background: rgba(249, 250, 251, 0.9);
}

body.theme-dark .table tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.8);
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 0.12rem 0.5rem;
  font-size: 0.72rem;
  border: 1px solid rgba(148, 163, 184, 0.65);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
}

.tag-soft {
  border-style: dashed;
  color: var(--muted);
}

body.theme-dark .tag {
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
}

.program-note {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.program-note strong {
  color: var(--text);
}

/* right programs card */

.program-highlights {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.1rem 1rem;
  box-shadow: var(--shadow-soft);
}

body.theme-dark .program-highlights {
  background: var(--bg-soft);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.badge-row .badge {
  font-size: 0.75rem;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(255, 255, 255, 0.95);
  color: var(--muted);
}

body.theme-dark .badge-row .badge {
  background: rgba(15, 23, 42, 0.95);
}

.program-highlights h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.program-highlights p {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
  line-height: 1.6;
}

.program-highlight-list {
  list-style: none;
  font-size: 0.84rem;
  color: var(--muted);
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}

.program-highlight-list li::before {
  content: "•";
  color: var(--accent-strong);
  margin-right: 0.3rem;
}

.program-link {
  font-size: 0.8rem;
  color: #4f46e5;
}

body.theme-dark .program-link {
  color: #a5b4fc;
}

.program-link a {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* =========================================
   Steuern / AfA
   ========================================= */

.tax-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.1fr);
  gap: 1.6rem;
  align-items: stretch;
}

@media (max-width: 880px) {
  .tax-grid {
    grid-template-columns: 1fr;
  }
}

.tax-card {
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.16), #ffffff);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-card);
}

body.theme-dark .tax-card {
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.25), #020617);
}

.tax-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.tax-card p {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
  line-height: 1.6;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.pill {
  font-size: 0.74rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--muted);
}

body.theme-dark .pill {
  background: rgba(15, 23, 42, 0.94);
}

.tax-list {
  list-style: none;
  display: grid;
  gap: 0.35rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.tax-list li::before {
  content: "§";
  color: var(--accent-warm);
  font-size: 0.8rem;
  margin-right: 0.25rem;
}

.tax-highlight-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
}

body.theme-dark .tax-highlight-card {
  background: rgba(15, 23, 42, 0.96);
}

.tax-highlight-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

body.theme-dark .tax-highlight-card h3 {
  color: #e5e7eb;
}

.tax-highlight-card p {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

.tax-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.4rem;
}

@media (max-width: 480px) {
  .tax-highlight-grid {
    grid-template-columns: 1fr;
  }
}

.tax-chip {
  font-size: 0.78rem;
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius-md);
  background: rgba(249, 250, 251, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--muted);
}

body.theme-dark .tax-chip {
  background: rgba(15, 23, 42, 0.92);
  color: var(--muted);
}

.tax-chip strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.1rem;
}

body.theme-dark .tax-chip strong {
  color: #e5e7eb;
}

/* =========================================
   Projekte / Vertrauen
   ========================================= */

.projects {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.8rem;
  align-items: stretch;
}

@media (max-width: 880px) {
  .projects {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.1rem 1rem;
  box-shadow: var(--shadow-soft);
}

.project-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.project-list {
  list-style: none;
  font-size: 0.86rem;
  color: var(--muted);
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}

.project-list li::before {
  content: "•";
  color: var(--accent-strong);
  margin-right: 0.3rem;
}

.project-location {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.trust-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.6;
}

.trust-card strong {
  color: var(--text);
}

body.theme-dark .trust-card strong {
  color: #e5e7eb;
}

/* =========================================
   Kontakt / Formular
   ========================================= */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: flex-start;
}

@media (max-width: 880px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.2rem 1.1rem;
  box-shadow: var(--shadow-soft);
}

form {
  display: grid;
  gap: 0.8rem;
}

label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.1rem;
  display: block;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  padding: 0.6rem 0.7rem;
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast);
}

body.theme-dark input,
body.theme-dark textarea,
body.theme-dark select {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.4);
  background: #ffffff;
}

body.theme-dark input:focus,
body.theme-dark textarea:focus,
body.theme-dark select:focus {
  background: #020617;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.contact-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.7rem;
}

.contact-meta a {
  color: #4f46e5;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

body.theme-dark .contact-meta a {
  color: #a5b4fc;
}

.contact-side {
  font-size: 0.86rem;
  color: var(--muted);
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.1rem 1rem;
  box-shadow: var(--shadow-soft);
}

.contact-side h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

body.theme-dark .contact-side h3 {
  color: #e5e7eb;
}

.contact-side ul {
  list-style: none;
  display: grid;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.contact-side li::before {
  content: "✓";
  color: #22c55e;
  margin-right: 0.3rem;
}

/* =========================================
   Footer
   ========================================= */

footer {
  padding: 1.8rem 1.5rem 1.6rem;
  border-top: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(249, 250, 251, 0.97);
  margin-top: 1rem;
}

body.theme-dark footer {
  background: rgba(2, 6, 23, 0.97);
  border-top: 1px solid rgba(15, 23, 42, 0.85);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-links a {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* =========================================
   KALKULATOR – Layout & Komponenten
   ========================================= */

/* Wrapper und Grid */

#calculator {
  padding: 3.5rem 1.5rem;
  background: radial-gradient(circle at top left, var(--bg-soft) 0, var(--bg) 60%);
}

.calc-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.calc-header {
  margin-bottom: 1.5rem;
}

.calc-header-title {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.calc-header-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.5;
}

/* Zwei-Spalten-Layout: Parameter (links) / Ergebnisse (rechts) */

.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: 1.5rem;
  align-items: flex-start;
}

@media (max-width: 960px) {
  .calc-layout {
    grid-template-columns: 1fr;
  }
}

/* Parameter-Panel */

.calc-panel {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.1rem 1rem;
  box-shadow: var(--shadow-soft);
}

.calc-panel h3 {
  font-size: 1rem;
  margin-bottom: 0.7rem;
  color: var(--text);
}

.calc-fieldset {
  border: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.calc-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 0.6rem;
  align-items: center;
}

@media (max-width: 640px) {
  .calc-field-row {
    grid-template-columns: 1fr;
  }
}

.calc-field-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.calc-field-label strong {
  color: var(--text);
}

.calc-field-input {
  position: relative;
}

.calc-field-input input,
.calc-field-input select {
  width: 100%;
  padding-right: 2.2rem;
}

.calc-unit {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.76rem;
  color: var(--muted);
  pointer-events: none;
}

/* Slider / Range */

.calc-range-wrapper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.calc-range-wrapper input[type="range"] {
  flex: 1;
}

.calc-range-value {
  min-width: 3rem;
  font-size: 0.8rem;
  text-align: right;
  color: var(--muted);
}

/* Parameter-Aktionsleiste */

.calc-panel-footer {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast),
    transform var(--transition-fast);
}

body.theme-dark .btn-secondary {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(148, 163, 184, 1);
  transform: translateY(-1px);
}

body.theme-dark .btn-secondary:hover {
  background: rgba(15, 23, 42, 0.98);
}

/* Hinweistext unter Parametern */

.calc-note {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

.calc-note strong {
  color: var(--text);
}

body.theme-dark .calc-note strong {
  color: #e5e7eb;
}

/* =========================================
   Kalkulator – Ergebnisbereich
   ========================================= */

.calc-results {
  display: grid;
  gap: 0.9rem;
}

.calc-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

@media (max-width: 900px) {
  .calc-summary-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .calc-summary-cards {
    grid-template-columns: 1fr;
  }
}

.calc-summary-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 0.8rem 0.85rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.82rem;
}

.calc-summary-label {
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.calc-summary-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.calc-summary-sub {
  margin-top: 0.1rem;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Ergebnis-Tabellenbereich */

.calc-table-wrapper {
  margin-top: 0.6rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 0.7rem 0.7rem 0.9rem;
}

/* Scrollcontainer für große Tabellen */

.calc-table-scroller {
  margin-top: 0.2rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  overflow: auto;
  max-height: 420px;
  background: var(--bg);
}

/* Hinweis über Tabelle */

.calc-table-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
}

.calc-table-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.calc-table-toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Toggle-Chips für Spalten etc. */

.calc-chip-toggle {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast),
    color var(--transition-fast);
}

body.theme-dark .calc-chip-toggle {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
}

.calc-chip-toggle.active {
  background: linear-gradient(135deg, #4f46e5, #22d3ee);
  border-color: transparent;
  color: #f9fafb;
}

/* Ergebnis-Tabelle */

.calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.74rem;
  min-width: 650px;
}

.calc-table th,
.calc-table td {
  padding: 0.3rem 0.55rem;
  border-bottom: 1px solid rgba(209, 213, 219, 0.8);
  text-align: right;
  white-space: nowrap;
}

body.theme-dark .calc-table th,
body.theme-dark .calc-table td {
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.calc-table thead tr {
  background: rgba(249, 250, 251, 0.98);
}

body.theme-dark .calc-table thead tr {
  background: rgba(15, 23, 42, 0.98);
}

.calc-table th {
  font-weight: 500;
  color: var(--muted);
}

/* Sticky erstes Jahr-Spalte + Kopf */

.calc-table th.sticky-col,
.calc-table td.sticky-col {
  position: sticky;
  left: 0;
  z-index: 3;
  text-align: left;
  background: var(--bg);
}

.calc-table thead th.sticky-col {
  z-index: 4;
}

.calc-table thead th.sticky-header {
  position: sticky;
  top: 0;
  z-index: 3;
}

.calc-table thead th.sticky-header.sticky-col {
  z-index: 4;
}

/* optische Hervorhebung einiger Spalten */

.calc-table td.positive {
  color: #16a34a;
}

.calc-table td.negative {
  color: #b91c1c;
}

/* Alternierende Zeilen */

.calc-table tbody tr:nth-child(even) td {
  background: rgba(249, 250, 251, 0.9);
}

body.theme-dark .calc-table tbody tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.8);
}

/* Hinweis unter Tabelle */

.calc-table-note {
  margin-top: 0.55rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

.calc-table-note strong {
  color: var(--text);
}

body.theme-dark .calc-table-note strong {
  color: #e5e7eb;
}

/* =========================================
   Kalkulator – Cashflow & Info-Boxen
   ========================================= */

.calc-extra-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 0.8rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .calc-extra-grid {
    grid-template-columns: 1fr;
  }
}

.calc-box {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 0.9rem 0.9rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.calc-box h4 {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.calc-box-list {
  list-style: none;
  display: grid;
  gap: 0.25rem;
  margin-top: 0.4rem;
}

.calc-box-list li::before {
  content: "•";
  color: var(--accent-strong);
  margin-right: 0.25rem;
}

/* =========================================
   Mobile Optimierung für Kalkulator
   ========================================= */

@media (max-width: 640px) {
  #calculator {
    padding: 2.5rem 1rem;
  }

  .calc-table-wrapper {
    padding: 0.6rem 0.5rem 0.8rem;
  }

  .calc-table-scroller {
    max-height: none;
  }

  .calc-table {
    font-size: 0.7rem;
  }

  .calc-summary-card {
    padding: 0.7rem 0.75rem;
  }
}

/* =========================================
   Druck-Styles (A4)
   ========================================= */

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm 10mm;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  header,
  footer,
  .no-print,
  .theme-toggle,
  .nav-mobile,
  .nav-toggle {
    display: none !important;
  }

  .page-wrap {
    min-height: auto;
  }

  section,
  #calculator {
    padding: 0;
  }

  .section-inner,
  .calc-inner {
    max-width: 100%;
    margin: 0;
  }

  .calc-layout {
    grid-template-columns: 1fr;
  }

  .calc-panel,
  .calc-results,
  .calc-table-wrapper,
  .calc-box,
  .calc-summary-card {
    box-shadow: none !important;
    border-color: #d1d5db !important;
    background: #ffffff !important;
  }

  .calc-table-scroller {
    max-height: none !important;
    overflow: visible !important;
    border: none;
  }

  .calc-table th.sticky-col,
  .calc-table td.sticky-col,
  .calc-table thead th.sticky-header {
    position: static !important;
  }

  .print-only {
    display: block !important;
  }
} 
/* =========================================
   Investitions-Text (Langtext am Seitenende)
   ========================================= */

#invest {
  padding: 3.5rem 1.5rem 4rem;
}

/* Der Langtext sitzt wie eine große Card in der Mitte,
   damit er sich klar vom Hintergrund abhebt. */
#invest .section-inner {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 1.8rem 1.6rem 1.9rem;
}

/* Label / Titel oben etwas enger zusammen */
#invest .section-label {
  margin-bottom: 0.4rem;
}

#invest .section-title {
  margin-bottom: 0.5rem;
}

/* Untertitel darf ruhig über volle Card-Breite gehen */
#invest .section-subtitle {
  max-width: 100%;
  margin-bottom: 1.4rem;
}

/* Typografie für den langen Fließtext */
#invest p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* Letzter Absatz ohne extra Abstand unten */
#invest p:last-of-type {
  margin-bottom: 0;
}

/* Auf kleinen Geräten etwas weniger Innenabstand,
   damit es nicht zu gedrungen wirkt */
@media (max-width: 640px) {
  #invest {
    padding: 2.5rem 1rem 3rem;
  }

  #invest .section-inner {
    padding: 1.4rem 1.1rem 1.5rem;
  }
} 	  
	  
	  