/* style.css */

/* --- Variablen & Grundlegendes --- */
:root {
  --color-primary: #1e3163; /* Dunkelblau */
  --color-secondary: #0bda51; /* Grün */
  --color-accent: #fae600; /* Gelb */
  --color-text: #333333;
  --color-text-light: #ffffff;
  --color-background: #ffffff;
  --color-background-alt: #f8f8f8;
  --font-heading: "Biko", sans-serif;
  --font-body: "Lato", sans-serif;
  --font-tagline: "Dancing Script", cursive;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth; /* Für sanftes Scrollen bei internen Links */
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-background);
  font-size: 16px; /* Basis-Schriftgröße */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  color: var(--color-primary);
  line-height: 1.3;
  font-weight: 700;
}

h1 {
  font-size: 2.8rem;
}
h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}
h3 {
  font-size: 1.6rem;
  color: var(--color-secondary);
} /* Grün für H3 */
h4 {
  font-size: 1.2rem;
}

p {
  margin-bottom: 1rem;
}
a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--color-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul {
  list-style: none;
}

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

.text-center {
  text-align: center;
}
.subtext {
  font-size: 0.9rem;
  color: #666;
  margin-top: -1rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* --- Header --- */
#header {
  background-color: var(--color-primary);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px; /* Logo Höhe anpassen */
  width: auto;
}

#navbar #menu-toggle {
  /* Burger Menü Button */
  display: block; /* Standardmäßig sichtbar (mobil) */
  background: none;
  border: none;
  color: var(--color-text-light);
  font-size: 2rem;
  cursor: pointer;
}

#nav-menu {
  display: none; /* Standardmäßig versteckt (mobil) */
  flex-direction: column;
  position: absolute;
  top: 70px; /* Höhe des Headers */
  left: 0;
  width: 100%;
  background-color: var(--color-primary);
  padding: 1rem 0;
  text-align: center;
}

#nav-menu.active {
  /* Klasse zum Anzeigen des Menüs */
  display: flex;
}

#nav-menu li {
  margin: 1rem 0;
}

.nav-link {
  color: var(--color-text-light);
  font-weight: bold;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}
.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
}

/* --- Sections Allgemein --- */
section {
  padding: 60px 0;
}
section:nth-child(even) {
  background-color: var(--color-background-alt);
}

/* --- Hero Section --- */
.hero-section {
  /* background: linear-gradient(rgba(10, 36, 99, 0.8), rgba(10, 36, 99, 0.8)), url("images/schwarzenbach.jpg") no-repeat center center/cover; /* Optional: Hintergrundbild */
  background: url("images/schwarzenbach.jpg") no-repeat center center/cover; /* Optional: Hintergrundbild */
  /* Fallback ohne Bild: */
  background-color: var(--color-primary);
  color: var(--color-text-light);
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh; /* Evtl. etwas weniger Höhe auf Mobilgeräten */
  padding: 60px 0 40px 0; /* Padding angepasst */
}
.hero-section h1 {
  color: var(--color-secondary);
  font-size: 2.5rem; /* <<< ANGEPASST (War 3.5rem in der spezifischen Regel) */
  margin-bottom: 0.5rem; /* Weniger Abstand nach unten */
}
.hero-section .tagline {
  font-family: var(--font-tagline);
  font-size: 1.8rem; /* <<< ANGEPASST (War 2.5rem) */
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.4; /* Bessere Zeilenhöhe für Umbruch */
}
.hero-section .intro-text {
  font-size: 1rem; /* Ggf. etwas kleiner */
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

/* --- CTA Button --- */
.cta-button {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-primary); /* Dunkler Text auf Gelb */
  padding: 12px 30px;
  border: none;
  border-radius: 25px; /* Abgerundeter */
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.cta-button:hover {
  background-color: #eac400; /* Dunkleres Gelb */
  transform: translateY(-3px); /* Leichter Lift-Effekt */
  color: var(--color-primary);
}

/* --- Benefits Section --- */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr; /* Mobil: 1 Spalte */
  gap: 30px;
  margin-top: 2rem;
}
.benefit-item {
  background-color: var(--color-background);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}
.benefit-item:hover {
  transform: translateY(-5px);
}
.benefit-item .icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
  color: var(--color-secondary);
}
.benefit-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

/* --- About Section --- */
.about-section {
  background-color: var(--color-background-alt);
}
.founder-section {
  display: flex;
  flex-direction: column; /* Mobil: Untereinander */
  gap: 30px;
  align-items: center;
  margin-top: 3rem;
}
.founder {
  text-align: center;
  max-width: 300px;
}
.founder-placeholder-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: var(--color-secondary);
  color: var(--color-text-light);
  font-size: 2.5rem;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  border: 3px solid var(--color-background);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.founder h4 {
  color: var(--color-primary);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}
.founder p {
  font-size: 0.95rem;
  color: #555;
}

/* --- How it Works Section --- */
.explanation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 2rem;
}
.highlight-box {
  background-color: #e6f5ff; /* Helles Blau */
  border-left: 5px solid var(--color-primary);
  padding: 20px;
  margin-top: 2rem;
  border-radius: 5px;
}
.highlight-box h4 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

/* --- Tariffs Section --- */
.tariffs-section {
  background-color: var(--color-background-alt);
}
.tariff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}
.tariff-card {
  background-color: var(--color-background);
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 30px 25px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative; /* Für Badge */
  overflow: hidden; /* Für Badge */
}
.tariff-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.tariff-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.7rem;
}
.tariff-for {
  font-weight: bold;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}
.description {
  font-size: 0.95rem;
  color: #555;
  min-height: 50px; /* Höhe für Konsistenz */
}
.price-label {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 0.2rem;
}
.price {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.calculation,
.footnote {
  font-size: 0.85rem;
  color: #777;
}
.footnote {
  margin-top: 1rem;
}
.highlight-badge {
  position: absolute;
  top: 15px;
  right: -30px;
  background-color: var(--color-accent);
  color: var(--color-primary);
  padding: 5px 30px;
  font-size: 0.8rem;
  font-weight: bold;
  transform: rotate(45deg);
  transform-origin: top left;
}
.tariff-highlight {
  border-top: 5px solid var(--color-accent);
} /* Extra Markierung */

/* --- Live Data Section --- */
.eeg-data-container {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 30px;
  border-radius: 8px;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr; /* Mobil: 1 Spalte */
  gap: 20px;
}

.live-data-section .container strong {
  color: var(--color-secondary);
}

.data-item {
  text-align: center;
}
.data-label {
  display: block;
  font-size: 1rem;
  color: #ccc; /* Helleres Grau */
}
.data-value {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-accent); /* Gelb für Werte */
  min-height: 1.5em; /* Platz halten für "Lade..." */
}
.api-note {
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* Success Stories Section */
.success-stories-section {
  background-color: var(--color-background-alt);
  padding: 80px 0;
  /* display: none; */
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
  border: 4px solid var(--color-primary);
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-content {
  flex: 1;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
  color: var(--color-text);
}

.testimonial-author {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--color-primary);
}

.testimonial-role {
  font-size: 0.9rem;
  color: var(--color-text);
  margin-top: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: 20px;
  }

  .testimonial-image {
    width: 100px;
    height: 100px;
  }
}

/* --- Join Section --- */

/* Join Info Card */
.join-info-card {
  background-color: var(--color-background);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 2.5rem;
  border-top: 4px solid var(--color-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.join-info-card .card-icon {
  font-size: 3rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.join-info-card h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.join-info-card p {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.join-info-card strong {
  color: var(--color-secondary);
}

.join-section {
  background-color: var(--color-background-alt);
}
.join-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin: 3rem 0;
  text-align: center;
}
.step {
  background: var(--color-background);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.step-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background-color: var(--color-secondary);
  color: var(--color-text-light);
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.step h3 {
  font-size: 1.3rem;
  color: var(--color-primary);
}
.costs {
  background: #e6f5ff; /* Helles Blau */
  padding: 20px;
  border-radius: 8px;
  margin: 2rem auto;
  max-width: 500px;
  text-align: center;
}
.costs h3 {
  font-size: 1.2rem;
  color: var(--color-primary);
}
.costs p {
  margin-bottom: 0.5rem;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.contact-info p,
.impressum p {
  margin-bottom: 0.8rem;
}
.impressum {
  font-size: 0.9rem;
  color: #555;
}
.impressum strong {
  color: var(--color-primary);
}

/* --- Footer --- */
#footer {
  background-color: #333;
  color: #ccc;
  text-align: center;
  padding: 25px 0;
  margin-top: 40px;
  font-size: 0.9rem;
  min-height: 150px;
}

/* --- Media Queries für größere Bildschirme --- */

/* Tablet */
@media (min-width: 768px) {
  h1 {
    font-size: 3.5rem;
  } /* Allgemeine h1 Größe für Tablet */
  h2 {
    font-size: 2.5rem;
  }
  h3 {
    font-size: 1.8rem;
  }

  /* Wieder größere Schrift für Hero auf Tablets */
  .hero-section {
    min-height: 80vh;
    padding: 80px 0 40px 0;
  }
  .hero-section h1 {
    font-size: 3.5rem; /* <<< Wieder größer für Tablet */
  }
  .hero-section .tagline {
    font-size: 2.5rem; /* <<< Wieder größer für Tablet */
  }
  .hero-section .intro-text {
    font-size: 1.1rem;
  }

  #navbar #menu-toggle {
    display: none;
  } /* Burger ausblenden */
  #nav-menu {
    display: flex; /* Menü anzeigen */
    flex-direction: row;
    position: static;
    background: none;
    padding: 0;
    width: auto;
  }
  #nav-menu li {
    margin: 0 0 0 15px;
  } /* Abstand links */
  .nav-link {
    padding: 0.2rem 0.5rem;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  } /* 2 Spalten */
  .founder-section {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  } /* Nebeneinander */
  .explanation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tariff-grid {
    grid-template-columns: repeat(2, 1fr);
  } /* 2 Spalten */
  .eeg-data-container {
    grid-template-columns: repeat(5, 1fr);
  } /* 3 Spalten */
  .join-steps {
    grid-template-columns: repeat(3, 1fr);
  } /* 3 Spalten */
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  } /* 2 Spalten */
  #footer {
    min-height: unset;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  h1 {
    font-size: 4rem;
  } /* Allgemeine h1 Größe für Desktop */

  /* Noch größere Schrift für Hero auf Desktops */
  .hero-section h1 {
    font-size: 4rem; /* <<< Noch größer für Desktop */
  }
  .hero-section .tagline {
    font-size: 3rem; /* <<< Noch größer für Desktop */
  }
  .hero-section .intro-text {
    font-size: 1.2rem;
  }
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  } /* 3 Spalten */
  .tariff-grid {
    grid-template-columns: repeat(3, 1fr);
  } /* 3 Spalten */
  #footer {
    min-height: unset;
  }
}

/* --- Animationen (AOS) --- */
/* Standard AOS Fade-Up kann verwendet werden, hier keine weiteren Anpassungen nötig, 
   außer du möchtest spezifische Elemente anders animieren. 
   Die data-aos Attribute im HTML steuern die Animation. */

/* --- Modal Form Styles --- */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}

.modal-content {
  background-color: var(--color-background);
  margin: 5% auto;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover {
  color: var(--color-primary);
}

/* Form Progress Indicator */
.form-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.progress-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #eee;
  color: #777;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  position: relative;
  z-index: 1;
}

.progress-step.active {
  background-color: var(--color-secondary);
  color: white;
}

.progress-step.completed {
  background-color: var(--color-primary);
  color: white;
}

.progress-line {
  flex-grow: 1;
  height: 3px;
  background-color: #eee;
  margin: 0 10px;
}

.progress-line.active {
  background-color: var(--color-secondary);
}

/* Form Sections */
.form-section {
  display: none;
}

.form-section.active {
  display: block;
}

.form-section h3 {
  margin-bottom: 20px;
  color: var(--color-primary);
}

.form-info {
  margin-bottom: 20px;
  color: #666;
  font-size: 0.95rem;
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .form-row {
    flex-direction: row;
  }

  .form-row .form-group {
    flex: 1;
  }
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: var(--color-primary);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 2px rgba(11, 218, 81, 0.2);
}

/* Radio and Checkbox Styles */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 5px;
}

.radio-label,
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: normal;
  cursor: pointer;
}

.radio-label input,
.checkbox-label input {
  margin-top: 4px;
}

/* Zählpunkte Container */
.zaehlpunkt-entry {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 15px;
  position: relative;
}

.zaehlpunkt-entry:not(:first-child) {
  padding-right: 40px;
}

.remove-zaehlpunkt {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #ff5555;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0;
}

/* Form Navigation Buttons */
.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.prev-btn,
.next-btn,
.submit-btn,
.secondary-btn {
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: var(--font-body);
}

.prev-btn {
  background-color: #f0f0f0;
  color: #555;
}

.prev-btn:hover {
  background-color: #e0e0e0;
}

.next-btn,
.submit-btn {
  background-color: var(--color-secondary);
  color: white;
}

.next-btn:hover,
.submit-btn:hover {
  background-color: #09c046;
  transform: translateY(-2px);
}

.secondary-btn {
  background-color: var(--color-primary);
  color: white;
  margin: 10px 0;
}

.secondary-btn:hover {
  background-color: #162750;
}

/* Form Validation */
input:invalid {
  border-color: #ff5555;
}

.error-message {
  color: #ff5555;
  font-size: 0.85rem;
  margin-top: 5px;
}

.validation-hint {
  font-size: 0.8rem;
  color: #666;
  margin-top: 4px;
}

input.invalid + .validation-hint {
  color: #ff5555; /* Match error color */
}

/* Conditional Fields */
.conditional-field {
  /* Default state handled by JS, but ensure smooth transition */
  transition: opacity 0.3s ease, max-height 0.3s ease;
  overflow: hidden;
  /* max-height: 200px; Adjust as needed */
  opacity: 1;
}

.conditional-field:not([style*="display: block"]) {
  /* Styles for when hidden by JS (display: none) */
  /* We can't transition display, but can fade out height/opacity */
  max-height: 0;
  opacity: 0;
  margin-bottom: 0; /* Remove margin when hidden */
  padding-top: 0;
  padding-bottom: 0;
  border: none;
}

/* SEPA Info Box */
.sepa-info {
  background-color: #f8f8f8;
  padding: 10px 15px;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-bottom: 15px;
  border: 1px solid #eee;
}

/* Form Submit Error Message */
.form-submit-error {
  padding: 15px;
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #c62828;
  border-radius: 4px;
  margin-bottom: 20px;
}

/* Loading Indicator */
.loading-indicator {
  /* display: none; */
  text-align: center;
  padding: 20px;
}

.loading-indicator .spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--color-secondary);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Success Message */
.success-message {
  /* display: none; */
  text-align: center;
  padding: 30px 20px;
}

.success-message h3 {
  color: var(--color-secondary);
  margin-bottom: 15px;
}

.success-icon {
  font-size: 3rem;
  color: var(--color-secondary);
  margin-bottom: 20px;
}
