/* Data Components K+S GmbH - Stylesheet
   Stil angelehnt an die bisherige Seite: Weiß, Hellblau, dünne Linien-Icons */

:root {
  --blau: #11aee8;          /* Logo-Blau */
  --blau-dunkel: #0077b6;   /* abgedunkeltes Logo-Blau für Links und Buttons (Kontrast) */
  --blau-hell: #e8f6fd;
  --text: #46525c;
  --titel: #1f1a17;          /* Schriftfarbe des Logos */
  --grau: #8a959e;
  --linie: #e3e9ee;
  --flaeche: #f5f8fa;
  --weiss: #ffffff;
  --radius: 12px;
  --breite: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--weiss);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

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

a { color: var(--blau-dunkel); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--titel); line-height: 1.25; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 500; letter-spacing: -.01em; }
h2 { font-size: clamp(25px, 3vw, 34px); font-weight: 500; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }

.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 24px; }

/* ---------- Kopfbereich ---------- */

.topbar {
  border-bottom: 1px solid var(--linie);
  font-size: 13.5px;
  color: var(--grau);
}
.topbar .wrap { display: flex; justify-content: flex-end; gap: 22px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: var(--text); }

header.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--linie);
}
header.kopf .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 92px; gap: 20px; }

.logo { display: block; flex: none; }
.logo img { height: 70px; width: auto; }
.fuss-logo { height: 58px; width: auto; margin-bottom: 18px; }

nav.haupt ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
nav.haupt li { margin: 0; }
nav.haupt a {
  display: block; padding: 10px 14px; color: var(--titel); font-weight: 600; font-size: 15.5px;
  border-bottom: 2px solid transparent;
}
nav.haupt a:hover { text-decoration: none; border-bottom-color: var(--blau); }
nav.haupt a[aria-current="page"] { border-bottom-color: var(--blau); }
nav.haupt a.btn { border: 0; margin-left: 8px; color: #fff; }

.menu-knopf { display: none; background: none; border: 1px solid var(--linie); border-radius: 8px; padding: 9px 11px; cursor: pointer; color: var(--titel); }
.menu-knopf svg { width: 22px; height: 22px; display: block; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px;
  background: var(--blau-dunkel); color: #fff; font-weight: 600; font-size: 16px;
  border: 2px solid var(--blau-dunkel); transition: background .2s, color .2s;
}
.btn:hover { background: #005f92; border-color: #005f92; text-decoration: none; }
.btn.hell { background: transparent; color: var(--blau-dunkel); }
.btn.hell:hover { background: var(--blau-hell); }
.knoepfe { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Abschnitte ---------- */

section { padding: 84px 0; }
section.flaeche { background: var(--flaeche); }
section.eng { padding: 56px 0; }
.mitte { text-align: center; }
.einleitung { max-width: 760px; margin: 0 auto 46px; }
.einleitung p { font-size: 18px; }
.dachzeile {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blau-dunkel); margin-bottom: 12px;
}
.trenner { width: 56px; height: 2px; background: var(--blau); border: 0; margin: 0 auto 26px; }

/* ---------- Startbereich ---------- */

.hero { padding: 72px 0 80px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { color: var(--blau-dunkel); }
.hero h1 span { display: block; color: var(--titel); font-size: .58em; margin-top: .4em; font-weight: 400; }
.hero p.lead { font-size: 19px; max-width: 600px; }
.hero-bild { position: relative; }
.hero-bild::before {
  content: ""; position: absolute; inset: 6% 2% 4% 8%; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--blau-hell) 0, #f3fbff 55%, transparent 72%);
}
.hero-bild img { position: relative; margin: 0 auto; max-height: 420px; width: auto; }
.siegel { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.siegel span {
  font-size: 13.5px; color: var(--titel); border: 1px solid var(--linie); border-radius: 999px; padding: 6px 14px; background: #fff;
}

.seitenkopf { padding: 64px 0 40px; border-bottom: 1px solid var(--linie); }
.seitenkopf h1 { margin-bottom: .35em; }
.seitenkopf p { font-size: 19px; max-width: 820px; }
.brotkrumen { font-size: 14px; color: var(--grau); margin-bottom: 18px; }
.brotkrumen a { color: var(--grau); }

/* ---------- Kacheln mit Kreis-Icons (wie die alte Startseite) ---------- */

.raster { display: grid; gap: 28px; }
.raster.drei { grid-template-columns: repeat(3, 1fr); }
.raster.vier { grid-template-columns: repeat(4, 1fr); }
.raster.zwei { grid-template-columns: repeat(2, 1fr); }

.kachel {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 34px 28px 30px; transition: box-shadow .25s, transform .25s, border-color .25s;
  display: flex; flex-direction: column;
}
.kachel:hover { box-shadow: 0 14px 36px rgba(15, 60, 90, .09); transform: translateY(-3px); border-color: #cfe9f5; }
.kachel.mitte { align-items: center; text-align: center; }
.kachel h3 { color: var(--blau-dunkel); font-weight: 500; font-size: 23px; }
.kachel p { font-size: 16px; }
.kachel ul { font-size: 15.5px; text-align: left; }
.kachel .mehr { margin-top: auto; font-weight: 600; }
.kachel .mehr::after { content: " \2192"; }

.kreis {
  width: 82px; height: 82px; border-radius: 50%; border: 2px solid var(--blau); color: var(--blau);
  display: grid; place-items: center; margin-bottom: 22px; flex: none; transition: background .25s, color .25s;
}
.kachel:hover .kreis { background: var(--blau); color: #fff; }
.kreis svg { width: 44px; height: 44px; }
.kreis.klein { width: 56px; height: 56px; margin-bottom: 14px; border-width: 1.5px; }
.kreis.klein svg { width: 30px; height: 30px; }

.punkt { display: flex; gap: 18px; align-items: flex-start; }
.punkt .kreis { margin-bottom: 0; }
.punkt h3 { font-size: 18px; margin-bottom: .3em; }
.punkt p { font-size: 15.5px; margin: 0; }

/* ---------- Bild + Text ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.umgekehrt > :first-child { order: 2; }
.split img, .split svg.illu { border-radius: var(--radius); }
.split .bildrahmen { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 18px; }
.haken { list-style: none; padding: 0; }
.haken li { position: relative; padding-left: 30px; }
.haken li::before {
  content: ""; position: absolute; left: 2px; top: .42em; width: 15px; height: 8px;
  border-left: 2px solid var(--blau); border-bottom: 2px solid var(--blau); transform: rotate(-45deg);
}

.band-bild { width: 100%; border-radius: var(--radius); object-fit: cover; }

/* ---------- Hinweis- und Kontaktboxen ---------- */

.hinweis {
  border-left: 3px solid var(--blau); background: var(--blau-hell); padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 26px 0;
}
.hinweis p:last-child { margin: 0; }

.kontaktband { background: var(--flaeche); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.kontaktband .raster { align-items: stretch; }
.kontaktband .kachel { background: #fff; }
.gross { font-size: 21px; font-weight: 600; color: var(--titel); }

.zahlen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 10px; }
.zahlen div { text-align: center; padding: 22px 10px; border-top: 2px solid var(--blau); }
.zahlen strong { display: block; font-size: 34px; font-weight: 500; color: var(--titel); line-height: 1.1; }
.zahlen span { font-size: 14.5px; color: var(--grau); }

.partner { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 30px; }
.partner div {
  min-width: 210px; padding: 20px 24px; border: 1px solid var(--linie); border-radius: var(--radius); text-align: center; background: #fff;
}
.partner strong { display: block; font-size: 19px; color: var(--titel); letter-spacing: .02em; }
.partner span { font-size: 13.5px; color: var(--grau); }

.tabelle { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 10px 0 0; background: #fff; border-radius: var(--radius); overflow: hidden; }
.tabelle th, .tabelle td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle th { background: var(--flaeche); color: var(--titel); font-weight: 600; }
.tabelle-scroll { overflow-x: auto; border: 1px solid var(--linie); border-radius: var(--radius); }

.faq details { border-bottom: 1px solid var(--linie); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--titel); font-size: 18px; list-style: none; position: relative; padding-right: 34px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -4px; font-size: 26px; color: var(--blau); font-weight: 300; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; }

.wrap.rechtstext { max-width: var(--breite); }
.rechtstext > * { max-width: 820px; }
.rechtstext h2 { font-size: 24px; margin-top: 1.6em; }
.rechtstext h3 { font-size: 18px; margin-top: 1.3em; }

/* ---------- Fußbereich ---------- */

footer.fuss { background: #14232e; color: #b9c6cf; font-size: 15px; padding: 64px 0 0; }
footer.fuss h4 { color: #fff; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
footer.fuss a { color: #d7e3ea; }
footer.fuss ul { list-style: none; padding: 0; }
footer.fuss li { margin-bottom: 8px; }
.fuss-raster { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.fuss-unten { border-top: 1px solid #2a3c48; margin-top: 40px; padding: 20px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; }
.fuss-unten nav a { margin-left: 18px; }
.fuss-unten nav a:first-child { margin-left: 0; }

/* ---------- Mobil ---------- */

@media (max-width: 1020px) {
  .raster.vier { grid-template-columns: repeat(2, 1fr); }
  .fuss-raster { grid-template-columns: 1fr 1fr; }
  .zahlen { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .menu-knopf { display: block; }
  nav.haupt { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--linie); display: none; box-shadow: 0 16px 30px rgba(0,0,0,.06); }
  nav.haupt.offen { display: block; }
  nav.haupt ul { flex-direction: column; align-items: stretch; padding: 8px 16px 18px; gap: 0; }
  nav.haupt a { padding: 14px 6px; border-bottom: 1px solid var(--linie); }
  nav.haupt a.btn { margin: 14px 0 0; text-align: center; border-radius: 999px; }
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 34px; }
  .split.umgekehrt > :first-child { order: 0; }
  .hero-bild img { max-height: 220px; }
  .raster.drei, .raster.zwei { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .raster.vier, .fuss-raster { grid-template-columns: 1fr; }
  .topbar .wrap { justify-content: center; gap: 14px; }
  .topbar .nur-breit { display: none; }
  .logo img { height: 56px; }
  .kachel { padding: 28px 22px; }
  .hero { padding: 44px 0 56px; }
  .fuss-unten nav a { margin: 0 14px 0 0; }
}

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

a.kachel { color: inherit; }
a.kachel:hover { text-decoration: none; }
a.kachel h3 { font-size: 19px; }
.siegel a:hover { text-decoration: none; }
.siegel a span:hover { border-color: var(--blau); color: var(--blau-dunkel); }
.zeitleiste { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--blau); }
.zeitleiste li { position: relative; padding: 0 0 26px 30px; margin: 0; }
.zeitleiste li::before { content: ""; position: absolute; left: -8px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--blau); }
.zeitleiste strong { display: block; color: var(--titel); font-size: 18px; }
[id] { scroll-margin-top: 96px; }
.agb-inhalt { background: var(--flaeche); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 30px; }
.agb-inhalt ol { list-style: none; padding: 0; columns: 2; column-gap: 30px; font-size: 15.5px; margin: 0; }
@media (max-width: 560px) { .agb-inhalt ol { columns: 1; } }
