/* ============================================================
   MIOS Gebäudereinigung & Gartenpflege — Designsystem
   Abgeleitet aus dem Logo: Navy #14304D · Blattgrün #3D8A1E
   Warmes Papierweiß, Editorial-Layout, Fraunces + Inter
   ============================================================ */

/* Selbst gehostete Schriften – keine externen Font-Dienste */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  --ink: #14304d;
  --ink-deep: #0e2440;
  --ink-soft: #3d5165;
  --muted: #4a5d70;
  --green: #3d8a1e;
  --green-strong: #2e6e14;
  --green-deep: #245810;
  --paper: #faf8f3;
  --paper-2: #f1ede3;
  --white: #ffffff;
  --line: rgba(20, 48, 77, 0.16);
  --line-strong: rgba(20, 48, 77, 0.35);
  --radius: 4px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --w-max: 1160px;
  --w-narrow: 760px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --section-pad: clamp(3.5rem, 9vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Typografie ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); font-weight: 600; }
h4 { font-family: var(--font-text); font-size: 1rem; font-weight: 650; margin: 0 0 0.5em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lead { font-size: clamp(1.1rem, 1.9vw, 1.3rem); line-height: 1.6; color: var(--ink-soft); max-width: 46ch; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-strong);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: var(--green-strong); flex: none; }

.accent-line {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 480;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--green-strong);
}

a { color: var(--ink); text-decoration-color: var(--green); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--green-strong); }

:focus-visible { outline: 3px solid var(--green-strong); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 0.7rem 1.2rem; text-decoration: none;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; color: #fff; }

/* ---------- Layout ---------- */

.wrap { max-width: var(--w-max); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.wrap--narrow { max-width: var(--w-narrow); }

.section { padding-block: var(--section-pad); }
.section--alt { background: var(--paper-2); }
.section--ink { background: var(--ink-deep); color: #e9eef4; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink a { color: #fff; }
.section--ink .eyebrow { color: #9ecf82; }
.section--ink .eyebrow::before { background: #9ecf82; }

.split { display: grid; gap: var(--gap); align-items: start; }
@media (min-width: 820px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .split--rev { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .split > .sticky-col { position: sticky; top: 6rem; }
}

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 243, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img { height: 2.9rem; width: auto; }

.site-nav { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.6rem); }
.site-nav a {
  text-decoration: none; font-weight: 520; font-size: 0.97rem; color: var(--ink);
  padding: 0.3rem 0.1rem; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--green-strong); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--green); }

.header-cta { display: flex; align-items: center; gap: 0.9rem; }
.header-phone { font-weight: 600; font-size: 0.95rem; white-space: nowrap; text-decoration: none; }
.header-phone span { color: var(--green-strong); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 0.5rem 0.7rem; cursor: pointer;
  font: inherit; color: var(--ink); font-weight: 600;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.45rem; }
  .site-nav {
    display: none; position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem 0 1rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.85rem clamp(1.1rem, 4vw, 2rem); border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav a[aria-current="page"] { border-left: 3px solid var(--green); border-bottom-color: var(--line); }
  .header-cta .btn { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-text); font-weight: 620; font-size: 1rem;
  padding: 0.8rem 1.5rem; border-radius: var(--radius);
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--green-strong); color: #fff; }
.btn--primary:hover { background: var(--green-deep); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--green-strong); color: var(--green-strong); }
.section--ink .btn--ghost { border-color: #cdd8e2; color: #fff; }
.section--ink .btn--ghost:hover { border-color: #9ecf82; color: #9ecf82; }
.btn--lg { padding: 0.95rem 1.9rem; font-size: 1.05rem; }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(3rem, 8vw, 6rem) var(--section-pad); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 880px) { .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
.hero h1 { max-width: 17ch; }
.hero .lead { margin-top: 1.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; align-items: center; }
.hero__phone { font-size: 0.97rem; color: var(--muted); }
.hero__phone a { font-weight: 650; }
.hero__emblem { justify-self: center; width: min(320px, 70vw); position: relative; }
.hero__emblem::after {
  content: ""; position: absolute; inset: 12% -8% -6% 10%;
  background: radial-gradient(closest-side, rgba(61, 138, 30, 0.10), transparent 75%);
  z-index: -1;
}

/* ---------- Fakten-Leiste ---------- */

.factbar { border-block: 1px solid var(--line); }
.factbar__grid { display: grid; gap: 0; grid-template-columns: 1fr; }
@media (min-width: 700px) { .factbar__grid { grid-template-columns: repeat(3, 1fr); } }
.factbar__item { padding: 1.4rem 1.2rem; border-top: 1px solid var(--line); }
.factbar__item:first-child { border-top: 0; }
@media (min-width: 700px) {
  .factbar__item { border-top: 0; border-left: 1px solid var(--line); padding: 1.6rem 2rem; }
  .factbar__item:first-child { border-left: 0; padding-left: 0; }
}
.factbar__item strong { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 0.2rem; }
.factbar__item span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Leistungs-Index (Editorial-Liste) ---------- */

.service-index { border-top: 1px solid var(--line-strong); }
.service-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline; padding: clamp(1.4rem, 3vw, 2.2rem) 0;
  border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
}
.service-row:hover .service-row__title { color: var(--green-strong); }
.service-row__num {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 500;
  color: var(--green-strong); min-width: 2.2rem;
}
.service-row__title { display: block; font-family: var(--font-display); font-size: clamp(1.3rem, 2.8vw, 1.9rem); font-weight: 560; transition: color 0.15s ease; }
.service-row__desc { display: block; color: var(--muted); font-size: 0.98rem; max-width: 52ch; margin-top: 0.35rem; }
.service-row__arrow { font-size: 1.3rem; color: var(--green-strong); align-self: center; }
@media (max-width: 640px) {
  .service-row { grid-template-columns: auto 1fr; }
  .service-row__arrow { display: none; }
}

/* ---------- Ablauf / Schritte ---------- */

.steps { counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.step { counter-increment: step; padding: clamp(1.5rem, 3vw, 2.2rem) 0; border-bottom: 1px solid var(--line); display: grid; gap: 0.4rem 2rem; }
@media (min-width: 720px) { .step { grid-template-columns: 6rem 1fr; align-items: baseline; } }
.step::before {
  content: "0" counter(step);
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500; color: var(--green-strong); line-height: 1;
}
.step h3 { margin-bottom: 0.3rem; }
.step p { color: var(--ink-soft); max-width: 58ch; }

/* ---------- Merkmal-Liste (statt Icon-Karten) ---------- */

.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.plain-list li { padding-left: 1.6rem; position: relative; }
.plain-list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 0.85rem; height: 1.5px; background: var(--green-strong);
}
.plain-list--cols { gap: 0.75rem 2.5rem; }
@media (min-width: 720px) { .plain-list--cols { grid-template-columns: 1fr 1fr; } }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.check-list li { padding-left: 1.9rem; position: relative; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green-strong); font-weight: 700;
}

/* ---------- Zielgruppen-Weiche ---------- */

.pathway { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 760px) { .pathway { grid-template-columns: 1fr 1fr; } }
.pathway__cell { background: var(--paper); padding: clamp(1.8rem, 4vw, 3rem); display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-start; }
.pathway__cell--alt { background: var(--paper-2); }
.pathway__cell h3 { margin: 0; }
.pathway__cell p { color: var(--ink-soft); }
.pathway__cell .btn { margin-top: auto; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
  align-items: baseline; padding: 1.2rem 0; font-family: var(--font-display);
  font-size: 1.12rem; font-weight: 560;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green-strong); font-size: 1.4rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 1.4rem; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Formular ---------- */

.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .form-field--full { grid-column: 1 / -1; }
}
.form-field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.35rem; }
.form-field .optional { color: var(--muted); font-weight: 450; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
}
.form-field textarea { min-height: 8.5rem; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--green-strong); outline-offset: 0; border-color: var(--green-strong);
}
.form-consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.92rem; color: var(--ink-soft); }
.form-consent input { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; flex: none; }
.form-note { font-size: 0.9rem; color: var(--muted); }
.form-status { margin-top: 1rem; padding: 1rem 1.2rem; border-radius: var(--radius); font-weight: 550; display: none; }
.form-status.is-ok { display: block; background: #e8f2df; color: #245810; border: 1px solid #b9d8a4; }
.form-status.is-err { display: block; background: #f7e8e4; color: #8a2f1d; border: 1px solid #e0b7ac; }
.hp-field { position: absolute; left: -5000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Kontakt-Aside ---------- */

.contact-card { border: 1px solid var(--line); background: var(--paper-2); padding: clamp(1.5rem, 3vw, 2.2rem); }
.contact-card dl { margin: 0; display: grid; gap: 1rem; }
.contact-card dt { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact-card dd { margin: 0.15rem 0 0; font-size: 1.05rem; }
.contact-card dd a { font-weight: 600; }

/* ---------- CTA-Band ---------- */

.cta-band { background: var(--ink-deep); color: #e9eef4; }
.cta-band .wrap { display: grid; gap: 1.5rem; padding-block: clamp(3rem, 7vw, 5rem); align-items: center; }
@media (min-width: 820px) { .cta-band .wrap { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: #fff; margin-bottom: 0.4rem; }
.cta-band p { color: #b9c6d2; max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.cta-band .btn--ghost { border-color: #cdd8e2; color: #fff; }
.cta-band .btn--ghost:hover { border-color: #9ecf82; color: #9ecf82; }
.cta-band .eyebrow { color: #9ecf82; }
.cta-band .eyebrow::before { background: #9ecf82; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink-deep); color: #b9c6d2; font-size: 0.95rem; }
.site-footer a { color: #e9eef4; text-decoration-color: rgba(158, 207, 130, 0.6); }
.site-footer a:hover { color: #9ecf82; }
.site-footer__grid { display: grid; gap: 2.2rem; padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; }
@media (min-width: 820px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }
.site-footer__brand img { height: 3.2rem; width: auto; background: var(--paper); padding: 0.45rem 0.7rem; border-radius: var(--radius); }
.site-footer__brand p { margin-top: 1rem; max-width: 34ch; }
.site-footer h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer__legal { border-top: 1px solid rgba(233, 238, 244, 0.15); padding-block: 1.3rem; display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; justify-content: space-between; font-size: 0.88rem; }
.site-footer__legal ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }

/* ---------- Seitenkopf (Unterseiten) ---------- */

.page-head { padding-block: clamp(2.8rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); }
.page-head .lead { margin-top: 1rem; max-width: 56ch; }
.breadcrumb { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.4rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "→"; margin-right: 0.5rem; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); }

/* ---------- Prosa ---------- */

.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.placeholder {
  background: #fdf3d7; border: 1px dashed #d9b23c; padding: 0.15em 0.45em;
  border-radius: 3px; font-style: normal;
}

/* ---------- 404 ---------- */

.error-page { min-height: 55vh; display: grid; place-content: center; text-align: center; padding-block: var(--section-pad); }
.error-page .accent-line { display: block; margin-bottom: 0.8rem; }
.error-page .hero__actions { justify-content: center; }

/* ---------- Utilities ---------- */

.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
