/* =============================================
   MAVORNQEX DIGITAL - Custom CSS
   Design: Stacked Paper + Dashboard Widgets
   ============================================= */

/* --- Design Tokens --- */
:root {
  --primary: #1a3a5c;
  --secondary: #2e6fad;
  --accent: #3b9ede;

  --primary-light: color-mix(in oklch, var(--primary), white 60%);
  --primary-xlight: color-mix(in oklch, var(--primary), white 88%);
  --primary-dark: color-mix(in oklch, var(--primary), black 20%);

  --secondary-light: color-mix(in oklch, var(--secondary), white 55%);
  --secondary-xlight: color-mix(in oklch, var(--secondary), white 85%);

  --accent-light: color-mix(in oklch, var(--accent), white 60%);
  --accent-dark: color-mix(in oklch, var(--accent), black 15%);

  --surface-bg: #f7f6f3;
  --surface-raised-bg: #ffffff;
  --surface-inset-bg: color-mix(in oklch, var(--primary), white 93%);
  --surface-cta-bg: var(--primary);

  --text-dark: #141e2b;
  --text-body: #2d3a4a;
  --text-muted: #6a7a8c;
  --text-light: #a4b2c0;
  --text-on-dark: #e8f0f7;

  --border-subtle: color-mix(in oklch, var(--primary), white 82%);
  --border-card: color-mix(in oklch, var(--primary), white 78%);

  --shadow-sm: 0 1px 3px color-mix(in oklch, var(--primary), transparent 88%),
               0 1px 2px color-mix(in oklch, var(--primary), transparent 94%);
  --shadow-md: 0 4px 12px color-mix(in oklch, var(--primary), transparent 84%),
               0 1px 4px color-mix(in oklch, var(--primary), transparent 90%);
  --shadow-lg: 0 8px 24px color-mix(in oklch, var(--primary), transparent 80%),
               0 2px 8px color-mix(in oklch, var(--primary), transparent 88%),
               0 0 0 1px color-mix(in oklch, var(--primary), transparent 95%);
  --shadow-paper: 0 -2px 0 color-mix(in oklch, var(--primary), transparent 90%),
                  0 8px 32px color-mix(in oklch, var(--primary), transparent 82%),
                  0 2px 8px color-mix(in oklch, var(--primary), transparent 90%);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --nav-height: 68px;
  --transition: 0.22s ease;
  --transition-slow: 0.38s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Work Sans', sans-serif;
  background: var(--surface-bg);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--secondary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* --- Typography Scale --- */
.text-display {
  font-family: 'Vollkorn', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.text-heading {
  font-family: 'Vollkorn', serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
  letter-spacing: -0.015em;
}

.text-subheading {
  font-family: 'Vollkorn', serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-dark);
}

.text-body {
  font-family: 'Work Sans', sans-serif;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
}

.text-caption {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

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

/* --- Surfaces --- */
.surface {
  background: var(--surface-bg);
}

.surface-raised {
  background: var(--surface-raised-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-card);
}

.surface-inset {
  background: var(--surface-inset-bg);
}

.surface-cta {
  background: var(--primary);
}

/* --- Stacked Paper Effect --- */
.paper-sheet {
  position: relative;
  box-shadow: var(--shadow-paper);
  border-top: 1px solid color-mix(in oklch, var(--primary), white 85%);
}

.paper-sheet::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 16px;
  right: 16px;
  height: 4px;
  background: color-mix(in oklch, var(--primary), white 80%);
  border-radius: 3px 3px 0 0;
  opacity: 0.5;
  z-index: 0;
}

.paper-sheet-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

/* --- Space Utilities --- */
.space-section { padding: var(--space-2xl) 0; }
.space-card { padding: var(--space-lg); }

/* --- Navigation --- */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--surface-raised-bg);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 4px color-mix(in oklch, var(--primary), transparent 92%);
  transition: box-shadow var(--transition-slow);
}

.nav-header.scrolled {
  box-shadow: 0 2px 16px color-mix(in oklch, var(--primary), transparent 82%),
              0 1px 4px color-mix(in oklch, var(--primary), transparent 88%);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
}

.nav-logo-text {
  font-family: 'Vollkorn', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.nav-logo-accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.nav-link:hover {
  background: var(--primary-xlight);
  color: var(--primary);
}

.nav-link.action-ghost {
  border: 1.5px solid var(--border-card);
  color: var(--primary);
}

.nav-link.action-ghost:hover {
  background: var(--primary-xlight);
  border-color: var(--primary-light);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav-hamburger:hover {
  background: var(--primary-xlight);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* --- Mobile Curtain Menu --- */
.mobile-curtain {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--primary);
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  transform: translateY(-100%);
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
  pointer-events: none;
}

.mobile-curtain.is-open {
  transform: translateY(0);
  pointer-events: all;
}

.mobile-curtain-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.mobile-nav-link {
  font-family: 'Vollkorn', serif;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 600;
  color: var(--text-on-dark);
  opacity: 0;
  transform: translateY(-30px);
  transition: color var(--transition), opacity 0.3s ease, transform 0.3s ease;
  padding: 0.5rem 1rem;
}

.mobile-curtain.is-open .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-curtain.is-open .mobile-nav-link:nth-child(1) { transition-delay: 0.08s; }
.mobile-curtain.is-open .mobile-nav-link:nth-child(2) { transition-delay: 0.14s; }
.mobile-curtain.is-open .mobile-nav-link:nth-child(3) { transition-delay: 0.20s; }
.mobile-curtain.is-open .mobile-nav-link:nth-child(4) { transition-delay: 0.26s; }
.mobile-curtain.is-open .mobile-nav-link:nth-child(5) { transition-delay: 0.32s; }

.mobile-nav-link:hover {
  color: var(--accent-light);
}

.mobile-curtain-close {
  position: absolute;
  bottom: var(--space-xl);
  background: color-mix(in oklch, var(--primary), white 15%);
  border: 1.5px solid color-mix(in oklch, var(--primary), white 30%);
  color: var(--text-on-dark);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background var(--transition), border-color var(--transition);
}

.mobile-curtain-close:hover {
  background: color-mix(in oklch, var(--primary), white 25%);
  border-color: color-mix(in oklch, var(--primary), white 45%);
}

/* --- Buttons / Actions --- */
.action-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: #fff;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  border: none;
  box-shadow: 0 2px 8px color-mix(in oklch, var(--secondary), transparent 70%),
              0 1px 3px color-mix(in oklch, var(--secondary), transparent 80%);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  cursor: pointer;
}

.action-primary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px color-mix(in oklch, var(--secondary), transparent 60%),
              0 2px 6px color-mix(in oklch, var(--secondary), transparent 72%);
}

.action-primary:active { transform: translateY(0); }

.action-primary--large {
  font-size: 1.05rem;
  padding: 0.95rem 2.2rem;
}

.action-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--primary);
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-card);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  text-decoration: none;
}

.action-ghost:hover {
  background: var(--primary-xlight);
  border-color: var(--primary-light);
  color: var(--primary-dark);
}

/* --- HERO SECTION --- */
.hero-section {
  padding-top: calc(var(--nav-height) + var(--space-xl));
  padding-bottom: var(--space-2xl);
}

.hero-section .paper-sheet-inner {
  padding-top: 0;
  padding-bottom: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-xlight);
  border: 1px solid var(--primary-light);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  margin-bottom: var(--space-md);
  letter-spacing: 0.01em;
}

.hero-badge i { font-size: 0.75rem; color: var(--accent); }

.hero-headline {
  margin-bottom: var(--space-md);
}

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

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

/* Hero Widgets */
.hero-widget-cluster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: var(--space-sm);
}

.widget-card {
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.widget-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.widget-main {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: var(--space-md);
}

.widget-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-xlight);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--secondary);
  font-size: 1.3rem;
}

.widget-icon-wrap.small {
  width: 38px;
  height: 38px;
  font-size: 1rem;
  border-radius: var(--radius-sm);
}

.widget-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.widget-label {
  font-family: 'Vollkorn', serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.widget-badge {
  margin-left: auto;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
}

.widget-badge.green {
  background: color-mix(in oklch, #22c55e, white 80%);
  color: color-mix(in oklch, #16a34a, black 10%);
}

.widget-progress {
  grid-column: 1 / -1;
  gap: var(--space-xs);
}

.progress-bar-wrap {
  height: 6px;
  background: var(--border-subtle);
  border-radius: 100px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 100px;
  animation: progressFill 1.8s ease forwards;
  animation-delay: 0.8s;
  transform: scaleX(0);
  transform-origin: left;
}

@keyframes progressFill {
  to { transform: scaleX(1); }
}

.progress-label { text-align: right; }

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-intro {
  max-width: 560px;
  margin: var(--space-sm) auto 0;
  color: var(--text-muted);
}

/* --- Dashboard Grid / Leistungen --- */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-sm);
}

.leistung-card {
  grid-column: span 6;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.leistung-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.leistung-card--wide {
  grid-column: span 12;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-md);
  align-items: start;
}

.leistung-card--wide .leistung-list {
  grid-column: 3;
  grid-row: 1 / 4;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.leistung-card--wide h3 {
  grid-column: 2;
}

.leistung-card--wide p {
  grid-column: 2;
}

.leistung-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-xlight);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: var(--space-sm);
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}

.leistung-card:hover .leistung-icon {
  background: var(--secondary-xlight);
  color: var(--primary);
}

.leistung-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-body);
}

.leistung-list li i {
  color: var(--accent);
  font-size: 0.75rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* --- Feature Rows (Alternating) --- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.feature-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.feature-row:first-of-type {
  padding-top: 0;
}

.feature-row--reversed {
  grid-template-columns: 2fr 1fr;
}

.feature-row--reversed .feature-icon-side {
  order: 2;
}

.feature-row--reversed .feature-text-side {
  order: 1;
}

.feature-icon-block {
  width: 100%;
  aspect-ratio: 1;
  max-width: 180px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  background: var(--primary-xlight);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--secondary);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.feature-row:hover .feature-icon-block {
  transform: translateY(-4px) rotate(2deg);
  box-shadow: var(--shadow-lg);
}

.feature-step {
  display: block;
  font-family: 'Vollkorn', serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--border-card);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.feature-text-side h3 {
  margin-bottom: var(--space-sm);
}

.feature-text-side p + p {
  margin-top: var(--space-sm);
}

/* --- Checklist Section --- */
.checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.checklist-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  background: var(--surface-raised-bg);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  transition: box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--shadow-sm);
}

.checklist-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(3px);
}

.check-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: color-mix(in oklch, var(--accent), white 80%);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.check-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.check-content strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

.check-content span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Tech / Swiper Section --- */
.tech-swiper {
  padding-bottom: 3rem !important;
}

.tech-card {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  height: 100%;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.tech-card-icon {
  font-size: 2.2rem;
  color: var(--secondary);
  margin-bottom: var(--space-sm);
}

.tech-card h4 {
  font-family: 'Vollkorn', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.tech-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.swiper-button-prev,
.swiper-button-next {
  color: var(--secondary) !important;
  background: var(--surface-raised-bg);
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-card);
  transition: box-shadow var(--transition), background var(--transition);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  box-shadow: var(--shadow-md);
  background: var(--primary-xlight);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 0.85rem !important;
  font-weight: 700;
}

.swiper-pagination-bullet { background: var(--primary-light) !important; }
.swiper-pagination-bullet-active { background: var(--secondary) !important; }

/* --- CTA Section --- */
.cta-section {
  background: var(--primary);
}

.cta-section .paper-sheet-inner {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.cta-inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.cta-headline {
  color: var(--text-on-dark);
  margin-bottom: var(--space-md);
}

.cta-body {
  color: color-mix(in oklch, var(--text-on-dark), transparent 25%);
  margin-bottom: var(--space-lg);
}

.cta-section .action-primary {
  background: var(--accent);
  box-shadow: 0 4px 20px color-mix(in oklch, var(--accent), transparent 50%);
}

.cta-section .action-primary:hover {
  background: color-mix(in oklch, var(--accent), white 10%);
  box-shadow: 0 6px 28px color-mix(in oklch, var(--accent), transparent 40%);
}

/* --- Kontakt Section --- */
.kontakt-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-lg);
  align-items: start;
}

.form-card {
  border-radius: var(--radius-xl);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--surface-bg);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

.form-input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--secondary), transparent 80%);
}

.form-input::placeholder { color: var(--text-light); }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236a7a8c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.form-checkbox-group {
  margin-bottom: var(--space-md);
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-body);
}

.form-checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-checkbox-custom {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-sm);
  background: var(--surface-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
  margin-top: 1px;
}

.form-checkbox-label input:checked ~ .form-checkbox-custom {
  background: var(--secondary);
  border-color: var(--secondary);
}

.form-checkbox-label input:checked ~ .form-checkbox-custom::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.65rem;
  color: white;
}

.form-link {
  color: var(--secondary);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--transition);
}

.form-link:hover {
  text-decoration-color: var(--secondary);
}

.form-submit {
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
}

/* --- Info Card --- */
.info-card {
  border-radius: var(--radius-xl);
}

.info-card h3 {
  margin-bottom: var(--space-md);
}

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

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.info-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-xlight);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.info-list li > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-list li strong {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-list li a,
.info-list li span {
  font-size: 0.95rem;
  color: var(--text-dark);
}

.info-list li a:hover {
  color: var(--secondary);
}

.map-card {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  margin-top: var(--space-sm);
}

.map-iframe {
  width: 100%;
  height: 220px;
  border: none;
  display: block;
}

/* --- Footer --- */
.site-footer {
  background: var(--text-dark);
  color: var(--text-on-dark);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-md);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid color-mix(in oklch, var(--text-dark), white 20%);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-logo {
  width: 36px;
  height: 36px;
}

.footer-brand-name {
  font-family: 'Vollkorn', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.footer-tagline {
  font-size: 0.875rem;
  color: color-mix(in oklch, var(--text-on-dark), transparent 35%);
  line-height: 1.6;
  max-width: 240px;
  margin-top: 0.25rem;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links-group h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: color-mix(in oklch, var(--text-on-dark), transparent 40%);
  margin-bottom: 0.5rem;
}

.footer-links-group a,
.footer-links-group span {
  font-size: 0.9rem;
  color: color-mix(in oklch, var(--text-on-dark), transparent 20%);
  transition: color var(--transition);
}

.footer-links-group a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  font-size: 0.82rem;
  color: color-mix(in oklch, var(--text-on-dark), transparent 50%);
}

/* --- Legal Pages Common --- */
.legal-page {
  padding-top: calc(var(--nav-height) + var(--space-xl));
  min-height: 100vh;
}

.legal-page .paper-sheet-inner {
  max-width: 860px;
}

.legal-header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
}

.legal-header h1 {
  font-family: 'Vollkorn', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.legal-header .legal-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-content h2 {
  font-family: 'Vollkorn', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: var(--space-lg) 0 var(--space-sm);
}

.legal-content h3 {
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: var(--space-sm) 0 0.4rem;
}

.legal-content p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: var(--space-sm);
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: var(--space-sm);
}

.legal-content ul li {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 0.3rem;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
}

.legal-content table th,
.legal-content table td {
  text-align: left;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
}

.legal-content table th {
  background: var(--surface-inset-bg);
  font-weight: 600;
  color: var(--text-dark);
}

.legal-content a {
  color: var(--secondary);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--transition);
}

.legal-content a:hover {
  text-decoration-color: var(--secondary);
}

/* --- Thanks Page --- */
.thanks-page {
  padding-top: calc(var(--nav-height) + var(--space-2xl));
  padding-bottom: var(--space-2xl);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
}

.thanks-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  border-radius: var(--radius-xl);
}

.thanks-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: color-mix(in oklch, var(--accent), white 82%);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto var(--space-lg);
}

.thanks-card h1 {
  font-family: 'Vollkorn', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.thanks-card > p {
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

.thanks-steps {
  text-align: left;
  background: var(--surface-inset-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.thanks-steps h3 {
  font-family: 'Vollkorn', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.thanks-step-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.thanks-step-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.thanks-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.thanks-step-item p {
  font-size: 0.9rem;
  color: var(--text-body);
  margin: 0;
}

/* --- Cookie Consent (Corner Card) --- */
.cookie-card {
  position: fixed;
  top: calc(var(--nav-height) + 16px);
  left: 16px;
  z-index: 9999;
  width: 320px;
  background: var(--surface-raised-bg);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: var(--space-md);
  box-shadow: var(--shadow-lg);
  transform: translateX(calc(-100% - 24px));
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.cookie-card.is-visible {
  transform: translateX(0);
}

.cookie-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cookie-card-header i {
  color: var(--secondary);
  font-size: 1.1rem;
}

.cookie-card-header strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.cookie-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.cookie-card-actions {
  display: flex;
  gap: 0.5rem;
}

.cookie-btn-accept {
  flex: 1;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition);
}

.cookie-btn-accept:hover { background: var(--primary); }

.cookie-btn-settings {
  flex: 1;
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.cookie-btn-settings:hover {
  background: var(--primary-xlight);
  border-color: var(--primary-light);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: color-mix(in oklch, var(--text-dark), transparent 40%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.cookie-modal-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}

.cookie-modal {
  background: var(--surface-raised-bg);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.cookie-modal h3 {
  font-family: 'Vollkorn', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-subtle);
  gap: var(--space-sm);
}

.cookie-category:last-of-type { border-bottom: none; }

.cookie-category-info strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.cookie-category-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.cookie-toggle {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-toggle-track {
  position: absolute;
  inset: 0;
  background: var(--border-card);
  border-radius: 100px;
  cursor: pointer;
  transition: background var(--transition);
}

.cookie-toggle input:checked ~ .cookie-toggle-track {
  background: var(--secondary);
}

.cookie-toggle-track::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition);
}

.cookie-toggle input:checked ~ .cookie-toggle-track::after {
  transform: translateX(18px);
}

.cookie-toggle input:disabled ~ .cookie-toggle-track {
  opacity: 0.7;
  cursor: not-allowed;
}

.cookie-modal-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: var(--space-md);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .hero-widget-cluster {
    max-width: 480px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .leistung-card {
    grid-column: span 6;
  }

  .leistung-card--wide {
    grid-template-columns: auto 1fr;
    grid-column: span 12;
  }

  .leistung-card--wide .leistung-list {
    grid-column: 1 / -1;
    grid-row: auto;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .checklist-grid {
    gap: var(--space-sm);
  }

  .kontakt-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .nav-links { display: none; }

  .nav-hamburger {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-widget-cluster {
    max-width: 100%;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .leistung-card,
  .leistung-card--wide {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
  }

  .leistung-card--wide .leistung-list {
    flex-direction: column;
  }

  .feature-row,
  .feature-row--reversed {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .feature-row--reversed .feature-icon-side,
  .feature-row--reversed .feature-text-side {
    order: unset;
  }

  .feature-icon-block {
    max-width: 120px;
  }

  .checklist-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions a {
    text-align: center;
  }

  .cookie-card {
    width: calc(100vw - 32px);
    top: calc(var(--nav-height) + 12px);
    left: 16px;
    right: 16px;
  }
}

@media (max-width: 480px) {
  .paper-sheet-inner {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .hero-widget-cluster {
    grid-template-columns: 1fr;
  }

  .widget-main {
    grid-column: span 1;
  }

  .widget-progress {
    grid-column: span 1;
  }

  .space-card {
    padding: var(--space-md);
  }

  .thanks-card {
    padding: var(--space-lg) var(--space-md);
  }
}

/* --- Utility --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}