/* ProVerMa GmbH – Gestaltungsgrundlage
   Marken oben in :root. Schriften liegen lokal unter /fonts. */

@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/sourceserif4-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --tinte: #14263a;        /* Navy, Ueberschriften und dunkle Flaechen */
  --schiefer: #4a6373;     /* Logo-Blaugrau */
  --gruen: #2f7a34;        /* Knoepfe, Links – Kontrast mit Weiss 5,3:1 */
  --gruen-dunkel: #245f28;
  --gruen-hell: #8cc63f;   /* Logo-Akzent, nur auf Dunkel */
  --papier: #f6f4ef;
  --weiss: #ffffff;
  --linie: #e2dfd6;
  --text: #1f2a33;
  --leise: #56626c;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;

  --rand: clamp(20px, 5vw, 56px);
  --breite: 1180px;
  --radius: 14px;
  --schatten: 0 18px 50px -18px rgba(20, 38, 58, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--weiss);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gruen); }
a:hover { color: var(--gruen-dunkel); }
:focus-visible { outline: 3px solid var(--gruen-hell); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--serif); color: var(--tinte); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.55rem); margin-bottom: .6em; }
h3 { font-size: 1.3rem; }
h1 em, h2 em { font-style: italic; color: var(--gruen); }
p { margin: 0 0 1em; }

.rahmen { max-width: var(--breite); margin-inline: auto; padding-inline: var(--rand); }
.schmal { max-width: 860px; }

.zum-inhalt { position: absolute; left: -9999px; top: 0; background: var(--tinte); color: #fff; padding: 10px 16px; z-index: 100; }
.zum-inhalt:focus { left: 10px; top: 10px; }

.marke {
  font-family: var(--sans);
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gruen); margin: 0 0 14px;
  display: flex; align-items: center; gap: 12px;
}
.marke::before { content: ""; width: 28px; height: 2px; background: currentColor; }

/* ------------------------------------------------------------------ Knoepfe */
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 700 1rem/1 var(--sans); text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.knopf:active { transform: translateY(1px); }
.knopf--voll { background: var(--gruen); color: #fff; }
.knopf--voll:hover { background: var(--gruen-dunkel); color: #fff; }
.knopf--leer { border-color: var(--tinte); color: var(--tinte); }
.knopf--leer:hover { background: var(--tinte); color: #fff; }
.knopf--hell { background: #fff; color: var(--tinte); }
.knopf--hell:hover { background: var(--gruen-hell); color: var(--tinte); }

/* --------------------------------------------------------------------- Kopf */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.kopf.ist-gescrollt { border-color: var(--linie); box-shadow: 0 6px 24px -18px rgba(20, 38, 58, .5); }
.kopf__innen { display: flex; align-items: center; gap: 28px; min-height: 78px; }
.logo img { width: 168px; height: auto; }
.menue { margin-left: auto; }
.menue > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.menue__link, .menue__knopf {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 14px; border-radius: 10px;
  font: 600 .97rem/1 var(--sans); color: var(--tinte); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.menue__link:hover, .menue__knopf:hover, .menue__knopf[aria-expanded="true"] { background: var(--papier); color: var(--tinte); }
.menue__link[aria-current="page"], .menue__knopf.ist-hier { color: var(--gruen); }
.menue__knopf svg { transition: transform .2s; }
.menue__knopf[aria-expanded="true"] svg { transform: rotate(180deg); }
.menue__gruppe { position: relative; }
.menue__unter {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--linie); border-radius: 12px; box-shadow: var(--schatten);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s, transform .18s, visibility 0s .18s;
}
.menue__knopf[aria-expanded="true"] + .menue__unter { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
.menue__unter a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; }
.menue__unter a:hover { background: var(--papier); }
.menue__unter a[aria-current="page"] { color: var(--gruen); font-weight: 700; }

.ruf {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--tinte); text-decoration: none; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ruf svg { width: 18px; height: 18px; color: var(--gruen); }
.menue-schalter { display: none; }

@media (max-width: 1080px) {
  .kopf__innen { gap: 14px; min-height: 68px; }
  .logo img { width: 140px; }
  .ruf { margin-left: auto; }
  .ruf span { display: none; }
  .ruf { width: 44px; height: 44px; justify-content: center; border-radius: 50%; background: var(--papier); }
  .menue-schalter {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--tinte); color: #fff; cursor: pointer;
  }
  .menue {
    position: fixed; inset: 68px 0 auto 0; max-height: calc(100dvh - 68px); overflow-y: auto;
    background: #fff; border-top: 1px solid var(--linie); box-shadow: var(--schatten);
    padding: 12px var(--rand) 24px; margin: 0;
    display: none;
  }
  .menue.ist-offen { display: block; }
  .menue > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .menue__link, .menue__knopf { width: 100%; justify-content: space-between; padding: 14px 8px; font-size: 1.05rem; }
  .menue__unter {
    position: static; min-width: 0; box-shadow: none; border: 0; padding: 0 0 8px 12px;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .menue__knopf[aria-expanded="true"] + .menue__unter { display: block; }
}

/* ----------------------------------------------------------------- Aufmacher */
.aufmacher { background: linear-gradient(180deg, var(--papier) 0%, #fff 100%); }
.aufmacher__innen {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-block: clamp(48px, 7vw, 96px);
}
.aufmacher__vorspann { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--leise); margin-top: 22px; max-width: 560px; }
.aufmacher__bild { margin: 0; position: relative; }
.aufmacher__bild img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: var(--radius); box-shadow: var(--schatten); }
.aufmacher__bild::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
  border: 2px solid var(--gruen-hell); border-radius: var(--radius); opacity: .55;
}
.aufmacher__bild { isolation: isolate; }

/* Breites Bildband oben auf der Startseite */
.band { background: var(--papier); }
.band img { width: 100%; height: clamp(180px, 28vw, 440px); object-fit: cover; object-position: center 45%; }
.band + .aufmacher .aufmacher__innen { padding-top: clamp(40px, 5vw, 72px); }

/* --------------------------------------------------------------- Abschnitte */
.abschnitt { padding-block: clamp(56px, 8vw, 104px); }
.abschnitt--hell { background: var(--papier); }
.kopfzeile { max-width: 720px; margin-bottom: 40px; }
.kopfzeile p { color: var(--leise); }

.zwei { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.zwei--bild { align-items: center; }
.zwei__bild { margin: 0; }
.zwei__bild img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: var(--radius); }

.haken { background: var(--papier); border-radius: var(--radius); padding: 28px 30px; border-left: 4px solid var(--gruen); }
.abschnitt--hell .haken { background: #fff; }
.haken__titel { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--tinte); margin-bottom: 8px; }
.haken ul { list-style: none; margin: 0; padding: 0; }
.haken li { position: relative; padding: 11px 0 11px 34px; border-bottom: 1px solid var(--linie); }
.haken li:last-child { border-bottom: 0; }
.haken li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gruen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.karten--zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.karte {
  display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 28px; color: var(--text); text-decoration: none;
  transition: border-color .2s, transform .25s, box-shadow .25s;
}
.karte p { margin: 0; color: var(--leise); }
a.karte:hover { border-color: var(--gruen); transform: translateY(-3px); box-shadow: var(--schatten); color: var(--text); }
.karte__weiter { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--gruen); }

.schritte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; counter-reset: s; }
.schritte li { border-top: 2px solid var(--tinte); padding-top: 18px; }
.schritte__nr { display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--gruen); line-height: 1; margin-bottom: 12px; }
.schritte h3 { margin-bottom: 6px; }
.schritte p { color: var(--leise); margin: 0; }

.orte { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.orte li { border: 1px solid var(--linie); border-radius: 999px; padding: 9px 18px; font-weight: 600; color: var(--tinte); background: #fff; }
.orte a { color: var(--gruen); text-decoration: none; }
.orte a:hover { text-decoration: underline; }

.fragen details { background: #fff; border: 1px solid var(--linie); border-radius: 12px; margin-bottom: 10px; }
.fragen summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; position: relative;
  font-weight: 700; color: var(--tinte);
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font: 400 1.6rem/1 var(--sans); color: var(--gruen); transition: transform .2s;
}
.fragen details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.fragen details p { padding: 0 24px 20px; margin: 0; color: var(--leise); }

.schluss {
  background: var(--tinte); color: #d9e2ea; border-radius: calc(var(--radius) + 6px);
  padding: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px; align-items: center; position: relative; overflow: hidden;
}
.schluss::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  border: 2px solid var(--gruen-hell); opacity: .25;
}
.schluss h2 { color: #fff; }
.schluss p { margin: 0; }
.schluss__wege { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; position: relative; z-index: 1; }
.schluss__ruf { color: #fff; font-family: var(--serif); font-size: 1.6rem; text-decoration: none; font-variant-numeric: tabular-nums; }
.schluss__ruf:hover { color: var(--gruen-hell); }
.schluss__wege span { font-size: .92rem; }

/* ------------------------------------------------------------------ Startseite */
.start-saeulen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; background: #fff; }
.saeule { padding: 34px 30px; border-right: 1px solid var(--linie); display: flex; flex-direction: column; gap: 10px; }
.saeule:last-child { border-right: 0; }
.saeule__nr { font-family: var(--serif); color: var(--gruen); font-size: 1.1rem; }
.saeule ul { list-style: none; margin: 4px 0 0; padding: 0; }
.saeule li a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--linie); color: var(--text); text-decoration: none; font-weight: 600; }
.saeule li a:hover { color: var(--gruen); }
.saeule li:last-child a { border-bottom: 0; }
.saeule p { color: var(--leise); margin: 0; }

.zahlen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.zahlen div { border-top: 2px solid var(--gruen); padding-top: 14px; }
.zahlen b { display: block; font-family: var(--serif); font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.2; color: var(--tinte); font-weight: 600; hyphens: auto; overflow-wrap: break-word; }
.zahlen span { color: var(--leise); font-size: .95rem; }

.marke-band {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center;
  border: 1px solid var(--linie); border-radius: var(--radius); padding: 28px 32px; background: #fff;
}
.marke-band__name { font-family: var(--serif); font-size: 1.6rem; color: var(--tinte); }
.marke-band p { margin: 0; color: var(--leise); }

/* ------------------------------------------------------------------- Formular */
.formular { display: grid; gap: 18px; }
.formular__reihe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.feld { display: grid; gap: 6px; }
.feld label { font-weight: 700; font-size: .95rem; color: var(--tinte); }
.frei { font-weight: 400; color: var(--leise); }
.feld input, .feld select, .feld textarea {
  width: 100%; font: inherit; color: var(--text);
  border: 1.5px solid #cfd6dc; border-radius: 10px; background: #fff; padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.feld textarea { resize: vertical; min-height: 140px; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: none; border-color: var(--gruen); box-shadow: 0 0 0 3px rgba(47, 122, 52, .18); }
.feld.ist-fehlerhaft input, .feld.ist-fehlerhaft select, .feld.ist-fehlerhaft textarea { border-color: #b3261e; }
.feld__fehler { color: #b3261e; font-size: .88rem; min-height: 0; }
.feld__fehler:empty { display: none; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formular__hinweis { font-size: .9rem; color: var(--leise); margin: 0; }
.formular .knopf { justify-self: start; }
.formular .knopf[disabled] { opacity: .6; cursor: wait; }
.meldung { margin: 0; font-weight: 600; }
.meldung:empty { display: none; }
.meldung.ist-ok { color: var(--gruen); }
.meldung.ist-fehler { color: #b3261e; }

.kontakt-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.kontakt-karte { background: var(--tinte); color: #d9e2ea; border-radius: var(--radius); padding: 34px; position: relative; overflow: hidden; }
.kontakt-karte h2 { color: #fff; font-size: 1.6rem; }
.kontakt-karte a { color: #fff; font-weight: 700; text-decoration: none; display: inline-block; padding-block: 8px; }
.kontakt-karte a:hover { color: var(--gruen-hell); }
.kontakt-karte dl { margin: 0; display: grid; gap: 16px; }
.kontakt-karte dt { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gruen-hell); font-weight: 700; }
.kontakt-karte dd { margin: 2px 0 0; }
.kontakt-karte img { width: 200px; margin: 24px 0 -34px auto; }

/* ----------------------------------------------------------- Rechtstexte */
.recht { padding-block: clamp(40px, 6vw, 72px); }
.recht h1 { margin-bottom: 28px; hyphens: auto; overflow-wrap: break-word; }
.recht p, .recht li { overflow-wrap: anywhere; }
.recht h2 { font-size: 1.45rem; margin: 2em 0 .5em; }
.recht h3 { font-size: 1.15rem; margin: 1.5em 0 .4em; }
.recht section + section { border-top: 1px solid var(--linie); }
.recht ul, .recht ol { padding-left: 1.3em; }
.recht li { margin-bottom: .4em; }

/* --------------------------------------------------------------------- Fuss */
.fuss { background: var(--papier); border-top: 1px solid var(--linie); padding-top: 64px; font-size: .95rem; color: var(--leise); }
.fuss__gitter { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.logo--fuss img { width: 150px; margin-bottom: 18px; }
.fuss__titel { font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--tinte); font-weight: 800; margin-bottom: 14px; }
.fuss address { font-style: normal; margin-bottom: 1em; }
.fuss a { color: var(--text); text-decoration: none; }
.fuss a:hover { color: var(--gruen); }
.fuss__liste { list-style: none; margin: 0; padding: 0; }
.fuss__liste li { margin-bottom: 8px; }
.fuss__schluss {
  margin-top: 48px; padding-block: 22px; border-top: 1px solid var(--linie);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: .86rem;
}
.fuss__gestaltung { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: inherit; }
.fuss__gestaltung img { height: 18px; width: auto; display: block; }

/* ------------------------------------------------------------------ Eintreten */
html.js .tritt-ein { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
html.js .tritt-ein.ist-da { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .tritt-ein { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* -------------------------------------------------------------------- Schmal */
@media (max-width: 900px) {
  .aufmacher__innen, .zwei, .schluss, .kontakt-raster { grid-template-columns: minmax(0, 1fr); }
  .aufmacher__bild::before { inset: 12px -10px -12px 12px; }
  .karten, .karten--zwei, .start-saeulen, .zahlen { grid-template-columns: minmax(0, 1fr); }
  .saeule { border-right: 0; border-bottom: 1px solid var(--linie); }
  .saeule:last-child { border-bottom: 0; }
  .marke-band { grid-template-columns: minmax(0, 1fr); }
  .fuss__gitter { grid-template-columns: 1fr 1fr; }
  .fuss__gitter > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .formular__reihe { grid-template-columns: minmax(0, 1fr); }
  .fuss__gitter { grid-template-columns: minmax(0, 1fr); }
  .knoepfe .knopf { flex: 1 1 100%; }
}
