/* Farbkonzept & Variablen */
:root{
  --header-bg:#073b66;
  --header-ink:#fff7c2;
  --text:#072034;
  --muted:#6b7280;
  --surface:#ffffff;
  --blue-100:#d8efff; /* war #eaf6ff */
  --blue-600:#2b9af3;
  --green-600:#16a34a;
  --gold-500:#f6b91a;
  --radius:16px;
  --shadow:0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
  --shadow-lg:0 10px 15px -3px rgb(0 0 0 / 0.07),0 4px 6px -4px rgb(0 0 0 / 0.07);
}

*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,'Helvetica Neue',Arial;color:var(--text);background:#f9fafb;line-height:1.6}
img{max-width:100%;height:auto;display:block}
.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}
.wrap{max-width:1100px;margin:0 auto;padding:24px}
.muted{color:var(--muted)}
.small{font-size:.9rem}

/* Cards */
.card{background:var(--blue-100);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow);border-left:6px solid transparent;transition:transform .2s ease,box-shadow .2s ease}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}

/* Header */
.site-header{background:var(--header-bg);color:var(--header-ink);position:sticky;top:0;z-index:40;box-shadow:0 2px 10px rgba(0,0,0,.1)}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:12px 24px}
.logo{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--header-ink)}
.logo img{border-radius:8px;border:2px solid rgba(255,255,255,.06)}
.brand strong{font-weight:700;color:var(--header-ink)}
.brand .tag{font-size:.85rem;color:var(--header-ink)}
.menu-toggle{display:none;background:none;border:none;padding:4px;cursor:pointer;color:var(--header-ink)}
.main-nav ul{display:flex;gap:14px;list-style:none;margin:0;padding:0}
.main-nav a{display:block;padding:8px 10px;border-radius:8px;text-decoration:none;color:var(--header-ink);font-weight:700}
.main-nav a:hover, .main-nav a:focus{background:rgba(255,255,255,.06)}
.contact-cta{background:linear-gradient(120deg,var(--gold-500),var(--green-600));color:#081125}

/* Brand strip */
.brand-strip-inner{background:var(--header-ink);border-radius:10px;padding:12px;text-align:center}
.brand-strip-text{margin:0;color:var(--header-bg);font-weight:600}
.brand-name{color:var(--header-bg);font-weight:800}

/* Promo image */
.promo-inner{display:flex;align-items:center;justify-content:center;padding:18px}
.promo-image{width:100%;max-height:360px;object-fit:contain;border-radius:12px}

/* Hero */
.hero{padding:28px 0}
.hero-card{display:grid;grid-template-columns:1fr 360px;gap:24px;align-items:start}
.hero-preview{width:100%;height:220px;object-fit:cover;border-radius:8px}

.lead{margin:0 0 20px;color:var(--muted);font-size:1.1rem}
.hero-actions{margin-top:10px}
.kpi-list{display:flex;flex-direction:column;gap:16px;margin:0}
.kpi{padding:16px;display:flex;flex-direction:column;border-left-color:var(--blue-600)}
.kpi-value{font-weight:700;font-size:1.1rem}
.kpi-label{font-size:.95rem;color:var(--muted)}

/* Buttons */
.btn{display:inline-block;padding:12px 20px;border-radius:10px;text-decoration:none;font-weight:700;border:none}
.btn:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.primary{background:linear-gradient(120deg,var(--blue-600),var(--green-600));color:#fff}
.ghost{background:var(--surface);border:1px solid #e5e7eb;color:var(--text)}

/* Slideshow card */
.slideshow-card{padding:12px}
.slideshow{position:relative;width:100%;height:420px;background:linear-gradient(180deg,#f3f8ff 0%,#eaf6ff 100%);overflow:hidden;border-radius:12px}
.slideshow .slides{position:relative;width:100%;height:100%}
.slideshow img.slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transform:scale(1.02);transition:opacity .6s ease,transform .8s ease}
.slideshow img.slide.is-active{opacity:1;transform:scale(1)}
.slideshow .controls{position:absolute;left:12px;right:12px;bottom:12px;display:flex;justify-content:space-between;gap:8px;pointer-events:none}
.control-btn{pointer-events:auto;background:rgba(255,255,255,.9);border:none;border-radius:999px;padding:8px 12px;font-weight:700;box-shadow:var(--shadow);cursor:pointer}
.dots{display:flex;gap:8px;align-items:center}
.dot{width:10px;height:10px;border-radius:50%;background:rgba(0,0,0,.2);border:2px solid rgba(255,255,255,.6);cursor:pointer}
.dot.is-active{background:rgba(0,0,0,.6)}

/* Kontakt + Footer small */
.features{margin-top:32px;display:flex;flex-direction:column;gap:24px}
.feature{padding:24px}
.feature h2{margin:0 0 8px;font-size:1.4rem}
.feature p{margin:0;color:var(--muted)}
.contact{margin-top:32px}
.contact h2{font-size:1.8rem}
.contact-grid{display:flex;flex-direction:column;gap:24px}
.contact-card{border-left-color:var(--gold-500)}
.contact-form{display:grid;gap:12px}
.field input,.field textarea{width:100%;padding:12px;border-radius:8px;font:inherit;border:1px solid #e5e7eb;background:var(--surface)}
.field input:focus,.field textarea:focus{outline:none;border-color:var(--blue-600);box-shadow:0 0 0 3px rgba(43,154,243,.18)}
.site-footer{margin-top:48px;padding:24px 0;border-top:1px solid #e5e7eb;color:var(--muted)}
.footer-inner{display:flex;flex-direction:column;gap:6px;text-align:center}

@media(max-width:819px){
  .menu-toggle{display:block}
  .hero-card{grid-template-columns:1fr}
  .slideshow{height:260px}
  .promo-image{max-height:260px}
}

/* Hero: volle Breite Karte (gleiches Erscheinungsbild wie andere .card Elemente) */
.hero-card-full{
  padding:24px;
  border-radius:var(--radius);
  background:var(--blue-100);
  box-shadow:var(--shadow);
}

/* kleinere Responsive Anpassung für Promo und Slideshow */
@media(max-width:819px){
  .slideshow{height:260px}
  .promo-image{max-height:260px}
}

/* Accessibility focus */
a:focus,button:focus{outline:3px solid rgba(43,154,243,.18);outline-offset:2px}


/* Einheitliche Darstellung für Bilder innerhalb von .card */
.card.image-block img,
.responsive-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  object-fit: cover;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}


/* --- FARBANPASSUNG: Neue und rotierte Akzentfarben --- */
.feature--gold {
    border-left-color: var(--gold-500);
}

/* NEU für Beratung */
.feature--green {
    border-left-color: var(--green-600)
}

.feature--red {
    border-left-color: var(--red-500)
}

/* Bleibt für Installation */
.feature--blue {
    border-left-color: var(--blue-600);
}

/* Produkte: einzelne Sektionen + einheitliche Bildgröße */
.product-section {
  margin-top: 18px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr; /* Inhalt zentriert innerhalb der Card */
  gap: 12px;
  align-items: center;
  text-align: center;
}

/* Titel oben */
.product-section .product-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

/* Bild-Wrapper sorgt dafür, dass alle Logos dieselbe Box-Größe haben */
.product-image-wrap {
  width: 100%;
  max-width: 420px;   /* maximale Breite der Logo-Box (anpassbar) */
  height: 140px;      /* feste Höhe sorgt für einheitliches Raster */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff; /* optional: weiße Fläche hinter Logos */
  border-radius: 10px;
  border: 1px solid #eef3f7;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
}

/* Logo selbst: zentriert, skaliert, behält Verhältnis */
.product-image-wrap .product-image {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Mobile: Bildbox schmaler und etwas höher, damit proportional wirkt */
@media (max-width: 640px) {
  .product-image-wrap {
    max-width: 320px;
    height: 120px;
  }
}

/* Responsive & Mobile Menu */
@media(max-width:819px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--header-bg);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }

    .main-nav.is-open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .main-nav ul {
        flex-direction: column;
        padding: 10px;
        gap: 4px;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        padding: 12px;
    }
}

/* Anpassungen für breite Bildschirme */
@media(min-width:820px) {
    .wrap {
        padding-left: 28px;
        padding-right: 28px;
    }

    .main-nav li a {
        background: rgba(255, 255, 255, 0.04);
        color: var(--header-ink);
        padding: 8px 12px;
        border-radius: 8px;
    }

    .main-nav li a.contact-cta {
        background: linear-gradient(120deg, var(--gold-500), var(--green-600));
        color: #081125;
    }

    .main-nav li a:hover,
    .main-nav li a:focus {
        background: rgba(255, 255, 255, 0.1);
    }

    .main-nav li a.contact-cta:hover {
        background: linear-gradient(120deg, #f8c03a, #18b952);
    }
}

/* PV-Rechner Styles */
.pv-form .form-row {
  margin-bottom: 10px;
}
.pv-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.pv-form input[type="number"] {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: var(--surface);
}
.form-actions { display: flex; gap: 10px; align-items: center; }
.result-row { margin: 6px 0; font-size: 1rem; }
#results h3 { margin-top: 0; }
