/* ===== Energieteam Fehmarn — Design System ===== */
:root {
  --green-dark: #144602;
  --green: #2f7a10;
  --green-mid: #4a9c17;
  --green-bright: #62c616;
  --navy: #22367f;
  --navy-dark: #17245a;
  --text: #202520;
  --text-light: #4a5248;
  --bg: #ffffff;
  --bg-alt: #f5f8f2;
  --bg-navy: #f4f6fb;
  --border: #e2e8dc;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(20, 70, 2, 0.08);
  --shadow-lg: 0 12px 40px rgba(20, 70, 2, 0.14);
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--green); }

h1, h2, h3, h4 {
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--navy-dark);
  line-height: 1.25;
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { color: var(--text-light); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-tight { padding: 48px 0; }

.eyebrow {
  display: inline-block;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.lead {
  font-size: 1.15rem;
  max-width: 680px;
}

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green-bright), var(--green));
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #fff; }
.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light {
  background: #fff;
  color: var(--green-dark);
}
.btn-light:hover { background: var(--green-bright); color: #fff; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--navy-dark);
}
.brand img { height: 54px; width: auto; }
.brand-text { line-height: 1.2; }
.brand-text .name { font-family: "Georgia", serif; font-size: 1.15rem; }
.brand-text .tagline { font-size: 0.72rem; color: var(--text-light); font-weight: 400; }

nav.main-nav { display: flex; align-items: center; gap: 6px; }
nav.main-nav a {
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--green); background: var(--bg-alt); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .phone { font-weight: 700; color: var(--navy-dark); font-size: 0.95rem; white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--navy-dark);
}

@media (max-width: 900px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 12px 8px; border-bottom: 1px solid var(--border); }
  .header-cta .phone { display: none; }
  .nav-toggle { display: block; }
}

/* ---- Hero ---- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(98, 198, 22, 0.16), transparent 60%),
    linear-gradient(180deg, var(--bg-navy), #fff 65%);
  padding: 70px 0 60px;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-badge {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-dark);
  box-shadow: var(--shadow);
}
.hero-visual {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.hero-visual img { max-height: 320px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; padding: 24px; }
  .hero-visual img { max-height: 200px; }
}

/* ---- Cards / Grid ---- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-bright), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: #fff;
}
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.96rem; }

/* Service detail block */
.service-block {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}
.service-block:last-child { border-bottom: none; }
.service-block .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-bright), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
}
.service-block h3 { margin-bottom: 8px; }
.service-block p { margin-bottom: 0; }

/* ---- Stats / trust strip ---- */
.trust-strip {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  background: var(--navy-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px 40px;
}
.trust-strip .stat { text-align: center; flex: 1; min-width: 140px; }
.trust-strip .stat strong { display: block; font-size: 1.8rem; font-family: Georgia, serif; color: var(--green-bright); }
.trust-strip .stat span { font-size: 0.85rem; opacity: 0.85; }

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(120deg, var(--green-dark), var(--green) 60%, var(--green-mid));
  color: #fff;
  border-radius: var(--radius);
  padding: 50px;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); }

/* ---- Forms ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--navy-dark); }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(98, 198, 22, 0.15);
}
textarea { resize: vertical; min-height: 130px; }

.contact-info-card {
  background: var(--bg-navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
}
.contact-info-card .row {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.contact-info-card .row .label { font-weight: 700; color: var(--navy-dark); display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.contact-info-card .row a, .contact-info-card .row span.value { color: var(--text); }

/* ---- Footer ---- */
footer.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-grid h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.footer-grid a { color: rgba(255,255,255,0.75); display: block; margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--green-bright); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 44px; background: #fff; border-radius: 8px; padding: 4px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Breadcrumb / page header ---- */
.page-header {
  background: linear-gradient(180deg, var(--bg-navy), #fff);
  padding: 46px 0;
  border-bottom: 1px solid var(--border);
}

/* ---- List with checks ---- */
ul.check-list { list-style: none; padding: 0; margin: 20px 0; }
ul.check-list li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
  color: var(--text-light);
}
ul.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #fff;
  background: var(--green);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.tag {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--navy-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin: 3px 6px 3px 0;
}

.wp-banner {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  border-radius: var(--radius);
  color: #fff;
  padding: 44px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
  align-items: center;
}
.wp-banner h2, .wp-banner p { color: #fff; }
.wp-banner p { color: rgba(255,255,255,0.85); }
@media (max-width: 800px) { .wp-banner { grid-template-columns: 1fr; } }

.anchor-offset { scroll-margin-top: 90px; }

/* ---- Siegel: Energieeffizienz-Experte ---- */
.header-seal { height: 40px; width: auto; flex-shrink: 0; }
@media (max-width: 1100px) { .header-seal { display: none; } }

.footer-seal-box {
  background: #fff;
  border-radius: 10px;
  padding: 14px 18px;
  display: inline-block;
  margin-bottom: 18px;
}
.footer-seal-box img { height: 46px; width: auto; }

.seal-trust-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 34px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.seal-trust-card img { height: 56px; width: auto; flex-shrink: 0; }
.seal-trust-card p { margin: 0; font-size: 0.95rem; }
.seal-trust-card strong { color: var(--navy-dark); }
