/* Bätz Haustechnik – öffentliche Webseite. Systemschriften (keine externen Schriften, DSGVO).
   Farben aus dem Logo: Flammenblau #24498F, Schriftgrau #373736, Flammenorange #E8500F */
:root {
  --blau: #24498f; --blau-dunkel: #1a3569; --blau-hell: #eaf0f9;
  --orange: #e8500f; --orange-dunkel: #b83c06;
  --anthrazit: #373736; --anthrazit-dunkel: #2a2a29;
  --text: #2a2a29; --grau: #5d5f63; --linie: #dcdfe4; --hg: #f5f6f8; --weiss: #fff;
  --ok: #1d7a46; --fehler: #b3261e;
  --radius: 10px; --breite: 1140px;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 1.0625rem/1.65 var(--schrift); color: var(--text); background: var(--weiss); }
img { max-width: 100%; height: auto; }
a { color: var(--blau); text-underline-offset: 2px; }
a:hover { color: var(--orange-dunkel); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 1.25rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--blau); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

/* Kopf */
.topbar { background: var(--anthrazit); color: #e6e6e4; font-size: .9rem; }
.topbar .wrap { display: flex; gap: 1.5rem; justify-content: flex-end; padding-top: .35rem; padding-bottom: .35rem; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.notdienst { font-weight: 700; }
.notdienst a { color: #ffb48f; }
.kopf { background: var(--weiss); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 20; }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.logo { display: flex; align-items: center; padding: .4rem 0; }
.logo img { height: 60px; width: auto; display: block; }
.kopf nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.kopf nav a { display: block; padding: .55rem .8rem; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 600; }
.kopf nav a:hover { background: var(--blau-hell); color: var(--blau); }
.kopf nav a[aria-current="page"] { color: var(--blau); background: var(--blau-hell); }
.nav-schalter { position: absolute; opacity: 0; pointer-events: none; }
.nav-knopf { display: none; }

/* Inhalt */
.seitenkopf { background: linear-gradient(120deg, var(--blau) 0%, var(--blau-dunkel) 100%); color: #fff; }
.seitenkopf h1 { margin: 0; padding: 2.2rem 0; font-size: clamp(1.7rem, 3.5vw, 2.4rem); line-height: 1.2; }
.inhalt { padding: 2rem 1.25rem 3.5rem; }
.inhalt > * { max-width: calc(var(--breite) - 2.5rem); margin-left: auto; margin-right: auto; }
.inhalt > .vollbreit { max-width: none; margin-left: -1.25rem; margin-right: -1.25rem; }
.inhalt-recht > * { max-width: 820px; }
.kopf-telefon { display: none; }

/* Bausteine für Seiteninhalte (alle Designs) */
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--marke1, var(--blau)); margin: 0 0 .6rem; }
.link-pfeil { font-weight: 600; text-decoration: none; }
.link-pfeil::after { content: " →"; transition: margin .2s; }
.link-pfeil:hover::after { margin-left: .25rem; }
.bild-text { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; margin-top: 3rem; margin-bottom: 3rem; }
.bild-text > img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); }
.bild-text.umgekehrt > img { order: 2; }
.bild-text h2:first-child, .bild-text .eyebrow + h2 { margin-top: 0; }
.galerie { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.schritte { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem 2rem; margin: 1.5rem auto; }
.schritte h3 { margin: .3rem 0 .4rem; }
.kennzahl { display: block; font-size: 1.6rem; font-weight: 700; color: var(--marke1, var(--blau)); line-height: 1; }
.abschnitt-ton { background: var(--hg); padding: 3rem 1.25rem; margin-top: 2.5rem; margin-bottom: 2.5rem; }
.abschnitt-ton > * { max-width: calc(var(--breite) - 2.5rem); margin-left: auto; margin-right: auto; }
.zentriert { text-align: center; }
.cta { padding: 2.5rem 0 1rem; }
.hero-bild { position: relative; margin-top: -2rem; }
.hero-bild > img { display: block; width: 100%; height: clamp(360px, 62vh, 640px); object-fit: cover; }
.hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem max(1.25rem, calc((100% - var(--breite)) / 2 + 1.25rem)); background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff; }
.hero-text h1 { color: #fff; margin: 0 0 .6rem; font-size: clamp(1.8rem, 4.5vw, 3rem); line-height: 1.15; max-width: 20ch; }
.hero-text p { max-width: 60ch; } .hero-text .eyebrow { color: #fff; opacity: .9; }
.inhalt-recht h2 { font-size: 1.25rem; }
.start-h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.15; color: var(--blau); margin: 1rem 0 .5rem; max-width: 18ch; }
h2 { color: var(--blau); font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.25; margin: 2.2rem 0 .8rem; }
h3 { font-size: 1.15rem; margin: 1.4rem 0 .5rem; }
.lead { font-size: 1.2rem; color: var(--grau); }
.klein { font-size: .875rem; color: var(--grau); }
.zentriert { text-align: center; }
.hero { padding: .5rem 0 1rem; }
.hero .lead { font-size: 1.3rem; color: var(--text); font-weight: 600; }
.button, .formular button { display: inline-block; background: var(--blau); color: #fff; border: 2px solid var(--blau); padding: .75rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 1rem; cursor: pointer; margin: .25rem .4rem .25rem 0; font-family: inherit; }
.button:hover, .formular button:hover { background: var(--blau-dunkel); border-color: var(--blau-dunkel); color: #fff; }
.button-zweit { background: transparent; color: var(--blau); }
.button-zweit:hover { background: var(--blau-hell); color: var(--blau); }
.button[disabled] { opacity: .6; cursor: not-allowed; }
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; margin: 1.2rem 0; }
.karte { background: var(--hg); border: 1px solid var(--linie); border-top: 4px solid var(--orange); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.karte h3 { margin-top: 0; color: var(--blau); }
.karte p:last-child { margin-bottom: 0; }
.spalten { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2.5rem; }
.spalten h2:first-child { margin-top: 0; }
.liste-haken { list-style: none; padding: 0; }
.liste-haken li { padding-left: 1.8rem; position: relative; margin: .35rem 0; }
.liste-haken li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.hinweis { background: var(--blau-hell); border-left: 5px solid var(--blau); padding: .9rem 1.2rem; border-radius: 6px; margin: 1.4rem 0; }
.hinweis p { margin: .3rem 0; }
.hinweis-warnung { background: #fff4e8; border-left-color: var(--orange); }
.hinweis-ok { background: #e9f6ee; border-left-color: var(--ok); }
blockquote { border-left: 4px solid var(--linie); margin: 1rem 0; padding: .2rem 1rem; color: var(--grau); }
table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
th, td { border: 1px solid var(--linie); padding: .5rem .7rem; text-align: left; vertical-align: top; }

/* Formulare */
.formular { background: var(--hg); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.4rem; margin: 1.5rem 0; scroll-margin-top: 100px; }
.felder { display: grid; grid-template-columns: repeat(12, 1fr); gap: .9rem 1rem; }
.feld { grid-column: span 12; display: flex; flex-direction: column; gap: .3rem; }
.feld-halb { grid-column: span 6; } .feld-drittel { grid-column: span 4; } .feld-zweidrittel { grid-column: span 8; } .feld-viertel { grid-column: span 3; }
.feld-ueberschrift { grid-column: span 12; margin: .8rem 0 0; color: var(--blau); font-size: 1.1rem; }
.feld-hinweis { grid-column: span 12; margin: 0; font-size: .92rem; color: var(--grau); background: #fff4e8; padding: .6rem .8rem; border-radius: 6px; }
.feld > label, .feld legend { font-weight: 600; font-size: .95rem; }
.formular input[type=text], .formular input[type=email], .formular input[type=tel], .formular input[type=date], .formular select, .formular textarea {
  width: 100%; font: inherit; padding: .65rem .75rem; border: 1px solid #a9b4c1; border-radius: 8px; background: #fff; color: var(--text); }
.formular textarea { resize: vertical; }
.formular input:focus, .formular select:focus, .formular textarea:focus { border-color: var(--blau); outline: 3px solid rgba(36, 73, 143, .25); outline-offset: 0; }
.formular input[type=file] { font: inherit; font-size: .95rem; }
.formular fieldset { border: 0; padding: 0; margin: 0; }
.optionen { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .3rem; }
.check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .25rem; flex: none; accent-color: var(--blau); }
.pflicht { color: var(--fehler); }
.hilfe { color: var(--grau); font-size: .85rem; }
.feld-fehler input, .feld-fehler select, .feld-fehler textarea { border-color: var(--fehler); border-width: 2px; }
.fehler { color: var(--fehler); font-weight: 600; font-size: .9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Fuß */
.fuss { background: var(--anthrazit-dunkel); color: #dcdcda; border-top: 4px solid var(--blau); padding-top: 2.4rem; font-size: .95rem; }
.fuss .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.fuss a { color: #fff; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin: .2rem 0; }
.fuss .copy { display: block; border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1rem; padding-bottom: 1.4rem; font-size: .85rem; }
.vorschau-leiste { background: #fff3c4; color: #5a4300; text-align: center; padding: .5rem; font-weight: 600; border-bottom: 1px solid #e6cf73; }

@media (max-width: 900px) {
  .nur-gross { display: none; }
  .nav-knopf { display: flex; flex-direction: column; justify-content: center; width: 46px; height: 46px; border-radius: 8px; cursor: pointer; border: 1px solid var(--linie); align-items: center; }
  .nav-knopf span[aria-hidden], .nav-knopf span[aria-hidden]::before, .nav-knopf span[aria-hidden]::after { display: block; width: 22px; height: 2px; background: var(--blau); position: relative; content: ""; }
  .nav-knopf span[aria-hidden]::before { position: absolute; top: -7px; } .nav-knopf span[aria-hidden]::after { position: absolute; top: 7px; }
  .nav-schalter:focus-visible + .nav-knopf { outline: 3px solid var(--orange); }
  .kopf nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--linie); box-shadow: 0 10px 20px rgba(0,0,0,.08); }
  .nav-schalter:checked ~ nav { display: block; }
  .kopf nav ul { flex-direction: column; padding: .5rem 1rem 1rem; }
  .spalten, .fuss .wrap, .bild-text { grid-template-columns: 1fr; }
  .bild-text.umgekehrt > img { order: 0; }
}
@media (max-width: 620px) {
  .feld-halb, .feld-drittel, .feld-zweidrittel { grid-column: span 12; }
  .feld-viertel { grid-column: span 6; }
  .formular { padding: 1rem; }
  .logo img { height: 48px; }
}
@media print { .topbar, .kopf nav, .nav-knopf, .fuss nav, .formular { display: none; } .seitenkopf { background: none; color: #000; } }
