/* ======================================
   🌿 Global Styles – Strom-Sparpotenzial.de
   ====================================== */

/* Google Font:
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet">
*/

:root {
  --primary: #f9b233;       /* Solar-Gelb */
  --secondary: #004f9e;     /* Energieblau */
  --accent: #00b894;        /* Nachhaltigkeitsgrün */
  --light-green: #e8f5e9;
  --text: #000;              /* Schwarzer Text für bessere Lesbarkeit */
  --bg: #fafafa;
  --card-bg: #fff;
  --border: #e0e0e0;
  --radius: 14px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ================================
   Grundlayout
   ================================ */
html, body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* ================================
   Headlines & Text
   ================================ */
h1, h2, h3, h4 {
  color: var(--secondary);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1.8rem;
}

h2 {
  font-size: 1.8rem;
  text-align: center;
  color: #1b5e20; /* Umweltgrün */
  position: relative;
  margin-bottom: 2rem;
}

h2::after {
  content: "";
  width: 70px;
  height: 4px;
  background: var(--accent);
  display: block;
  margin: 12px auto 0;
  border-radius: 2px;
}

p, li, span, a {
  line-height: 1.6;
  font-size: 1rem;
  color: #000; /* Schwarzer Fließtext */
}

/* ================================
   Stromspartipps – grüne Karten
   ================================ */
#tipps {
  background: #f5f5f5;
  border-radius: var(--radius);
  padding: 3rem 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
}

#tipps .intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #000;
  font-size: 1.05rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}

.card {
  background: linear-gradient(160deg, #ffffff 0%, #f1f8f6 100%);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(46, 125, 50, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #dceee0;
  color: #000;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(46, 125, 50, 0.15);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #a5d6a7 0%, #c8e6c9 100%);
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  border-bottom: 1px solid #d0e8d0;
  color: #1b5e20; /* Dunkelgrün für Kontrast */
}

.card-header span {
  font-size: 1.6rem;
  margin-right: 0.8rem;
  color: #1b5e20;
}

.card-header p {
  flex: 1;
  font-weight: 600;
  font-size: 1.05rem;
  color: #1b5e20;
  margin: 0;
}

.accordion-btn {
  background: none;
  border: none;
  font-weight: 600;
  color: #1b5e20;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.accordion-btn:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.accordion-btn .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.accordion-btn[aria-expanded="true"] .arrow {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding: 1.4rem;
  background: #fff;
  color: #000;
  line-height: 1.7;
  animation: fadeIn 0.3s ease;
}

.accordion-content.show {
  display: block;
}

.accordion-content p {
  margin: 0.5rem 0;
}

.extra-info {
  margin-top: 1rem;
  padding: 1rem;
  border-left: 4px solid var(--accent);
  background: #f5fdfb;
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: #1b5e20;
}

/* ================================
   Fade-In Animation
   ================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================================
   Rechner-Container & Auswahl
   ================================ */
#rechner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-top: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

#rechner label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card-bg);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
  font-size: 0.95rem;
  flex: 1 1 45%;
  min-width: 160px;
  color: #000;
}

#rechner input[type="checkbox"] {
  transform: scale(1.2);
  cursor: pointer;
}

#rechner select,
#rechner select option {
  background: var(--card-bg);
  border: 2px solid var(--secondary);
  color: #000;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
  flex: 1 1 100%;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

#rechner select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.3);
}

/* ================================
   Buttons
   ================================ */
button,
.geraete-btn {
  background-color: var(--primary);
  color: #000;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  padding: 0.6rem 1.3rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow);
}

button:hover,
.geraete-btn:hover {
  background-color: #ffd75f;
  transform: scale(1.04);
}

/* ================================
   Fortschrittsbalken
   ================================ */
#progressBarContainer {
  width: 100%;
  background: var(--light-green);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 0.8rem;
}

#progressBar {
  height: 28px;
  width: 0;
  background: var(--accent);
  text-align: center;
  line-height: 28px;
  color: #fff;
  font-weight: 600;
  transition: width 0.4s ease;
}

/* ================================
   Footer
   ================================ */
footer {
  background: var(--secondary);
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}

footer a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

footer .affiliate-hinweis {
  background: rgba(255, 255, 255, 0.08);
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 768px) {
  #rechner {
    flex-direction: column;
    gap: 0.8rem;
  }

  #rechner label {
    flex: 1 1 100%;
    min-width: auto;
  }

  .calculator {
    width: 100%;
    padding: 1rem;
  }

  #progressBar {
    line-height: 24px;
    height: 24px;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .accordion-btn {
    align-self: flex-end;
  }

  #rechner select {
    width: 100%;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  #tipps {
    padding: 2rem 1.2rem;
  }
}

/* ================================
   Home & Umwelt Texte
   ================================ */
.home-text,
.umwelt-text {
  color: #1b5e20; /* Umweltgrün */
  font-weight: 500;
}
/* ======================================
   🌿 Vergleichstabelle – gut lesbar & kontrastreich
   ====================================== */
.vergleich-tabelle {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  background: #fefefe;
  border-radius: 10px;
  overflow: hidden;
}

/* Tabellenkopf */
.vergleich-tabelle th {
  background: linear-gradient(90deg, #a5d6a7, #81c784); /* hellgrün, nicht grell */
  color: #1b5e20; /* dunkles Blattgrün – sehr gut lesbar */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1rem;
  border-bottom: 2px solid #c8e6c9;
}

/* Tabellenzellen */
.vergleich-tabelle td {
  padding: 0.9rem 1rem;
  border: 1px solid #c8e6c9;
  color: #2e7d32; /* dunkles, sattes Grün */
  background: #ffffff;
}

/* Wechselnde Zeilenfarbe für bessere Lesbarkeit */
.vergleich-tabelle tr:nth-child(even) td {
  background: #f1f8f6;
}

/* Hervorgehobene Zeile */
.highlight-row td {
  background: #dcedc8 !important;
  color: #1b5e20;
  font-weight: 600;
}
/* /* ======================================
   🌿 FAQ Styling – Umweltfreundlich & lesbar
   ====================================== */

/* FAQ Container */
.faq-section {
  background: #f1f8f6; /* helles, sanftes Grün */
  border-radius: 14px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  margin-bottom: 3rem;
}

/* FAQ Überschrift */
.faq-section h2 {
  color: #1b5e20; /* dunkles Blattgrün */
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

.faq-section h2::after {
  content: "";
  width: 60px;
  height: 4px;
  background: #81c784; /* Akzentgrün */
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Accordion Header / Button */
.faq-section .accordion-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: #e8f5e9; /* helles Grün */
  border: 1px solid #c8e6c9;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  color: #1b5e20; /* dunkles Blattgrün */
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.faq-section .accordion-btn:hover {
  background: #dcedc8;
  transform: scale(1.02);
}

.faq-section .accordion-btn .arrow {
  transition: transform 0.3s ease;
}

.faq-section .accordion-btn[aria-expanded="true"] .arrow {
  transform: rotate(180deg);
}

/* Accordion Content */
.faq-section .accordion-content {
  display: none;
  padding: 1.2rem 1.5rem;
  margin-top: 0.5rem;
  background: #ffffff; /* weißer Hintergrund für Text */
  color: #1b5e20 !important; /* dunkles Blattgrün, erzwingt Sichtbarkeit */
  line-height: 1.6;
  border-left: 4px solid #81c784; /* Akzentgrün */
  border-radius: 0 10px 10px 0;
  animation: fadeIn 0.3s ease;
}

.faq-section .accordion-content.show {
  display: block;
}

.faq-section .accordion-content p {
  margin: 0.4rem 0;
  color: #1b5e20 !important; /* sichergehen, dass Text sichtbar ist */
}

/* Optional: Extra Info innerhalb FAQ */
.faq-section .extra-info {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  background: #f5fdfb;
  border-left: 4px solid #81c784;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #1b5e20;
}

/* Fade-In Animation für Content */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive FAQ */
@media (max-width: 768px) {
  .faq-section .accordion-btn {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
}
/* ================================
   Intro-Block – Strom sparen
   ================================ */
.intro-block {
  background: linear-gradient(135deg, #e8f5e9, #f1f8f6); /* sanfte Grüntöne */
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
  text-align: center;
}

.intro-block h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary); /* Energieblau */
  margin-bottom: 1rem;
}

.intro-block p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #1b5e20; /* dunkles Blattgrün */
  max-width: 700px;
  margin: 0 auto;
}
/* ==============================
   KabelQuerschnitt Rechner – spezifische Styles
   ============================== */

#kabel-rechner {
  margin-top: 2rem;
  padding: 2rem;
  background: #f5f9f5;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

#kabel-rechner h1,
#kabel-rechner h2,
#kabel-rechner h3 {
  color: #1b5e20; /* Umweltgrün */
  font-weight: 700;
}

#kabel-rechner p, 
#kabel-rechner li {
  color: #1b5e20;
  line-height: 1.6;
  font-size: 1rem;
}

#kabel-rechner ul {
  padding-left: 1.5rem;
}

/* Toggle Buttons */
#kabel-rechner .toggle {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

#kabel-rechner .toggle button {
  padding: 0.5rem 1rem;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background: #f9b233; /* Solar-Gelb */
  color: #000;
  transition: 0.2s;
}

#kabel-rechner .toggle button.active {
  background: #00b894; /* Nachhaltigkeitsgrün */
  color: #fff;
}

/* Form Layout */
#kabel-rechner .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

#kabel-rechner .form-grid label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
}

#kabel-rechner .form-grid input,
#kabel-rechner .form-grid select {
  padding: 0.5rem;
  border-radius: 12px;
  border: 1px solid #c8e6c9;
  font-size: 1rem;
}

/* Calculate Button */
#kabel-rechner .calculate-btn {
  margin-top: 1rem;
  padding: 0.7rem 1.3rem;
  border: none;
  border-radius: 12px;
  background: #004f9e; /* Energieblau */
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: 0.2s;
}

#kabel-rechner .calculate-btn:hover {
  background: #00b894; /* Nachhaltigkeitsgrün */
}

/* Ergebnisanzeige */
#kabel-rechner .result {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #e8f5e9;
  border-left: 5px solid #00b894;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  color: #1b5e20;
}

/* Responsive */
@media(max-width:768px) {
  #kabel-rechner .form-grid {
    grid-template-columns: 1fr;
  }
  #kabel-rechner .toggle {
    flex-direction: column;
  }
}
.kabel-rechner {
  margin-top: 2rem;
  padding: 2rem;
  background: #f5f9f5;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.kabel-rechner h1,
.kabel-rechner h2,
.kabel-rechner h3 {
  color: #1b5e20;
  font-weight: 700;
}

.kabel-rechner p, 
.kabel-rechner li {
  color: #1b5e20;
  line-height: 1.6;
  font-size: 1rem;
}

/* Toggle Buttons */
.kabel-rechner .toggle {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kabel-rechner .toggle button {
  padding: 0.5rem 1rem;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background: #f9b233;
  color: #000;
  transition: 0.2s;
}

.kabel-rechner .toggle button.active {
  background: #00b894;
  color: #fff;
}

/* Form Layout */
.kabel-rechner .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.kabel-rechner .form-grid label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
}

.kabel-rechner .form-grid input,
.kabel-rechner .form-grid select {
  padding: 0.5rem;
  border-radius: 12px;
  border: 1px solid #c8e6c9;
  font-size: 1rem;
}

/* Calculate Button */
.kabel-rechner .calculate-btn {
  margin-top: 1rem;
  padding: 0.7rem 1.3rem;
  border: none;
  border-radius: 12px;
  background: #004f9e;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: 0.2s;
}

.kabel-rechner .calculate-btn:hover {
  background: #00b894;
}

/* Ergebnisanzeige */
.kabel-rechner .result {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #e8f5e9;
  border-left: 5px solid #00b894;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  color: #1b5e20;
}

/* Responsive */
@media(max-width:768px) {
  .kabel-rechner .form-grid {
    grid-template-columns: 1fr;
  }
  .kabel-rechner .toggle {
    flex-direction: column;
  }
}
.h1-style {
    font-size: 2.5rem;       /* Größe wie dein bisheriges H1 */
    font-weight: 700;        /* Fett */
    line-height: 1.2;        /* Zeilenhöhe */
    color: var(--green-dark);/* Farbe */
    margin-bottom: 1rem;     /* Abstand nach unten */
    display: block;           /* wie Blockelement */
}