 :root {
  --green-dark: #0b7d2d;
  --green: #199c3a;
  --green-light: #72c234;
  --yellow: #f0ca14;
  --orange: #f2a411;
  --orange-dark: #f17908;
  --red: #e3361b;
  --text: #163041;
  --muted: #5e6f77;
  --bg: #f5f8f3;
  --card: #ffffff;
  --line: #d9e4db;
  --shadow: 0 14px 40px rgba(7, 53, 20, 0.10);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(143, 205, 58, 0.12), transparent 28%),
    linear-gradient(180deg, #fcfefb 0%, #f3f8f1 100%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.90);
  border-bottom: 1px solid rgba(19, 115, 44, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 82px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-badge {
  width: 48px; height: 48px; border-radius: 16px; display: inline-grid; place-items: center;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: #fff; font-weight: 800; font-size: 1.5rem; box-shadow: var(--shadow);
}
.brand-text strong { display: block; font-size: 1.2rem; color: var(--green-dark); }
.brand-text small { display: block; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; }
.nav { display: flex; gap: 18px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--green-dark); }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--green-dark);
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff; font-weight: 700; box-shadow: var(--shadow);
}
.button:hover { transform: translateY(-1px); }
.button-secondary { background: #fff; color: var(--green-dark); box-shadow: none; border-color: rgba(14, 105, 39, 0.25); }
.button-small { min-height: 42px; padding: 0 16px; white-space: nowrap; }

.hero { padding: 64px 0 36px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1.08fr; gap: 40px; align-items: center; }
.eyebrow { margin: 0 0 10px; color: var(--green-dark); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
.hero-copy h1, .section-head h2, .benefit-copy h2, .contact-copy h2, .legal-grid h2 {
  margin: 0; line-height: 1.05; font-size: clamp(2.3rem, 5vw, 4.5rem);
}
.hero-handwriting {
  margin: 18px 0 0; color: var(--green); font-family: 'Caveat', cursive;
  font-size: clamp(1.6rem, 3.4vw, 2.7rem); line-height: 1.05;
}
.lead, .section-head p, .benefit-copy p, .contact-copy p {
  color: var(--muted); font-size: 1.08rem; line-height: 1.7;
}
.hero-points { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin: 28px 0; }
.mini-point {
  display: flex; gap: 14px; align-items: center; background: rgba(255,255,255,0.85);
  border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px;
}
.mini-point span {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: #fff; font-weight: 800; font-size: 1.1rem;
}
.mini-point strong { display: block; margin-bottom: 4px; }
.mini-point small { color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-visual img {
  border-radius: 28px; box-shadow: 0 24px 60px rgba(18, 84, 31, 0.18);
  border: 1px solid rgba(20, 119, 44, 0.12);
}

section { padding: 46px 0; scroll-margin-top: 100px; }
.section-alt { background: rgba(255,255,255,0.58); border-top: 1px solid rgba(20, 119, 44, 0.06); border-bottom: 1px solid rgba(20, 119, 44, 0.06); }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head-center { max-width: 820px; margin: 0 auto 28px; text-align: center; }
.section-head h2, .benefit-copy h2, .contact-copy h2, .legal-grid h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 14px; }

.showcase-card { padding: 18px; background: linear-gradient(180deg, #fff, #f9fcf7); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.showcase-card img { border-radius: 18px; }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 12px 28px rgba(10, 58, 22, 0.06); }
.service-card h3 { margin: 16px 0 10px; font-size: 1.15rem; }
.service-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.step-label { width: 44px; height: 44px; border-radius: 14px; color: #fff; font-weight: 800; display: inline-grid; place-items: center; box-shadow: inset 0 -2px 0 rgba(255,255,255,0.22); }
.a { background: var(--green-dark); } .b { background: var(--green); } .c { background: var(--green-light); }
.d { background: var(--yellow); color: #3e3900; } .e { background: var(--orange); } .f { background: var(--orange-dark); } .g { background: var(--red); }

.benefit-layout { display: grid; grid-template-columns: 1.08fr .92fr; gap: 28px; align-items: start; }
.benefit-badges { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 28px; }
.badge-box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.badge-box strong { display: block; margin-bottom: 6px; color: var(--green-dark); }
.badge-box span { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.benefit-panel { display: grid; gap: 18px; }
.benefit-item { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: flex; gap: 16px; align-items: flex-start; box-shadow: var(--shadow); }
.icon-circle { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, #eefbe6, #d6efc1); display: grid; place-items: center; font-size: 1.6rem; flex: 0 0 auto; }
.benefit-item h3 { margin: 4px 0 8px; font-size: 1.2rem; }
.benefit-item p { margin: 0; color: var(--muted); line-height: 1.65; }


.stair-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 980px;
  width: 100%;
}

.stair {
  height: 68px;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #fff;
  font-weight: 700;
  border-radius: 18px;
  padding: 0 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stair strong {
  min-width: 52px;
  font-size: 2rem;
  line-height: 1;
}

.stair span {
  font-size: 1.15rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stair-a { width: 58%; background: linear-gradient(90deg, var(--green-dark), #138f2f); }
.stair-b { width: 64%; background: linear-gradient(90deg, var(--green), #40bf17); }
.stair-c { width: 70%; background: linear-gradient(90deg, #8dbd00, #bed800); }
.stair-d { width: 76%; background: linear-gradient(90deg, #ebc617, #f4d527); color: #3a3300; }
.stair-e { width: 82%; background: linear-gradient(90deg, #f3ae1a, #ffbd17); }
.stair-f { width: 88%; background: linear-gradient(90deg, #ef880c, #ff7d00); }
.stair-g { width: 100%; background: linear-gradient(90deg, #e3411d, #ff2712); }

.contact-wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 28px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.contact-list li { position: relative; padding-left: 24px; color: var(--text); }
.contact-list li::before { content: '•'; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.contact-details { margin-top: 26px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,0.72); }
.contact-details p { margin: 0 0 12px; color: var(--muted); line-height: 1.6; }
.contact-details p:last-child { margin-bottom: 0; }
.contact-details a, .legal-card a { color: var(--green-dark); font-weight: 700; }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 24px; box-shadow: var(--shadow); }
.contact-form label { display: grid; gap: 8px; margin-bottom: 16px; font-weight: 600; }
.contact-form input, .contact-form textarea { width: 100%; font: inherit; border: 1px solid #ccd8cf; border-radius: 16px; padding: 14px 16px; background: #fbfef9; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid rgba(25, 156, 58, 0.16); border-color: var(--green); }

.legal-grid { display: grid; grid-template-columns: 0.55fr 1.45fr; gap: 28px; align-items: start; }
.legal-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 26px; box-shadow: var(--shadow); }
.legal-card h3 { margin: 24px 0 8px; color: var(--green-dark); font-size: 1.05rem; }
.legal-card h3:first-child { margin-top: 0; }
.legal-card p { margin: 0 0 10px; color: var(--muted); line-height: 1.7; }
.small-note { font-size: .92rem; color: #7b5b00 !important; background: #fff7db; border: 1px solid #f0d57a; padding: 12px 14px; border-radius: 14px; display: inline-block; }

.publish-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.publish-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: 0 12px 28px rgba(10, 58, 22, 0.06); }
.publish-card h3 { margin: 0 0 10px; color: var(--green-dark); }
.publish-card p { margin: 0; color: var(--muted); line-height: 1.65; }
code { background: #eef7ea; color: var(--green-dark); padding: 2px 6px; border-radius: 7px; font-size: .92em; }

.site-footer { padding: 24px 0 36px; border-top: 1px solid rgba(20, 119, 44, 0.08); color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

@media (max-width: 1024px) {
  .hero-grid, .benefit-layout, .contact-wrap { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-grid, .publish-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .header-inner { flex-wrap: wrap; justify-content: center; padding: 14px 0; }
  .nav { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .service-grid, .hero-points, .benefit-badges { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .stair { min-height: 64px; }
  /* Inline-Breiten der Effizienztreppe bleiben erhalten. */
}
@media (max-width: 560px) {
  .container { width: min(100% - 20px, 1180px); }
  .hero-copy h1 { font-size: 2.3rem; }
  .stair { padding: 0 14px; gap: 12px; }
  .stair strong { min-width: 42px; font-size: 1.7rem; }
  .stair span { font-size: 1rem; }
}


@media (max-width: 520px) {
  .stair-list .stair {
    width: 100% !important;
  }
}


@media (max-width: 760px) {
  .stair {
    height: 68px !important;
  }
  .stair span {
    font-size: 1rem;
    white-space: nowrap;
  }
}


/* Finale Korrektur Effizienztreppe V12 */
.stair-list {
  align-items: flex-start !important;
}

.stair-list .stair {
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
}

.stair-list .stair-g {
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
}

.stair-list .stair span {
  white-space: nowrap;
  line-height: 1.15 !important;
}


/* Chatbox Energieberatung */
.chat-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  font-family: inherit;
}

.chat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
  box-shadow: 0 16px 38px rgba(7, 53, 20, 0.22);
  cursor: pointer;
  font: inherit;
}

.chat-toggle span {
  font-size: 1.35rem;
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: min(380px, calc(100vw - 28px));
  max-height: min(640px, calc(100vh - 110px));
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(7, 53, 20, 0.24);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
}

.chat-header strong,
.chat-header small {
  display: block;
}

.chat-header small {
  opacity: .86;
  font-size: .82rem;
  margin-top: 3px;
}

.chat-header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.chat-messages {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  min-height: 230px;
  max-height: 340px;
  background: #f8fbf5;
}

.chat-message {
  max-width: 88%;
  padding: 11px 13px;
  border-radius: 16px;
  line-height: 1.45;
  font-size: .95rem;
}

.chat-message.bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
}

.chat-message.user {
  align-self: flex-end;
  background: var(--green);
  color: #fff;
}

.quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px 0;
  background: #fff;
}

.quick-questions button {
  border: 1px solid var(--line);
  background: #f5fbf0;
  color: var(--green-dark);
  border-radius: 999px;
  padding: 8px 10px;
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
}

.quick-questions button:hover {
  background: #eaf7e2;
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: #fff;
}

.chat-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid #ccd8cf;
  border-radius: 999px;
  padding: 12px 14px;
  font: inherit;
}

.chat-form input:focus {
  outline: 2px solid rgba(25, 156, 58, 0.16);
  border-color: var(--green);
}

.chat-form button {
  border: 0;
  border-radius: 999px;
  padding: 0 15px;
  background: var(--green-dark);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.chat-disclaimer {
  margin: 0;
  padding: 0 14px 14px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
  background: #fff;
}

@media (max-width: 560px) {
  .chat-widget {
    right: 12px;
    bottom: 12px;
  }

  .chat-toggle strong {
    display: none;
  }

  .chat-panel {
    right: -2px;
    bottom: 64px;
  }
}


.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}


.seo-lead {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  margin: -8px 0 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.faq-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(10, 58, 22, 0.06);
}

.faq-card h3 {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 1.12rem;
}

.faq-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 820px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}
