/* ── Design Tokens ── */
:root {
  --brand-50:  #edf6f2;
  --brand-100: #d5ebe0;
  --brand-200: #a8d6c0;
  --brand-300: #6fb99a;
  --brand-500: #0E7C66;
  --brand-600: #0a6654;
  --brand-700: #07503f;
  --brand-900: #062d25;
  --bg:        #FBFAF7;
  --bg-alt:    #F3F1EB;
  --surface:   #FFFFFF;
  --line:      rgba(12,28,24,0.09);
  --line-strong: rgba(12,28,24,0.16);
  --text:      #0D1513;
  --text-2:    #37433F;
  --text-3:    #6B756F;
  --text-4:    #9AA19C;
  --ff-sans:    'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --ff-display: 'Instrument Serif', Georgia, serif;
  --ff-mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(10,25,20,0.04), 0 1px 1px rgba(10,25,20,0.03);
  --shadow-md: 0 2px 6px rgba(10,25,20,0.05), 0 8px 24px rgba(10,25,20,0.04);
  --shadow-lg: 0 4px 12px rgba(10,25,20,0.06), 0 24px 60px rgba(10,25,20,0.08);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  font-family: var(--ff-sans);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 500; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: all 140ms ease; white-space: nowrap;
  line-height: 1; font-family: inherit;
}
.btn-primary {
  background: var(--brand-500); color: #fff;
  border-radius: var(--r-sm); padding: 14px 22px; font-size: 15px;
}
.btn-primary:hover { background: var(--brand-600); }
.btn-text {
  background: transparent; color: var(--brand-600);
  border: none; padding: 8px 0; font-size: 15px;
}
.btn-text:hover { color: var(--brand-700); }

/* ── Nav ── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(251,250,247,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 50;
  gap: 24px;
}
.nav-left { display: flex; align-items: center; gap: 32px; flex-shrink: 0; }
.nav-links { display: flex; gap: 22px; }
.nav-link { font-size: 14px; color: var(--text-2); font-weight: 500; cursor: pointer; padding: 6px 0; text-decoration: none; transition: color 0.15s; }
.nav-link:hover { color: var(--brand-600); }
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-login { font-size: 13px; color: var(--text-3); font-weight: 500; cursor: pointer; }

/* ── Hero ── */
.hero {
  padding: 64px 56px 80px;
  background: radial-gradient(ellipse at 15% -10%, rgba(14,124,102,0.08) 0%, transparent 50%), var(--bg);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px; align-items: start;
}
.hero-left { padding-top: 24px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; margin-bottom: 32px;
  font-size: 12px; color: var(--text-2); font-weight: 500;
}
.hero-badge-dot {
  width: 16px; height: 16px; border-radius: 8px;
  background: var(--brand-500);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hero-h1 {
  font-size: 48px; line-height: 1.2; letter-spacing: -0.025em;
  font-weight: 400; margin-bottom: 28px; font-family: var(--ff-display);
  color: var(--text);
}
.hero-h1 span { color: var(--brand-600); }
.hero-sub {
  font-size: 19px; line-height: 1.55; color: var(--text-2);
  max-width: 540px; margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 14px; align-items: center; margin-bottom: 48px; }

/* ── Calculator ── */
.calc-label {
  font-size: 11px; color: var(--brand-600); text-transform: uppercase;
  letter-spacing: 0.14em; font-weight: 600; margin-bottom: 6px;
}
.calc-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); margin-bottom: 14px; }
.calc-card {
  background: var(--surface); border-radius: 14px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  overflow: hidden; width: 100%;
}
.calc-tabs { display: flex; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.calc-tab {
  flex: 1; padding: 14px 10px; font-size: 14px; font-weight: 500;
  color: var(--text-3); background: transparent; border: none;
  border-bottom: 2px solid transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 140ms ease; font-family: inherit;
}
.calc-tab.active {
  font-weight: 600; color: var(--text); background: var(--surface);
  border-bottom-color: var(--brand-500);
}
.calc-body { padding: 22px; }
.calc-fields { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; margin-bottom: 12px; }
.calc-field {
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 4px;
}
.calc-field-label {
  font-size: 11px; color: var(--text-3); text-transform: uppercase;
  letter-spacing: 0.06em; font-weight: 500;
}
.calc-input {
  border: none; background: transparent; outline: none;
  font-size: 18px; font-weight: 600; color: var(--text);
  font-family: inherit; padding: 0; width: 100%;
}
.calc-kwh { display: flex; align-items: baseline; gap: 6px; }
.calc-kwh-unit { font-size: 13px; color: var(--text-3); font-weight: 500; }
.calc-lieferjahr {
  display: flex; gap: 6px; margin-bottom: 12px;
  padding: 4px; background: var(--bg-alt); border-radius: 8px;
}
.calc-year {
  flex: 1; padding: 7px 10px; border: none; background: transparent;
  font-family: inherit; font-size: 12px; font-weight: 600;
  color: var(--text-3); letter-spacing: 0.02em;
  border-radius: 6px; cursor: pointer; transition: all 140ms ease;
}
.calc-year:hover { color: var(--text); }
.calc-year.active {
  background: var(--surface); color: var(--brand-700);
  box-shadow: 0 1px 2px rgba(10,25,20,0.06);
}
.calc-band {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 14px; margin-bottom: 12px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px;
}
.calc-band-row {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 13px;
}
.calc-band-label { color: var(--text-2); font-weight: 500; }
.calc-band-value {
  font-family: var(--ff-mono); font-size: 14px; font-weight: 600;
  color: var(--text); font-variant-numeric: tabular-nums;
}
.calc-band-row--muted { font-size: 12px; color: var(--text-3); }
.calc-band-row--muted span:last-child {
  font-family: var(--ff-mono); font-variant-numeric: tabular-nums;
  color: var(--text-2); font-weight: 500;
}
.calc-band-footnote {
  font-size: 11px; color: var(--text-4);
  margin-top: -4px; margin-bottom: 14px;
  letter-spacing: 0.01em;
}
.calc-savings {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: 8px; margin-bottom: 14px;
}
.calc-savings-label { font-size: 13px; color: var(--brand-700); font-weight: 500; }
.calc-savings-value {
  font-size: 18px; font-weight: 700; color: var(--brand-700);
  font-variant-numeric: tabular-nums;
}
.calc-cta { width: 100%; padding: 15px; font-size: 15px; }
.calc-trust {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; margin-top: 14px; font-size: 12px; color: var(--text-3);
}
.calc-trust-item { display: flex; align-items: center; gap: 5px; }
.calc-reassure {
  margin-top: 16px; padding: 10px 14px;
  background: var(--bg-alt); border-radius: 8px;
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--text-3);
}

/* ── Ticker ── */
.ticker-section { margin-top: 72px; }
.ticker-eyebrow {
  font-size: 10px; color: var(--text-3); text-transform: uppercase;
  letter-spacing: 0.16em; font-weight: 600; margin-bottom: 20px; text-align: center;
}
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-track {
  display: flex; animation: ticker 22s linear infinite; width: max-content;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: flex; align-items: center; gap: 40px; padding-right: 40px;
  font-size: 13px; font-weight: 600; color: var(--text-3);
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
}
.ticker-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--brand-500); flex-shrink: 0; }

/* ── Section base ── */
.section { padding: 80px 56px; }
.section-eyebrow {
  font-size: 12px; color: var(--brand-600); text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 600; margin-bottom: 10px;
}
.section-title {
  font-size: 42px; font-family: var(--ff-display); font-weight: 500;
  letter-spacing: -0.025em; line-height: 1.1;
}
.section-sub { font-size: 17px; color: var(--text-2); line-height: 1.55; }

/* ── Leistungen ── */
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.service-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 20px 22px; transition: all 160ms;
}
.service-num {
  width: 34px; height: 34px; border-radius: 8px; margin-bottom: 14px;
  background: var(--brand-50); color: var(--brand-600);
  border: 1px solid var(--brand-100);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-mono); font-size: 12px; font-weight: 600;
}
.service-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; line-height: 1.3; }
.service-desc { font-size: 13px; color: var(--text-2); line-height: 1.5; }

/* ── About ── */
.about-section {
  padding: 100px 56px;
  background: var(--surface);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: center; }
.about-photo { aspect-ratio: 4/5; border-radius: 18px; overflow: hidden; position: relative; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-eyebrow {
  font-size: 12px; color: var(--brand-600); text-transform: uppercase;
  letter-spacing: 0.14em; font-weight: 600; margin-bottom: 18px;
}
.about-title {
  font-family: var(--ff-display); font-size: 52px; line-height: 1.08;
  letter-spacing: -0.03em; font-weight: 400; margin-bottom: 24px;
}
.about-title em { color: var(--brand-600); }
.about-body { font-size: 18px; line-height: 1.6; color: var(--text-2); margin-bottom: 20px; max-width: 520px; }
.about-sub { font-size: 15px; line-height: 1.65; color: var(--text-3); max-width: 520px; margin-bottom: 28px; }
.about-stats { display: flex; gap: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.about-stat-label { font-size: 13px; color: var(--text-3); margin-bottom: 4px; }
.about-stat-val { font-size: 17px; font-weight: 600; }

/* ── Herausforderungen ── */
.challenges-section {
  padding: 80px 56px; background: var(--surface);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.challenges-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: center; }
.challenge-item {
  display: grid; grid-template-columns: 32px 1fr;
  padding: 18px 0; gap: 20px;
}
.challenge-item + .challenge-item { border-top: 1px solid var(--line); }
.challenge-icon {
  width: 24px; height: 24px; border-radius: 12px; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 13px; font-weight: 500; font-family: var(--ff-mono);
}
.challenge-title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.challenge-desc { font-size: 14px; color: var(--text-2); line-height: 1.55; }

/* ── PhotoBand ── */
.photo-band { position: relative; height: 380px; overflow: hidden; }
.photo-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7,80,63,0.85) 0%, rgba(14,124,102,0.45) 60%, rgba(14,124,102,0.1) 100%);
}
.photo-band-text {
  position: absolute; inset: 0; padding: 56px;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff; max-width: 720px;
}
.photo-band-eyebrow {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em;
  opacity: 0.85; margin-bottom: 16px; font-weight: 600;
}
.photo-band-caption {
  font-family: var(--ff-display); font-size: 48px; line-height: 1.1;
  letter-spacing: -0.02em; font-weight: 400;
}

/* ── Ablauf ── */
.ablauf-section { padding: 80px 56px; background: var(--bg-alt); }
.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.step-card { background: var(--surface); padding: 28px; border-radius: 14px; border: 1px solid var(--line); }
.step-num { font-family: var(--ff-mono); font-size: 12px; color: var(--brand-500); font-weight: 500; margin-bottom: 28px; letter-spacing: 0.04em; }
.step-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.step-desc { font-size: 14px; color: var(--text-2); line-height: 1.55; }
.ablauf-trust { margin-top: 28px; display: flex; gap: 20px; font-size: 13px; color: var(--text-3); align-items: center; }
.ablauf-trust-item { display: flex; align-items: center; gap: 6px; }
.ablauf-trust-sep { width: 1px; height: 14px; background: var(--line-strong); }

/* ── Ergebnis ── */
.ergebnis-section { padding: 80px 56px; }
.ergebnis-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: 20px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
}
.ergebnis-left { padding: 56px 48px; }
.ergebnis-eyebrow {
  font-size: 12px; color: var(--brand-600); text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 600; margin-bottom: 14px;
}
.ergebnis-title {
  font-size: 38px; font-family: var(--ff-display); font-weight: 500;
  letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 24px;
}
.ergebnis-body { font-size: 16px; color: var(--text-2); line-height: 1.6; margin-bottom: 20px; }
.ergebnis-note { font-size: 14px; color: var(--text-3); line-height: 1.55; font-style: italic; }
.ergebnis-right {
  background: linear-gradient(140deg, var(--brand-500) 0%, var(--brand-700) 100%);
  color: #fff; padding: 48px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.ergebnis-right-label { font-size: 13px; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; margin-bottom: 20px; }
.ergebnis-numbers { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.ergebnis-num { font-family: var(--ff-display); font-size: 110px; line-height: 0.9; letter-spacing: -0.04em; font-weight: 400; }
.ergebnis-bis { font-family: var(--ff-display); font-size: 60px; line-height: 1; opacity: 0.5; font-style: italic; }
.ergebnis-sub { font-size: 15px; opacity: 0.85; max-width: 340px; margin-top: 16px; }
.ergebnis-circles { position: absolute; right: -30px; top: -30px; opacity: 0.12; }

/* ── Branchen ── */
.branchen-section { padding: 100px 56px; background: var(--bg-alt); }
.branchen-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.branche-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
}
.branche-img { aspect-ratio: 16/10; background: var(--bg-alt); overflow: hidden; }
.branche-img img { width: 100%; height: 100%; object-fit: cover; }
.branche-body { padding: 20px 22px; }
.branche-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.branche-desc { font-size: 14px; color: var(--text-2); line-height: 1.55; }
.branchen-eyebrow { font-size: 12px; color: var(--brand-600); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; margin-bottom: 14px; }
.branchen-title {
  font-family: var(--ff-display); font-size: 52px; line-height: 1.08;
  letter-spacing: -0.03em; font-weight: 400; margin-bottom: 48px;
}
.branchen-title em { color: var(--brand-600); }

/* ── FAQ ── */
.faq-section {
  padding: 100px 56px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }
.faq-sticky { position: sticky; top: 120px; }
.faq-eyebrow { font-size: 12px; color: var(--brand-600); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 14px; }
.faq-title {
  font-size: 48px; font-family: var(--ff-display); font-weight: 500;
  letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 20px;
}
.faq-tagline { font-size: 15px; color: var(--text-3); line-height: 1.65; margin-bottom: 32px; max-width: 300px; }
.faq-contact-hint {
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px; border-radius: 12px;
  background: var(--brand-50); border: 1px solid var(--brand-100);
}
.faq-contact-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand-600); font-weight: 600; }
.faq-contact-phone { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--brand-700); }

#faq-list { counter-reset: faq-counter; }
.faq-item {
  counter-increment: faq-counter;
  background: var(--bg); border-radius: 12px;
  border: 1px solid var(--line); margin-bottom: 6px;
  overflow: hidden; transition: border-color 160ms, background 160ms;
}
.faq-item.open { background: var(--brand-50); border-color: var(--brand-200); }
.faq-btn {
  width: 100%; padding: 20px 22px; display: flex;
  align-items: center; gap: 16px;
  background: transparent; border: none; cursor: pointer;
  text-align: left; font-family: inherit;
}
.faq-btn::before {
  content: "0" counter(faq-counter);
  font-family: var(--ff-mono); font-size: 11px;
  color: var(--brand-500); font-weight: 600;
  flex-shrink: 0; min-width: 20px;
}
.faq-q { font-size: 16px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; flex: 1; }
.faq-icon {
  width: 26px; height: 26px; border-radius: 13px;
  background: var(--surface); color: var(--text-3);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 160ms;
}
.faq-icon.open { background: var(--brand-500); color: #fff; border-color: transparent; }
.faq-answer {
  display: none; padding: 0 22px 20px 58px;
  font-size: 15px; color: var(--text-2); line-height: 1.65;
}
.faq-answer.open { display: block; }

/* ── Kontakt ── */
.kontakt-section {
  display: grid; grid-template-columns: 1fr 1.15fr;
  min-height: 640px; overflow: hidden;
  background: var(--brand-900); color: #fff;
}
.kontakt-image { position: relative; overflow: hidden; }
.kontakt-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.kontakt-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,45,37,0.15) 0%, rgba(6,45,37,0.55) 100%);
}
.kontakt-content {
  padding: 60px 52px;
  display: flex; flex-direction: column; justify-content: center;
}
.kontakt-eyebrow { font-size: 12px; color: var(--brand-300); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 14px; }
.kontakt-title { font-size: 38px; font-family: var(--ff-display); font-weight: 400; letter-spacing: -0.03em; line-height: 1.08; color: #fff; margin-bottom: 12px; }
.kontakt-title em { color: var(--brand-300); font-style: italic; }
.kontakt-sub { font-size: 14px; opacity: 0.65; line-height: 1.6; margin-bottom: 28px; }
.kontakt-form { display: flex; flex-direction: column; gap: 12px; }
.kontakt-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kontakt-form-field { display: flex; flex-direction: column; gap: 5px; }
.kontakt-form-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.6; font-weight: 600; }
.kontakt-form-input {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px; padding: 11px 14px;
  color: #fff; font-size: 14px; font-family: inherit; outline: none;
  transition: border-color 160ms;
}
.kontakt-form-input::placeholder { color: rgba(255,255,255,0.3); }
.kontakt-form-input:focus { border-color: var(--brand-300); background: rgba(255,255,255,0.1); }
.kontakt-dropzone {
  position: relative;
  background: rgba(255,255,255,0.04); border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 8px; padding: 16px; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  transition: background 160ms;
}
.kontakt-dropzone:hover, .kontakt-dropzone.is-over { background: rgba(255,255,255,0.09); border-color: var(--brand-500); }
.kontakt-dropzone-icon { opacity: 0.5; flex-shrink: 0; }
.kontakt-dropzone-texts { display: flex; flex-direction: column; gap: 2px; }
.kontakt-dropzone-text { font-size: 13px; opacity: 0.75; }
.kontakt-dropzone-hint { font-size: 11px; opacity: 0.4; }
.kf-success-box {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(14,124,102,0.12); border: 1px solid rgba(14,124,102,0.3);
  border-radius: 10px; padding: 18px 20px;
  color: #e8f5f2; font-size: 14px; line-height: 1.5;
}
.kontakt-cta {
  width: 100%; background: #fff; color: var(--brand-700);
  padding: 15px 22px; border-radius: 10px; border: none;
  font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px; transition: background 160ms;
}
.kontakt-cta:hover { background: var(--brand-50); }
.kontakt-info-row {
  display: flex; gap: 20px; margin-top: 18px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px; opacity: 0.55;
}

/* ── Stats Band ── */
.stats-band {
  display: grid; grid-template-columns: repeat(4,1fr);
  background-image:
    linear-gradient(100deg, rgba(6,45,37,0.88) 0%, rgba(14,124,102,0.72) 60%, rgba(4,80,60,0.85) 100%),
    url('images/wind_turbines.png');
  background-size: cover;
  background-position: center 35%;
}
.stats-band-item {
  padding: 52px 32px; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.stats-band-item:last-child { border-right: none; }
.stats-num {
  font-family: var(--ff-display); font-size: 60px; font-weight: 400;
  letter-spacing: -0.03em; color: #fff; line-height: 1;
  margin-bottom: 10px;
}
.stats-label { font-size: 13px; color: rgba(255,255,255,0.72); line-height: 1.55; }

/* ── Testimonials ── */
.testimonials-section { padding: 100px 56px; background: var(--bg-alt); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 48px; }
.testimonial-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 32px 28px;
  display: flex; flex-direction: column;
}
.testimonial-stars { display: flex; gap: 3px; margin-bottom: 22px; }
.testimonial-star {
  width: 16px; height: 16px;
  background: #F59E0B;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.testimonial-text {
  font-size: 16px; line-height: 1.65; color: var(--text-2);
  margin-bottom: 24px; font-style: italic; flex: 1;
}
.testimonial-author {
  display: flex; flex-direction: column; gap: 3px;
  padding-top: 20px; border-top: 1px solid var(--line);
}
.testimonial-name { font-size: 15px; font-weight: 600; color: var(--text); }
.testimonial-company { font-size: 13px; color: var(--text-3); }

/* ── Einblicke / Gallery ── */
.gallery-section { padding: 100px 56px; }
.gallery-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  grid-template-rows: 248px 248px;
  gap: 12px; margin-top: 48px;
}
.gallery-img { border-radius: 14px; overflow: hidden; }
.gallery-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.gallery-img:hover img { transform: scale(1.04); }
.gallery-img--tall { grid-row: span 2; }
.gallery-img--tall img { object-position: left center; }

/* ── Footer ── */
.footer {
  padding: 56px 56px 32px;
  background: var(--bg); border-top: 1px solid var(--line);
  font-size: 13px; color: var(--text-3);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 40px; margin-bottom: 40px; }
.footer-logo-text { margin-top: 14px; line-height: 1.6; max-width: 280px; }
.footer-col-title {
  font-size: 12px; color: var(--text); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px;
}
.footer-link { margin-bottom: 8px; cursor: pointer; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 20px;
  display: flex; justify-content: space-between;
}

/* ── Nav hamburger (hidden on desktop) ── */
.nav-hamburger {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 8px;
  background: transparent; border: 1px solid var(--line);
  cursor: pointer; color: var(--text); flex-shrink: 0;
}
button, a { touch-action: manipulation; }

/* ═══════════════════════════════════════════
   TABLET  (768px – 1023px)
═══════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav { padding: 14px 28px; }
  .hero { padding: 48px 32px 64px; }
  .hero-grid { gap: 48px; }
  .hero-h1 { font-size: 38px; }
  .section { padding: 64px 32px; }
  .section-title { font-size: 34px; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .about-section { padding: 72px 32px; }
  .about-title { font-size: 40px; }
  .about-grid { gap: 44px; }
  .challenges-section { padding: 64px 32px; }
  .ablauf-section { padding: 64px 32px; }
  .steps-grid { grid-template-columns: repeat(2,1fr); }
  .ergebnis-section { padding: 64px 32px; }
  .testimonials-section { padding: 72px 32px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .branchen-section { padding: 72px 32px; }
  .branchen-grid { grid-template-columns: repeat(2,1fr); }
  .branchen-title { font-size: 40px; }
  .gallery-section { padding: 72px 32px; }
  .gallery-grid {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: 220px 220px;
  }
  .gallery-img:nth-child(3),
  .gallery-img:nth-child(4),
  .gallery-img:nth-child(5) { display: none; }
  .faq-section { padding: 72px 32px; }
  .faq-grid { gap: 48px; }
  .faq-title { font-size: 36px; }
  .kontakt-section { grid-template-columns: 0.7fr 1.3fr; }
  .kontakt-content { padding: 48px 36px; }
  .kontakt-title { font-size: 30px; }
  .stats-band { grid-template-columns: repeat(2,1fr); }
  .stats-band-item:nth-child(2) { border-right: none; }
  .stats-band-item:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.12); }
  .stats-num { font-size: 48px; }
  .footer { padding: 48px 32px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .photo-band-caption { font-size: 36px; }
  .photo-band-text { padding: 40px 32px; }
}

/* ═══════════════════════════════════════════
   MOBILE  (< 768px)
═══════════════════════════════════════════ */
@media (max-width: 767px) {
  /* Nav */
  .nav { padding: 12px 16px; gap: 0; position: relative; }
  .nav-left { gap: 0; }
  .nav-links {
    display: none; position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(251,250,247,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    flex-direction: column; gap: 0; z-index: 49;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 14px 8px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-link:last-child { border-bottom: none; }
  .nav-login { display: none; }
  .nav-right .btn { display: none; }
  .nav-hamburger { display: flex; }

  /* Hero */
  .hero { padding: 32px 16px 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-left { padding-top: 0; }
  .hero-h1 { font-size: 30px; margin-bottom: 20px; }
  .hero-sub { font-size: 15px; margin-bottom: 24px; }
  .hero-badge { margin-bottom: 20px; font-size: 11px; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 0; }
  .hero-ctas .btn-primary { padding: 16px 20px; min-height: 52px; }
  .hero-ctas .btn-text { text-align: center; padding: 14px 0; min-height: 44px; }

  /* Calculator */
  .calc-trust { flex-wrap: wrap; gap: 10px; justify-content: flex-start; }
  .calc-cta { min-height: 52px; }

  /* Stats band */
  .stats-band { grid-template-columns: repeat(2,1fr); }
  .stats-band-item {
    padding: 32px 16px;
    border-right: 1px solid rgba(255,255,255,0.12);
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .stats-band-item:nth-child(2) { border-right: none; }
  .stats-band-item:nth-child(3) { border-bottom: none; }
  .stats-band-item:nth-child(4) { border-right: none; border-bottom: none; }
  .stats-num { font-size: 40px; }

  /* Sections */
  .section { padding: 48px 16px; }
  .section-title { font-size: 28px; }
  .section-sub { font-size: 15px; }

  /* Leistungen */
  .section { padding: 36px 16px; }
  .services-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .services-grid .service-card { padding: 14px 14px; border-radius: 10px; }
  .services-grid .service-num { margin-bottom: 10px; width: 30px; height: 30px; border-radius: 7px; font-size: 11px; }
  .services-grid .service-title { font-size: 14px; margin-bottom: 4px; }
  .services-grid .service-desc { font-size: 12px; line-height: 1.45; }
  .section > div:first-child { margin-bottom: 20px !important; }

  /* About */
  .about-section { padding: 56px 16px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-photo { aspect-ratio: 3/2; border-radius: 12px; }
  .about-title { font-size: 30px; }
  .about-body { font-size: 15px; }
  .about-stats { gap: 20px; flex-wrap: wrap; }

  /* Challenges */
  .challenges-section { padding: 48px 16px; }
  .challenges-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Photo band */
  .photo-band { height: 220px; }
  .photo-band-caption { font-size: 24px; }
  .photo-band-text { padding: 24px 16px; }

  /* Ablauf */
  .ablauf-section { padding: 48px 16px; }
  .steps-grid { grid-template-columns: 1fr; gap: 10px; }
  .ablauf-trust { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ablauf-trust-sep { display: none; }

  /* Ergebnis */
  .ergebnis-section { padding: 48px 16px; }
  .ergebnis-card { grid-template-columns: 1fr; }
  .ergebnis-left { padding: 32px 24px; }
  .ergebnis-title { font-size: 24px; }
  .ergebnis-right { padding: 32px 24px; }
  .ergebnis-num { font-size: 72px; }
  .ergebnis-bis { font-size: 38px; }

  /* Testimonials */
  .testimonials-section { padding: 56px 16px; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .testimonial-card { padding: 24px 20px; }
  .testimonial-text { font-size: 14px; }

  /* Branchen */
  .branchen-section { padding: 56px 16px; }
  .branchen-grid { grid-template-columns: 1fr; gap: 10px; }
  .branchen-title { font-size: 32px; margin-bottom: 28px; }

  /* Gallery */
  .gallery-section { padding: 56px 16px; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 160px 160px 160px;
  }
  .gallery-img--tall { grid-row: span 1; }
  .gallery-img--tall img { object-position: center; }
  .gallery-img:nth-child(5) { display: none; }

  /* FAQ */
  .faq-section { padding: 56px 16px; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-sticky { position: static; top: auto; }
  .faq-title { font-size: 30px; }
  .faq-tagline { max-width: 100%; }
  .faq-btn { padding: 16px; min-height: 56px; }
  .faq-answer { padding: 0 16px 16px 48px; }

  /* Kontakt */
  .kontakt-section { grid-template-columns: 1fr; }
  .kontakt-image { display: none; }
  .kontakt-content { padding: 48px 20px; }
  .kontakt-title { font-size: 28px; }
  .kontakt-form-row { grid-template-columns: 1fr; }
  .kontakt-form-input { min-height: 48px; font-size: 16px; }
  .kontakt-cta { min-height: 52px; }
  .kontakt-info-row { flex-direction: column; gap: 6px; }

  /* Footer */
  .footer { padding: 40px 16px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
  .footer-logo-text { display: none; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* ══════════════════════════════════════════════════════════════════
   ANGEBOT-SEITE
   ══════════════════════════════════════════════════════════════════ */

.angebot-page {
  max-width: 1240px; margin: 0 auto;
  padding: 32px 32px 120px;
}
.angebot-header { margin-bottom: 28px; max-width: 760px; }
.angebot-h1 {
  font-family: var(--ff-display); font-weight: 400;
  font-size: 44px; line-height: 1.05; letter-spacing: -0.015em;
  color: var(--text); margin: 10px 0 14px;
}
.angebot-h1 em { font-style: italic; color: var(--brand-600); font-weight: 400; }
.angebot-intro {
  font-size: 15px; color: var(--text-2); line-height: 1.6; max-width: 640px;
}

/* Toggle Strom/Gas */
.angebot-toggle {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--bg-alt); border-radius: 10px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
}
.angebot-toggle-btn {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; border: 1.5px solid transparent; background: transparent;
  font-family: inherit; font-size: 14px; font-weight: 500;
  color: var(--text-3); border-radius: 7px; cursor: pointer;
  transition: all 160ms ease;
}
.angebot-toggle-btn:hover { color: var(--text); background: rgba(255,255,255,0.5); }
.angebot-toggle-btn.active {
  background: var(--surface); color: var(--brand-700);
  font-weight: 600;
  border-color: var(--brand-500);
  box-shadow: 0 2px 6px rgba(14,124,102,0.12);
}
.angebot-toggle-btn.active::after {
  content: '';
  position: absolute; left: 50%; bottom: -6px;
  width: 18px; height: 3px; border-radius: 2px;
  background: var(--brand-500);
  transform: translateX(-50%);
}
.angebot-toggle-btn.active svg path { stroke: var(--brand-600); }

/* Grid */
.angebot-grid {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px;
  align-items: start;
}
.angebot-form { display: flex; flex-direction: column; gap: 20px; }

/* Fieldset */
.angebot-fieldset {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px 24px; background: var(--surface);
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-sm);
}
.angebot-legend {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--text);
  padding: 0; margin-bottom: 4px;
}
.angebot-legend-num {
  font-family: var(--ff-mono); font-size: 11px; font-weight: 600;
  color: var(--brand-500); background: var(--brand-50);
  padding: 3px 7px; border-radius: 4px;
}
.angebot-legend-hint {
  margin-left: auto; font-size: 11px; font-weight: 500;
  color: var(--text-4); text-transform: uppercase; letter-spacing: 0.08em;
}

/* Rows & Fields */
.angebot-row { display: grid; gap: 10px; }
.angebot-row--2 { grid-template-columns: 1fr 1fr; }
.angebot-row--3 { grid-template-columns: 1fr 1fr 1fr; }

.angebot-field {
  display: flex; flex-direction: column; gap: 5px;
}
.angebot-field > span {
  font-size: 11px; color: var(--text-3); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.angebot-field > span em {
  text-transform: none; letter-spacing: normal; color: var(--text-4);
  font-style: normal; font-weight: 400; margin-left: 4px;
}
.angebot-auto {
  font-size: 9px; color: var(--brand-500); font-weight: 600;
  padding: 1px 5px; background: var(--brand-50); border-radius: 3px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.angebot-field > input,
.angebot-field > input[type="text"] {
  border: 1px solid var(--line); background: var(--bg);
  border-radius: 7px; padding: 10px 12px;
  font-family: inherit; font-size: 14px; font-weight: 500;
  color: var(--text); outline: none;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.angebot-field input:focus {
  border-color: var(--brand-500); background: var(--surface);
}
.angebot-field input[readonly] {
  background: var(--bg-alt); color: var(--text-2); cursor: default;
}
.angebot-field--accent input {
  border-color: var(--brand-200); background: var(--brand-50);
  font-weight: 600; font-family: var(--ff-mono);
  font-variant-numeric: tabular-nums;
}
.angebot-field--accent input:focus {
  background: var(--surface); border-color: var(--brand-500);
}

/* PLZ-Autocomplete Dropdown */
.angebot-field.has-plz-autocomplete { position: relative; }
.angebot-plz-suggest {
  position: absolute; top: 100%; left: 0; right: 0;
  margin-top: 4px; z-index: 20;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 8px; box-shadow: var(--shadow-md);
  overflow: hidden;
  max-height: 260px; overflow-y: auto;
}
.angebot-plz-suggest-row {
  display: grid; grid-template-columns: 58px 1fr auto;
  gap: 10px; align-items: center;
  width: 100%; padding: 9px 12px;
  border: none; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 13px; text-align: left;
  color: var(--text); border-bottom: 1px solid var(--line);
}
.angebot-plz-suggest-row:last-child { border-bottom: none; }
.angebot-plz-suggest-row:hover { background: var(--brand-50); }
.angebot-plz-suggest-code {
  font-family: var(--ff-mono); font-weight: 600; font-size: 12px;
  color: var(--brand-700);
}
.angebot-plz-suggest-name { font-weight: 500; }
.angebot-plz-suggest-meta {
  font-size: 11px; color: var(--text-3); font-weight: 400;
}

/* Pflichtfeld-Markierung (roter Stern auf dem Label) */
.angebot-field:has([required]) > span::after {
  content: ' *';
  color: #c03b2b;
  font-weight: 700;
  letter-spacing: 0;
}

/* Validierung */
.angebot-field.has-error > input,
.angebot-field.has-error .angebot-input-unit > input {
  border-color: #c03b2b !important;
  background: #fdf3f1;
}
.angebot-field.has-error > span { color: #c03b2b; }
.angebot-field-error {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: #c03b2b; font-weight: 500;
  margin-top: 2px; letter-spacing: 0;
}
.angebot-field-error::before {
  content: '!'; display: inline-flex; align-items: center; justify-content: center;
  width: 13px; height: 13px; border-radius: 50%;
  background: #c03b2b; color: #fff; font-size: 9px; font-weight: 700;
  flex-shrink: 0;
}

.angebot-input-unit {
  position: relative; display: flex;
}
.angebot-input-unit input { flex: 1; padding-right: 44px; }
.angebot-unit {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 12px; color: var(--text-3); font-weight: 500;
  pointer-events: none;
}
.angebot-sub-input {
  font-size: 11px !important; padding: 6px 10px !important;
  color: var(--text-3) !important; font-weight: 400 !important;
  margin-top: 4px;
}

.angebot-checkbox {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-2); cursor: pointer;
}
.angebot-checkbox input { accent-color: var(--brand-500); }

/* Preview */
.angebot-preview {
  position: sticky; top: 20px;
  display: flex; flex-direction: column; gap: 16px;
}
.angebot-preview-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px;
  box-shadow: var(--shadow-md);
}
.angebot-preview-card--ind {
  background: var(--bg-alt); border-style: dashed;
}
.angebot-preview-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px;
}
.angebot-preview-sub {
  font-size: 11px; color: var(--text-3); font-family: var(--ff-mono);
  font-variant-numeric: tabular-nums;
}

.angebot-variants {
  display: flex; flex-direction: column; gap: 8px;
}
.angebot-variant {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; align-items: center;
  gap: 12px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); transition: all 140ms ease;
}
.angebot-variant.is-best {
  border-color: var(--brand-300);
  background: linear-gradient(to right, var(--brand-50), var(--surface) 65%);
}
.angebot-variant.is-best .angebot-variant-name {
  color: var(--brand-700); position: relative; padding-left: 14px;
}
.angebot-variant.is-best .angebot-variant-name::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--brand-500); font-weight: 700;
}
.angebot-variant-name {
  font-size: 13px; font-weight: 600; color: var(--text);
}
.angebot-variant-price {
  font-family: var(--ff-mono); font-variant-numeric: tabular-nums;
  font-size: 13px; font-weight: 600; color: var(--text);
  display: flex; align-items: baseline; gap: 4px;
}
.angebot-variant-price--dual {
  flex-wrap: wrap; font-size: 11px; line-height: 1.3;
}
.angebot-variant-price--dual > span:nth-child(odd) { font-weight: 600; font-size: 12px; }
.angebot-variant-unit {
  font-size: 10px; color: var(--text-3); font-weight: 400;
}
.angebot-variant-sub {
  font-size: 9px; color: var(--text-4); text-transform: uppercase;
  letter-spacing: 0.06em; margin-right: 6px;
}
.angebot-variant-save {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
}
.angebot-save-lbl {
  font-size: 9px; color: var(--text-4);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.angebot-variant-save > span:last-child {
  font-family: var(--ff-mono); font-variant-numeric: tabular-nums;
  font-size: 13px; font-weight: 700; color: var(--brand-600);
}
.angebot-variant-save .is-negative { color: #b3261e; }

/* CTA */
.angebot-cta {
  width: 100%; padding: 16px; font-size: 15px;
  margin-top: 4px;
}
.angebot-reassure {
  font-size: 11px; color: var(--text-3); text-align: center;
  line-height: 1.5;
}
.angebot-datasource {
  display: flex; align-items: center; gap: 6px; justify-content: center;
  font-size: 10px; color: var(--text-4);
  padding: 8px 10px; background: var(--bg-alt); border-radius: 6px;
  font-family: var(--ff-mono);
}
.angebot-datasource code {
  font-size: 10px; color: var(--brand-600);
  padding: 1px 4px; background: var(--brand-50); border-radius: 3px;
}

@media (max-width: 960px) {
  .angebot-page { padding: 20px 16px 80px; }
  .angebot-h1 { font-size: 32px; }
  .angebot-grid { grid-template-columns: 1fr; gap: 20px; }
  .angebot-preview { position: static; }
  .angebot-row--2, .angebot-row--3 { grid-template-columns: 1fr; }
  .angebot-variant { grid-template-columns: 1fr; gap: 6px; text-align: left; }
  .angebot-variant-save { align-items: flex-start; }
}

/* ══════════════════════════════════════════════════════════════════
   MAIL MODAL
   ══════════════════════════════════════════════════════════════════ */

.mail-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: stretch; justify-content: center;
}
.mail-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(13, 21, 19, 0.55);
  backdrop-filter: blur(3px);
  animation: mailFadeIn 200ms ease;
}
@keyframes mailFadeIn { from { opacity: 0; } to { opacity: 1; } }

.mail-modal-panel {
  position: relative; z-index: 1;
  margin: 40px auto; width: 100%; max-width: 780px;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(10, 25, 20, 0.22), 0 2px 8px rgba(10, 25, 20, 0.06);
  display: flex; flex-direction: column;
  max-height: calc(100vh - 80px);
  overflow: hidden;
  animation: mailSlideIn 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes mailSlideIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.mail-modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--line);
}
.mail-modal-eyebrow {
  font-size: 11px; color: var(--brand-600); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 4px;
}
.mail-modal-title {
  font-family: var(--ff-display); font-weight: 400;
  font-size: 26px; color: var(--text); margin: 0; letter-spacing: -0.01em;
}
.mail-modal-close {
  width: 32px; height: 32px; border: 1px solid var(--line);
  background: var(--surface); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); cursor: pointer;
  transition: all 140ms ease;
}
.mail-modal-close:hover { color: var(--text); border-color: var(--line-strong); }

.mail-modal-body {
  padding: 20px 28px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 16px;
}

/* Meta-Felder */
.mail-fields {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 16px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
}
.mail-field {
  display: grid; grid-template-columns: 70px 1fr; align-items: center;
  gap: 12px;
}
.mail-field-lbl {
  font-size: 11px; color: var(--text-3); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.mail-field-inp {
  border: none; background: transparent;
  font-family: inherit; font-size: 13px; color: var(--text);
  font-weight: 500; padding: 4px 0; outline: none;
  border-bottom: 1px solid transparent;
  transition: border-color 140ms ease;
}
.mail-field-inp:focus { border-bottom-color: var(--brand-300); }
select.mail-field-inp {
  appearance: none; -webkit-appearance: none;
  padding-right: 20px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none' stroke='%236b756f' stroke-width='1.6'><path d='M2 4 L5 7 L8 4'/></svg>");
  background-repeat: no-repeat; background-position: right 2px center;
}

/* Preview */
.mail-preview-wrap { display: flex; flex-direction: column; gap: 8px; }
.mail-preview-label {
  font-size: 11px; color: var(--text-3); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.mail-preview {
  background: #f6f5f0; border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden;
  max-height: 380px; overflow-y: auto;
}
.mail-preview > * { max-width: 100%; }

/* Attach-Hinweis */
.mail-attach {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: 10px;
}
.mail-attach-icon {
  width: 32px; height: 32px; border-radius: 6px;
  background: var(--brand-500); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mail-attach-meta { flex: 1; min-width: 0; }
.mail-attach-name {
  font-family: var(--ff-mono); font-size: 12px; font-weight: 600;
  color: var(--brand-700); word-break: break-all;
}
.mail-attach-sub {
  font-size: 11px; color: var(--text-3); margin-top: 2px; line-height: 1.5;
}

/* Footer */
.mail-modal-footer {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 16px 28px;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}
.mail-modal-footer .btn { padding: 10px 18px; font-size: 13px; }
.mail-modal-footer .btn-primary { padding: 10px 20px; }

@media (max-width: 720px) {
  .mail-modal-panel { margin: 0; max-height: 100vh; border-radius: 0; height: 100vh; }
  .mail-field { grid-template-columns: 1fr; gap: 2px; }
  .mail-field-lbl { margin-bottom: 2px; }
  .mail-modal-header, .mail-modal-body, .mail-modal-footer { padding-left: 16px; padding-right: 16px; }
}

/* Mail-Modal erweiterte Buttons */
.mail-modal-spacer { flex: 1; }
.btn-ghost {
  background: transparent; color: var(--text-2);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 9px 14px; font-size: 13px; font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  transition: all 140ms ease;
}
.btn-ghost:hover {
  background: var(--bg-alt); color: var(--text); border-color: var(--line-strong);
}

/* Spinner */
.mail-spinner {
  display: inline-block; width: 12px; height: 12px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%;
  animation: mailSpin 0.6s linear infinite;
  margin-right: 6px; vertical-align: middle;
}
@keyframes mailSpin { to { transform: rotate(360deg); } }

/* Error-Bar */
.mail-error-bar {
  background: #fdf3f1; color: #c03b2b;
  border: 1px solid #f0c6bf; border-radius: 8px;
  padding: 10px 14px; font-size: 13px; font-weight: 500;
}

/* Success */
.mail-success {
  padding: 48px 32px 32px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  animation: mailFadeIn 260ms ease;
}
.mail-success-check {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--brand-50); color: var(--brand-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
  animation: mailPop 420ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes mailPop {
  from { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.08); }
  to { transform: scale(1); opacity: 1; }
}
.mail-success-title {
  font-family: var(--ff-display); font-size: 32px; font-weight: 400;
  color: var(--text); letter-spacing: -0.01em;
}
.mail-success-sub {
  font-size: 14px; color: var(--text-2); margin-bottom: 16px; line-height: 1.5;
}
.mail-success strong { color: var(--brand-700); font-weight: 600; }

/* Zwei-Button CTA (erstellen / senden) */
.angebot-cta-row {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
  margin-top: 4px;
}
.angebot-cta-row .btn {
  padding: 14px 12px; font-size: 14px; border-radius: 8px;
}
.btn-outline {
  background: var(--surface); color: var(--brand-700);
  border: 1.5px solid var(--brand-200);
  border-radius: 8px; padding: 14px 16px; font-size: 14px;
  font-family: inherit; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 140ms ease;
}
.btn-outline:hover {
  background: var(--brand-50); border-color: var(--brand-500);
}
.btn-outline:disabled, .btn-primary:disabled {
  opacity: 0.6; cursor: not-allowed;
}

/* Spinner auch auf primary/outline buttons dunkelgrün statt weiß */
.btn-outline .mail-spinner {
  border-color: rgba(14,124,102,0.25);
  border-top-color: var(--brand-600);
}
