    :root {
      --bg: #020617;
      --bg-soft: #0b1220;
      --card: #020617;
      --accent: #38bdf8;
      --accent-soft: rgba(56,189,248,0.1);
      --text: #e5e7eb;
      --text-soft: #9ca3af;
      --border: #1f2937;
      --danger: #f97373;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: radial-gradient(circle at top, #0b1120 0, #020617 45%, #000 100%);
      color: var(--text);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    header {
      padding: 1rem 1.5rem;
      border-bottom: 1px solid var(--border);
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      align-items: baseline;
      justify-content: space-between;
    }

    header h1 {
      font-size: 1.2rem;
      margin: 0;
      letter-spacing: 0.03em;
    }

    header span {
      font-size: 0.9rem;
      color: var(--text-soft);
    }

    .layout {
      flex: 1;
      display: grid;
      grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
      gap: 1rem;
      padding: 1rem;
    }

    .card {
      background: radial-gradient(circle at top left, #0f172a 0, #020617 55%);
      border-radius: 1rem;
      border: 1px solid var(--border);
      padding: 1rem 1.1rem;
      box-shadow: 0 18px 40px rgba(0,0,0,0.6);
      position: relative;
    }

    .card h2 {
      margin: 0 0 0.75rem;
      font-size: 1rem;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }

    .chip {
      display: inline-flex;
      padding: 0.1rem 0.55rem;
      border-radius: 999px;
      border: 1px solid rgba(148,163,184,0.5);
      font-size: 0.7rem;
      color: var(--text-soft);
      gap: 0.25rem;
      align-items: center;
    }

    .chip-dot {
      width: 6px;
      height: 6px;
      border-radius: 999px;
      background: #22c55e;
    }

    .device-list {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      margin-top: 0.5rem;
    }

    .device-row {
      border-radius: 0.8rem;
      padding: 0.55rem 0.7rem;
      border: 1px solid rgba(31,41,55,0.9);
      background: radial-gradient(circle at top left, rgba(56,189,248,0.12), transparent 60%);
      display: grid;
      grid-template-columns: auto;
      gap: 0.4rem;
      font-size: 0.8rem;
      transition: background 0.15s ease, border-color 0.15s ease, padding 0.15s ease;
    }

    .device-row.collapsed {
      background: radial-gradient(circle at top left, rgba(56,189,248,0.06), transparent 60%);
      padding-top: 0.5rem;
      padding-bottom: 0.5rem;
    }

    .device-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0.75rem;
    }

    .device-header-main {
      display: flex;
      flex-direction: column;
      gap: 0.15rem;
      min-width: 0;
    }

    .device-name {
      font-weight: 600;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .device-meta {
      display: flex;
      gap: 0.4rem;
      color: var(--text-soft);
      font-size: 0.75rem;
      flex-wrap: wrap;
    }

    .device-meta span {
      white-space: nowrap;
    }

    .device-enable {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      font-size: 0.72rem;
      color: var(--text-soft);
      white-space: nowrap;
    }

    .device-enable input {
      accent-color: var(--accent);
    }

    .device-controls {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
      margin-top: 0.1rem;
    }

    .device-row.collapsed .device-controls {
      display: none;
    }

    .device-row.collapsed .device-meta {
      display: none;
    }

    .range-row {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .range-row label {
      font-size: 0.75rem;
      color: var(--text-soft);
      min-width: 58px;
    }

    input[type="range"] {
      flex: 1;
      accent-color: var(--accent);
    }

    .time-label {
      font-size: 0.75rem;
      color: var(--text);
      min-width: 46px;
      text-align: right;
      font-variant-numeric: tabular-nums;
    }

    .toggle-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.25rem;
      margin-top: 0.1rem;
    }

    .toggle-row label {
      font-size: 0.75rem;
      color: var(--text-soft);
    }

    .summary {
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
      margin-top: 0.75rem;
    }

    .summary-item {
      padding: 0.35rem 0.6rem;
      border-radius: 999px;
      border: 1px solid rgba(148,163,184,0.5);
      font-size: 0.75rem;
      color: var(--text-soft);
    }

    .summary-item span {
      color: var(--accent);
      font-variant-numeric: tabular-nums;
      font-weight: 600;
      margin-left: 0.35rem;
    }

    .pv-controls {
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
      margin-top: 0.4rem;
      padding-top: 0.4rem;
      border-top: 1px dashed rgba(148,163,184,0.35);
      font-size: 0.8rem;
    }

    .pv-row {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .pv-row label {
      min-width: 82px;
      color: var(--text-soft);
    }

    .pv-row input[type="range"] {
      flex: 1;
    }

    .pv-row span {
      min-width: 52px;
      text-align: right;
      font-variant-numeric: tabular-nums;
    }

    canvas {
      max-height: 450px;
    }

    /* Legende für Tarife */
    .tariff-legend {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      margin-bottom: 0.5rem;
      font-size: 0.75rem;
      color: var(--text-soft);
    }

    .tariff-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.2rem 0.55rem;
      border-radius: 999px;
      border: 1px solid rgba(148,163,184,0.4);
      background: rgba(15,23,42,0.7);
    }

    .tariff-dot {
      width: 10px;
      height: 10px;
      border-radius: 999px;
    }

    .tariff-dot.night {
      background: rgba(37, 99, 235, 0.9);  /* blau */
    }

    .tariff-dot.daylow {
      background: rgba(22, 163, 74, 0.9);  /* grün */
    }

    .tariff-dot.normal {
      background: rgba(148, 163, 184, 0.9); /* grau */
    }

    /* Mobile: Diagramm oben, Geräte unten */
    @media (max-width: 880px) {
      .layout {
        display: flex;
        flex-direction: column;
      }

      /* Zweite Karte (Chart) nach oben holen */
      .layout > .card:nth-child(1) {
        order: 2;
      }

      .layout > .card:nth-child(2) {
        order: 1;
      }

      .card {
        max-height: none;
      }

      canvas {
        max-height: 320px;
      }
    }






/* Feedback-Formular */
.feedback-card {
  margin-top: 1rem;
}

.feedback-card h2 {
  margin-bottom: 0.75rem;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  font-size: 0.85rem;
}

.feedback-block {
  padding: 0.6rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148,163,184,0.35);
  background: radial-gradient(circle at top left, rgba(15,23,42,0.9), rgba(15,23,42,0.3));
}

.feedback-question-title {
  margin-bottom: 0.45rem;
  font-weight: 500;
}

.feedback-help {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-top: 0.2rem;
}

.feedback-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
}

.feedback-options label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.feedback-options input[type="radio"],
.feedback-options input[type="checkbox"] {
  accent-color: var(--accent);
}

.feedback-inline-input {
  background: rgba(15,23,42,0.8);
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  padding: 0.35rem 0.5rem;
  color: var(--text);
  font-size: 0.8rem;
  min-width: 130px;
}

.feedback-textarea {
  width: 100%;
  min-height: 70px;
  resize: vertical;
  background: rgba(15,23,42,0.8);
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  padding: 0.55rem 0.7rem;
  color: var(--text);
  font-size: 0.8rem;
}

.feedback-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.4rem;
}

.feedback-email {
  flex: 1 1 180px;
}

.feedback-email input {
  width: 100%;
  background: rgba(15,23,42,0.8);
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  padding: 0.45rem 0.6rem;
  color: var(--text);
  font-size: 0.8rem;
}

.feedback-submit-btn {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #0b1120;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(56,189,248,0.35);
  white-space: nowrap;
}

.feedback-submit-btn:hover {
  filter: brightness(1.05);
}


.helper-text {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin: 0.2rem 0 0.6rem;
  line-height: 1.4;
}

.demo-frame-wrapper {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  max-width: 1000px;
  margin: 0 auto 1rem;
}

.demo-frame-wrapper iframe {
  width: 100%;
  height: 600px;
  border: none;
}
/* ============================= */
/* Landingpage-spezifische Styles */
/* ============================= */

/* Zentrierter Inhalt */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Eigener Header für Landing (kollidiert nicht mit "header" der App,
   weil du in index.html <header class="site-header"> nutzt) */
.site-header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, var(--accent), transparent 60%);
}

.logo-text {
  font-size: 0.95rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}

.main-nav a {
  color: var(--text-soft);
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--accent);
}

/* Buttons für Landing */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #0b1120;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(56,189,248,0.35);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-secondary,
.btn-ghost {
  background: rgba(15,23,42,0.9);
  color: var(--text-soft);
  border-color: var(--border);
}

.btn-secondary:hover,
.btn-ghost:hover {
  color: var(--accent);
  border-color: rgba(56,189,248,0.6);
}

/* Hero-Bereich oben */
.hero {
  padding: 2.5rem 0 2rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.hero-text h1 {
  font-size: 1.7rem;
  margin: 0 0 0.75rem;
}

.hero-subtitle {
  margin: 0 0 1rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.hero-meta {
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* Rechte Hero-Card nutzt denselben Card-Look wie die App */
.hero-highlight .hero-card {
  background: radial-gradient(circle at top left, #0f172a 0, #020617 55%);
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 1rem 1.1rem;
  box-shadow: 0 18px 40px rgba(0,0,0,0.6);
  font-size: 0.85rem;
}

.hero-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.hero-link {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
}

/* Generische Sektionen */
.section {
  padding: 2rem 0;
}

.section-alt {
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
}

.section h2 {
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
}

.section-intro {
  margin: 0 0 1.2rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* Grids für Steps & Usecases */
.steps-grid,
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.step-card,
.usecase-card {
  background: radial-gradient(circle at top left, #020617 0, #020617 55%);
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  padding: 0.9rem;
  font-size: 0.85rem;
}

.step-number {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 0.3rem;
}

/* FAQ / Details-Blöcke (für UX + Robots) */
.faq-list details,
.details-grid details {
  margin-bottom: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(31,41,55,0.9);
  background: radial-gradient(circle at top left, rgba(15,23,42,1), rgba(15,23,42,0.9));
  font-size: 0.85rem;
}

.details-grid {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.6rem;
}

details summary {
  cursor: pointer;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

/* SEO-Bereich unten – Text für Robots, aber optisch dezent */
.seo-section {
  padding-bottom: 3rem;
}

.seo-text h2,
.seo-text h3 {
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.seo-text p {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* Demo-Section (nutzt vorhandene .demo-frame-wrapper aus deiner CSS) */
.demo-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* Footer für Landing */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 0 1.2rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Mobile-Anpassungen für Landing */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .main-nav {
    gap: 0.7rem;
    font-size: 0.8rem;
  }

  .demo-frame-wrapper iframe {
    height: 420px;
  }
}
