/*
  EVIGO® Energie-Cockpit
  Datei: css/cockpit.css
  Alle Klassen mit Präfix .evco-. Farben ausschließlich über CSS-Variablen
  (Konzept Abschnitt 7), abgeleitete Mischtöne per color-mix aus diesen Variablen.
  Mobile first, Fokus-Styles, Kontraste AA, prefers-reduced-motion.
*/

:root {
  /* Konzeptfarben Abschnitt 7 */
  --evco-gruen: #2E7D32;
  --evco-tiefgruen: #1B5E20;
  --evco-dunkel: #1A2B1A;
  --evco-papier: #F5F7F2;
  --evco-amber: #BF8000;
  --evco-rot: #B3402A;
  --evco-gelb: #D9A60F;
  /* Abgeleitete Flächen- und Mischtöne */
  --evco-flaeche: #FFFFFF;
  --evco-rand: color-mix(in srgb, var(--evco-dunkel) 16%, var(--evco-flaeche));
  --evco-gruen-hell: color-mix(in srgb, var(--evco-gruen) 10%, var(--evco-flaeche));
  --evco-amber-hell: color-mix(in srgb, var(--evco-amber) 12%, var(--evco-flaeche));
  --evco-dunkel-weich: color-mix(in srgb, var(--evco-dunkel) 80%, var(--evco-papier));
  --evco-hell-auf-dunkel: color-mix(in srgb, var(--evco-flaeche) 92%, var(--evco-tiefgruen));
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  background: var(--evco-papier);
  color: var(--evco-dunkel);
  -webkit-text-size-adjust: 100%;
}

img, svg { max-width: 100%; }

[hidden] { display: none !important; }

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(1.6rem, 3.5vw + 0.9rem, 2.4rem); margin: 0 0 1rem; }
h2 { font-size: 1.4rem; margin: 0 0 1rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.5rem; }
[tabindex="-1"] { outline: none; }

:focus-visible {
  outline: 3px solid var(--evco-tiefgruen);
  outline-offset: 2px;
}

a { color: var(--evco-tiefgruen); }

.evco-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.evco-skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--evco-flaeche);
  color: var(--evco-tiefgruen);
  padding: 0.75rem 1rem;
  font-weight: 700;
}
.evco-skip:focus { left: 0.5rem; top: 0.5rem; }

.evco-container {
  max-width: 60rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Kopf und Fuß */

.evco-header {
  background: var(--evco-tiefgruen);
  color: var(--evco-flaeche);
  padding: 0.85rem 0;
}
.evco-brand {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.evco-brand:hover { text-decoration: underline; }

.evco-footer {
  background: var(--evco-dunkel);
  color: var(--evco-papier);
  padding: 1.5rem 0 2rem;
  margin-top: 3rem;
}
.evco-footer a {
  color: var(--evco-papier);
  margin-right: 1.25rem;
}
.evco-footer .evco-klein {
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--evco-papier) 85%, var(--evco-dunkel));
}

/* Landingpage */

.evco-hero {
  background: var(--evco-tiefgruen);
  color: var(--evco-flaeche);
  padding: 2.5rem 0 3rem;
}
.evco-hero h1 { max-width: 46rem; }
.evco-hero-sub {
  max-width: 44rem;
  font-size: 1.1rem;
  color: var(--evco-hell-auf-dunkel);
  margin: 0 0 1.75rem;
}

.evco-abschnitt { padding: 2.25rem 0 0.5rem; }
.evco-abschluss { padding-bottom: 2rem; }

.evco-karten { display: grid; gap: 1rem; }

.evco-karte {
  background: var(--evco-flaeche);
  border: 1px solid var(--evco-rand);
  border-radius: 0.75rem;
  padding: 1.25rem;
}
.evco-karte p { margin: 0; }

.evco-liste {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 44rem;
}
.evco-liste li {
  position: relative;
  padding-left: 1.9rem;
  margin: 0.6rem 0;
}
.evco-liste li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.5em;
  width: 0.85em;
  height: 0.4em;
  border-left: 3px solid var(--evco-gruen);
  border-bottom: 3px solid var(--evco-gruen);
  transform: rotate(-45deg);
}

.evco-schritte {
  list-style: none;
  counter-reset: evco-schritt;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  max-width: 44rem;
}
.evco-schritte li {
  counter-increment: evco-schritt;
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  background: var(--evco-flaeche);
  border: 1px solid var(--evco-rand);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
}
.evco-schritte li::before {
  content: counter(evco-schritt);
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--evco-gruen);
  color: var(--evco-flaeche);
  font-weight: 700;
}

.evco-profil {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.evco-profil-foto {
  width: 9rem;
  height: auto;
  border-radius: 0.75rem;
  flex: none;
}
.evco-profil-text {
  flex: 1;
  min-width: 16rem;
}
.evco-profil-text p:first-child { margin-top: 0; }

.evco-placeholder {
  background: var(--evco-amber-hell);
  border: 2px dashed var(--evco-amber);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--evco-dunkel);
}

.evco-faq details {
  background: var(--evco-flaeche);
  border: 1px solid var(--evco-rand);
  border-radius: 0.5rem;
  margin: 0.5rem 0;
}
.evco-faq summary {
  padding: 1rem;
  cursor: pointer;
  font-weight: 600;
}
.evco-faq summary::marker { color: var(--evco-gruen); }
.evco-faq details p { padding: 0 1rem 1rem; margin: 0; max-width: 44rem; }

/* Schaltflächen und Links */

.evco-btn {
  display: inline-block;
  min-height: 3rem;
  padding: 0.9rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.evco-btn-hell {
  background: var(--evco-flaeche);
  color: var(--evco-tiefgruen);
}
.evco-btn-hell:hover {
  background: var(--evco-papier);
}
.evco-btn-gruen {
  background: var(--evco-gruen);
  color: var(--evco-flaeche);
}
.evco-btn-gruen:hover {
  background: var(--evco-tiefgruen);
}

.evco-link { font-weight: 600; }

/* Intake-Formular */

.evco-field {
  border: 0;
  padding: 0;
  margin: 0 0 2rem;
}
.evco-field legend {
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0;
  margin-bottom: 0.5rem;
}
.evco-hinweis {
  color: var(--evco-dunkel-weich);
  font-size: 0.925rem;
  margin: 0 0 0.75rem;
}

.evco-choices { display: grid; gap: 0.5rem; }

.evco-choice {
  display: flex;
  align-items: center;
  min-height: 3rem;
  background: var(--evco-flaeche);
  border: 2px solid var(--evco-rand);
  border-radius: 0.6rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-weight: 500;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.evco-choice:hover { border-color: var(--evco-gruen); }

.evco-sr-only:focus-visible + .evco-choice {
  outline: 3px solid var(--evco-tiefgruen);
  outline-offset: 2px;
}
.evco-sr-only:checked + .evco-choice {
  border-color: var(--evco-gruen);
  background: var(--evco-gruen-hell);
  box-shadow: inset 0 0 0 1px var(--evco-gruen);
}
.evco-sr-only:checked + .evco-choice::after {
  content: "";
  flex: none;
  margin-left: auto;
  width: 0.8em;
  height: 0.4em;
  border-left: 3px solid var(--evco-gruen);
  border-bottom: 3px solid var(--evco-gruen);
  transform: rotate(-45deg);
}

.evco-field-fehlt legend { color: var(--evco-rot); }
.evco-field-fehlt .evco-choice { border-color: var(--evco-rot); }

.evco-form-fehler {
  color: var(--evco-rot);
  font-weight: 700;
}

.evco-optional {
  border-top: 1px solid var(--evco-rand);
  padding-top: 1.5rem;
}
.evco-opt-grid { display: grid; gap: 1rem; }
.evco-opt-feld label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.evco-opt-feld input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
  border: 2px solid var(--evco-rand);
  border-radius: 0.5rem;
  font: inherit;
  background: var(--evco-flaeche);
  color: inherit;
}

/* Modulauswahl */

.evco-modul {
  display: block;
  background: var(--evco-flaeche);
  border: 2px solid var(--evco-rand);
  border-radius: 0.75rem;
  padding: 1.25rem;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.evco-modul:hover { border-color: var(--evco-gruen); }
.evco-modul h2 {
  color: var(--evco-tiefgruen);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.evco-modul p { margin: 0 0 0.5rem; }

.evco-modul-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--evco-gruen);
  font-weight: 700;
}
.evco-modul-fertig { border-color: var(--evco-gruen); }

/* Fristen-Radar */

.evco-aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
}
.evco-btn-rahmen {
  background: transparent;
  color: var(--evco-tiefgruen);
  border-color: var(--evco-tiefgruen);
}
.evco-btn-rahmen:hover { background: var(--evco-gruen-hell); }

.evco-zeitleiste {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.evco-frist {
  background: var(--evco-flaeche);
  border: 1px solid var(--evco-rand);
  border-left: 6px solid var(--evco-rand);
  border-radius: 0.75rem;
  padding: 1.1rem 1.25rem;
}
.evco-frist-rot { border-left-color: var(--evco-rot); }
.evco-frist-gelb { border-left-color: var(--evco-gelb); }
.evco-frist-gruen { border-left-color: var(--evco-gruen); }

.evco-frist-kopf {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin-bottom: 0.4rem;
}
.evco-frist-datum { font-weight: 700; }

.evco-ampel {
  display: inline-block;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}
.evco-ampel-rot { background: var(--evco-rot); color: var(--evco-flaeche); }
.evco-ampel-gelb { background: var(--evco-gelb); color: var(--evco-dunkel); }
.evco-ampel-gruen { background: var(--evco-gruen); color: var(--evco-flaeche); }

.evco-frist h3 { margin: 0.1rem 0 0.35rem; }
.evco-frist p { margin: 0.35rem 0; }
.evco-recht {
  color: var(--evco-dunkel-weich);
  font-size: 0.9rem;
}
.evco-frist-zusatz {
  font-size: 0.925rem;
  color: var(--evco-dunkel-weich);
}
.evco-reform {
  background: color-mix(in srgb, var(--evco-gelb) 14%, var(--evco-flaeche));
  border-left: 4px solid var(--evco-gelb);
  border-radius: 0.4rem;
  padding: 0.6rem 0.8rem;
  font-size: 0.925rem;
}
.evco-stand {
  font-size: 0.8rem;
  color: var(--evco-dunkel-weich);
  margin-top: 0.5rem;
}

.evco-dauer-block { margin-top: 2.25rem; }

/* Lead-Block */

.evco-lead {
  margin-top: 2.5rem;
  background: var(--evco-flaeche);
  border: 1px solid var(--evco-rand);
  border-radius: 0.75rem;
  padding: 1.25rem;
}
.evco-lead label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0.6rem 0;
  font-weight: 500;
}
.evco-lead .evco-opt-feld label { display: block; }
.evco-lead input[type="checkbox"] {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  accent-color: var(--evco-gruen);
}
.evco-lead input[type="email"] {
  width: 100%;
  max-width: 26rem;
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
  border: 2px solid var(--evco-rand);
  border-radius: 0.5rem;
  font: inherit;
  background: var(--evco-flaeche);
  color: inherit;
}

/* Netzentgelt-Check */

.evco-check-schritt {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--evco-dunkel-weich);
  margin-bottom: 0.35rem;
}

.evco-progress {
  height: 0.6rem;
  background: var(--evco-rand);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 0 1.5rem;
}
.evco-progress-balken {
  height: 100%;
  background: var(--evco-gruen);
  transition: width 0.2s ease;
}

.evco-antworten {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
  max-width: 44rem;
}
.evco-antwort {
  font: inherit;
  text-align: left;
  width: 100%;
}
.evco-antwort[aria-pressed="true"] {
  border-color: var(--evco-gruen);
  background: var(--evco-gruen-hell);
  box-shadow: inset 0 0 0 1px var(--evco-gruen);
}

.evco-check-nav { margin-top: 1.5rem; }

.evco-ergebnis-karte {
  border-radius: 1rem;
  padding: 1.75rem;
  margin: 1rem 0 1.5rem;
  color: var(--evco-flaeche);
}
.evco-ergebnis-gruen { background: var(--evco-gruen); }
.evco-ergebnis-gelb { background: var(--evco-gelb); color: var(--evco-dunkel); }
.evco-ergebnis-rot { background: var(--evco-rot); }
.evco-ergebnis-status {
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}
.evco-ergebnis-prozent {
  margin: 0.25rem 0 0.75rem;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
}
.evco-ergebnis-headline {
  margin: 0;
  font-size: 1.35rem;
}

.evco-flag {
  background: var(--evco-gruen-hell);
  border: 2px solid var(--evco-gruen);
  border-radius: 0.6rem;
  padding: 0.9rem 1rem;
  font-weight: 600;
  margin: 1rem 0;
}

.evco-hinweis-pflicht {
  font-size: 0.875rem;
  color: var(--evco-dunkel-weich);
  margin-top: 1rem;
  max-width: 44rem;
}

/* Zoho-Lead-Versand */

.evco-hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.evco-lead-erfolg {
  background: var(--evco-gruen-hell);
  border: 2px solid var(--evco-gruen);
  border-radius: 0.6rem;
  padding: 0.9rem 1rem;
  font-weight: 600;
  margin: 0;
}

.evco-footer-hinweis {
  font-size: 0.875rem;
  margin: 0.75rem 0 0.5rem;
}

/* Druckansicht: nur die Fristenliste, ohne Bedienelemente */

.evco-print-titel { display: none; }

@media print {
  .evco-header,
  .evco-footer,
  .evco-skip,
  .evco-aktionen,
  .evco-lead,
  .evco-nur-bildschirm { display: none !important; }
  body { background: var(--evco-flaeche); }
  .evco-print-titel {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  .evco-frist {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .evco-frist a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8rem;
    word-break: break-all;
  }
}

/* Breitere Ansichten */

@media (min-width: 44rem) {
  .evco-karten-2 { grid-template-columns: repeat(2, 1fr); }
  .evco-karten-3 { grid-template-columns: repeat(3, 1fr); }
  .evco-choices { grid-template-columns: repeat(2, 1fr); }
  .evco-opt-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Bewegung reduzieren */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
