/* AEI – Homepage. Farben und Schriften nach Style Guide „AEI Corporate Design“. */
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/ebgaramond-latin.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("../fonts/sourcesans3-latin.woff2") format("woff2"); }

:root {
  --schwarz: #000; --anthrazit: #404040; --grau-text: #595959; --grau-mittel: #7F7F7F;
  --beton-dunkel: #A6A6A6; --beton: #BFBFBF; --beton-hell: #D9D9D9; --papier: #F2F2F2; --weiss: #fff; --fehler: #C00000;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--papier); color: var(--schwarz); font-family: var(--sans); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--schwarz); }
a:hover { color: var(--anthrazit); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; text-wrap: balance; }
p, li { text-wrap: pretty; hyphens: auto; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--grau-text); font-weight: 600; }
.nowrap { white-space: nowrap; }
.btn { display: inline-block; background: var(--schwarz); color: var(--weiss); text-decoration: none; padding: 16px 28px; font-weight: 600; border: 1.5px solid var(--schwarz); }
.btn:hover { color: var(--weiss); background: var(--anthrazit); }
.btn--hell { background: var(--weiss); color: var(--schwarz); }
.btn--hell:hover { background: var(--papier); color: var(--schwarz); }
.mehr { font-weight: 600; }

/* Kopf */
.kopf { background: var(--weiss); border-bottom: 1px solid var(--beton-hell); }
.kopf .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 18px; padding-bottom: 18px; }
.marke { display: block; line-height: 0; margin-right: auto; }
.kopf .tel { padding: 12px 22px; }
.marke img { height: 64px; width: auto; }
.marke .nur-logo { display: none; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 26px; font-size: 19px; }
.nav a { text-decoration: none; padding: 10px 0; }
.zurueck { font-weight: 600; padding: 10px 0; }

/* Hero */
.hero { position: relative; min-height: 700px; display: flex; align-items: flex-end; background: var(--anthrazit); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .wrap { position: relative; width: 100%; }
.hero-box { background: var(--weiss); max-width: 640px; padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 20px; margin-bottom: 64px; }
.hero h1 { font-size: clamp(42px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -.01em; }
.hero p { font-size: 20px; color: var(--anthrazit); }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* Vertrauensleiste */
.leiste { background: var(--weiss); border-bottom: 1px solid var(--beton-hell); }
.leiste .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 40px; padding-top: 22px; padding-bottom: 22px; font-size: 16px; color: var(--anthrazit); }
.leiste strong { color: var(--schwarz); }

/* Abschnitte */
.abschnitt { padding: clamp(56px, 8vw, 96px) 0; }
.abschnitt--weiss { background: var(--weiss); border-top: 1px solid var(--beton-hell); border-bottom: 1px solid var(--beton-hell); }
.abschnitt h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; }
.stapel { display: flex; flex-direction: column; gap: 40px; }

/* Leistungen */
.leistungen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.kachel { background: var(--weiss); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.kachel h3 { font-size: clamp(28px, 3vw, 36px); line-height: 1.1; }
.kachel p { color: var(--anthrazit); }
.kachel ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.kachel--gross { grid-column: 1 / -1; background: var(--anthrazit); color: var(--weiss); padding: clamp(24px, 4vw, 52px); flex-direction: row; flex-wrap: wrap; gap: 32px 64px; }
.kachel--gross > div { flex: 1 1 360px; display: flex; flex-direction: column; gap: 16px; }
.kachel--gross h3 { font-size: clamp(32px, 3.6vw, 44px); }
.kachel--gross p { color: var(--papier); }
.kachel--gross a { color: var(--weiss); }
.kachel--gross .eyebrow { color: var(--beton-hell); }
.kachel--gross ul { flex: 1 1 360px; list-style: none; padding: 0; gap: 0; }
.kachel--gross li { padding: 14px 0; border-bottom: 1px solid var(--grau-mittel); }
.kachel--gross li:last-child { border-bottom: 0; }
.angebot { background: var(--papier); padding: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Schritte */
.schritte { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.schritt { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--schwarz); padding-top: 20px; }
.schritt .nr { font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--grau-mittel); }
.schritt strong { font-size: 20px; }
.schritt span { color: var(--anthrazit); }

/* Nahbarkeit */
.nah { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.nah > img { flex: 1 1 320px; min-width: 0; max-width: 460px; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.nah > div { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.nah > div > p { font-size: 20px; color: var(--anthrazit); }
.versprechen { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 8px; }
.versprechen div { background: var(--weiss); padding: 20px; }
.versprechen strong { display: block; font-size: 19px; }
.versprechen span { color: var(--grau-text); font-size: 16px; }

/* Kontakt */
.kontakt .wrap { display: flex; flex-wrap: wrap; gap: 56px; }
.kontakt-text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.kontakt-text p { color: var(--anthrazit); }
.kontakt-daten { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.kontakt-daten .tel { font-size: 26px; font-weight: 600; text-decoration: none; }
.formular { flex: 999 1 520px; min-width: 0; display: grid; gap: 20px; max-width: 640px; }
.formular fieldset { border: 0; margin: 0; padding: 0; }
.formular legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.wahl label { position: relative; cursor: pointer; }
.wahl input { position: absolute; opacity: 0; }
.wahl span { display: inline-block; font-size: 16px; padding: 10px 16px; background: var(--weiss); border: 1.5px solid var(--beton-dunkel); }
.wahl input:checked + span { background: var(--schwarz); color: var(--weiss); border-color: var(--schwarz); }
.wahl input:focus-visible + span { outline: 2px solid var(--schwarz); outline-offset: 2px; }
.feld { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 18px; }
.feld small { font-weight: 400; color: var(--grau-text); font-size: 15px; }
.feld input, .feld textarea { font: inherit; font-size: 20px; font-weight: 400; padding: 14px; border: 1px solid var(--grau-mittel); border-radius: 0; background: var(--weiss); width: 100%; }
.feld textarea { resize: vertical; }
.zustimmung { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--anthrazit); font-weight: 400; }
.zustimmung input { margin-top: 4px; width: 24px; height: 24px; flex: none; }
.formular button { font: inherit; font-size: 20px; font-weight: 600; background: var(--schwarz); color: var(--weiss); border: 0; border-radius: 0; padding: 16px 32px; cursor: pointer; justify-self: start; }
.fehler { display: none; font-size: 17px; font-weight: 600; color: var(--fehler); }
.ist-fehler .fehler { display: block; }
.ist-fehler input[type=text], .ist-fehler input[type=email] { border: 2px solid var(--fehler); padding: 13px; background: #FFF5F5; }
.ist-fehler .zustimmung input { outline: 2px solid var(--fehler); outline-offset: 2px; }
.fehler-summe { display: none; border: 2px solid var(--fehler); color: var(--fehler); padding: 14px 16px; font-size: 18px; font-weight: 600; }
.fehler-summe.sichtbar { display: block; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Team */
.team-kopf { text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.team-kopf h1 { font-size: clamp(40px, 5.5vw, 68px); line-height: 1.05; max-width: 900px; }
.team-kopf p { font-size: 20px; color: var(--anthrazit); max-width: 640px; }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.person { background: var(--weiss); margin: 0; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.person figcaption { padding: 20px 24px 24px; }
.person strong { display: block; font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.15; }
.person span { color: var(--grau-text); font-size: 16px; }

/* Rechtstexte */
.recht { max-width: 820px; margin: 0 auto; padding: 72px 24px 96px; display: flex; flex-direction: column; gap: 36px; }
.recht h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; }
.recht h2 { font-size: 28px; }
.recht section { display: flex; flex-direction: column; gap: 8px; }

/* Fuß */
.fuss { background: var(--anthrazit); color: var(--weiss); font-size: 16px; }
.fuss .wrap { padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 40px; }
.fuss a { color: var(--weiss); }
.fuss-marke { padding-bottom: 32px; border-bottom: 1px solid var(--grau-mittel); }
.fuss-marke img { height: 64px; width: auto; }
.fuss-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.fuss-spalten div { display: flex; flex-direction: column; gap: 8px; }
.fuss-spalten span { color: var(--beton-hell); }
.fuss-insta { display: flex; align-items: center; gap: 10px; }
.fuss small { font-size: 14px; color: var(--beton-hell); }

/* Kleine Bildschirme: Logo ohne Slogan, Navigation als eigene Zeile */
@media (max-width: 760px) {
  .marke .mit-slogan { display: none; }
  .marke .nur-logo { display: block; height: 56px; }
  .kopf .wrap { gap: 8px 16px; }
  .kopf .tel { padding: 10px 14px; font-size: 16px; }
  .nav { order: 3; width: 100%; justify-content: space-between; font-size: 17px; gap: 4px 12px; border-top: 1px solid var(--beton-hell); padding-top: 4px; }
  .hero { min-height: 560px; }
  .fuss-marke img { height: auto; width: 100%; max-width: 420px; }
}
