:root {
  --bg: #f6f8f5;
  --bg-alt: #e9efe6;
  --surface: #ffffff;
  --surface-2: #eef3ea;
  --border: #dbe4d7;
  --text: #263428;
  --text-dim: #5d6d60;
  --accent: #3c5a45;
  --accent-light: #6b8f74;
  --accent-soft: #dce7dd;
  --accent-gradient: linear-gradient(135deg, #4a7057 0%, #2e4634 100%);
  --radius: 22px;
  --shadow: 0 20px 45px -22px rgba(38, 54, 43, 0.22);
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent-soft); color: var(--accent); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Decorative dotted-circle pattern (signature motif) */
.dot-pattern {
  position: absolute;
  width: 440px;
  height: 440px;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(60, 90, 70, 0.28) 1.5px, transparent 1.6px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(circle, black 55%, transparent 72%);
  mask-image: radial-gradient(circle, black 55%, transparent 72%);
  opacity: 0.6;
  z-index: 0;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent-gradient);
  z-index: 200;
  transition: width 0.1s linear;
}

/* Floating quick-contact button */
.fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 90;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.fab.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.fab:hover { transform: translateY(-3px) scale(1.05); }
.fab svg { width: 24px; height: 24px; }
@media (max-width: 560px) {
  .fab { right: 16px; bottom: 16px; width: 50px; height: 50px; }
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--text);
  letter-spacing: -0.01em;
}
p { color: var(--text-dim); margin: 0 0 16px; }
a { color: var(--accent); text-decoration: none; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(46, 70, 52, 0.55);
}
.btn-primary:hover { box-shadow: 0 14px 30px -8px rgba(46, 70, 52, 0.65); }

.btn-ghost {
  background: #fff;
  color: var(--accent);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent-light); background: var(--accent-soft); }

.btn-small { padding: 11px 22px; font-size: 14px; }
.price-card .btn-small { width: 100%; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(246, 248, 245, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(246, 248, 245, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  white-space: nowrap;
}
.logo-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--accent-gradient);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 16px; height: 16px; }

.main-nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
  margin-right: 24px;
}
.main-nav a {
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--accent); }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  padding: 168px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero .dot-pattern { top: -140px; left: -160px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-inner { max-width: 620px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(32px, 5vw, 50px);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}
.stat-label { font-size: 13px; color: var(--text-dim); }

/* Hero feature pills (signature visual) */
.hero-pills {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 10px 30px 10px 0;
}
.hero-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--accent-gradient);
  color: #fff;
  border-radius: 999px;
  padding: 22px 26px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.hero-pill:nth-child(1) { transform: rotate(-1.5deg); }
.hero-pill:nth-child(2) { transform: rotate(1deg) translateX(14px); }
.hero-pill:nth-child(3) { transform: rotate(-1deg); }
.hero-pill:hover { transform: scale(1.03); }
.hero-pill-icon { font-size: 22px; flex-shrink: 0; }

.hero-sticker {
  position: absolute;
  top: -22px;
  right: -10px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #fff;
  border: 2px dashed var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(9deg);
  box-shadow: var(--shadow);
  z-index: 3;
}
.hero-sticker span {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.35;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-pills { flex-direction: row; flex-wrap: wrap; padding: 30px 0 0; }
  .hero-pill:nth-child(n) { transform: none; }
  .hero-sticker { top: -14px; right: 0; }
  .hero-pill { flex: 1 1 220px; }
}
@media (max-width: 560px) {
  .hero-pills { flex-direction: column; }
}

/* Marquee */
.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 22px;
  animation: marquee-scroll 30s linear infinite;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  white-space: nowrap;
}
.marquee-track span:nth-child(even) { color: var(--text-dim); font-weight: 400; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* Wave divider between alt/plain sections */
.wave-divider {
  width: 100%;
  line-height: 0;
  margin-top: -1px;
  background: var(--bg-alt);
}
.wave-divider svg {
  width: 100%;
  height: 56px;
  display: block;
}

/* Sections */
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-alt); }

.section-kicker {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.section-title { font-size: clamp(26px, 3.5vw, 36px); }
.section-sub { max-width: 560px; font-size: 16px; margin-bottom: 48px; }

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-light);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 46px; height: 46px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 14.5px; margin: 0; }

/* Bento layout for services */
.cards-grid.bento {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, minmax(150px, auto));
  grid-template-areas:
    "big big tall sma"
    "big big tall smb"
    "med med wide wide";
}
.card-big {
  grid-area: big;
  background: var(--accent-gradient);
  border-color: transparent;
  justify-content: flex-end;
}
.card-big .card-icon { background: rgba(255, 255, 255, 0.18); color: #fff; }
.card-big h3, .card-big p { color: #fff; }
.card-big h3 { font-size: 23px; }
.card-tall { grid-area: tall; justify-content: flex-end; }
.card-sm-a { grid-area: sma; }
.card-sm-b { grid-area: smb; }
.card-med { grid-area: med; }
.card-wide { grid-area: wide; }

@media (max-width: 900px) {
  .cards-grid.bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    grid-template-areas:
      "big big"
      "tall tall"
      "sma smb"
      "med med"
      "wide wide";
  }
}
@media (max-width: 560px) {
  .cards-grid.bento {
    grid-template-columns: 1fr;
    grid-template-areas:
      "big"
      "tall"
      "sma"
      "smb"
      "med"
      "wide";
  }
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.step {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; margin: 0; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.price-card:hover { transform: translateY(-4px); }
.price-card.highlighted {
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
.price-footnote {
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}
.price-badge {
  position: absolute;
  top: -12px; right: 24px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin: 0;
}
.price-card h3 { font-size: 18px; margin-bottom: 8px; }
.price {
  font-family: 'Poppins', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}
.price span { font-size: 14px; color: var(--text-dim); font-weight: 400; font-family: 'Inter', sans-serif; }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex-grow: 1;
}
.price-card li {
  font-size: 14px;
  color: var(--text-dim);
  padding-left: 24px;
  position: relative;
  margin-bottom: 10px;
}
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Configurator */
.configurator {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}
.config-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.config-step-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 14px;
}
.pill-group, .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.pill:hover { border-color: var(--accent-light); color: var(--text); }
.pill.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
  transform: translateY(-1px);
}

.checkbox-pill {
  position: relative;
  font-size: 13.5px;
  color: var(--text-dim);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px 10px 34px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.checkbox-pill:hover { border-color: var(--accent-light); color: var(--text); }
.checkbox-pill input {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  accent-color: var(--accent);
  width: 14px; height: 14px;
}
.checkbox-pill:has(input:checked),
.checkbox-pill.checked {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-soft);
}

.config-result {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.config-price {
  font-family: 'Poppins', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  margin: 6px 0 4px;
}
.config-summary {
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 22px;
}
.config-result .btn { width: 100%; margin-bottom: 16px; }
.config-note {
  font-size: 11.5px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .configurator { grid-template-columns: 1fr; }
  .config-result { position: static; }
}

/* About */
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.highlight {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  font-size: 14.5px;
  color: var(--text);
}
.highlight span { font-size: 20px; }

/* About portrait */
.about-portrait-wrap {
  position: relative;
  width: 108px;
  height: 108px;
  margin-bottom: 24px;
}
.about-dot-pattern {
  width: 220px;
  height: 220px;
  top: -56px;
  left: -56px;
  opacity: 0.5;
}
.about-portrait {
  position: relative;
  z-index: 1;
  width: 108px;
  height: 108px;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 32px;
  box-shadow: var(--shadow);
}

/* FAQ accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px 24px;
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: var(--accent-light); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 36px 20px 0;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--text);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  margin: 0 0 20px;
  font-size: 14.5px;
  color: var(--text-dim);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: start;
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.15s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-row textarea { resize: vertical; }
.form-note {
  font-size: 12.5px;
  margin: 14px 0 0;
  color: var(--text-dim);
}

.contact-info { display: flex; flex-direction: column; gap: 20px; }
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.info-card h3 { font-size: 16px; margin-bottom: 10px; }
.info-card p { font-size: 14px; margin-bottom: 6px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg-alt);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner p { margin: 0; font-size: 13.5px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13.5px; color: var(--text-dim); }
.footer-links a:hover { color: var(--accent); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Simple pages (Impressum/Datenschutz) */
.legal-page {
  padding: 160px 0 100px;
  max-width: 760px;
}
.legal-page h1 { font-size: 32px; margin-bottom: 24px; }
.legal-page h2 { font-size: 20px; margin-top: 36px; }
.legal-page p, .legal-page li { color: var(--text-dim); font-size: 15px; }
.legal-note {
  background: var(--accent-soft);
  border: 1px solid var(--accent-light);
  border-radius: 14px;
  padding: 16px 20px;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 900px) {
  .about-inner, .contact-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px 28px;
    gap: 18px;
    margin: 0;
  }
}

@media (max-width: 520px) {
  .hero { padding: 136px 0 64px; }
  .section { padding: 64px 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
