/* ============================================
   Einwandererführerschein – Design System
   Mobile-first | Brain-Friendly Architecture
   Heartbeat: v2.1 | 2026-03-11
   ============================================ */

/* --- Font Faces (lokal gehostet) --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Inter-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Outfit-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Outfit-Bold.woff2') format('woff2');
}

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --color-primary: #1B4332;
  --color-primary-light: #2D6A4F;
  --color-primary-dark: #0F2B1F;
  --color-accent: #D4A843;
  --color-accent-light: #E8C86A;
  --color-accent-dark: #B8922E;
  --color-bg: #FAFAF5;
  --color-bg-alt: #F0EFE8;
  --color-bg-dark: #1A1A1A;
  --color-text: #2D2D2D;
  --color-text-light: #5A5A5A;
  --color-text-inverse: #FAFAF5;
  --color-white: #FFFFFF;
  --color-danger: #C1392B;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;

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

  /* Borders & Shadows */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50%;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-strong: 0 12px 40px rgba(0, 0, 0, 0.18);
  --shadow-glow: 0 0 30px rgba(212, 168, 67, 0.3);

  /* Transitions */
  --transition-fast: 200ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary-dark);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
}

p {
  margin-bottom: var(--space-sm);
}

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

.text-highlight {
  background: linear-gradient(120deg, rgba(212, 168, 67, 0.2) 0%, rgba(212, 168, 67, 0.1) 100%);
  padding: 0.1em 0.3em;
  border-radius: 4px;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-xl) 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: var(--color-white);
  box-shadow: var(--shadow-medium), var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong), 0 0 40px rgba(212, 168, 67, 0.5);
  color: var(--color-white);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.2rem 3rem;
  font-size: 1.25rem;
}

/* Pulse animation for CTA */
@keyframes pulse {
  0%, 100% { box-shadow: var(--shadow-medium), 0 0 0 0 rgba(212, 168, 67, 0.4); }
  50% { box-shadow: var(--shadow-medium), 0 0 0 12px rgba(212, 168, 67, 0); }
}

.btn-pulse {
  animation: pulse 2.5s infinite;
}

.btn-pulse:hover {
  animation: none;
}

/* --- Scroll Reveal Animation --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Section: HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--color-primary-dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 43, 31, 0.6) 0%,
    rgba(15, 43, 31, 0.8) 60%,
    rgba(15, 43, 31, 0.95) 100%
  );
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: var(--space-lg);
}

.hero__badge {
  display: inline-block;
  background: rgba(212, 168, 67, 0.15);
  border: 1px solid rgba(212, 168, 67, 0.4);
  color: var(--color-accent-light);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  letter-spacing: 0.03em;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero h1 span {
  display: block;
  color: var(--color-accent-light);
}

.hero__subtitle {
  color: rgba(255,255,255,0.85);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-lg);
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  font-weight: 500;
}

.hero__meta-item svg {
  width: 20px;
  height: 20px;
  fill: var(--color-accent-light);
  flex-shrink: 0;
}

/* --- Section: PROBLEM --- */
.problem {
  background: var(--color-bg);
  position: relative;
}

.problem__grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.problem__card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-md);
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--color-danger);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.problem__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.problem__card-icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-xs);
}

.problem__card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary-dark);
}

.problem__card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* --- Section: SOLUTION --- */
.solution {
  background: var(--color-primary-dark);
  color: var(--color-text-inverse);
  position: relative;
  overflow: hidden;
}

.solution::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,168,67,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.solution h2 {
  color: var(--color-white);
}

.solution__intro {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 700px;
  margin-bottom: var(--space-lg);
}

.solution__steps {
  display: grid;
  gap: var(--space-md);
  counter-reset: steps;
  margin-top: var(--space-lg);
}

.solution__step {
  counter-increment: steps;
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md);
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition-base), border-color var(--transition-base);
}

.solution__step:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(212,168,67,0.3);
}

.solution__step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.solution__step-content h3 {
  color: var(--color-accent-light);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.solution__step-content p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- Section: ABOUT (Referent) --- */
.about {
  background: var(--color-bg-alt);
}

.about__wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: center;
}

.about__picture {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
}

.about__picture img {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 4px solid var(--color-accent);
  box-shadow: var(--shadow-medium);
  display: block;
}

.about__text h2 {
  margin-bottom: var(--space-sm);
}

.about__text p {
  color: var(--color-text-light);
  font-size: 1.05rem;
}

.about__stats {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.about__stat {
  text-align: center;
}

.about__stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  display: block;
}

.about__stat-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* --- Section: PRICING (CTA) --- */
.pricing {
  background: var(--color-bg);
  text-align: center;
}

.pricing__card {
  max-width: 550px;
  margin: var(--space-lg) auto 0;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--shadow-strong);
  border: 2px solid rgba(212, 168, 67, 0.3);
  position: relative;
  overflow: hidden;
}

.pricing__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
}

.pricing__label {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.pricing__price {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.pricing__price-note {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
}

.pricing__features {
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-lg);
}

.pricing__features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-bg-alt);
  font-size: 1rem;
  color: var(--color-text);
}

.pricing__features li:last-child {
  border-bottom: none;
}

.pricing__features li svg {
  width: 20px;
  height: 20px;
  fill: var(--color-primary);
  flex-shrink: 0;
}

.pricing__guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-md);
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.pricing__guarantee svg {
  width: 16px;
  height: 16px;
  fill: var(--color-primary);
}

/* --- Section: FAQ --- */
.faq {
  background: var(--color-bg-alt);
}

.faq__list {
  max-width: 750px;
  margin: var(--space-lg) auto 0;
}

.faq__item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.faq__question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: var(--space-md);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition-fast);
}

.faq__question:hover {
  color: var(--color-accent-dark);
}

.faq__question svg {
  width: 20px;
  height: 20px;
  fill: var(--color-primary);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.faq__item.active .faq__question svg {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-base);
}

.faq__item.active .faq__answer {
  max-height: 300px;
}

.faq__answer-inner {
  padding: 0 var(--space-md) var(--space-md);
  color: var(--color-text-light);
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  font-size: 0.85rem;
}

.footer a {
  color: rgba(255,255,255,0.8);
}

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

.footer__links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

/* --- Sticky CTA Bar (Mobile) --- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 43, 31, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform var(--transition-base);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta__price {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
}

.sticky-cta .btn {
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
}

/* --- Responsive Design (Mobile-first) --- */

/* Tablet */
@media (min-width: 640px) {
  .problem__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about__wrapper {
    flex-direction: row;
    text-align: left;
  }

  .about__picture,
  .about__picture img {
    width: 200px;
    height: 200px;
  }
}

/* Desktop */
@media (min-width: 960px) {
  section {
    padding: var(--space-2xl) 0;
  }

  .problem__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .solution__steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .sticky-cta {
    display: none;
  }

  .about__picture,
  .about__picture img {
    width: 240px;
    height: 240px;
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .container {
    padding: 0 var(--space-lg);
  }
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
