/* Schlünsen Generalunternehmen – Stylesheet (mobile first) */

@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 {
  --anthrazit: #2B2F33;
  --anthrazit-2: #3A3F44;
  --text: #2B2F33;
  --text-muted: #565C62;
  --bg: #F7F4EE;
  --bg-alt: #EFEAE1;
  --surface: #FFFFFF;
  --line: #DED8CC;
  --gruen: #2E8B57;          /* Akzent, Buttons (große, fette Schrift) */
  --gruen-dunkel: #1F6B43;   /* Links und kleine Texte auf hellem Grund */
  --gruen-hell: #E3F1E8;
  --gruen-auf-dunkel: #7FD3A2;
  --radius: 14px;
  --radius-s: 8px;
  --shadow: 0 1px 2px rgba(43, 47, 51, .06), 0 8px 24px rgba(43, 47, 51, .07);
  --max: 1180px;
  --header-h: 68px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .6em; color: var(--anthrazit); }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }

a { color: var(--gruen-dunkel); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--anthrazit); }

:focus-visible {
  outline: 3px solid var(--gruen);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--anthrazit); color: #fff; padding: 12px 18px; border-radius: var(--radius-s);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--anthrazit); color: #E9E6E0; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a { color: var(--gruen-auf-dunkel); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--text-muted); font-size: 1.125rem; }
.section--dark .section-head p { color: #CFCAC2; }

.eyebrow {
  display: inline-block; font-size: .8125rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gruen-dunkel); margin-bottom: 10px;
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--gruen-auf-dunkel); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  font: inherit; font-size: 1.1875rem; font-weight: 700; line-height: 1.2;
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn--primary { background: var(--gruen); color: #fff; }
.btn--primary:hover { background: var(--gruen-dunkel); color: #fff; }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--anthrazit); border-color: var(--anthrazit); }
.btn--ghost:hover { background: var(--anthrazit); color: #fff; }
.btn--light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--light:hover { background: #fff; color: var(--anthrazit); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, .96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(247, 244, 238, .86); backdrop-filter: blur(10px); }
}
.header-inner { display: flex; align-items: center; gap: 8px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; padding: 6px 0; }
.brand img { width: 172px; height: auto; }
.header-cta { min-height: 44px; padding: 8px 18px; font-size: 1.1875rem; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 0; border-radius: 10px; background: transparent;
  color: var(--anthrazit); cursor: pointer;
}
.nav-toggle:hover { background: var(--bg-alt); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
  background: var(--bg); overflow-y: auto; padding: 12px 20px 32px; border-top: 1px solid var(--line);
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a {
  display: block; padding: 14px 8px; font-size: 1.1875rem; font-weight: 600;
  color: var(--anthrazit); text-decoration: none; border-bottom: 1px solid var(--line);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gruen-dunkel); }
body.nav-open { overflow: hidden; }

@media (max-width: 599px) {
  /* kleinere Schrift -> dunkleres Grün für ausreichenden Kontrast */
  .header-cta { font-size: 1rem; padding: 8px 14px; background: var(--gruen-dunkel); }
  .nav-toggle { width: 44px; }
}
@media (max-width: 374px) {
  .brand img { width: 146px; }
  .header-cta { padding: 8px 11px; }
}

@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open {
    display: block; position: static; padding: 0; background: none; border: 0; overflow: visible;
  }
  .site-nav ul { display: flex; gap: 2px; }
  .site-nav a {
    font-size: .95rem; padding: 10px 9px; border: 0; border-radius: 8px; white-space: nowrap;
  }
  .site-nav a:hover { background: var(--bg-alt); }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gruen); border-radius: 0; }
  .brand img { width: 200px; }
  .header-inner { gap: 14px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--anthrazit); overflow: hidden; }
.hero picture, .hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .hero-img { object-fit: cover; object-position: center 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(31, 34, 37, .92) 0%, rgba(31, 34, 37, .78) 55%, rgba(31, 34, 37, .45) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 72px 0 80px; max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero-lead { font-size: clamp(1.125rem, 2.4vw, 1.3rem); color: #EDEAE4; max-width: 640px; margin-bottom: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 30px 0 0; color: #EDEAE4; font-weight: 600; }
.hero-facts li { display: flex; align-items: center; gap: 8px; margin: 0; }
.hero-facts svg { color: var(--gruen-auf-dunkel); }
@media (min-width: 900px) { .hero-inner { padding: 120px 0 128px; } }

/* Seitenkopf Unterseiten */
.page-hero { background: var(--anthrazit); color: #E9E6E0; padding: 48px 0 52px; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 5vw, 3rem); }
.page-hero p { font-size: 1.15rem; max-width: 720px; color: #DAD6CF; margin: 0; }
.breadcrumb { font-size: .9rem; margin-bottom: 18px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li { margin: 0; color: #BDB8B0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.breadcrumb a { color: #E9E6E0; }

/* ---------- Grids & Karten ---------- */
.grid { display: grid; gap: 22px; }
@media (min-width: 680px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column; border: 1px solid #ECE7DE;
}
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--text-muted); }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-link { position: relative; transition: transform .2s, box-shadow .2s; }
.card-link:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(43, 47, 51, .08), 0 16px 32px rgba(43, 47, 51, .12); }
.card-link a.stretched { text-decoration: none; color: inherit; }
.card-link a.stretched::after { content: ""; position: absolute; inset: 0; }
.card-link a.stretched:focus-visible { outline: none; }
.card-link:focus-within { outline: 3px solid var(--gruen); outline-offset: 3px; }
.card-more { margin-top: auto; font-weight: 700; color: var(--gruen-dunkel); display: inline-flex; align-items: center; gap: 6px; }

.icon-badge {
  width: 52px; height: 52px; border-radius: 12px; background: var(--gruen-hell); color: var(--gruen-dunkel);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.section--dark .icon-badge { background: rgba(127, 211, 162, .14); color: var(--gruen-auf-dunkel); }

.feature { padding: 26px; background: var(--surface); border-radius: var(--radius); border: 1px solid #ECE7DE; }
.feature p { color: var(--text-muted); margin: 0; }
.section--dark .feature { background: var(--anthrazit-2); border-color: #4A5056; }
.section--dark .feature p { color: #D6D1C9; }

/* Split-Layout Text + Bild */
.split { display: grid; gap: 32px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .split--reverse > :first-child { order: 2; }
}

.lead { font-size: 1.2rem; color: var(--text-muted); }

/* Leistungsliste */
.service-list { display: grid; gap: 18px; }
@media (min-width: 760px) { .service-list { grid-template-columns: repeat(2, 1fr); } }
.service {
  background: var(--surface); border: 1px solid #ECE7DE; border-radius: var(--radius); padding: 24px;
  border-left: 4px solid var(--gruen);
}
.service h3 { margin-bottom: .4em; }
.service p { color: var(--text-muted); margin-bottom: .6em; }
.service ul { color: var(--text-muted); margin: 0; }
.service p:last-child { margin-bottom: 0; }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: .7em; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .25em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gruen-hell) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F6B43' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Ablauf */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  counter-increment: step; margin: 0; padding: 26px 24px; background: var(--surface);
  border-radius: var(--radius); border: 1px solid #ECE7DE; position: relative;
}
.steps li::before {
  content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--anthrazit); color: #fff;
  font-weight: 800; font-size: 1.15rem; margin-bottom: 14px;
}
.steps h3 { margin-bottom: .35em; }
.steps p { color: var(--text-muted); margin: 0; }

/* CTA-Band */
.cta-band { background: var(--gruen-dunkel); color: #fff; padding: 56px 0; }
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { color: #E4F2EA; font-size: 1.15rem; max-width: 640px; }
.cta-band .btn--primary { background: #fff; color: var(--gruen-dunkel); }
.cta-band .btn--primary:hover { background: var(--anthrazit); color: #fff; }
.cta-inner { display: grid; gap: 22px; align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; } }

/* FAQ */
.faq { max-width: 860px; }
.faq details {
  background: var(--surface); border: 1px solid #ECE7DE; border-radius: var(--radius-s); margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 20px; font-weight: 700; font-size: 1.0625rem;
  position: relative; min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--gruen-dunkel); border-bottom: 2.5px solid var(--gruen-dunkel); transform: rotate(45deg);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .faq-a { padding: 0 20px 18px; color: var(--text-muted); }
.faq .faq-a p:last-child { margin: 0; }

/* Info-Box */
.note {
  background: var(--gruen-hell); border-radius: var(--radius-s); padding: 18px 20px; border-left: 4px solid var(--gruen);
}
.note p:last-child { margin: 0; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.4fr .9fr; gap: 48px; } }
.form-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 22px; }
@media (min-width: 600px) { .form-card { padding: 34px; } }
.form-row { display: grid; column-gap: 18px; }
@media (min-width: 600px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 18px; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  min-height: 50px; padding: 12px 14px; border: 1.5px solid #B9B2A6; border-radius: var(--radius-s); background: #fff;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gruen); outline: 3px solid rgba(46, 139, 87, .25); outline-offset: 0; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2F33' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
.field-hint { font-size: .9rem; color: var(--text-muted); margin-top: 4px; }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field-error { color: #B3261E; font-size: .925rem; margin-top: 4px; font-weight: 600; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--gruen); flex-shrink: 0; }
.check label { font-weight: 400; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: var(--radius-s); padding: 16px 18px; margin-bottom: 20px; font-weight: 600; }
.form-status--ok { background: var(--gruen-hell); color: #174E31; border-left: 4px solid var(--gruen); }
.form-status--error { background: #FBE9E7; color: #8C1D18; border-left: 4px solid #B3261E; }
.form-status[hidden] { display: none; }
.btn[disabled] { opacity: .7; cursor: progress; }

.info-block { margin-bottom: 28px; }
.info-block h2 { font-size: 1.3rem; margin-bottom: .5em; }
.info-block address { font-style: normal; }
.info-block .big-link { font-size: 1.15rem; font-weight: 700; word-break: break-word; }

/* Rechtstexte */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.4em; }
.placeholder { background: #FFF3C4; padding: 0 4px; border-radius: 3px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: #1F2225; color: #CFCAC2; padding: 56px 0 28px; font-size: .975rem; }
.site-footer a { color: #E9E6E0; text-decoration: none; }
.site-footer a:hover { color: var(--gruen-auf-dunkel); text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 4px; }
.site-footer li a { display: inline-block; padding: 6px 0; }
.site-footer address { font-style: normal; }
.footer-brand img { width: 230px; margin-bottom: 16px; }
.footer-bottom {
  border-top: 1px solid #3A3F44; margin-top: 40px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .9rem; color: #A9A49C;
}

.mt-0 { margin-top: 0; }
.mt-28 { margin-top: 28px; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
