:root {
  --bg: #f3efe6;
  --bg-deep: #e7e0d2;
  --ink: #1c1914;
  --muted: #5c564c;
  --card: #fffdf8;
  --line: #d4cdb8;
  --accent: #c45c26;
  --brand: #6082bd;
  --button: #bf342f;
  --ok: #2f6b4f;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(28, 25, 20, 0.08);
  --font: "Open Sans", Arial, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #fff8e8 0%, transparent 55%),
    radial-gradient(900px 400px at 100% 0%, #efe4d2 0%, transparent 50%),
    var(--bg);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(243, 239, 230, 0.92);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand__name { color: var(--brand); font-size: 1.35rem; font-weight: 700; }
.brand__tagline { color: var(--button); font-size: 0.82rem; font-weight: 600; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
}
.nav a { text-decoration: none; }
.nav a:hover, .nav a.is-active { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--button);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.btn:hover { filter: brightness(1.05); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn--ok { background: var(--ok); }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  padding: 2.4rem 0 1.5rem;
}
.hero__badge {
  display: inline-block;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
.hero__photo {
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero__photo img { width: 100%; height: 420px; object-fit: cover; }

.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding: 0.4rem 0 2rem;
}
.trust__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.trust__item strong { display: block; color: var(--brand); }

.section { padding: 2.2rem 0; }
.section--alt {
  background: rgba(231, 224, 210, 0.45);
  border-block: 1px solid var(--line);
}
.kicker { color: var(--accent); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.78rem; }

.cards, .offers, .steps, .gallery, .faq, .split {
  display: grid;
  gap: 1rem;
}
.cards { grid-template-columns: repeat(3, 1fr); }
.card, .offer, .step, .faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card img, .offer img { width: 100%; height: 190px; object-fit: cover; }
.card__body, .offer__body, .step, .faq-item { padding: 1rem 1.1rem 1.15rem; }
.step { counter-increment: step; }
.steps { grid-template-columns: repeat(5, 1fr); counter-reset: step; }
.step__num {
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  font-weight: 700; margin-bottom: 0.6rem;
}

.offers { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.offer.is-featured { outline: 2px solid var(--button); }
.offer__price { font-size: 1.45rem; color: var(--button); font-weight: 800; margin: 0.3rem 0 0.7rem; }
.offer ul { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--muted); }

.calc {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}
label { display: block; font-weight: 700; margin: 0.7rem 0 0.3rem; }
input, select, textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
textarea { min-height: 140px; resize: vertical; }
.calc-result {
  background: var(--bg-deep);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.calc-result strong { font-size: 1.6rem; color: var(--ok); display: block; }

.gallery { grid-template-columns: repeat(2, 1fr); }
.gallery figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery img { width: 100%; height: 280px; object-fit: cover; }
.gallery figcaption { padding: 0.8rem 1rem; font-weight: 700; }

.faq { grid-template-columns: 1fr; }
.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.faq-item p { display: none; margin: 0.7rem 0 0; color: var(--muted); }
.faq-item.is-open p { display: block; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.notice { padding: 0.9rem 1rem; border-radius: 12px; margin-bottom: 1rem; }
.notice--ok { background: #e4f3ea; color: var(--ok); }
.notice--err { background: #f8e4e2; color: var(--button); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  color: var(--muted);
}
.site-footer__inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--ink); }

/* Einstellungen über den Footer; schwebendes CCM19-Icon ausblenden. */
.ccm-settings-summoner { display: none !important; }

.legal { max-width: 720px; }
.legal ul { padding-left: 1.2rem; color: var(--muted); }
.legal li { margin: 0.25rem 0; }

.miebach-recaptcha {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8f6f2;
}
.miebach-recaptcha-label {
  margin: 0 0 0.55rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.miebach-recaptcha .g-recaptcha { margin-bottom: 0.35rem; }
.miebach-recaptcha-note {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero, .cards, .offers, .steps, .trust, .calc, .gallery, .form-grid {
    grid-template-columns: 1fr;
  }
  .hero { padding-top: 1.2rem; }
  .hero__photo img, .gallery img { height: 220px; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 1rem;
    top: 4.2rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    box-shadow: var(--shadow);
  }
  .site-header__inner { position: relative; }
  .actions .btn { width: 100%; }
  .miebach-recaptcha .g-recaptcha { transform: scale(0.92); transform-origin: left top; }
}

/* CCM19: auf dem Handy Dialog begrenzen, damit die Buttons erreichbar bleiben. */
@media (max-width: 700px) {
  #ccm-widget.ccm-modal {
    padding: 0 !important;
    align-items: flex-end !important;
  }
  #ccm-widget .ccm-modal-inner {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: min(92dvh, calc(100vh - 8px)) !important;
    height: auto !important;
    margin: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 16px 16px 0 0 !important;
  }
  #ccm-widget .ccm-modal--body {
    max-height: min(92dvh, calc(100vh - 8px)) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    display: flex !important;
    flex-direction: column !important;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }
  #ccm-widget .ccm-widget--buttons {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 2;
    background: #fff !important;
    padding-top: 0.6rem !important;
    padding-bottom: calc(0.8rem + env(safe-area-inset-bottom, 0px)) !important;
    margin-top: auto !important;
  }
}
