/* Lokales Stylesheet – Dämmtechnik Jantz (100% DSGVO-konform ohne externe CDNs) */
:root {
  --primary: #047857;
  --primary-dark: #065f46;
  --primary-light: #ecfdf5;
  --dark: #0f172a;
  --slate-800: #1e293b;
  --slate-600: #475569;
  --slate-200: #e2e8f0;
  --bg-light: #f8fafc;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-light);
  color: var(--slate-800);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--slate-200);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.brand span {
  color: var(--dark);
}

.nav-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-weight: 500;
  color: var(--slate-600);
}

.nav-links a:hover {
  color: var(--primary);
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--slate-800);
  border: 1px solid #334155;
}

.btn-secondary:hover {
  background: #334155;
}

/* Hero */
.hero {
  background: var(--dark);
  color: var(--white);
  padding: 64px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 36px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.18;
  margin-bottom: 18px;
}

.hero p {
  color: #cbd5e1;
  font-size: 1.08rem;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.35);
}

/* Sections */
section {
  padding: 72px 0;
}

.section-white {
  background: var(--white);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--slate-600);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.card-icon {
  width: 46px;
  height: 46px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.22rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.card p {
  color: var(--slate-600);
  font-size: 0.96rem;
}

.area-card {
  padding: 0;
  overflow: hidden;
  background: var(--bg-light);
}

.area-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: contain;
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
}

.area-card-body {
  padding: 22px;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--slate-200);
  font-size: 0.95rem;
}

th {
  background: #f1f5f9;
  color: var(--dark);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: none;
}

/* Kosten & Förderung */
.promo-section {
  background: var(--primary-dark);
  color: var(--white);
}

.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.promo-list {
  list-style: none;
  margin-top: 20px;
}

.promo-list li {
  margin-bottom: 12px;
  padding-left: 26px;
  position: relative;
}

.promo-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #6ee7b7;
  font-weight: bold;
}

.calc-box {
  background: var(--white);
  color: var(--slate-800);
  padding: 32px;
  border-radius: 16px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--slate-200);
  font-size: 0.96rem;
}

.calc-total {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

/* Kontaktformular */
.form-box {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 36px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.captcha-box {
  background: var(--primary-light);
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.captcha-question {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1.05rem;
}

.captcha-input {
  max-width: 180px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.9rem;
  color: var(--slate-600);
}

.checkbox-row input {
  margin-top: 4px;
}

.checkbox-row a {
  color: var(--primary);
  text-decoration: underline;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.alert {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 500;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Rechtliches */
.legal-box {
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 40px;
}

.legal-box h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.legal-box h2 {
  font-size: 1.25rem;
  margin-top: 26px;
  margin-bottom: 10px;
  color: var(--dark);
}

.legal-box p, .legal-box ul {
  color: var(--slate-600);
  margin-bottom: 14px;
}

.legal-box ul {
  padding-left: 22px;
}

.legal-box a {
  color: var(--primary);
  text-decoration: underline;
}

/* Footer */
footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 36px 20px;
  text-align: center;
  font-size: 0.92rem;
}

footer a {
  color: #cbd5e1;
  text-decoration: underline;
  margin: 0 8px;
}

footer a:hover {
  color: var(--white);
}
@media (max-width: 900px) {
  .hero-grid, .grid-3, .promo-grid, .form-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

/* Danke */
.thank-you-box {
  text-align: center;
}

.thank-you-icon {
  margin: 0 auto 20px;
  width: 64px;
  height: 64px;
  font-size: 2rem;
}

.thank-you-lead {
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 32px;
}

.next-steps-box {
  text-align: left;
  background: var(--bg-light);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 32px;
}

.next-steps-box h2 {
  margin-top: 0;
}

.next-steps-box ul {
  margin-bottom: 0;
}

.thank-you-contact {
  font-size: 0.95rem;
  margin-bottom: 24px;
}
