/* =========================================================
   Kleiner Einsatz — Stylesheet
   Design-Tokens stehen ganz oben und sind die einzige Stelle,
   an der Farben/Schriften angepasst werden muessen.
   Farben stammen aus dem Titelbild (Bilder-Original).
   ========================================================= */

/* --- Design-Tokens --- */
:root {
  --farbe-primaer: #12283f;        /* Navy aus Wortmarke, Logo und Banderole */
  --farbe-primaer-hell: #24446f;
  --farbe-akzent: #4e9427;         /* Gruen fuer Text: dunkler als das Marken-
                                      gruen, damit der Kontrast >= 3:1 bleibt */
  --farbe-akzent-marke: #5fb134;   /* Original-Markengruen, nur dekorativ */
  --farbe-akzent-dunkel: #3f7d1c;  /* Flaechen mit weisser Schrift */
  --farbe-text: #1f2732;
  --farbe-text-leise: #5b6670;
  --farbe-hintergrund: #ffffff;
  --farbe-flaeche: #f2f2f0;        /* heller Grauton aus dem Titelbild */
  --farbe-linie: #dde1e5;

  --schrift-text: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --schrift-titel: var(--schrift-text);

  --breite-inhalt: 1120px;
  --abstand: 1.5rem;
  --radius: 8px;
  --schatten: 0 1px 3px rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 0, 0, .06);
}

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

body {
  margin: 0;
  font-family: var(--schrift-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--farbe-text);
  background: var(--farbe-hintergrund);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--schrift-titel);
  line-height: 1.15;
  color: var(--farbe-primaer);
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

a { color: var(--farbe-primaer-hell); }
a:hover { color: var(--farbe-akzent); }

img { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 3px solid var(--farbe-akzent-dunkel);
  outline-offset: 2px;
}

/* --- Layout --- */
.inhalt {
  width: 100%;
  max-width: var(--breite-inhalt);
  margin-inline: auto;
  padding-inline: var(--abstand);
}

.sektion { padding-block: clamp(3rem, 6vw, 5rem); }
.sektion--flaeche { background: var(--farbe-flaeche); }

.sprung-link { position: absolute; left: -9999px; }
.sprung-link:focus {
  position: static;
  display: inline-block;
  padding: .75rem 1rem;
  background: var(--farbe-primaer);
  color: #fff;
}

/* --- Kopfbereich / Navigation --- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--farbe-hintergrund);
  border-bottom: 1px solid var(--farbe-linie);
}

.kopf__leiste {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--farbe-primaer);
  text-decoration: none;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.logo__bild { width: 48px; height: 48px; }
.logo__gruen { color: var(--farbe-akzent); }

.nav__liste {
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  text-decoration: none;
  color: var(--farbe-text);
  font-weight: 600;
  font-size: .975rem;
  padding-block: .35rem;
  border-bottom: 2px solid transparent;
}
.nav__link:hover { color: var(--farbe-akzent); border-bottom-color: var(--farbe-akzent-marke); }

.nav__schalter {
  display: none;
  font: inherit;
  font-weight: 600;
  color: var(--farbe-primaer);
  background: none;
  border: 1px solid var(--farbe-linie);
  border-radius: var(--radius);
  padding: .5rem .9rem;
  cursor: pointer;
}

/* --- Schaltflaechen --- */
.knopf {
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
}
.knopf--primaer { background: var(--farbe-akzent-dunkel); color: #fff; }
.knopf--primaer:hover { background: var(--farbe-primaer); color: #fff; }
.knopf--zweit {
  background: transparent;
  color: var(--farbe-primaer);
  border-color: var(--farbe-primaer);
}
.knopf--zweit:hover { background: var(--farbe-primaer); color: #fff; }

.knopf-reihe { display: flex; flex-wrap: wrap; gap: .9rem; }

/* --- Hero --- */
.hero { background: var(--farbe-flaeche); padding-block: clamp(2.5rem, 5vw, 4.5rem); }

.hero__raster {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.hero__titel { text-transform: uppercase; letter-spacing: -.02em; font-weight: 800; }
.hero__titel span { display: block; }
.hero__titel-gruen { color: var(--farbe-akzent); }

/* Der gruene Strich unter der Headline greift den Pinselstrich
   aus dem Titelbild auf. */
.hero__strich {
  width: 120px;
  height: 6px;
  border-radius: 3px;
  background: var(--farbe-akzent-marke);
  margin: 0 0 1.5rem;
}

.hero__subline {
  font-size: clamp(1.125rem, 1rem + .5vw, 1.4rem);
  font-weight: 600;
  color: var(--farbe-primaer);
  max-width: 30ch;
}
.hero__subline em { font-style: normal; color: var(--farbe-akzent); }

.hero__bildfeld { position: relative; }

.hero__bild {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--schatten);
}

/* Runder Störer wie im Titelbild — als CSS-Kreis, damit der Text
   bei jeder Bildschirmgroesse scharf und vorlesbar bleibt. */
.stoerer {
  position: absolute;
  left: -2.5rem;
  bottom: -1.5rem;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--farbe-primaer);
  color: #fff;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 1rem;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: var(--schatten);
}
.stoerer b { color: var(--farbe-akzent-marke); font-weight: 700; }

/* --- Merkmalsleiste (die vier Punkte aus dem Titelbild) --- */
.merkmale {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--farbe-linie);
  list-style: none;
}

.merkmal { display: flex; align-items: center; gap: .75rem; }
.merkmal__symbol { flex: 0 0 auto; color: var(--farbe-akzent); }
.merkmal__text { font-weight: 600; color: var(--farbe-primaer); line-height: 1.3; }

/* --- Karten --- */
.karten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.karte {
  background: var(--farbe-hintergrund);
  border: 1px solid var(--farbe-linie);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.karte h3 { margin-bottom: .5rem; }

.karte__nummer {
  display: grid;
  place-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--farbe-primaer);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

/* --- Einleitungstext ueber einer Sektion --- */
.vorspann { max-width: 62ch; }

/* --- Tabelle Modellrechnung --- */
.tabelle-huelle { overflow-x: auto; }

.tabelle {
  width: 100%;
  border-collapse: collapse;
  min-width: 34rem;
  background: var(--farbe-hintergrund);
}
.tabelle caption {
  text-align: left;
  font-weight: 700;
  color: var(--farbe-primaer);
  padding-bottom: .75rem;
}
.tabelle th, .tabelle td {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--farbe-linie);
  text-align: right;
}
.tabelle th:first-child, .tabelle td:first-child { text-align: left; }
.tabelle thead th { background: var(--farbe-primaer); color: #fff; border-bottom: none; }
.tabelle tbody th { font-weight: 700; color: var(--farbe-primaer); }
.tabelle tbody tr:nth-child(even) td,
.tabelle tbody tr:nth-child(even) th { background: var(--farbe-flaeche); }

.tabelle-nachsatz { margin-top: 1.25rem; }

/* --- Hinweisblock (Risiko, Rechtliches) --- */
.hinweis {
  border-left: 4px solid var(--farbe-akzent-marke);
  background: var(--farbe-flaeche);
  padding: 1.1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .95rem;
  color: var(--farbe-text-leise);
}
.hinweis--warnung { border-left-color: var(--farbe-primaer); }

/* --- Kontaktbereich --- */
.kontakt { background: var(--farbe-primaer); color: #fff; }
.kontakt h2 { color: #fff; }
.kontakt a { color: #fff; }
.kontakt .knopf--zweit { color: #fff; border-color: #fff; }
.kontakt .knopf--zweit:hover { background: #fff; color: var(--farbe-primaer); }

.kontakt__raster {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
}

.kontakt__liste { list-style: none; margin: 0; padding: 0; font-size: 1.05rem; }
.kontakt__liste li { margin-bottom: .5rem; }

/* --- Rechtstexte (Impressum, Datenschutz) --- */
.rechtstext { max-width: 70ch; }
.rechtstext h2 { font-size: 1.3rem; margin-top: 2rem; }
.rechtstext h2:first-of-type { margin-top: 1.5rem; }

/* --- Fussbereich --- */
.fuss {
  background: var(--farbe-flaeche);
  border-top: 1px solid var(--farbe-linie);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  font-size: .95rem;
}
.fuss h3 { font-size: 1.05rem; margin-bottom: .6rem; }

.fuss__raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.fuss__liste { list-style: none; margin: 0; padding: 0; }
.fuss__liste li { margin-bottom: .35rem; }

.fuss__meta {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--farbe-linie);
  font-size: .85rem;
  color: var(--farbe-text-leise);
}

.fuss__unten {
  margin-top: 1rem;
  font-size: .85rem;
  color: var(--farbe-text-leise);
}

/* --- Schmale Bildschirme --- */
@media (max-width: 860px) {
  .hero__raster { grid-template-columns: 1fr; }
  .hero__bildfeld { order: -1; }
  .stoerer {
    position: static;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin-top: 1rem;
    padding: 1.25rem;
  }
  .merkmale { grid-template-columns: repeat(2, 1fr); }
  .kontakt__raster { grid-template-columns: 1fr; }

  .nav__schalter { display: block; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--farbe-hintergrund);
    border-bottom: 1px solid var(--farbe-linie);
    display: none;
  }
  .nav[data-offen="true"] { display: block; }
  .nav__liste {
    flex-direction: column;
    gap: 0;
    padding: .5rem var(--abstand) 1rem;
  }
  .nav__link {
    display: block;
    padding: .7rem 0;
    border-bottom: 1px solid var(--farbe-linie);
  }
}

@media (max-width: 520px) {
  .merkmale { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
