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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: #F6F4F1;
  color: #4D4A43;
  line-height: 1.65;
  font-size: 16px;
}

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --accent:         #7E8460;
  --accent-light:   #EDEEE6;
  --accent-dark:    #4D4A43;
  --accent-border:  #D7CFC2;
  --section-alt:    #EDEEE6;
  --bg:             #F6F4F1;
  --text:           #4D4A43;
  --muted:          #9A9589;
  --nav-h:          76px;
  --radius:         12px;
  --radius-lg:      14px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 80px 0;
}

.section-tinted {
  background-color: var(--section-alt);
}

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

/* Offset anchors for sticky nav */
section[id] {
  scroll-margin-top: var(--nav-h);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--accent-dark);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--accent-dark);
  line-height: 1.2;
  margin-bottom: 40px;
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-dark);
  line-height: 1.3;
  margin-bottom: 8px;
}

p {
  color: var(--text);
  line-height: 1.7;
}

a {
  color: inherit;
}

/* ============================================================
   BUTTON
   ============================================================ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: none;
  line-height: 1;
  transition: opacity 0.18s ease;
}

.btn:hover {
  opacity: 0.82;
}

.btn-primary {
  background-color: var(--accent);
  color: #F6F4F1;
}

/* ============================================================
   IMAGE PLACEHOLDERS
   ============================================================ */
.img-placeholder {
  background: #EDEEE6;
  border: 1.5px dashed #7E8460;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-label {
  font-size: 14px;
  font-weight: 500;
  color: #4D4A43;
  text-align: center;
  padding: 20px;
  pointer-events: none;
  user-select: none;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #F6F4F1;
  border-bottom: 1.5px solid var(--accent-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 60px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.18s;
}

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

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

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-img {
  display: block;
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 28px;
  background: rgba(237, 238, 230, 0.52);
}

.hero-overlay h1 {
  margin-bottom: 14px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text);
  margin-bottom: 32px;
  max-width: 520px;
}

/* ============================================================
   MEIN ANGEBOT
   ============================================================ */
.angebot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.angebot-text h2 {
  margin-bottom: 20px;
}

.angebot-text > p {
  margin-bottom: 32px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 100px;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1.5px solid var(--accent-border);
}

.angebot-img {
  display: flex;
  justify-content: center;
}

.portrait-placeholder {
  width: 100%;
  max-width: 480px;
  height: 360px;
}

.portrait-img {
  display: block;
  width: 100%;
  max-width: 480px;
  height: 420px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
}

/* ============================================================
   VORTEILE
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  border: 1.5px solid var(--accent-border);
  transition: background 0.18s ease;
}

.card:hover {
  background: #E8E5DE;
}

.card-icon {
  font-size: 1.75rem;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
  line-height: 1;
}

.card h3 {
  font-size: 0.975rem;
}

.card p {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ============================================================
   ANWENDUNGSBEREICHE
   ============================================================ */
.anwendung-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 40px;
}

.pill {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--accent-light);
  border-radius: 10px;
  padding: 14px 20px;
  border: 1px solid var(--accent-border);
}

.pill i {
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
}

.pill span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.situation-placeholder {
  width: 100%;
  height: 320px;
}

.situation-img {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center center;
  border-radius: var(--radius);
}

/* ============================================================
   DAS VERFAHREN — TIMELINE
   ============================================================ */
.timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

/* Vertical connector line */
.timeline::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 23px;
  bottom: 23px;
  width: 2px;
  background: var(--accent-border);
  z-index: 0;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 28px;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.step-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #F6F4F1;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-body {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 26px;
  border: 1.5px solid var(--accent-border);
  flex: 1;
  /* Vertically align with circle */
  margin-top: 0;
}

.step-body h3 {
  margin-bottom: 8px;
}

.step-body p {
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ============================================================
   ZEITAUFWAND & KOSTEN
   ============================================================ */
.kosten-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.kosten-card {
  background: var(--accent-light);
  border-radius: var(--radius);
  padding: 40px 36px;
  border: 1.5px solid var(--accent-border);
}

.kosten-icon {
  font-size: 2rem;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
  line-height: 1;
}

.kosten-card h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.kosten-card p {
  font-size: 0.925rem;
  line-height: 1.7;
}

/* ============================================================
   KONTAKT
   ============================================================ */
.kontakt-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--accent-border);
  padding: 48px 44px;
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}

.kontakt-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 6px;
}

.kontakt-title {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.4;
}

.kontakt-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.kontakt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-dark);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.18s;
}

.kontakt-row:hover {
  color: var(--accent);
}

.kontakt-row i {
  font-size: 1.15rem;
  color: var(--accent);
  line-height: 1;
}

.kontakt-note {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #4D4A43;
  padding: 40px 0;
  text-align: center;
}

.footer-logo-img {
  height: 56px;
  width: auto;
  display: block;
  margin: 0 auto 20px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.site-footer p {
  color: #F6F4F1;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.site-footer .footer-sub {
  font-size: 0.8rem;
  color: #D7CFC2;
  margin-bottom: 0;
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .angebot-grid {
    gap: 40px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 680px)
   ============================================================ */
@media (max-width: 680px) {
  .section {
    padding: 48px 0;
  }

  h2 {
    margin-bottom: 28px;
  }

  /* Nav — hamburger */
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #F6F4F1;
    border-bottom: 1.5px solid var(--accent-border);
    padding: 6px 0;
    z-index: 199;
  }

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

  .nav-links li a {
    display: block;
    padding: 14px 28px;
    font-size: 1rem;
    border-bottom: 1px solid var(--accent-border);
  }

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

  /* Hero */
  .hero-img {
    height: 300px;
  }

  /* Angebot — stack: text then image */
  .angebot-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .portrait-placeholder,
  .portrait-img {
    max-width: 100%;
    height: 300px;
  }

  /* Vorteile */
  .cards-grid {
    grid-template-columns: 1fr;
  }

  /* Anwendung */
  .anwendung-grid {
    grid-template-columns: 1fr;
  }

  .situation-placeholder,
  .situation-img {
    height: 240px;
  }

  /* Verfahren */
  .timeline::before {
    left: 19px;
  }

  .step-num {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }

  .timeline-item {
    gap: 18px;
  }

  .step-body {
    padding: 18px 18px;
  }

  /* Kosten */
  .kosten-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .kosten-card {
    padding: 32px 28px;
  }

  /* Kontakt */
  .kontakt-card {
    padding: 36px 22px;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 420px)
   ============================================================ */
@media (max-width: 420px) {
  .container {
    padding: 0 16px;
  }

  .hero-overlay {
    padding: 20px 16px;
  }

  .btn {
    padding: 13px 24px;
    font-size: 0.95rem;
  }
}
