/* ═══════════════════════════════════════════════
   KAYSSER ENERGIEKONZEPTE – Shared Stylesheet
   ═══════════════════════════════════════════════ */

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

:root {
  --forest:   #2C4A35;
  --sage:     #5C7A62;
  --cream:    #F5F0E8;
  --warm:     #EDE6D6;
  --sand:     #C8B89A;
  --charcoal: #1E2420;
  --text:     #2E3830;
  --muted:    #4a5a4e;
  --light:    #FFFFFF;
  --accent:   #3D6147;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); color: var(--cream); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); color: var(--charcoal); font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.1rem; color: var(--charcoal); font-weight: 600; margin-bottom: 0.6rem; }
p  { line-height: 1.75; }

.nav-logo-img {
  display: flex; align-items: center; text-decoration: none; flex-shrink: 0;
}
.nav-logo-image {
  height: 44px; width: auto; object-fit: contain;
  /* Logo hat crème-farbenen Hintergrund – auf dunkler Nav transparent machen */
  mix-blend-mode: lighten;
  filter: brightness(1.1);
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 4rem;
  background: rgba(30,36,32,0.97);
  backdrop-filter: blur(10px);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--cream); letter-spacing: 0.02em;
  text-decoration: none;
}
.nav-logo span { color: var(--sand); }
.nav-links { display: flex; gap: 1.8rem; list-style: none; align-items: center; }
.nav-links a {
  color: rgba(245,240,232,0.78); text-decoration: none;
  font-size: 0.85rem; font-weight: 400; letter-spacing: 0.04em;
  transition: color 0.2s; position: relative;
}
.nav-links a:hover { color: var(--cream); }
.nav-links a.active { color: var(--sand); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.7rem; opacity: 0.6; }
.dropdown-menu {
  position: absolute; top: calc(100% + 1rem); left: 0;
  background: var(--charcoal); min-width: 220px;
  border-top: 2px solid var(--sand);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all 0.2s; z-index: 300; list-style: none;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a {
  display: block; padding: 0.75rem 1.2rem;
  font-size: 0.82rem; color: rgba(245,240,232,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dropdown-menu li a:hover { background: rgba(255,255,255,0.05); color: var(--cream); }

.nav-cta {
  background: var(--sand); color: var(--charcoal);
  border: none; padding: 0.45rem 1rem;
  font-family: 'DM Sans', sans-serif; font-size: 0.8rem; font-weight: 500;
  cursor: pointer; letter-spacing: 0.04em; text-decoration: none;
  transition: background 0.2s, transform 0.15s; display: inline-block;
}
.nav-cta:hover { background: #d4c4a6; transform: translateY(-1px); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 22px; height: 1.5px; background: var(--cream); display: block; transition: all 0.3s; }

/* ── FOOTER LOGOS BAR ── */
.footer-logos-bar {
  background: var(--charcoal);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 2rem 4rem;
}
.footer-logos-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 3rem; flex-wrap: wrap;
}
.footer-logos-group {
  display: flex; flex-direction: column; gap: 0.8rem;
}
.footer-logos-label {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sand); font-weight: 500; font-family: 'DM Sans', sans-serif;
}
.footer-logos-row {
  display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap;
}
.footer-logos-divider {
  width: 1px; height: 60px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.footer-logo-link {
  display: inline-flex; align-items: center;
  opacity: 0.75; transition: opacity 0.2s;
}
.footer-logo-link:hover { opacity: 1; }
.footer-logo-link img {
  height: 60px; width: auto;
  object-fit: contain;
  background: rgba(255,255,255,0.95);
  padding: 8px 14px;
  border-radius: 3px;
}
.footer-logo-gih img {
  height: 60px;
  background: rgba(255,255,255,0.95);
  padding: 8px 14px;
  border-radius: 3px;
  mix-blend-mode: normal;
}

/* ── FOOTER ── */
footer {
  background: var(--charcoal);
  padding: 3rem 4rem 2rem;
}
.footer-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2.5fr 1fr 1fr; gap: 3rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-region-bar {
  max-width: 1100px; margin: 1.2rem auto 0;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .nav-logo { display: block; margin-bottom: 0.8rem; font-size: 1rem; }
.footer-brand p { font-size: 0.82rem; color: rgba(245,240,232,0.4); line-height: 1.65; max-width: 26ch; }
.footer-cert {
  display: flex; flex-direction: column; gap: 0.4rem; margin-top: 1rem;
}
.footer-cert span {
  font-size: 0.72rem; color: rgba(245,240,232,0.45);
  border: 1px solid rgba(200,184,154,0.2);
  padding: 0.3rem 0.7rem; display: inline-block; width: fit-content;
}
.footer-col h4 {
  font-family: 'DM Sans', sans-serif; font-size: 0.72rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--sand); font-weight: 500; margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  font-size: 0.83rem; color: rgba(245,240,232,0.45);
  text-decoration: none; transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--cream); }
.footer-region { font-size: 0.75rem; color: rgba(245,240,232,0.3); line-height: 1.7; }
.footer-bottom {
  max-width: 1100px; margin: 1.5rem auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: rgba(245,240,232,0.25); flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom a { color: rgba(245,240,232,0.3); text-decoration: none; }
.footer-bottom a:hover { color: var(--cream); }

/* ── LAYOUT HELPERS ── */
section { padding: 5.5rem 4rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-tag {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sage); font-weight: 500; margin-bottom: 0.7rem; display: block;
}
.section-tag.light { color: var(--sand); }
.lead {
  font-size: 1.03rem; color: var(--muted); font-weight: 300;
  max-width: 60ch; line-height: 1.78; margin-bottom: 3rem;
}
.lead.light { color: rgba(245,240,232,0.65); }

/* ── PAGE HERO (subpages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--charcoal) 0%, #2a3d2e 50%, var(--forest) 100%);
  padding: 9rem 4rem 5rem;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 80% 30%, rgba(92,122,98,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero .lead { color: rgba(245,240,232,0.7); margin-bottom: 0; }
.breadcrumb {
  font-size: 0.78rem; color: rgba(245,240,232,0.4);
  margin-bottom: 1.5rem; letter-spacing: 0.05em;
}
.breadcrumb a { color: var(--sand); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--sand); color: var(--charcoal);
  padding: 0.85rem 2rem; border: none;
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 500;
  cursor: pointer; letter-spacing: 0.04em; text-decoration: none; display: inline-block;
  transition: all 0.2s;
}
.btn-primary:hover { background: #d4c4a6; transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--forest);
  padding: 0.85rem 2rem;
  border: 1.5px solid var(--forest);
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 400;
  cursor: pointer; letter-spacing: 0.04em; text-decoration: none; display: inline-block;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--forest); color: var(--cream); }
.btn-outline.light {
  color: var(--cream); border-color: rgba(245,240,232,0.4);
}
.btn-outline.light:hover { background: rgba(255,255,255,0.08); border-color: var(--cream); }

/* ── CARDS ── */
.card {
  background: var(--cream); padding: 2.2rem 1.8rem;
  border-top: 3px solid transparent; transition: border-color 0.25s, transform 0.2s;
}
.card:hover { border-color: var(--forest); transform: translateY(-3px); }

.icon-circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--forest); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.icon-circle svg { width: 20px; height: 20px; stroke: var(--cream); fill: none; stroke-width: 1.8; }
.icon-circle.light-bg { background: rgba(92,122,98,0.12); }
.icon-circle.light-bg svg { stroke: var(--forest); }

/* ── FAQ component ── */
.faq-list { margin-top: 0.5rem; }
.faq-item { border-top: 1px solid rgba(44,74,53,0.15); }
.faq-item:last-child { border-bottom: 1px solid rgba(44,74,53,0.15); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.3rem 0; cursor: pointer;
  font-size: 0.97rem; font-weight: 500; color: var(--charcoal);
  gap: 1rem; background: none; border: none; width: 100%; text-align: left;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--forest); }
.faq-icon {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--sage); display: flex; align-items: center; justify-content: center;
  color: var(--sage); font-size: 1.1rem; line-height: 1;
  transition: transform 0.3s, background 0.2s, border-color 0.2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--forest); border-color: var(--forest); color: var(--cream); }
.faq-a {
  font-size: 0.9rem; color: var(--muted); line-height: 1.75; font-weight: 300;
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s;
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 1.3rem; }

/* ── FORM ── */
.form-row { margin-bottom: 1.1rem; }
.form-row label {
  display: block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(245,240,232,0.5); margin-bottom: 0.4rem;
}
.form-row label.dark { color: var(--muted); }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%; padding: 0.75rem 1rem;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
  outline: none; transition: border-color 0.2s;
  appearance: none;
}
.form-dark input, .form-dark select, .form-dark textarea {
  background: rgba(245,240,232,0.07);
  border: 1px solid rgba(200,184,154,0.2);
  color: var(--cream);
}
.form-dark input:focus, .form-dark select:focus, .form-dark textarea:focus { border-color: var(--sand); }
.form-dark select option { background: var(--charcoal); color: var(--cream); }
.form-light input, .form-light select, .form-light textarea {
  background: var(--cream); border: 1px solid rgba(44,74,53,0.2); color: var(--text);
}
.form-light input:focus, .form-light select:focus, .form-light textarea:focus { border-color: var(--forest); }
.form-row textarea { resize: vertical; min-height: 100px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.form-full { grid-column: 1 / -1; }

/* ── CHECKBOX GROUP ── */
.checkbox-group { display: flex; flex-direction: column; gap: 0.4rem; }
.checkbox-group label {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.88rem; color: rgba(245,240,232,0.7); cursor: pointer;
  letter-spacing: 0; text-transform: none; font-weight: 400;
}
.checkbox-group input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--sand); }
.checkbox-group.light label { color: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  nav { padding: 1rem 1.5rem; }
  .footer-logos-bar { padding: 1.8rem 1.5rem; }
  .footer-logos-divider { display: none; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; top: 56px; left: 0; right: 0; bottom: 0;
    background: var(--charcoal); padding: 1.5rem;
    z-index: 999; overflow-y: auto;
  }
  .nav-links.open > li { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-links.open > li > a {
    font-size: 1rem; padding: 0.9rem 0; display: block;
    color: var(--cream); width: 100%;
  }
  .nav-links.open .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: rgba(255,255,255,0.04); margin: 0; border-top: none;
    display: flex; flex-direction: column;
  }
  .nav-links.open .dropdown-menu li a {
    font-size: 0.9rem; padding: 0.65rem 1rem; color: rgba(245,240,232,0.7);
  }
  /* Nav CTA kleiner */
  .nav-cta { font-size: 0.72rem; padding: 0.45rem 0.9rem; letter-spacing: 0.03em; }
  .hamburger { display: flex !important; z-index: 1001; position: relative; }
  section { padding: 4rem 1.5rem; }
  .page-hero { padding: 7rem 1.5rem 4rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Hero Landingpage – volle Breite mit Padding */
  .hero { padding: 0 1.2rem; }
  .hero-inner { padding: 6rem 0 4rem; }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .hero-sub { font-size: 0.95rem; max-width: 100%; }

  /* Allgemeine Textbreite */
  .container { padding: 0 0.2rem; }
  section { padding: 3rem 1.2rem; }
  .page-hero { padding: 6rem 1.2rem 3rem; }

  /* Leistungstabelle Architekten zentriert */
  .leistungs-table { font-size: 0.8rem; width: 100%; table-layout: fixed; }
  .leistungs-table th, .leistungs-table td { padding: 0.7rem 0.5rem; word-break: break-word; }

  /* Ablauf Energieausweis – untereinander */
  .two-col { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .zwei-col { grid-template-columns: 1fr !important; gap: 2rem !important; }

  /* Prozessschritte untereinander (Energieausweis Ablauf) */
  div[style*="grid-template-columns:repeat(4"] {
    display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 1rem !important;
  }

  /* PV Beratungsumfang zentriert */
  .pv-grid { grid-template-columns: 1fr 1fr !important; }

  /* Was ich übernehme – Eigentümer untereinander */
  div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Über mich Bild kleiner */
  .about-img-placeholder { max-width: 200px !important; }
  .about-intro { grid-template-columns: 1fr !important; }

  /* NWG Tab – volle Breite */
  .diff-table { font-size: 0.8rem; width: 100%; table-layout: fixed; }
  .diff-table th, .diff-table td { padding: 0.6rem 0.5rem; word-break: break-word; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  footer { padding: 2.5rem 1.5rem 1.5rem; }

  /* Alle Grids auf 1 Spalte */
  .why-grid, .services-grid, .fw-grid,
  .leistungen-grid, .heat-grid, .pv-grid,
  .qual-grid, .ehd-levels, .type-grid,
  .audience-grid, .collab-cards,
  .proc-grid, .scenario-grid,
  .deliverable-grid, .aw-grid,
  .foerder-grid, .related-grid { grid-template-columns: 1fr !important; }

  /* Hero Tags umbrechen erlauben auf sehr kleinen Screens */
  .hero-tags { flex-wrap: wrap !important; }

  /* PV Facts Row */
  .facts-row { grid-template-columns: 1fr 1fr !important; }

  /* Prozess 4er-Grid */
  .proc-grid { grid-template-columns: 1fr !important; }
  .proc-step { border-right: none !important; border-bottom: 1px solid rgba(44,74,53,0.1); }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
