/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700&family=Newsreader:ital,wght@0,400;0,500;1,400&display=swap');

/* Resets & Variables */
:root {
  --primary: #234034;
  --primary-hover: #1b3026;
  --bg-light: #F3EEE4;
  --bg-sand: #EAE3D5;
  --text-dark: #1B2A20;
  --text-muted: #6f7c70;
  --border: #DCD4C4;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Hanken Grotesk', system-ui, sans-serif; color: var(--text-dark); background: var(--bg-light); -webkit-font-smoothing: antialiased; line-height: 1.6; }
em { font-style: italic; }
a { text-decoration: none; color: inherit; }

/* Layout Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.container-md { max-width: 880px; margin: 0 auto; padding: 0 28px; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 28px; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.flex-1 { flex: 1; }
.flex-between { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.pb-4 { padding-bottom: 64px; }
/* Globale Hilfsklasse für einheitliche Sektions-Abstände */
.section-padding { padding: 84px 0; }
.bg-light { background: var(--bg-light); }

/* Feature Split Section (Warum Wärmepumpe) */
.feature-split { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 56px; 
  align-items: flex-start; 
  max-width: 1100px; 
}
.feature-text { 
  flex: 1 1 380px; 
}
.feature-text p { 
  font-size: 16px; 
  color: #4A5A4E; 
  line-height: 1.8; 
}
.feature-stats { 
  flex: 1 1 300px; 
}
.stat-item { 
  padding: 20px 0; 
  border-top: 1px solid var(--border); 
}
.stat-item:last-child { 
  border-bottom: 1px solid var(--border); 
}
.stat-title { 
  font-family: 'Newsreader', serif; 
  font-size: 1.85rem; 
  color: var(--primary); 
  margin-bottom: 5px; 
}
.stat-desc { 
  font-size: 14.5px; 
  color: #4A5A4E; 
  line-height: 1.55; 
}

/* Typography */
h1 { font-family: 'Newsreader', serif; font-weight: 400; font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.06; letter-spacing: -0.02em; }
h2 { font-family: 'Newsreader', serif; font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -0.015em; margin-bottom: 30px; }
h3 { font-family: 'Newsreader', serif; font-weight: 400; font-size: 1.7rem; margin-bottom: 6px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #2D5A41; margin-bottom: 20px; }
.eyebrow.sm { font-size: 11px; margin-bottom: 6px; }

/* Buttons */
.btn-primary { background: var(--primary); color: #fff; border: none; border-radius: 100px; padding: 13px 28px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.2s; display: inline-block; text-align: center; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-primary:disabled { background: #b9c2b6; cursor: not-allowed; }
.btn-text { background: none; border: none; color: var(--text-muted); font-size: 15px; cursor: pointer; font-family: inherit; font-weight: 500; }
.btn-outline { background: none; border: 1px solid var(--primary); color: var(--primary); border-radius: 100px; padding: 12px 24px; font-size: 14px; font-weight: 600; cursor: pointer; }
.full-width { width: 100%; }

/* Header & Nav */
.top-bar { background: var(--text-dark); color: #fff; padding: 8px 0; font-size: 13px; }
.top-bar-content { max-width: 1200px; margin: 0 auto; padding: 0 28px; display: flex; justify-content: flex-end; gap: 26px; }
.top-bar-link { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; }
.top-bar-sub { color: #88a08e; font-weight: 400; }
#main-nav { background: rgba(243,238,228,0.95); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid transparent; transition: border 0.3s; }
#main-nav.scrolled { border-bottom-color: var(--border); }
.nav-content { max-width: 1200px; margin: 0 auto; height: 70px; display: flex; justify-content: space-between; align-items: center; padding: 0 28px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: 'Newsreader', serif; font-size: 21px; font-weight: 500; cursor: pointer; }
.nav-links a { color: #4A5A4E; font-weight: 500; margin-right: 30px; font-size: 14.5px; }
#mobile-menu-btn { background: none; border: none; cursor: pointer; display: none; padding: 6px; }
#mobile-menu { display: none; flex-direction: column; padding: 10px 28px 20px; border-top: 1px solid var(--border); background: var(--bg-light); }
#mobile-menu a { padding: 12px 0; font-size: 16px; font-weight: 500; border-bottom: 1px solid rgba(0,0,0,0.05); }

/* Hero */
#hero { padding: 60px 0 80px; }
.hero-flex { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; }
.hero-text { max-width: 440px; }
.hero-text p { font-size: 1.12rem; margin-bottom: 26px; color: #4A5A4E; }
.hero-buttons { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.btn-link { font-weight: 600; border-bottom: 1.5px solid var(--primary); padding-bottom: 2px; }
.hero-subtext { margin-top: 16px; font-size: 13.5px; color: var(--text-muted); }
.hero-trust { text-align: right; font-size: 13.5px; color: var(--text-muted); line-height: 1.9; }

/* Calculator */
#rechner { padding: 84px 0; background: rgb(234, 227, 213); }
.calculator-card { background: #fff; border: 1px solid #e3dccd; border-radius: 16px; box-shadow: 0 18px 50px -28px rgba(27,42,32,0.35); overflow: hidden; }
.progress-bar-container { background: #ece6da; height: 3px; width: 100%; }
.progress-bar { background: var(--primary); height: 100%; width: 25%; transition: width 0.3s ease; }
.card-header { padding: 24px 36px 0; }
.step-label { font-size: 11.5px; font-weight: 600; color: #8a9389; letter-spacing: 0.14em; text-transform: uppercase; }
.card-body { padding: 18px 36px 36px; }
.step-desc { color: var(--text-muted); font-size: 15px; margin-bottom: 28px; }

/* Inputs & Sliders */
.input-group { margin-bottom: 28px; }
.val-display { font-family: 'Newsreader', serif; font-size: 19px; font-weight: 500; color: var(--primary); }
label { font-weight: 600; font-size: 15px; display: block; }
.slider { -webkit-appearance: none; width: 100%; height: 4px; border-radius: 2px; background: var(--border); outline: none; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); border: 3px solid #F3EEE4; box-shadow: 0 1px 4px rgba(0,0,0,0.2); cursor: pointer; }
.slider-labels { display: flex; justify-content: space-between; font-size: 12px; color: #a7b0a6; margin-top: 8px; }

/* Selection Cards */
.options-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.option-card { background: #fff; border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 13px; cursor: pointer; flex: 1 1 140px; transition: 0.2s; }
.option-card.sm { flex: 1 1 90px; text-align: center; }
.option-card.list-item { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.option-card.active { background: #e8ece1; border-color: var(--primary); }
.option-card.active .opt-title { color: var(--primary); }
.opt-title { font-weight: 600; font-size: 14.5px; margin-bottom: 3px; }
.opt-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.badge { background: var(--primary); color: #fff; font-size: 11px; padding: 4px 11px; border-radius: 100px; font-weight: 600; }

.step-footer { padding-top: 18px; border-top: 1px solid #ece6da; display: flex; }
.step-footer.right { justify-content: flex-end; }
.step-footer.between { justify-content: space-between; align-items: center; }

/* Forms & Result */
.form-input { width: 100%; padding: 12px 15px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 16px; margin-bottom: 16px; font-family: inherit; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.checkbox-group { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; }
.checkbox-group input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--primary); }
.checkbox-group label { font-size: 13px; font-weight: 400; color: var(--text-muted); line-height: 1.5; }

.result-highlight { background: #e6ede2; border: 1px solid #cfdcc8; padding: 15px; border-radius: 12px; text-align: center; margin-bottom: 16px; font-family: 'Newsreader', serif; font-size: 1.35rem; color: var(--primary); }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.res-card { background: #f4efe4; border: 1px solid #e3dccd; padding: 20px; border-radius: 12px; }
.res-card.highlight { background: #e6ede2; border-color: #cfdcc8; }
.res-label { font-size: 11px; font-weight: 600; color: #8a9389; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.res-card.highlight .res-label { color: #2D5A41; }
.res-val { font-size: 1.4rem; font-weight: 500; font-family: 'Newsreader', serif; }
.res-val.green { color: var(--primary); }
.res-sub { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.disclaimer { font-size: 12px; color: #9aa39a; margin-bottom: 24px; }
.success-icon { width: 64px; height: 64px; border: 1.5px solid #cfdcc8; background: #e6ede2; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 24px; color: var(--primary); }


/* Globale Utility-Klassen */
.scroll-mt { scroll-margin-top: 70px; }
.max-w-18ch { max-width: 18ch; }
.max-w-16ch { max-width: 16ch; }
.mb-18 { margin-bottom: 18px; }
.mb-20 { margin-bottom: 20px; }
.mb-56 { margin-bottom: 56px; }

/* Ablauf / Prozess-Liste */
.process-list { border-top: 1px solid var(--border); }
.process-step { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 24px; 
  padding: 30px 0; 
  border-bottom: 1px solid var(--border); 
  align-items: baseline; 
}
.step-number { 
  font-family: 'Newsreader', serif; 
  font-size: 2.2rem; 
  color: #bcc4ba; 
  font-weight: 400; 
  width: 64px; 
  flex-shrink: 0; 
}
.step-title { flex: 1 1 200px; }
.step-title h3 { font-family: 'Newsreader', serif; font-weight: 500; font-size: 1.4rem; color: var(--text-dark); margin: 0; }
.step-text { flex: 1 1 320px; font-size: 15px; color: #4A5A4E; line-height: 1.7; }

/* Vergleich / Dark Section */
.bg-dark { background: var(--text-dark); padding: 0; }
.compare-wrapper { display: flex; flex-wrap: wrap; }
.compare-image-box { 
  flex: 1 1 420px; 
  min-height: 340px; 
  background: #11201a; 
}
.compare-image-box img { 
  width: 100%; 
  height: 100%; 
  min-height: 340px; 
  object-fit: cover; 
  display: block; 
}
.compare-content { 
  flex: 1 1 420px; 
  padding: 64px 48px; 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
}
.eyebrow-light { color: #7fa890; }
.text-light { color: #F3EEE4; }
.compare-intro { font-size: 15px; color: #bdcabf; line-height: 1.7; margin-bottom: 30px; max-width: 48ch; }
.compare-cols { display: flex; flex-wrap: wrap; gap: 32px; }
.compare-col { flex: 1 1 200px; }
.compare-col-title { 
  font-size: 13px; 
  font-weight: 600; 
  margin-bottom: 16px; 
  padding-bottom: 10px; 
  border-bottom: 1px solid rgba(243, 238, 228, 0.16); 
}
.title-muted { color: #a9b6ab; }
.title-light { color: #F3EEE4; }
.compare-list { font-size: 14px; line-height: 1.6; display: flex; flex-direction: column; gap: 14px; }
.text-muted-light { color: #c7cfc6; }
.text-light-dim { color: #dfe6dd; }

/* Wissen Section */
.info-row { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 48px; 
  align-items: center; 
  margin-bottom: 64px; 
}
.info-image { 
  flex: 1 1 380px; 
  border-radius: 14px; 
  overflow: hidden; 
  background: #e7e0d2; 
}
.info-image img { 
  width: 100%; 
  height: 320px; 
  object-fit: cover; 
  display: block; 
}
.info-text { flex: 1 1 360px; }
.info-text h3 { font-size: 1.6rem; letter-spacing: -0.01em; margin-bottom: 14px; }
.info-text p { font-size: 15.5px; color: #4A5A4E; line-height: 1.75; }

.info-table { border-top: 1px solid var(--border); }
.info-table-row { 
  padding: 15px 0; 
  border-bottom: 1px solid var(--border); 
  display: flex; 
  justify-content: space-between; 
  gap: 16px; 
}
.info-table-row.no-border { border-bottom: none; }
.info-table-title { font-size: 14.5px; color: var(--text-dark); font-weight: 600; flex-shrink: 0; }
.info-table-desc { font-size: 14px; color: #6f7c70; text-align: right; }
.info-note { font-size: 14px; color: #6f7c70; line-height: 1.7; margin-top: 18px; }

.info-box-large { 
  border: 1px solid var(--border); 
  border-radius: 14px; 
  padding: 36px; 
}
.info-box-large h3 { margin-bottom: 14px; }
.info-box-large p { font-size: 15.5px; color: #4A5A4E; line-height: 1.75; max-width: 70ch; }

/* Desktop-Anpassung für die Bildanordnung (rechts/links Wechsel) */
@media (min-width: 769px) {
  .order-1 { order: 1; }
}
@media (max-width: 768px) {
  /* Auf mobilen Geräten sollen Bilder immer zuerst kommen */
  .info-image { order: -1; }
  .compare-content { padding: 44px 24px; }
}



/* FAQ */
#informationen { padding: 84px 0; }
.faq-accordion { border-top: 1px solid #d5cdbd; }
.faq-item { border-bottom: 1px solid #d5cdbd; }
.faq-btn { width: 100%; text-align: left; background: none; border: none; padding: 22px 0; font-size: 17px; font-weight: 600; font-family: inherit; color: var(--text-dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-icon { font-size: 24px; font-weight: 300; transition: transform 0.3s; color: #8a9389; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--text-muted); }
.faq-item.active .faq-content { max-height: 300px; }

/* Footer */
.footer { background: #162419; color: #F3EEE4; padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(243,238,228,0.1); }
.footer-brand { font-family: 'Newsreader', serif; font-size: 20px; margin-bottom: 16px; }
.footer h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(243,238,228,0.4); margin-bottom: 16px; }
.footer a { display: block; color: rgba(243,238,228,0.7); line-height: 2.2; font-size: 14px; }
.footer p { color: rgba(243,238,228,0.7); font-size: 14px; line-height: 1.8; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; margin-top: 20px; font-size: 13px; color: rgba(243,238,228,0.3); }
.footer-left { display: flex; gap: 16px; align-items: center; }

/* ================= LEGAL PAGES (Impressum & Datenschutz) ================= */
.bg-light-alt { background: #fdfcf9; min-height: 100vh; display: flex; flex-direction: column; }
.legal-main { flex: 1; padding: 120px 0 80px; } /* Abstand für fixed Header */

.legal-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 50px -28px rgba(27,42,32,0.15);
  padding: 60px 80px;
}

.legal-card h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.legal-card h2 {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1.4rem;
  color: var(--text-dark);
  margin: 40px 0 16px;
  font-weight: 600;
  letter-spacing: 0;
}

.legal-card p, .legal-card address {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
  font-style: normal;
}

.legal-card ul {
  padding-left: 24px;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
}

.legal-card li {
  margin-bottom: 8px;
}

.legal-card b, .legal-card strong {
  color: var(--text-dark);
  font-weight: 600;
}

.legal-card a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-card a:hover {
  color: var(--primary-hover);
}

.legal-meta {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #a7b0a6;
}

.legal-meta img {
  max-height: 30px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.legal-meta img:hover {
  opacity: 1;
}

/* Navbar Back Button */
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--primary);
  font-size: 15px;
  transition: opacity 0.2s;
}
.nav-back:hover { opacity: 0.7; }

/* Mobile Adjustments for Legal Pages */
@media (max-width: 768px) {
  .legal-card { padding: 30px 24px; }
  .legal-main { padding: 100px 0 60px; }
}

/* Media Queries */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .show-mobile-flex { display: flex !important; }
  .hero-trust { text-align: left; margin-top: 20px; }
  .card-header { padding: 20px 20px 0; }
  .card-body { padding: 16px 20px 28px; }
}