:root {
  --green-accent: #39B54A;          /* dein Grün */
  --ci-primary:   #004080;          /* dein Blau (Section-Titel & Footer) */
  --line-color:   rgba(0,0,0,.15);  /* feine Trenner fürs FAQ */
}

html {
  /* Standard zuerst, dann WebKit-Präfix (Webhint-kompatibel) */
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

/* Grundlegendes Styling */
body {
  font-family: 'Inter', sans-serif;
  background-color: #f7f7f7;
  color: #333;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Navigation */
nav a {
  color: #374151;
  text-decoration: none;
  margin-right: 1rem;
  font-weight: 500;
}
nav a:hover { color: var(--green-accent); }

/* Buttons */
.custom-btn, .btn-green {
  background-color: var(--green-accent);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  display: inline-block;
  transition: background-color 0.3s ease;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  z-index: 10;
  cursor: pointer;
}
.custom-btn:hover, .btn-green:hover { background-color: #2e9d3f; }
.btn-green { color: black !important; }
.btn-white-text { color: white !important; }
.text-white-outline {
  text-shadow:
    -1px -1px 0 white, 1px -1px 0 white,
    -1px  1px 0 white, 1px  1px 0 white;
}

/* Abschnittstitel */
.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #004080;
}

/* Footer */
footer {
  background-color: #004080;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

/* Footer City-Links */
.footer-cities a {
  margin: 0 0.5rem;        /* Abstand um jeden Link */
  padding: 0.25rem 0.35rem;
  display: inline-block;   /* erlaubt Padding & mehr „Luft“ */
}

.footer-cities {
  letter-spacing: 0.03em;  /* etwas Luft zwischen Buchstaben */
  line-height: 1.8;        /* mehr vertikaler Abstand */
}


/* Akzente */
.green-accent {
  background-color: var(--green-accent);
  height: 4px;            /* Sichtbarkeit */
  border-radius: 2px;
}
.text-green-accent { color: var(--green-accent); }
.border-left-accent { border-left: 2px solid #333; }
.border-top-accent  { border-top:  2px solid #333; }

/* Startseite: Footer-Abstand entfernen */
.page-index main { padding-bottom: 0 !important; }
.page-index footer { margin-top: 0 !important; }

/* Standard-Abstände für einige Seiten */
.page-kontakt main,
.page-impressumksenergy main,
.page-datenschutzksenergy main { padding-bottom: 4rem; }

/* Preloader – standardmäßig AUS, nur mit .is-active an */
#preloader { display: none; }
#preloader.is-active {
  display: block;
  position: fixed; top:0; left:0; right:0; bottom:0;
  background-color: #fff; z-index: 9999;
}
.preloader-hidden { display: none !important; }

/* Achtung: NICHT global z-50 verstecken! Cookie-spezifisch filtern */
.cookie-overlay,
#cooky-overlay,
.rcb-container, .rcb-widget,
div[id*="rcb"] {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Hero: RearSun – Bild + Overlay + responsive Höhe */
.hero-rearsun {
  position: relative;
  background-image: url('/Pictures/RearSun.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: clamp(360px, 60vh, 560px);
}

/* weiches, helles Overlay für bessere Lesbarkeit */
.hero-rearsun::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.25); /* ggf. anpassen (0.15–0.35) */
}
/* reCAPTCHA v3/Enterprise Badge sichtbar halten */
.grecaptcha-badge {
  position: fixed;      /* falls der Browser sie nicht already fixed setzt */
  right: 16px;
  bottom: 16px;
  z-index: 60;          /* über Footer (z-50), unter Preloader (9999) */
}

/* Wenn dein Cookie-Banner unten eingeblendet ist, Badge leicht anheben */
body.has-cookie-banner .grecaptcha-badge {
  bottom: 96px;
}

/* ===========================
   FAQ Accordion (KS Energy)
   =========================== */

.accordion { margin: 0; padding: 0; }

.accordion .acc-row {
  border-top: 1px solid var(--line-color);
  padding: 0.25rem 0; /* dezent mehr Luft zwischen den Blöcken */
}

.accordion .acc-row:last-child {
  border-bottom: 1px solid var(--line-color);
}

.accordion .acc-btn {
  width: 100%;
  display: flex;
  align-items: flex-start;      /* alles oben bündig, nicht vertikal zentriert */
  justify-content: flex-start;  /* komplette Ausrichtung nach links */
  gap: 0.75rem;
  padding: 0.75rem 0;           /* etwas kompakter als vorher */
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;             /* Textinhalt linksbündig */
}

.accordion .acc-sign {
  flex-shrink: 0;               /* verhindert, dass das Plus/Minus kleiner gezogen wird */
  font-size: 1.25rem;           /* kleineres Symbol */
  width: 1.25rem;               /* angepasste Breite für bündige Spalte */
  line-height: 1;
  text-align: center;
  color: var(--green-accent);   /* grün als visuelle Orientierung */
  margin-top: 0.2rem;           /* leicht nach unten verschoben für saubere optische Linie */
}

.accordion .acc-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;             /* etwas leichter als 700, ruhigeres Gesamtbild */
  font-size: 1.1rem;            /* kleiner (ca. 17–18px) */
  line-height: 1.4;
  color: var(--ci-primary);
  text-align: left;
}

.accordion .acc-panel {
  padding: .5rem 0 1.5rem 2.5rem; /* leichter Einzug unter dem Titel */
  color: #27303a; /* falls du exakt #333 willst, hier anpassen */
}

.accordion .acc-btn:hover .acc-title { opacity: .9; }

/* Links im Panel dezent hervorheben */
.accordion .acc-panel a { text-decoration: underline; }

/* Optional: geöffnete Reihe markieren */
.accordion .acc-row.is-open .acc-title { opacity: 1; }

/* =========================================================
   KS Energy – Journal Card Layout (Bild rechts, Text links)
   funktioniert ohne Tailwind-Utilities wie w-1/2 etc.
   ========================================================= */
.journal-card {
  display: flex;
  flex-direction: column;      /* mobil untereinander */
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Wrapper für die zwei Spalten */
.jc-inner {
  display: flex;
  flex-direction: column;
}

/* Media-Panel (Bild) */
.jc-media {
  flex: 0 0 auto;
  height: 256px;               /* fixe Höhe mobil */
  overflow: hidden;
}
.jc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content-Panel (Text) */
.jc-content {
  padding: 1rem;               /* = p-4 */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Meta-Zeile unten in der Karte */
.jc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6b7280;              /* text-gray-500 */
  font-size: 0.875rem;         /* text-sm */
  margin-top: 1rem;
}

/* Desktop: Bild rechts, gleiche Höhe für die Karte */
@media (min-width: 768px) {
  .jc-inner {
    flex-direction: row-reverse;   /* Bild rechts */
    min-height: 256px;             /* Karte so hoch wie das Bild */
  }
  .jc-media {
    flex: 0 0 48%;                 /* ≈ Hälfte – ohne Tailwind Utility */
    height: auto;                  /* Höhe kommt von min-height der Karte */
  }
  .jc-content {
    flex: 1 1 52%;
    padding: 1.5rem;               /* = p-6 */
  }
}

/* Breitenbegrenzung & Zentrierung der gesamten Karte in der Liste */
.journal-card-wrap {
  width: 100%;
  max-width: 56rem;                /* ~ max-w-4xl */
  margin-left: auto;
  margin-right: auto;
}

/* Optional: noch breitere Liste insgesamt */
@media (min-width: 1280px) {
  .journal-list-container {
    max-width: 72rem;              /* ~ max-w-6xl */
  }
}

/* (Optional) 2-zeilige Excerpt-Kürzung ohne Plugin */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === KS Article Typography (scoped) === */
.ks-article { color:#111; line-height:1.7; }
.ks-article h1 { font-size:2rem; line-height:1.2; font-weight:700; margin:0 0 1rem; }
.ks-article h2 { font-size:1.375rem; line-height:1.3; font-weight:700; margin:2rem 0 0.75rem; }
.ks-article h3 { font-size:1.125rem; line-height:1.35; font-weight:600; margin:1.5rem 0 0.5rem; }

.ks-article p { margin:0.75rem 0; }
.ks-article ul { margin:0.5rem 0 1rem 1.25rem; padding:0; list-style:disc; }
.ks-article li { margin:0.35rem 0; }
.ks-article a { color:#166534; text-decoration: underline; text-underline-offset: 2px; }
.ks-article hr { border:0; border-top:1px solid #e5e7eb; margin:1.5rem 0; }

.ks-article .lede { font-size:1.0625rem; color:#374151; }
.ks-article .cta { display:inline-block; background:#16a34a; color:#fff; padding:0.5rem 0.9rem; border-radius:0.5rem; text-decoration:none; }
.ks-article .cta:hover { background:#15803d; }


