/* Werner Heizung & Sanitär – Stylesheet
   Layout: helles Beige als Papier, RAL 1001 als kräftige Bänder, RAL 6002 als Handlungsfarbe.
   Ein Seitenraster mit max. 72rem Breite, Kopf mit Notdienst-Leiste, Fuß in Laubgrün. */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-var.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/sourcesans3-var.woff") format("woff");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* Farben */
  --ral1001: #D0B084;      /* RAL 1001 Beige (Bildschirmnäherung) */
  --ral1001-tief: #B89868; /* Beige abgedunkelt für Linien */
  --papier: #F7F1E3;       /* helle Abstufung von RAL 1001 für große Flächen */
  --karton: #EFE4CC;       /* mittlere Abstufung für Kästen */
  --ral6002: #2D572C;      /* RAL 6002 Laubgrün (Bildschirmnäherung) */
  --ral6002-tief: #1E3E1E; /* Hover, Fußzeile */
  --tinte: #1B1A16;        /* Schrift: fast Schwarz mit warmem Stich */
  --tinte-2: #4A463C;      /* Nebentext */
  --sonne: #E7B02A;        /* Sonne aus dem Logo, nur für Notdienst-Hinweise */
  --weiss: #FFFDF8;
  /* Schrift */
  --f-display: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  /* Maße */
  --breite: 72rem;
  --radius: 6px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--f-text);
  font-size: 1.125rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ral6002); text-underline-offset: 0.18em; }
a:hover { color: var(--ral6002-tief); }
:focus-visible { outline: 3px solid var(--sonne); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--f-display);
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
  color: var(--tinte);
  overflow-wrap: break-word;
  hyphens: auto;
}
h1 { font-size: clamp(1.8rem, 1.2rem + 3vw, 3.25rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
.prosa { display: grid; gap: 1rem; max-width: 40rem; }
.prosa h2 { margin-top: 1.25rem; }
.prosa h3 { margin-top: 0.75rem; }
.prosa ul:not([class]) { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.klein { font-size: 0.95rem; color: var(--tinte-2); }
.augenbraue {
  font-family: var(--f-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ral6002);
}

.huelle {
  max-width: var(--breite);
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--weiss); padding: 0.5rem 1rem; z-index: 50;
}
.skip:focus { left: 1rem; }

/* ---------- Notdienst-Leiste ---------- */
.leiste { background: var(--ral6002); color: var(--weiss); font-size: 0.95rem; }
.leiste .huelle {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 0.25rem 1.5rem; padding-block: 0.45rem;
}
.leiste a { color: var(--weiss); font-weight: 600; text-decoration: none; }
.leiste a:hover { text-decoration: underline; color: var(--weiss); }
.punkt { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--sonne); margin-right: 0.45rem; vertical-align: 0.08em; }

/* ---------- Kopf ---------- */
.kopf { background: var(--papier); border-bottom: 1px solid var(--ral1001); position: relative; z-index: 20; }
.kopf .huelle { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.75rem; }
.marke { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--tinte); }
.marke img { width: 112px; }
.marke-text { display: grid; line-height: 1.1; font-family: var(--f-display); }
.marke-text strong { font-size: 1.35rem; font-weight: 800; }
.marke-text span { font-size: 0.85rem; font-weight: 600; color: var(--tinte-2); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.nav a {
  display: block; padding: 0.5rem 0.7rem; border-radius: var(--radius);
  font-family: var(--f-display); font-weight: 600; font-size: 0.95rem;
  color: var(--tinte); text-decoration: none;
}
.nav a:hover { background: var(--karton); color: var(--tinte); }
.nav a[aria-current="page"] { color: var(--ral6002); box-shadow: inset 0 -3px 0 var(--ral6002); border-radius: 0; }
.menue { display: none; }

@media (max-width: 980px) {
  .nav { display: none; }
  .menue { display: block; }
  .menue summary {
    list-style: none; cursor: pointer;
    font-family: var(--f-display); font-weight: 700; font-size: 0.95rem;
    padding: 0.55rem 0.9rem; border: 2px solid var(--ral6002); border-radius: var(--radius); color: var(--ral6002);
  }
  .menue summary::-webkit-details-marker { display: none; }
  .menue[open] summary { background: var(--ral6002); color: var(--weiss); }
  .menue ul {
    list-style: none; margin: 0; padding: 0.5rem var(--gutter-r) 1rem var(--gutter-l);
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--papier); border-bottom: 2px solid var(--ral1001);
    display: grid; gap: 0.1rem;
  }
  .menue a {
    display: block; padding: 0.7rem 0.25rem; border-bottom: 1px solid var(--karton);
    font-family: var(--f-display); font-weight: 600; color: var(--tinte); text-decoration: none;
  }
  .menue a[aria-current="page"] { color: var(--ral6002); }
  .marke img { width: 84px; }
  .marke-text strong { font-size: 1.15rem; }
}

/* ---------- Buttons ---------- */
.knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.knopf {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.8rem 1.3rem; border-radius: var(--radius);
  font-family: var(--f-display); font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid var(--ral6002);
  background: var(--ral6002); color: var(--weiss); cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.knopf:hover { background: var(--ral6002-tief); border-color: var(--ral6002-tief); color: var(--weiss); }
.knopf.leer { background: transparent; color: var(--ral6002); }
.knopf.leer:hover { background: var(--ral6002); color: var(--weiss); }
.knopf svg { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Bänder ---------- */
.band { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.band.beige { background: var(--ral1001); }
.band.karton { background: var(--karton); }
.band.gruen { background: var(--ral6002); color: var(--weiss); }
.band.gruen h2, .band.gruen h3 { color: var(--weiss); }
.band.gruen .augenbraue { color: var(--sonne); }
.band.gruen a { color: var(--weiss); }
.kopfzeile { display: grid; gap: 0.6rem; max-width: 44rem; margin-bottom: 2rem; }
.kopfzeile p { color: var(--tinte-2); }
.band.gruen .kopfzeile p { color: #E6EDE3; }
.band.beige .kopfzeile p { color: var(--tinte); }

/* ---------- Startseite: Bühne ---------- */
.buehne { background: var(--ral1001); padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.buehne .huelle { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: center; }
.buehne-text { display: grid; gap: 1.25rem; min-width: 0; }
.buehne-text .lead { font-size: 1.25rem; max-width: 34rem; }
.buehne-logo { justify-self: center; width: min(100%, 26rem); }
.fakten { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; padding: 0; margin: 0.25rem 0 0; list-style: none; font-weight: 600; }
.fakten li { display: flex; align-items: center; gap: 0.4rem; }
.fakten svg { width: 1.1rem; height: 1.1rem; color: var(--ral6002); flex: none; }
@media (max-width: 820px) {
  .buehne .huelle { grid-template-columns: 1fr; }
  .buehne-logo { order: -1; width: min(80%, 18rem); }
}

/* Unterseiten-Kopf */
.seitenkopf { background: var(--ral1001); padding-block: clamp(2rem, 1.5rem + 3vw, 3.75rem); }
.seitenkopf .huelle { display: grid; gap: 0.75rem; }
.seitenkopf p { max-width: 42rem; font-size: 1.2rem; }

/* ---------- Leistungs-Raster ---------- */
.raster { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.raster.leistungen { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.raster.leistungen .schwerpunkt { grid-row: span 2; }
@media (max-width: 980px) { .raster.leistungen { grid-template-columns: repeat(2, minmax(0, 1fr)); } .raster.leistungen .schwerpunkt { grid-row: auto; grid-column: 1 / -1; } }
@media (max-width: 600px) { .raster.leistungen { grid-template-columns: 1fr; } }
.raster.zwei { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.kachel {
  background: var(--weiss); border: 1px solid var(--ral1001); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; min-width: 0;
}
.kachel .icon { width: 2.5rem; height: 2.5rem; color: var(--ral6002); }
.kachel p { color: var(--tinte-2); }
.kachel .mehr { margin-top: auto; font-family: var(--f-display); font-weight: 700; font-size: 0.95rem; text-decoration: none; }
.kachel .mehr::after { content: " →"; }
.kachel.schwerpunkt { background: var(--ral6002); border-color: var(--ral6002); color: var(--weiss); }
.kachel.schwerpunkt h3, .kachel.schwerpunkt .mehr { color: var(--weiss); }
.kachel.schwerpunkt p { color: #E6EDE3; }
.kachel.schwerpunkt .icon { color: var(--sonne); }
.etikett {
  align-self: flex-start; font-family: var(--f-display); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 0.2rem 0.5rem; border-radius: 3px;
  background: var(--sonne); color: var(--tinte);
}

/* ---------- Wartungsprotokoll (Signatur-Element) ---------- */
.protokoll {
  background: var(--weiss); border: 1px solid var(--ral1001-tief); border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--ral1001-tief), 0 12px 28px -18px rgba(60, 45, 20, 0.45);
  overflow: hidden; min-width: 0;
}
.protokoll-kopf {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  padding: 0.9rem 1.25rem; background: var(--karton); border-bottom: 1px solid var(--ral1001-tief);
  font-family: var(--f-display); font-weight: 700; font-size: 0.95rem;
}
.protokoll-kopf span { font-weight: 600; color: var(--tinte-2); font-size: 0.85rem; }
.protokoll ol { list-style: none; margin: 0; padding: 0.5rem 1.25rem 1rem; counter-reset: p; }
.protokoll li {
  counter-increment: p; display: grid; grid-template-columns: 2rem 1fr auto; gap: 0.75rem; align-items: baseline;
  padding: 0.6rem 0; border-bottom: 1px dashed var(--ral1001);
}
.protokoll li:last-child { border-bottom: 0; }
.protokoll li::before { content: counter(p, decimal-leading-zero); font-family: var(--f-display); font-weight: 700; font-size: 0.85rem; color: var(--ral1001-tief); font-variant-numeric: tabular-nums; }
.protokoll .ok { width: 1.3rem; height: 1.3rem; border: 2px solid var(--ral6002); border-radius: 3px; display: grid; place-items: center; color: var(--ral6002); }
.protokoll .ok svg { width: 0.9rem; height: 0.9rem; }

/* zweispaltige Abschnitte */
.zweispalt { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; }
.zweispalt > * { min-width: 0; }
@media (max-width: 860px) { .zweispalt { grid-template-columns: 1fr; } }

/* Häkchen-Liste */
.haken { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.haken li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.6rem; align-items: start; }
.haken li::before {
  content: ""; width: 1.1rem; height: 1.1rem; margin-top: 0.3rem; border-radius: 50%;
  background: var(--ral6002) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23FFFDF8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}
.band.gruen .haken li::before { background-color: var(--sonne); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231B1A16' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ---------- Notdienst-Kasten ---------- */
.notruf {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem 2rem; align-items: center;
  background: var(--weiss); border: 2px solid var(--ral6002); border-radius: var(--radius); padding: 1.5rem 1.75rem;
}
.notruf .zeit { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem); color: var(--ral6002); font-variant-numeric: tabular-nums; line-height: 1.1; }
.notruf .zeit small { display: block; font-size: 0.9rem; font-weight: 600; color: var(--tinte-2); }
.notruf p { color: var(--tinte-2); }
.notruf .nummer { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; color: var(--tinte); white-space: nowrap; }
@media (max-width: 760px) { .notruf { grid-template-columns: 1fr; } }

/* ---------- Werdegang ---------- */
.zeitleiste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 3px solid var(--ral1001); }
.zeitleiste li { position: relative; padding: 0 0 1.75rem 1.5rem; display: grid; gap: 0.25rem; }
.zeitleiste li::before {
  content: ""; position: absolute; left: -0.6rem; top: 0.35rem; width: 0.9rem; height: 0.9rem; border-radius: 50%;
  background: var(--papier); border: 3px solid var(--ral6002);
}
.zeitleiste li.hoehepunkt::before { background: var(--sonne); border-color: var(--sonne); }
.zeitleiste time { font-family: var(--f-display); font-weight: 700; font-size: 0.9rem; color: var(--ral6002); font-variant-numeric: tabular-nums; }
.zeitleiste p { color: var(--tinte-2); }
.auszeichnung {
  display: inline-block; justify-self: start; margin-top: 0.25rem;
  font-family: var(--f-display); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--sonne); color: var(--tinte); padding: 0.2rem 0.55rem; border-radius: 3px;
}

/* ---------- Einsatzgebiet ---------- */
.orte { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.orte li { background: var(--weiss); border: 1px solid var(--ral1001); padding: 0.3rem 0.75rem; border-radius: 999px; font-weight: 600; font-size: 0.98rem; }
.orte li.mitte { background: var(--ral6002); border-color: var(--ral6002); color: var(--weiss); }
.radius { display: grid; place-items: center; }
.radius svg { width: min(100%, 24rem); height: auto; }

/* ---------- Formular ---------- */
.formular { display: grid; gap: 1.1rem; background: var(--weiss); border: 1px solid var(--ral1001); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.feldreihe { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 620px) { .feldreihe { grid-template-columns: 1fr; } }
.feld { display: grid; gap: 0.35rem; min-width: 0; }
.feld label { font-family: var(--f-display); font-weight: 600; font-size: 0.92rem; }
.feld input, .feld select, .feld textarea {
  font: inherit; font-size: 1.05rem; color: var(--tinte); background: var(--papier);
  border: 1.5px solid var(--ral1001-tief); border-radius: var(--radius); padding: 0.7rem 0.8rem; width: 100%;
}
.feld textarea { min-height: 9rem; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: 3px solid var(--sonne); outline-offset: 0; border-color: var(--ral6002); background: var(--weiss); }
.pflicht { color: var(--ral6002); }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.meldung { padding: 1rem 1.25rem; border-radius: var(--radius); font-weight: 600; }
.meldung.fehler { background: #F6DEDA; border: 1px solid #B4472F; color: #6E2312; }
.meldung.info { background: var(--karton); border: 1px solid var(--ral1001-tief); }

/* Kontaktdaten */
.kontaktdaten { display: grid; gap: 1.25rem; }
.kontaktdaten dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.25rem; }
.kontaktdaten dt { font-family: var(--f-display); font-weight: 600; font-size: 0.92rem; color: var(--tinte-2); padding-top: 0.15rem; }
.kontaktdaten dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Rechtstexte ---------- */
.rechtstext { display: grid; gap: 0.9rem; max-width: 46rem; }
.rechtstext h2 { font-size: 1.35rem; margin-top: 1.5rem; }
.rechtstext h3 { font-size: 1.05rem; margin-top: 0.75rem; }
.rechtstext ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.3rem; }
.rechtstext address { font-style: normal; }

/* ---------- Abschluss / CTA ---------- */
.abschluss .huelle { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.abschluss h2 { max-width: 34rem; }

/* ---------- Fuß ---------- */
.fuss { background: var(--ral6002-tief); color: #E6EDE3; font-size: 0.98rem; }
.fuss .huelle { padding-block: 3rem 2rem; display: grid; gap: 2rem; }
.fuss-raster { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.fuss-raster > * { min-width: 0; }
@media (max-width: 820px) { .fuss-raster { grid-template-columns: 1fr; } }
.fuss h2 { font-size: 1rem; color: var(--ral1001); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.6rem; }
.fuss a { color: var(--weiss); }
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.fuss .slogan { font-family: var(--f-display); font-weight: 600; color: var(--ral1001); font-size: 1.05rem; max-width: 22rem; }
.fuss-unten { border-top: 1px solid rgba(208, 176, 132, 0.35); padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; font-size: 0.9rem; }
.fuss-unten nav { display: flex; gap: 1.25rem; }

/* ---------- mobile Anrufleiste ---------- */
.anrufleiste { display: none; }
@media (max-width: 760px) {
  .anrufleiste {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 0.6rem var(--gutter-r) calc(0.6rem + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
    background: var(--papier); border-top: 1px solid var(--ral1001-tief);
    box-shadow: 0 -6px 18px -12px rgba(60, 45, 20, 0.5);
  }
  .anrufleiste .knopf { justify-content: center; padding: 0.7rem 0.5rem; }
  body { padding-bottom: 4.75rem; }
}

/* ---------- Porträt ---------- */
.portraitkopf { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: center; }
.vorstellung .portraitkopf { grid-template-columns: auto minmax(0, 1fr); }
.portrait {
  width: clamp(12rem, 9rem + 10vw, 18rem); aspect-ratio: 366 / 390; object-fit: cover;
  border-radius: var(--radius); border: 6px solid var(--weiss);
  box-shadow: 0 14px 30px -18px rgba(60, 45, 20, 0.6);
}
@media (max-width: 760px) {
  .portraitkopf, .vorstellung .portraitkopf { grid-template-columns: 1fr; }
  .portrait { width: min(70%, 15rem); }
  .seitenkopf .portraitkopf .portrait { order: -1; }
}
