:root {
  --brand: #0d2f52;
  --brand-2: #486c93;
  --accent: #d3b172;
  --text: #102033;
  --muted: #5a6878;
  --surface: #ffffff;
  --bg: #f4f7fb;
  --border: #dbe4ee;
  --success: #e8f6ec;
  --success-text: #165b2f;
  --error: #fdecec;
  --error-text: #8b1f1f;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px rgba(16, 32, 51, 0.12);
  --header-height: 86px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
iframe { width: 100%; border: 0; min-height: 1100px; }

h1, h2, h3, h4, h5 { margin: 0 0 16px; line-height: 1.16; color: var(--text); }
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.35rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
p, ul, ol { margin: 0 0 16px; }
small, .muted { color: var(--muted); }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

main {
  display: block;
  padding-bottom: 0;
}
main.container,
main[role="main"] {
  padding-top: 42px;
  padding-bottom: 72px;
}

.eyebrow {
  margin-bottom: 14px;
  font-size: .93rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--brand-2);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(244, 247, 251, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(13, 47, 82, 0.08);
}
.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--brand);
}
.brand:hover { text-decoration: none; }
.brand-logo {
  display: block;
  width: auto;
  height: 54px;
  max-width: min(280px, 42vw);
}
.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;
}
.primary-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}
.primary-nav a {
  color: var(--text);
  font-weight: 700;
}
.primary-nav a:hover { text-decoration: none; color: var(--brand-2); }
.primary-nav a.is-active { color: var(--brand); }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--brand);
}

.hero,
.section {
  padding: 84px 0;
}
.hero {
  padding-top: 54px;
}
.page-hero {
  padding-top: 42px;
}
.section-tight {
  padding-top: 36px;
}
.alt-bg {
  background: rgba(255, 255, 255, 0.7);
}
.hero-grid,
.card-grid,
.process-grid,
.contact-grid,
.partner-grid,
.footer-grid {
  display: grid;
  gap: 24px;
}
.hero-grid {
  grid-template-columns: 1.4fr .9fr;
  gap: 30px;
  align-items: stretch;
}
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid-3,
.anlass-grid,
.process-grid,
.partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.contact-grid { grid-template-columns: 1.15fr .85fr; }

.hero-text {
  max-width: 760px;
  font-size: 1.08rem;
  color: var(--muted);
}
.hero-promise {
  margin-top: 16px;
  max-width: 760px;
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  background: rgba(13, 47, 82, 0.06);
  border-radius: 12px;
  font-weight: 700;
  color: var(--brand);
}
.hero-card { display: flex; }
.hero-card-inner,
.contact-card,
.info-card,
.mini-card,
.legal-shell {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px;
}
.hero-card-inner {
  background: linear-gradient(180deg, #102f4f 0%, #0d2f52 100%);
  color: #fff;
}
.hero-card-inner h2,
.hero-card-inner h3,
.hero-card-inner p,
.hero-card-inner li { color: #fff; }
.hero-card-inner p,
.hero-card-inner li { color: rgba(255,255,255,.88); }
.hero-card-label {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  font-weight: 700;
}

.trust-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding-left: 0;
  list-style: none;
  color: var(--muted);
  font-weight: 700;
}
.trust-list li {
  position: relative;
  padding-left: 24px;
}
.trust-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-2);
  font-weight: 900;
}
.trust-list-check li::before { color: var(--accent); }

.button-group,
.section-cta-row,
.cookie-banner__actions,
.cookie-banner__settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.button-group { margin-top: 24px; }
.section-cta-row { margin-top: 28px; }
.section-cta-row-centered { justify-content: center; }
.button-group-primary-only .btn:not(.btn-primary) { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  transition: .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary,
.btn.btn-primary,
.btn:not(.btn-secondary):not(.btn-ghost) {
  background: var(--brand);
  color: #fff;
}
.btn-secondary,
.btn.btn-secondary {
  background: #fff;
  color: var(--brand);
  border-color: var(--border);
}
.btn-ghost,
.btn.btn-ghost,
.btn--ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--border);
}
.btn-full { width: 100%; }
.text-link {
  font-weight: 700;
  color: var(--brand);
}

.hero-contact-links,
.hero-secondary-links,
.partner-link-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  color: var(--brand);
  font-weight: 700;
}
.hero-contact-links .text-link,
.hero-secondary-links a,
.partner-link-row a { line-height: 1; }
.hero-contact-links .text-link + .text-link::before,
.hero-secondary-links a + a::before,
.partner-link-row a + a::before {
  content: '•';
  display: inline-block;
  margin-right: 14px;
  color: rgba(13, 47, 82, 0.32);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.section-head-stack {
  align-items: start;
}
.section-head > * { flex: 1 1 0; }
.section-subline-strong {
  font-weight: 700;
  color: var(--brand);
}

.info-card,
.mini-card,
.contact-card,
.accent-card {
  background: var(--surface);
}
.mini-card { padding: 24px; }
.accent-card {
  border-color: rgba(13, 47, 82, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.card-tag,
.pill,
.text-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(13, 47, 82, 0.08);
  color: var(--brand);
  font-size: .88rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.text-badge {
  min-height: 88px;
  width: 100%;
  border-radius: 18px;
}
.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  padding: 16px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}
.partner-item img { max-height: 44px; object-fit: contain; }
.process-card { position: relative; }
.process-number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(13, 47, 82, 0.08);
  color: var(--brand);
  font-weight: 900;
  margin-bottom: 16px;
}
.steps {
  display: grid;
  gap: 10px;
}
.compact-steps,
.compact-steps-clean,
.list,
.legal-list { padding-left: 18px; }

.contact-card-alt,
.contact-card-alt--firmenkunden {
  background: linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
}
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-row {
  display: grid;
  gap: 8px;
}
.form-row-full { grid-column: 1 / -1; }
label {
  font-weight: 700;
  font-size: .95rem;
}
input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
}
textarea { resize: vertical; min-height: 140px; }
.checkbox-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 12px;
  font-weight: 400;
  color: var(--muted);
}
.checkbox-row input { margin-top: 2px; }
.honeypot { display: none !important; }
.contact-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 16px;
}
.small-note {
  margin-top: 24px;
  padding: 18px;
  background: rgba(13, 47, 82, 0.05);
  border-radius: 14px;
  color: var(--muted);
}
.notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 700;
}
.notice-success { background: var(--success); color: var(--success-text); }
.notice-error { background: var(--error); color: var(--error-text); }

.accordion-group {
  display: grid;
  gap: 14px;
}
.accordion {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.accordion summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion[open] summary { margin-bottom: 12px; }

.site-footer {
  margin-top: 0;
  padding: 46px 0 100px;
  background: var(--brand);
  color: rgba(255,255,255,.92);
}
.footer-grid {
  grid-template-columns: 1.3fr .8fr .8fr;
  gap: 30px;
}
.footer-brand {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 12px;
}
.footer-title { color: #fff; }
.footer-links {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 10px;
}
.site-footer a { color: #fff; }
.footer-region { color: rgba(255,255,255,.75); }
.footer-cookie-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.footer-cookie-btn:hover { text-decoration: underline; }

.mobile-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1100;
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(13, 47, 82, 0.08);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(13, 47, 82, 0.16);
}
.mobile-cta a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}
.mobile-cta a:nth-child(2),
.mobile-cta a:nth-child(3) {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--border);
}

.legal-main {
  padding-top: 42px;
}
.legal-shell {
  padding: 34px;
}
.legal-shell h1 { font-size: clamp(2rem, 3vw, 3rem); }
.legal-shell h2 { font-size: clamp(1.3rem, 2vw, 1.8rem); margin-top: 28px; }
.legal-shell .muted { color: var(--muted); }

.cookie-banner {
  position: fixed;
  inset: 0;
  z-index: 99999;
}
.cookie-banner__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 32, 51, 0.55);
}
.cookie-banner__panel {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(16, 32, 51, 0.22);
}
.cookie-banner__eyebrow {
  margin-bottom: 10px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand-2);
}
.cookie-banner__copy p:last-child { margin-bottom: 0; }
.cookie-banner__actions {
  margin-top: 22px;
}
.cookie-banner__settings {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.cookie-setting {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.cookie-setting:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.cookie-setting h3 { margin-bottom: 8px; }
.cookie-setting p {
  margin-bottom: 0;
  color: var(--muted);
}
.cookie-setting.is-required h3::after {
  content: ' · immer aktiv';
  color: var(--brand-2);
  font-size: .9rem;
  font-weight: 700;
}
.cookie-banner__settings-actions { margin-top: 18px; }
.switch {
  position: relative;
  display: inline-flex;
  width: 56px;
  min-width: 56px;
  height: 32px;
}
.switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
}
.switch span {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #c8d4e2;
  transition: background .2s ease;
}
.switch span::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  transition: transform .2s ease;
}
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::before { transform: translateX(24px); }
.switch input:disabled + span {
  background: var(--brand-2);
  opacity: .7;
}

@media (max-width: 860px) {
  :root { --header-height: 76px; }
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
  }
  .primary-nav.open { display: flex; }
  .primary-nav a {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
  }
  .primary-nav a:last-child { border-bottom: 0; }

  .hero-grid,
  .card-grid-2,
  .card-grid-3,
  .card-grid-4,
  .process-grid,
  .contact-grid,
  .footer-grid,
  .partner-grid {
    grid-template-columns: 1fr;
  }
  .section,
  .hero {
    padding: 72px 0;
  }
  .section-tight { padding-top: 28px; }
  .section-head {
    display: block;
  }
  .contact-form {
    grid-template-columns: 1fr;
  }
  .form-row-full,
  .checkbox-row {
    grid-column: auto;
  }
  .mobile-cta { display: grid; }
  .site-footer { padding-bottom: 130px; }
  .legal-shell { padding: 24px; }
}

@media (max-width: 780px) {
  .cookie-banner__panel {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    padding: 16px;
    border-radius: 16px;
  }
  .cookie-banner__panel h2 {
    font-size: clamp(1.8rem, 5.8vw, 2.4rem);
    line-height: 1.12;
    margin-bottom: 14px;
  }
  .cookie-banner__copy p {
    font-size: 0.98rem;
    line-height: 1.5;
  }
  .cookie-setting {
    gap: 12px;
    padding: 14px 0;
  }
}

@media (max-width: 560px) {
  .cookie-banner__actions,
  .cookie-banner__settings-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .cookie-banner__actions .btn,
  .cookie-banner__settings-actions .btn {
    width: 100%;
  }
  .switch {
    width: 52px;
    min-width: 52px;
    height: 30px;
  }
  .switch span::before {
    width: 22px;
    height: 22px;
  }
  .switch input:checked + span::before {
    transform: translateX(22px);
  }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { width: min(var(--container), calc(100% - 20px)); }
  .button-group { display: grid; grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-contact-links,
  .hero-secondary-links,
  .partner-link-row {
    gap: 10px 14px;
  }
  .hero-contact-links .text-link + .text-link::before,
  .hero-secondary-links a + a::before,
  .partner-link-row a + a::before {
    margin-right: 10px;
  }
  .hero-card-inner,
  .info-card,
  .mini-card,
  .contact-card { padding: 22px; }
  .partner-item { min-height: 84px; }
  .partner-item img { max-height: 36px; }
  .brand-logo {
    height: 44px;
    max-width: 220px;
  }
}


/* Stromsteuererstattung */
.form-help {
  margin-top: 8px;
  font-size: .92rem;
  color: var(--muted);
}
.upload-panel {
  padding: 18px;
  border: 1px dashed rgba(13, 47, 82, 0.25);
  border-radius: 14px;
  background: rgba(13, 47, 82, 0.03);
}
.metric-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 14px;
  margin: 0;
}
.metric-list li {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}
.metric-list strong {
  font-size: 1.05rem;
  color: var(--brand);
}
.inline-emphasis {
  color: var(--brand);
  font-weight: 800;
}
@media (max-width: 860px) {
  .metric-list li { padding: 12px 14px; }
}
