/* ============================================================
   SOLAR-RUEGEN.DE – KOMPLETTES CSS (v6 + Mobile-Patch)
   Farbanpassung: #ff6a00 (Logo-Terrakotta)
   Stand: 2026-03-27
   ============================================================ */


/* ═══════ A) TOPBAR ═══════════════════════════════════════════ */

header > .wp-block-group:first-child {
  background: #ff6a00 !important;
  color: #fff !important;
  min-height: 0 !important;
  max-height: 30px !important;
  padding: 2px 20px !important;
  overflow: hidden !important;
  line-height: 1 !important;
  font-size: 13px !important;
  --wp--style--block-gap: 0px !important;
  gap: 0 !important;
  margin: 0 !important;
  border: none !important;
}

header > .wp-block-group:first-child * {
  --wp--style--block-gap: 0px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1 !important;
  max-width: 100% !important;
  min-height: 0 !important;
}

header > .wp-block-group:first-child .is-layout-flex {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 0 !important;
  flex-wrap: nowrap !important;
  padding: 0 !important;
  margin: 0 !important;
}

header > .wp-block-group:first-child a,
header > .wp-block-group:first-child a:hover,
header > .wp-block-group:first-child a:visited {
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: none !important;
  border: 0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  padding: 0 !important;
}

header > .wp-block-group:first-child a[href^="mailto:"] { margin-right: 32px !important; }
header > .wp-block-group:first-child a[href^="mailto:"]::before { content: "✉"; font-size: 12px; }
header > .wp-block-group:first-child a[href^="tel:"]::before { content: "☏"; font-size: 12px; }

header > .wp-block-group:first-child .wp-block-social-links {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0 !important;
  margin-left: auto !important;
}
header > .wp-block-group:first-child .wp-social-link { margin: 0 !important; padding: 0 !important; }
header > .wp-block-group:first-child .wp-social-link a { padding: 0 !important; min-width: 16px !important; min-height: 16px !important; }
header > .wp-block-group:first-child .wp-social-link svg { width: 14px !important; height: 14px !important; fill: currentColor !important; }

/* ── Instagram-Icon: Gradient-Hintergrund unterdrücken ──────── */
header > .wp-block-group:first-child .wp-social-link-instagram,
header > .wp-block-group:first-child .wp-social-link-instagram a {
  background: transparent !important;
  background-image: none !important;
  color: #fff !important;
}
header > .wp-block-group:first-child .wp-social-link-instagram svg {
  fill: #fff !important;
  color: #fff !important;
}


/* ═══════ A2) LÜCKE WEG ═══════════════════════════════════════ */

header,
header.wp-block-template-part {
  --wp--preset--spacing--30: 0px !important;
  --wp--style--block-gap: 0px !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

header > .wp-block-group:first-child {
  padding-top: 2px !important;
  padding-bottom: 2px !important;
}

.menu-header {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  margin-top: 0 !important;
}


/* ═══════ B) MENU-HEADER ══════════════════════════════════════ */

.menu-header {
  border-radius: 0 !important;
  padding: 0 !important;
  padding-left: 0 !important;
  margin: 0 !important;
  background: #fffaf6 !important;
  box-shadow: none !important;
  border-bottom: 2px solid #ff6a00 !important;
  z-index: 100 !important;
  position: relative !important;
  --wp--style--block-gap: 0px !important;
  overflow: visible !important;
}

.menu-header > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 100% !important;
}

.menu-header > .wp-block-columns,
.menu-header .wp-block-columns {
  padding: 0 24px 0 0 !important;
  margin: 0 !important;
  gap: 12px !important;
  align-items: center !important;
  min-height: 0 !important;
  --wp--style--block-gap: 12px !important;
}

.menu-header .wp-block-column {
  margin: 0 !important;
  padding: 0 !important;
}


/* ═══════ C) SITE-TITEL WEG ══════════════════════════════════ */

.menu-header .wp-block-site-title,
.menu-header h1.wp-block-site-title {
  display: none !important;
}


/* ═══════ D) LOGO ═════════════════════════════════════════════ */

.menu-header .logo-box {
  gap: 0 !important;
  align-items: center !important;
}

.menu-header .wp-block-site-logo {
  line-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  overflow: visible !important;
}

.menu-header .wp-block-site-logo a {
  display: flex !important;
  align-items: center !important;
  line-height: 0 !important;
  overflow: visible !important;
}

.menu-header .wp-block-site-logo img {
  width: auto !important;
  height: 110px !important;
  max-height: 110px !important;
  max-width: none !important;
  object-fit: contain !important;
  display: block !important;
  filter: saturate(1.6) brightness(1.28) hue-rotate(-2deg) !important;
}


/* ═══════ E) SPALTEN-BREITEN ══════════════════════════════════ */

.menu-header .wp-block-columns > .wp-block-column:first-child {
  flex: 0 0 auto !important;
  width: auto !important;
}

.menu-header .wp-block-column.header-navv {
  flex: 1 1 0% !important;
}

.menu-header .search-box-wrap {
  display: none !important;
}

.menu-header .wp-block-column.h-button-div {
  flex: 0 0 auto !important;
  width: auto !important;
}


/* ═══════ F) NAV-LINKS ════════════════════════════════════════ */

.menu-header .wp-block-navigation-item__content {
  font-weight: 600 !important;
  font-size: 15px !important;
  color: #2d1a00 !important;
  padding: 8px 14px !important;
  border-radius: 6px !important;
  transition: color 0.15s, background 0.15s !important;
}

.menu-header .wp-block-navigation-item__content:hover {
  color: #ff6a00 !important;
  background: rgba(255,106,0,0.08) !important;
}

.menu-header .current-menu-item > .wp-block-navigation-item__content {
  color: #ff6a00 !important;
}


/* ═══════ G) CTA-BUTTON ═══════════════════════════════════════ */

.menu-header .header-btn .wp-block-button__link {
  background: #ff6a00 !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 11px 26px !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s !important;
}

.menu-header .header-btn .wp-block-button__link:hover {
  background: #e05500 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(255,106,0,0.3) !important;
  color: #fff !important;
}


/* ═══════ H) DROPDOWN ═════════════════════════════════════════ */

.menu-header .wp-block-navigation__submenu-container {
  background: #fff !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.10) !important;
  padding: 6px !important;
  min-width: 220px !important;
  margin-top: 4px !important;
}

.menu-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #333 !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
}

.menu-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
  background: #fff3ec !important;
  color: #ff6a00 !important;
}


/* ═══════ I) RESPONSIVE HEADER ════════════════════════════════ */

@media (max-width: 1024px) {
  header > .wp-block-group:first-child { padding: 2px 14px !important; }
  header > .wp-block-group:first-child a[href^="mailto:"] { margin-right: 18px !important; }
  .menu-header .wp-block-site-logo img { height: 90px !important; max-height: 90px !important; }
  .menu-header .wp-block-columns { padding: 0 16px 0 0 !important; }
}

/* ── MOBILE HEADER: Kern-Fix ──────────────────────────────── */
@media (max-width: 768px) {

  /* Topbar: nur Telefon, zentriert, E-Mail weg */
  header > .wp-block-group:first-child {
    padding: 2px 10px !important;
    max-height: 28px !important;
  }
  header > .wp-block-group:first-child .is-layout-flex {
    justify-content: center !important;
    flex-wrap: nowrap !important;
  }
  header > .wp-block-group:first-child a[href^="mailto:"] {
    display: none !important;
  }
  header > .wp-block-group:first-child .wp-block-social-links {
    display: none !important;
  }

  /* Menu-Header: kein Gap, kein Margin */
  .menu-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
    overflow: visible !important;
  }

  /* Columns: IMMER horizontal, nie stacked */
  .menu-header > .wp-block-columns,
  .menu-header .wp-block-columns {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 14px !important;
    min-height: 76px !important;
    gap: 0 !important;
    width: 100% !important;
    overflow: visible !important;
  }

  /* WordPress erzwingt auf Mobile oft is-not-stacked-on-mobile  */
  .menu-header .wp-block-columns.is-layout-flex {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }

  /* Logo-Spalte: nimmt nur so viel Platz wie nötig */
  .menu-header .wp-block-columns > .wp-block-column:first-child {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  /* Logo: kompakt, vollständig sichtbar – 76px statt 56px */
  .menu-header .wp-block-site-logo,
  .menu-header .wp-block-site-logo a {
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
  }
  .menu-header .wp-block-site-logo img {
    height: 76px !important;
    max-height: 76px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain !important;
    display: block !important;
  }

  /* Nav-Spalte: füllt Rest, Burger rechts */
  .menu-header .wp-block-column.header-navv {
    flex: 1 1 auto !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    min-width: 0 !important;
  }

  /* CTA-Button "Angebot anfragen" im Header:
     versteckt — floatet sonst solitär zwischen Burger und Hero */
  .menu-header .wp-block-column.h-button-div,
  .menu-header .h-button-div {
    display: none !important;
  }

  /* Burger-Icon-Farbe */
  .wp-block-navigation__responsive-container-open svg {
    color: #ff6a00 !important;
    stroke: #ff6a00 !important;
  }

  /* Burger-Button: größeres Touch-Target */
  .wp-block-navigation__responsive-container-open {
    min-width: 44px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px !important;
  }

  /* Offenes Hamburger-Menü */
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    font-size: 17px !important;
    padding: 12px 14px !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
  }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
  }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:last-child {
    border-bottom: none !important;
  }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
    padding-left: 12px !important;
    box-shadow: none !important;
    border: none !important;
    border-left: 3px solid #ff6a00 !important;
    border-radius: 0 !important;
    margin: 2px 0 2px 8px !important;
  }
  .wp-block-navigation__responsive-container-content {
    background: #fffaf6 !important;
  }

  /* Header-Btn im offenen Menü wieder zeigen */
  .wp-block-navigation__responsive-container.is-menu-open .h-button-div,
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-column.h-button-div {
    display: flex !important;
    padding: 12px 20px !important;
  }

  /* Topbar: Telefonnummer Touch-freundlich */
  header > .wp-block-group:first-child a[href^="tel:"] {
    font-size: 14px !important;
    padding: 6px 12px !important;
    min-height: 32px !important;
  }
}


/* ═══════ I2) HERO – keine Wortbrüche ════════════════════════ */

.wp-block-cover h1,
.wp-block-cover h2,
.wp-block-cover h3,
.wp-block-cover .wp-block-heading,
.wp-block-cover__inner-container h1,
.wp-block-cover__inner-container h2,
.wp-block-cover__inner-container h3,
.wp-block-cover__inner-container p {
  hyphens: none !important;
  -webkit-hyphens: none !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

@media (max-width: 600px) {
  .wp-block-cover h1,
  .wp-block-cover__inner-container h1,
  .wp-block-cover .wp-block-heading {
    font-size: clamp(28px, 8vw, 44px) !important;
    line-height: 1.18 !important;
  }
  .wp-block-cover p,
  .wp-block-cover__inner-container p {
    font-size: 16px !important;
  }
  /* Hero-Buttons zentriert */
  .wp-block-cover__inner-container .wp-block-buttons {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
  .wp-block-cover__inner-container .wp-block-button__link {
    white-space: normal !important;
    text-align: center !important;
  }
}


/* ═══════ J) SEITEN-SECTIONS ══════════════════════════════════ */

.pv-checklist { margin-top: 22px; display: flex; flex-direction: column; gap: 18px; padding: 0; }
.pv-check-item { display: flex; align-items: center; gap: 14px; font-size: 18px; font-weight: 700; color: #1f2937; margin: 0; }
.pv-check-icon { color: #ff6a00; flex: 0 0 auto; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; }
.pv-check-icon svg { display: block; width: 22px; height: 22px; }
.pv-check-icon svg circle, .pv-check-icon svg path { stroke: currentColor; }

.solar-steps-section { padding: 80px 20px; background: #fff; }
.solar-steps-header { text-align: center; margin: 70px auto 48px; max-width: 860px; }
.solar-steps-header h2 { font-size: 42px; line-height: 1.15; font-weight: 900; color: #0f172a; margin: 0 0 10px; hyphens: none; }
.solar-steps-header p { font-size: 18px; line-height: 1.6; color: #64748b; margin: 0; hyphens: none; }
.solar-steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 40px; max-width: 1200px; margin: 0 auto; align-items: stretch; }
.solar-step-card { position: relative; background: #fff; border: 1px solid rgba(15,23,42,0.10); border-radius: 18px; padding: 42px 30px 30px; min-height: 270px; box-shadow: 0 12px 30px rgba(15,23,42,0.08); display: flex; flex-direction: column; }
.solar-step-number { position: absolute; top: 18px; right: 18px; font-size: 64px; font-weight: 900; line-height: 1; color: rgba(15,23,42,0.08); user-select: none; }
.solar-step-card h3 { font-size: 22px; font-weight: 900; color: #0f172a; margin: 0 0 14px; max-width: 85%; hyphens: none; }
.solar-step-card p { font-size: 16px; line-height: 1.75; color: #475569; margin: 0; }
@media (max-width: 1100px) { .solar-steps-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }

.nes-storage-benefits, .nes-storage-benefits * { box-sizing: border-box; }
.nes-storage-benefits { padding: clamp(48px,6vw,88px) 0; background: #fff; }
.nes-storage-benefits .nes-container { width: min(1140px, calc(100% - 48px)); margin-inline: auto; }
.nes-storage-benefits .nes-heading { text-align: center; }
.nes-storage-benefits .nes-heading h2 { margin: 0 0 10px; font-size: clamp(28px,3.2vw,44px); font-weight: 800; letter-spacing: -0.02em; color: #0b1220; line-height: 1.15; hyphens: none; }
.nes-storage-benefits .nes-heading p { margin: 0 auto; max-width: 720px; color: #5b667a; font-size: 16px; line-height: 1.65; hyphens: none; }
.nes-storage-benefits .nes-grid { margin-top: clamp(26px,4vw,44px); display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
@media (max-width: 1024px) { .nes-storage-benefits .nes-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.nes-storage-benefits .nes-card { background: #f7fafc; border: 1px solid #edf2f7; border-radius: 18px; padding: 28px 24px; box-shadow: 0 10px 30px rgba(15,23,42,0.06); display: flex; flex-direction: column; min-height: 220px; }
.nes-storage-benefits .nes-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #fff; border: 1px solid #eef2f7; color: #ff6a00; }
.nes-storage-benefits .nes-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nes-storage-benefits .nes-card h3 { margin: 16px 0 10px; font-size: 18px; font-weight: 800; color: #0b1220; line-height: 1.25; hyphens: none; }
.nes-storage-benefits .nes-card p { margin: 0; color: #5b667a; font-size: 14.5px; line-height: 1.75; }

/* Über Uns */
.nes-ueber-uns * { box-sizing: border-box; margin: 0; padding: 0; }
.nes-ueber-uns { font-family: Lato, sans-serif; color: #21304a; }
.nes-story-section { background: #f5f5f5; padding: 70px 24px; }
.nes-story-container { max-width: 760px; margin: 0 auto; }
.nes-story-badge { display: inline-flex; align-items: center; gap: 10px; background: #f3e8dd; color: #ff6a00; font-size: 15px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 999px; padding: 10px 18px; margin-bottom: 28px; }
.nes-story-title { font-size: clamp(36px,5vw,52px); line-height: 1.08; font-weight: 800; color: #0b1f4d; margin: 0 0 30px 0; letter-spacing: -0.02em; hyphens: none; word-break: normal; }
.nes-story-text p { font-size: 19px; line-height: 1.7; color: #21304a; margin: 0 0 28px 0; hyphens: none; }
.nes-story-highlight { margin-top: 18px; font-size: 20px; line-height: 1.55; font-weight: 800; color: #0b1f4d; hyphens: none; }
.nes-values-section { background: #fff; padding: 70px 24px; }
.nes-section-header { text-align: center; margin-bottom: 50px; }
.nes-section-label { display: inline-block; color: #ff6a00; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.nes-section-title { font-size: clamp(28px,4vw,42px); font-weight: 800; color: #0b1f4d; line-height: 1.15; hyphens: none; }
.nes-container { max-width: 1100px; margin: 0 auto; }
.nes-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.nes-card { background: #f7fafc; border: 1px solid #edf2f7; border-radius: 18px; padding: 30px 26px; box-shadow: 0 10px 30px rgba(15,23,42,0.06); display: flex; flex-direction: column; }
.nes-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: #fff; border: 1px solid #eef2f7; color: #ff6a00; margin-bottom: 18px; flex-shrink: 0; }
.nes-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nes-card h3 { font-size: 18px; font-weight: 800; color: #0b1220; line-height: 1.25; margin: 0 0 10px; hyphens: none; word-break: normal; }
.nes-card p { margin: 0; color: #5b667a; font-size: 15px; line-height: 1.75; }
.nes-timeline-section { background: #f5f5f5; padding: 70px 24px; }
.nes-timeline { max-width: 720px; margin: 0 auto; position: relative; padding-left: 36px; }
.nes-timeline::before { content: ''; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(to bottom, #ff6a00, #ffd0a8); }
.nes-timeline-item { position: relative; margin-bottom: 42px; }
.nes-timeline-item:last-child { margin-bottom: 0; }
.nes-timeline-dot { position: absolute; left: -36px; top: 5px; width: 22px; height: 22px; border-radius: 50%; background: #ff6a00; border: 3px solid #f5f5f5; box-shadow: 0 0 0 2px #ff6a00; }
.nes-timeline-year { font-size: 13px; font-weight: 700; color: #ff6a00; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 5px; }
.nes-timeline-title { font-size: 20px; font-weight: 800; color: #0b1f4d; margin-bottom: 8px; hyphens: none; }
.nes-timeline-desc { font-size: 16px; color: #5b667a; line-height: 1.7; hyphens: none; }
.nes-trust-section { background: #fff; padding: 70px 24px; }
.nes-trust-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; max-width: 860px; margin: 0 auto; text-align: center; }
.nes-trust-number { font-size: 54px; font-weight: 900; color: #ff6a00; line-height: 1; margin-bottom: 10px; }
.nes-trust-label { font-size: 17px; font-weight: 700; color: #0b1f4d; margin-bottom: 7px; hyphens: none; word-break: normal; }
.nes-trust-desc { font-size: 14px; color: #5b667a; line-height: 1.65; hyphens: none; }
.nes-cta-section { background: linear-gradient(135deg, #ff6a00 0%, #e05500 100%); padding: 72px 24px; text-align: center; color: #fff; }
.nes-cta-section h2 { font-size: clamp(26px,4vw,40px); font-weight: 800; margin-bottom: 16px; line-height: 1.2; hyphens: none; }
.nes-cta-section p { font-size: 19px; opacity: 0.92; margin-bottom: 36px; max-width: 540px; margin-left: auto; margin-right: auto; hyphens: none; }
.nes-btn-white { display: inline-block; background: #fff; color: #ff6a00 !important; font-weight: 700; font-size: 17px; padding: 16px 38px; border-radius: 5px; text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.nes-btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.nes-btn-orange { display: inline-block; background: #ff6a00; color: #fff !important; font-weight: 700; font-size: 16px; padding: 15px 34px; border-radius: 5px; text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.nes-btn-orange:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,106,0,0.4); }
.nes-btn-outline-white { display: inline-block; background: transparent; color: #fff !important; font-weight: 700; font-size: 16px; padding: 15px 34px; border-radius: 5px; border: 2px solid rgba(255,255,255,0.6); text-decoration: none !important; transition: border-color .15s, background .15s; }
.nes-btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* E-Mobilität */
.nes-emob-hero { background: linear-gradient(135deg, #0b1f4d 0%, #1a3a6e 60%, #1e4d8c 100%); padding: 80px 24px 70px; text-align: center; color: #fff; }
.nes-emob-hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,106,0,0.18); color: #e08050; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 999px; padding: 8px 18px; margin-bottom: 24px; border: 1px solid rgba(255,106,0,0.3); }
.nes-emob-hero h1 { font-size: clamp(32px,5vw,56px); font-weight: 800; line-height: 1.1; margin-bottom: 20px; hyphens: none; word-break: normal; }
.nes-emob-hero p { font-size: 19px; opacity: 0.88; max-width: 620px; margin: 0 auto 36px; hyphens: none; }
.nes-emob-hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.nes-emob-intro { background: #f5f5f5; padding: 70px 24px; }
.nes-emob-intro-inner { max-width: 820px; margin: 0 auto; }
.nes-emob-intro-inner p { font-size: 19px; line-height: 1.75; color: #21304a; margin-bottom: 22px; hyphens: none; }
.nes-emob-intro-inner p:last-child { margin-bottom: 0; }
.nes-emob-leistungen { background: #fff; padding: 70px 24px; }
.nes-emob-steps { background: #f5f5f5; padding: 70px 24px; }
.nes-emob-steps-list { max-width: 720px; margin: 0 auto; counter-reset: steps; }
.nes-emob-step { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 36px; counter-increment: steps; }
.nes-emob-step:last-child { margin-bottom: 0; }
.nes-emob-step-num { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: #ff6a00; color: #fff; font-size: 20px; font-weight: 900; display: grid; place-items: center; line-height: 1; }
.nes-emob-step-body h3 { font-size: 19px; font-weight: 800; color: #0b1f4d; margin-bottom: 6px; hyphens: none; }
.nes-emob-step-body p { font-size: 15px; color: #5b667a; line-height: 1.7; margin: 0; }
.nes-emob-pv { background: #fff; padding: 70px 24px; }
.nes-emob-pv-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.nes-emob-pv-text h2 { font-size: clamp(26px,3.5vw,38px); font-weight: 800; color: #0b1f4d; margin-bottom: 18px; line-height: 1.2; hyphens: none; }
.nes-emob-pv-text p { font-size: 17px; color: #21304a; line-height: 1.75; margin-bottom: 16px; hyphens: none; }
.nes-emob-pv-checklist { list-style: none; padding: 0; margin: 0 0 32px; }
.nes-emob-pv-checklist li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; color: #21304a; margin-bottom: 12px; line-height: 1.5; }
.nes-emob-pv-checklist li span.check { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: #fff3ec; border: 1.5px solid #ff6a00; display: grid; place-items: center; margin-top: 1px; }
.nes-emob-pv-checklist li span.check svg { width: 12px; height: 12px; stroke: #ff6a00; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.nes-emob-pv-image { border-radius: 20px; overflow: hidden; }
.nes-emob-pv-image img { width: 100%; height: 400px; object-fit: cover; display: block; border-radius: 20px; }
.nes-emob-faq { background: #f5f5f5; padding: 70px 24px; }
.nes-emob-faq-list { max-width: 760px; margin: 0 auto; }
.nes-emob-faq-item { background: #fff; border: 1px solid #edf2f7; border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.nes-emob-faq-item summary { padding: 20px 24px; font-size: 17px; font-weight: 700; color: #0b1f4d; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; hyphens: none; }
.nes-emob-faq-item summary::-webkit-details-marker { display: none; }
.nes-emob-faq-item summary::after { content: '+'; font-size: 22px; font-weight: 300; color: #ff6a00; flex-shrink: 0; transition: transform .2s; }
.nes-emob-faq-item[open] summary::after { transform: rotate(45deg); }
.nes-emob-faq-item .faq-body { padding: 0 24px 20px; font-size: 16px; color: #5b667a; line-height: 1.75; }
.nes-emob-cta { background: linear-gradient(135deg, #ff6a00 0%, #e05500 100%); padding: 72px 24px; text-align: center; color: #fff; }
.nes-emob-cta h2 { font-size: clamp(26px,4vw,40px); font-weight: 800; margin-bottom: 16px; line-height: 1.2; hyphens: none; }
.nes-emob-cta p { font-size: 19px; opacity: 0.92; margin-bottom: 36px; max-width: 540px; margin-left: auto; margin-right: auto; hyphens: none; }

/* Responsive Sections – Tablet */
@media (max-width: 1024px) { .nes-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 900px) { .nes-emob-pv-inner { grid-template-columns: 1fr; gap: 36px; } .nes-emob-pv-image { display: none; } }
@media (max-width: 768px) {
  .nes-story-section { padding: 48px 20px; }
  .nes-story-title { font-size: 36px; }
  .nes-story-text p { font-size: 17px; }
  .nes-story-highlight { font-size: 18px; }
  .nes-trust-number { font-size: 42px !important; }
  .nes-trust-label { font-size: 15px !important; }
}


/* ═══════ MOBILE SECTIONS (≤ 640px) ═══════════════════════════
   Zusammengeführt: v6-Regeln + Mobile-Patch
   ═════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {

  /* ── Globaler Overflow-Schutz ─────────────────────────────── */
  html, body {
    overflow-x: hidden !important;
  }
  .nes-page,
  .entry-content,
  .wp-block-group,
  .wp-block-columns {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* ── Solar-Steps ──────────────────────────────────────────── */
  .solar-steps-section { padding: 48px 16px !important; }
  .solar-steps-header { margin: 32px auto 24px !important; }
  .solar-steps-header h2 { font-size: 26px !important; }
  .solar-steps-header p { font-size: 15px !important; }
  .solar-steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .solar-step-card {
    padding: 22px 18px 18px !important;
    min-height: 0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
  }
  .solar-step-card h3 { font-size: 18px !important; max-width: 78% !important; }
  .solar-step-card p { font-size: 15px !important; line-height: 1.65 !important; }
  .solar-step-number { font-size: 48px !important; top: 14px !important; right: 14px !important; }

  /* ── Grids → 1 Spalte ─────────────────────────────────────── */
  .nes-grid { grid-template-columns: 1fr; gap: 16px; }
  .nes-trust-grid { grid-template-columns: 1fr; gap: 24px; }
  .nes-storage-benefits .nes-grid { grid-template-columns: 1fr; gap: 16px; }
  .nes-storage-benefits .nes-container { width: min(1140px, calc(100% - 32px)); }

  /* ── Cards ────────────────────────────────────────────────── */
  .nes-card,
  .nes-storage-benefits .nes-card {
    padding: 24px 20px !important;
    min-height: 0 !important;
    border-radius: 14px !important;
  }
  .nes-card h3,
  .nes-storage-benefits .nes-card h3 {
    font-size: 17px !important;
    margin-top: 14px !important;
  }
  .nes-card p,
  .nes-storage-benefits .nes-card p {
    font-size: 14px !important;
    line-height: 1.7 !important;
  }

  /* ── Section-Headers ──────────────────────────────────────── */
  .nes-section-title,
  .nes-storage-benefits .nes-heading h2 {
    font-size: 26px !important;
    line-height: 1.2 !important;
  }
  .nes-section-label { font-size: 13px !important; }

  /* ── Über Uns ──────────────────────────────────────────────── */
  .nes-story-section { padding: 44px 20px !important; }
  .nes-story-badge { font-size: 13px !important; padding: 8px 14px !important; margin-bottom: 20px !important; }
  .nes-story-title { font-size: 30px !important; margin-bottom: 22px !important; }
  .nes-story-text p { font-size: 16px !important; line-height: 1.7 !important; margin-bottom: 20px !important; }
  .nes-story-highlight { font-size: 17px !important; line-height: 1.55 !important; }
  .nes-timeline { padding-left: 30px !important; }
  .nes-timeline-dot { left: -30px !important; width: 18px !important; height: 18px !important; }
  .nes-timeline-title { font-size: 18px !important; }
  .nes-timeline-desc { font-size: 15px !important; }
  .nes-timeline-item { margin-bottom: 32px !important; }

  /* ── Trust-Zahlen ─────────────────────────────────────────── */
  .nes-trust-number { font-size: 44px !important; margin-bottom: 6px !important; }
  .nes-trust-label { font-size: 16px !important; margin-bottom: 4px !important; }
  .nes-trust-desc { font-size: 14px !important; max-width: 280px !important; margin: 0 auto !important; }

  /* ── Einheitliche Section-Paddings ─────────────────────────── */
  .nes-values-section,
  .nes-timeline-section,
  .nes-trust-section,
  .nes-emob-intro,
  .nes-emob-leistungen,
  .nes-emob-steps,
  .nes-emob-pv,
  .nes-emob-faq {
    padding: 48px 20px !important;
  }

  /* ── CTA-Sections ─────────────────────────────────────────── */
  .nes-cta-section,
  .nes-emob-cta { padding: 48px 20px !important; }
  .nes-cta-section h2,
  .nes-emob-cta h2 { font-size: 26px !important; margin-bottom: 12px !important; }
  .nes-cta-section p,
  .nes-emob-cta p { font-size: 16px !important; margin-bottom: 28px !important; }
  .nes-btn-white,
  .nes-btn-orange,
  .nes-btn-outline-white {
    display: block !important;
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto 12px !important;
    text-align: center !important;
    padding: 16px 24px !important;
    font-size: 16px !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
  }

  /* ── E-Mobilität Hero ─────────────────────────────────────── */
  .nes-emob-hero { padding: 48px 20px 44px !important; }
  .nes-emob-hero h1 { font-size: 30px !important; line-height: 1.15 !important; }
  .nes-emob-hero p { font-size: 16px !important; margin-bottom: 28px !important; }
  .nes-emob-hero-btns { flex-direction: column !important; align-items: center !important; gap: 10px !important; }
  .nes-emob-hero-badge { font-size: 12px !important; padding: 6px 14px !important; }
  .nes-emob-step { gap: 16px !important; margin-bottom: 28px !important; }
  .nes-emob-step-num { width: 40px !important; height: 40px !important; font-size: 17px !important; flex-shrink: 0 !important; }
  .nes-emob-step-body h3 { font-size: 17px !important; }
  .nes-emob-step-body p { font-size: 14px !important; }

  /* ── FAQ-Akkordeons ───────────────────────────────────────── */
  .nes-emob-faq-item summary { padding: 18px 20px !important; font-size: 16px !important; min-height: 48px !important; }
  .nes-emob-faq-item summary::after { font-size: 24px !important; width: 32px !important; height: 32px !important; display: grid !important; place-items: center !important; }
  .nes-emob-faq-item .faq-body { padding: 0 20px 18px !important; font-size: 15px !important; }

  /* ── PV-Checklist ─────────────────────────────────────────── */
  .pv-checklist { gap: 14px !important; }
  .pv-check-item { font-size: 16px !important; gap: 12px !important; }
  .pv-check-icon { width: 24px !important; height: 24px !important; }
  .pv-check-icon svg { width: 18px !important; height: 18px !important; }

  /* ── Partner-Strip ────────────────────────────────────────── */
  .nes-partner-strip { padding: 32px 16px !important; }
  .nes-partner-label { font-size: 11px !important; margin-bottom: 20px !important; }
  .nes-partner-row { gap: 10px !important; justify-content: center !important; }
  .nes-partner-card {
    flex: 1 1 calc(50% - 10px) !important;
    max-width: calc(50% - 5px) !important;
    height: 80px !important;
    padding: 0 16px !important;
    border-radius: 10px !important;
  }
  .nes-partner-card img { height: 50px !important; max-width: 110px !important; }
  .nes-partner-card--e3dc img { height: 65px !important; }

  /* ── Footer ───────────────────────────────────────────────── */
  .nes-footer { padding: 36px 20px 0 !important; }
  .nes-footer-grid { gap: 32px !important; }
  .nes-footer-col-title { font-size: 16px !important; margin-bottom: 14px !important; }
  .nes-footer-addr { font-size: 14px !important; line-height: 1.5 !important; }
  .nes-footer-link { margin: 0 !important; }
  .nes-footer-link a,
  .nes-footer-social a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 44px !important;
    font-size: 15px !important;
    padding: 4px 0 !important;
  }
  .nes-footer-nav-title { font-size: 12px !important; margin-bottom: 10px !important; }
  .nes-footer-nav-link { margin: 0 !important; }
  .nes-footer-nav-link a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 44px !important;
    font-size: 15px !important;
    padding: 4px 0 !important;
  }
  .nes-footer-badge { margin-top: 16px !important; font-size: 11px !important; padding: 8px 12px !important; }
  .nes-footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 16px 0 24px !important;
    margin-top: 28px !important;
  }
  .nes-footer-copy { font-size: 12px !important; }
  .nes-footer-legal { font-size: 13px !important; line-height: 1.8 !important; word-spacing: 2px !important; }
  .nes-footer-legal a { display: inline-block !important; min-height: 36px !important; line-height: 36px !important; }
}


/* ═══════ VERY SMALL SCREENS (< 380px) ════════════════════════
   iPhone SE, Galaxy S Mini etc.
   ═════════════════════════════════════════════════════════════ */

@media (max-width: 380px) {
  /* Topbar kompakter */
  header > .wp-block-group:first-child { max-height: 26px !important; font-size: 12px !important; }

  /* Logo etwas kleiner */
  .menu-header .wp-block-site-logo img { height: 64px !important; max-height: 64px !important; }

  /* Headings */
  .solar-steps-header h2,
  .nes-section-title,
  .nes-storage-benefits .nes-heading h2 { font-size: 23px !important; }
  .nes-story-title { font-size: 26px !important; }
  .nes-emob-hero h1 { font-size: 26px !important; }
  .nes-cta-section h2,
  .nes-emob-cta h2 { font-size: 23px !important; }

  /* Trust-Zahlen */
  .nes-trust-number { font-size: 38px !important; }

  /* Seitenränder reduzieren */
  .nes-story-section,
  .nes-values-section,
  .nes-timeline-section,
  .nes-trust-section,
  .nes-cta-section,
  .nes-emob-hero,
  .nes-emob-intro,
  .nes-emob-leistungen,
  .nes-emob-steps,
  .nes-emob-pv,
  .nes-emob-faq,
  .nes-emob-cta,
  .nes-storage-benefits,
  .solar-steps-section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Partner-Karten: untereinander */
  .nes-partner-card {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    height: 72px !important;
  }
}


/* ═══════ K) THEME-FOOTER AUSBLENDEN ═════════════════════════ */

body > footer:not(:has([style*="1c1917"])),
.wp-block-template-part footer:not(:has([style*="1c1917"])) {
  display: none !important;
}

@keyframes nes-slide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
#nes-partner-track:hover { animation-play-state: paused; }


/* ═══════ L) COOKIE-BANNER ═══════════════════════════════════ */

body.has-cookie-banner { padding-bottom: 120px !important; }


/* ═══════════════════════════════════════════════════════════════
   HERO-SLIDER – Mobile Zoom-Fix
   Problem: Cover-Blöcke haben auf Mobile zu große min-height
            → Bild wird zu stark gezoomt (object-fit:cover)
   Fix: Höhe reduzieren + object-position anpassen
   ═══════════════════════════════════════════════════════════════ */

/* ── Alle Hero-Cover-Blöcke auf der Startseite ── */

/* Tablet */
@media (max-width: 1024px) {
  .wp-block-cover {
    min-height: 420px !important;
  }
  .wp-block-cover .wp-block-cover__image-background,
  .wp-block-cover video.wp-block-cover__video-background {
    object-position: center center !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .wp-block-cover {
    min-height: 300px !important;
  }
  .wp-block-cover .wp-block-cover__image-background,
  .wp-block-cover video.wp-block-cover__video-background {
    object-fit: cover !important;
    object-position: center 25% !important;
  }
  /* Innerer Container: etwas kompakter */
  .wp-block-cover__inner-container {
    padding: 32px 20px !important;
  }
}

/* Klein-Mobile */
@media (max-width: 480px) {
  .wp-block-cover {
    min-height: 240px !important;
  }
  .wp-block-cover .wp-block-cover__image-background {
    object-position: center 20% !important;
  }
  .wp-block-cover__inner-container {
    padding: 24px 16px !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   HERO-SLIDER – Mobile Bilder-Swap (800×600)
   Klassen hero-slide-1/2/3 müssen im Editor unter
   "Erweitert → Zusätzliche CSS-Klasse(n)" am Cover-Block stehen
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Desktop-Bild ausblenden */
  .hero-slide-1 .wp-block-cover__image-background,
  .hero-slide-2 .wp-block-cover__image-background,
  .hero-slide-3 .wp-block-cover__image-background {
    display: none !important;
  }

  /* Mobile-Bild als Background */
  .hero-slide-1 {
    background: url('https://solar-ruegen.de/wp-content/uploads/2026/03/hero-slide-01-mobile.jpg') center/cover no-repeat !important;
  }
  .hero-slide-2 {
    background: url('https://solar-ruegen.de/wp-content/uploads/2026/03/hero-slide-2-mobile.jpg') center/cover no-repeat !important;
  }
  .hero-slide-3 {
    background: url('https://solar-ruegen.de/wp-content/uploads/2026/03/hero-slide-3-mobile.jpg') center/cover no-repeat !important;
  }

  /* Höhe passend zu 800×600 (4:3) */
  .hero-slide-1,
  .hero-slide-2,
  .hero-slide-3 {
    min-height: 380px !important;
  }
}

@media (max-width: 480px) {
  .hero-slide-1,
  .hero-slide-2,
  .hero-slide-3 {
    min-height: 300px !important;
  }
}
