/* ============================================================
   Klickseite – Corporate Design / Basis-Stylesheet
   Wird von JEDER Seite eingebunden. Enthält Design-Tokens,
   Grund-Layout, Button und den verbindlichen schwarz-weißen
   Footer (Impressum + Datenschutzerklärung).
   Erstellt von deichbot.
   ============================================================ */

/* ---- Design-Tokens (Corporate Design) ---------------------- */
:root {
  --ks-blue:        #0FA6FF;   /* Primär-Blau (Startseite/Hero)      */
  --ks-blue-dark:   #128DD6;   /* Akzent / Hover                     */
  --ks-navy:        #00194C;   /* dunkler Text auf Hell              */
  --ks-white:       #FFFFFF;
  --ks-black:       #000000;   /* Footer-Hintergrund                 */
  --ks-gray:        #5b5b5b;   /* Fließtext auf Hell                 */
  --ks-gray-light:  #e6e6e6;

  --ks-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
             Roboto, Helvetica, Arial, sans-serif;

  --ks-maxw: 820px;            /* Lesebreite Inhaltsseiten           */
  --ks-radius: 999px;
}

/* ---- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ks-font);
  line-height: 1.6;
  color: var(--ks-navy);
  background: var(--ks-white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ks-blue-dark); }

/* ---- Seitengerüst: Footer klebt unten ---------------------- */
.ks-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.ks-page > main { flex: 1 0 auto; }

/* ---- Header (Platzhalter, wird auf jeder Seite geladen) ----- */
/* Aktuell leer. Inhalt später hier + in partials/header.php.    */
.ks-header:empty { display: none; }

/* ---- Button ------------------------------------------------ */
.ks-btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: var(--ks-radius);
  background: var(--ks-white);
  color: var(--ks-blue);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--ks-white);
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.ks-btn:hover {
  background: var(--ks-blue-dark);
  color: var(--ks-white);
  border-color: var(--ks-white);
}

/* ---- Footer (verbindlich auf jeder Seite) ------------------ */
.ks-footer {
  flex-shrink: 0;
  background: var(--ks-blue);
  color: var(--ks-white);
  padding: 28px 24px;
  font-size: .9rem;
  border-top: 1px solid rgba(255, 255, 255, .25);
}
.ks-footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  max-width: 720px;
  margin: 0 auto;
}
.ks-footer__logo { display: inline-block; flex-shrink: 0; }
.ks-footer__logo img {
  width: 56px;
  display: block;
  transition: opacity .2s ease;
}
.ks-footer__logo:hover img { opacity: .8; }
.ks-footer__text { text-align: left; }
.ks-footer__nav a {
  color: var(--ks-white);
  text-decoration: none;
  opacity: .9;
}
.ks-footer__nav a:hover { opacity: 1; text-decoration: underline; }
.ks-footer__sep { margin: 0 12px; opacity: .55; }
.ks-footer__copy { margin: 6px 0 0; opacity: .7; font-size: .8rem; }

@media (max-width: 480px) {
  .ks-footer__inner { flex-direction: column; gap: 14px; }
  .ks-footer__text { text-align: center; }
}

/* ---- Startseite / Hero ------------------------------------- */
.ks-hero {
  background: var(--ks-blue);
  color: var(--ks-white);
  text-align: center;
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.ks-hero__logo { width: 200px; max-width: 60vw; margin-bottom: 18px; }
.ks-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: -.5px;
}
.ks-hero p { margin: 4px 0 28px; font-size: 1.15rem; opacity: .95; }

/* ---- Inhaltsseiten (Impressum / Datenschutz) --------------- */
.ks-content {
  max-width: var(--ks-maxw);
  margin: 0 auto;
  padding: 56px 24px 72px;
  color: var(--ks-gray);
}
.ks-content h1 {
  color: var(--ks-navy);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  margin: 0 0 28px;
}
.ks-content h2 {
  color: var(--ks-navy);
  font-size: 1.4rem;
  margin: 40px 0 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ks-gray-light);
}
.ks-content h3 {
  color: var(--ks-navy);
  font-size: 1.1rem;
  margin: 26px 0 8px;
}
.ks-content p { margin: 0 0 14px; }
.ks-content a { color: var(--ks-blue-dark); word-break: break-word; }
