/*
Theme Name:   Berg GaseTech
Theme URI:    https://berg-gasetech.com
Description:  Block Theme für Berg GaseTech GmbH – Hersteller von PSA-Gasgeneratoren (Stickstoff N₂ / Sauerstoff O₂)
Author:       Dennis Redder (eingenetzt.net)
Author URI:   https://eingenetzt.net
Version:      1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License:      Proprietary
Text Domain:  berg-gasetech
*/

/* ============================================================
   CSS Custom Properties (spiegeln theme.json Design-Tokens)
   ============================================================ */
:root {
  --berg-blue:          #1E6EBB;
  --berg-blue-dark:     #1859A0;
  --berg-blue-darker:   #0F3D6E;
  --berg-blue-light:    #4A8BD4;
  --berg-blue-pale:     #E6F0FA;
  --berg-dark:          #1A1F25;
  --berg-dark-lighter:  #252B33;
  --n2-green:           #337635;
  --o2-blue:            #194189;
  --white:              #FFFFFF;
  --off-white:          #F7F9FC;
  --body-text:          #4A4A4A;
  --gray-100:           #F0F2F5;
  --gray-200:           #E1E5EA;
  --gray-300:           #C5CBD3;
  --gray-500:           #6B7785;
  --gray-700:           #3D4752;
  --gray-900:           #1A1F25;

  --font-heading: var(--wp--preset--font-family--inter, 'Inter', sans-serif);
  --font-body:    var(--wp--preset--font-family--roboto, 'Roboto', sans-serif);

  /* Layout-Breiten — EINE Quelle der Wahrheit (Theme + alle Content-Wrap-Blöcke referenzieren das) */
  --berg-container:     1400px; /* Hauptinhaltsbreite (Sektionen, Grids, Tabellen) */
  --berg-article:       1240px; /* Know-how-Artikel (schmaler, Lesbarkeit) */
  --berg-article-wide:  1440px; /* Know-how alignwide-Blöcke */
}

/* ============================================================
   Base Reset & Body
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================================
   Layout Utility
   ============================================================ */
.container {
  max-width: var(--berg-container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Lesbarkeits-Maß: loser Fließtext (z. B. Rechtstexte) im breiten Container bleibt schmal */
.berg-section-bg .container > p,
.berg-section-bg .container > ul,
.berg-section-bg .container > ol,
.berg-section-bg .container > h2,
.berg-section-bg .container > h3,
.berg-section-bg .container > h4 {
  max-width: 780px;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.berg-topbar {
  background: var(--berg-dark);
  color: var(--white);
  font-size: 0.8rem;
  padding: 6px 0;
  border-top: 3px solid var(--berg-blue);
}

.berg-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-switcher .current-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 4px;
  transition: background 0.2s;
  color: var(--white);
  font-size: 0.8rem;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-body);
}

/* Flag-Icon im Switcher (Inline-SVG aus dem Multilang-Plugin) */
.berg-flag-wrap {
  display: inline-flex;
  flex-shrink: 0;
  width: 20px;
  height: 15px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.berg-flag {
  width: 100%;
  height: 100%;
  display: block;
}

.lang-switcher .current-lang:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-switcher .current-lang .arrow {
  font-size: 0.6rem;
  transition: transform 0.2s;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
  z-index: 200;
  overflow: hidden;
  list-style: none;     /* UL-Default-Bullets weg */
  margin: 0;
  padding: 0;           /* Browser-Default padding-left:40px raus (nutzloser Whitespace links der Flaggen) */
}

.lang-dropdown:not([hidden]) {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switcher:focus-within .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switcher:focus-within .current-lang .arrow {
  transform: rotate(180deg);
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.15s;
}

.lang-dropdown a:hover,
.lang-dropdown a.active {
  background: var(--berg-blue-pale);
  color: var(--berg-blue);
}

.lang-dropdown a.active {
  font-weight: 600;
}

/* Topbar Menu (wp_nav_menu output) */
.topbar-menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 20px;
}

.topbar-menu li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.topbar-menu li a:hover {
  color: var(--white);
}

/* Social Icons */
.topbar-right {
  display: flex;
  align-items: center;
}

.social-icons {
  display: flex;
  gap: 4px;
  align-items: center;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.2s;
}

.social-icons a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.social-icons svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ============================================================
   HEADER / SITE HEADER
   ============================================================ */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 12px;
  flex-wrap: nowrap;
}

/* Site Logo */
.site-logo {
  flex-shrink: 0;
}

.site-logo .custom-logo-link img,
.site-logo img {
  height: 70px;
  width: auto;
  display: block;
}

.site-logo__text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--berg-blue);
  text-decoration: none;
}

/* ============================================================
   NAVIGATION (wp_nav_menu output)
   ============================================================ */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav__list > li {
  position: relative;
}

.main-nav__list > li > a {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 24px 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.main-nav__list > li > a:hover,
.main-nav__list > li.current-menu-item > a,
.main-nav__list > li.current-menu-ancestor > a {
  color: var(--berg-blue);
}

/* Dropdown */
.main-nav__list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-top: 3px solid var(--berg-blue);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  min-width: 280px;
  list-style: none;
  padding: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* unsichtbares Dropdown soll keine Hover-Events fangen */
  transform: translateY(-8px);
  transition: all 0.2s;
  z-index: 110;
}

.main-nav__list > li:hover > .sub-menu,
.main-nav__list > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.main-nav__list .sub-menu li a {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  padding: 12px 20px;
  color: var(--gray-700);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-100);
  transition: all 0.15s;
}

.main-nav__list .sub-menu li:last-child a {
  border-bottom: none;
}

.main-nav__list .sub-menu li a:hover {
  background: var(--berg-blue-pale);
  color: var(--berg-blue);
  padding-left: 24px;
}

/* Letztes Item im einfachen Dropdown: Hover-Fläche an die abgerundeten
   Unterkanten des Dropdowns clippen (sonst wird die Ecke beim Hover eckig).
   Nur einfaches Dropdown — Mega-Menü bewusst ausgenommen. */
.main-nav__list > li:not(.is-mega-menu) > .sub-menu > li:last-child > a {
  border-radius: 0 0 8px 8px;
}

/* ===== Mega-Menu (zweispaltig, N₂ | O₂) ===== */
/* Aktiviert per CSS-Klasse `is-mega-menu` auf dem Top-Level-Item.
   2. Ebene = Section-Header (`is-section-header`, nicht klickbar),
   3. Ebene = Application-Items. */

.main-nav__list > li.is-mega-menu {
  position: relative; /* Sub-Menu positioniert sich relativ zum Top-Item */
  /* align-self/display/align-items kommen jetzt vom generischen
     `.main-nav__list > li` Selector — das Item ist automatisch full-height. */
}

.main-nav__list > li.is-mega-menu > .sub-menu {
  left: auto;
  right: 0; /* rechte Kante des Dropdowns alignt mit rechter Kante des Top-Items */
  display: flex;
  gap: 0;
  min-width: 640px;
  padding: 0;
}

.main-nav__list > li.is-mega-menu > .sub-menu > li {
  flex: 1 1 50%;
  padding: 20px 24px;
  border-right: 1px solid var(--gray-100);
}

.main-nav__list > li.is-mega-menu > .sub-menu > li:last-child {
  border-right: none;
}

/* Section-Header — visuell als Überschrift, nicht klickbar */
.main-nav__list .sub-menu li.is-section-header > a {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--berg-blue);
  padding: 0 0 10px 0;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--berg-blue);
  border-radius: 0;
  pointer-events: none; /* Klick deaktiviert — Section-Header ist kein Link */
  cursor: default;
}

/* O₂-Section-Header bekommt O₂-Akzent */
.main-nav__list .sub-menu li.is-section-o2 > a {
  color: var(--o2-blue, #194189);
  border-bottom-color: var(--o2-blue, #194189);
}

/* N₂-Section-Header bekommt N₂-Akzent */
.main-nav__list .sub-menu li.is-section-n2 > a {
  color: var(--n2-green, #337635);
  border-bottom-color: var(--n2-green, #337635);
}

/* 3. Ebene: Application-Items unter dem Section-Header.
   Layout-Reset (static/block), aber visibility/opacity/pointer-events
   bewusst NICHT gesetzt — die erbt die Ebene den .sub-menu-Default-Regeln
   (hidden/none im geschlossenen Zustand). Sonst überschreibt eine fixe
   `visibility: visible` den versteckten Parent → Menü poppt bei Hover über
   dem unsichtbaren Bereich auf. Sichtbar wird die 3. Ebene erst über den
   Hover-Override unten. */
.main-nav__list .sub-menu li.is-section-header > .sub-menu {
  position: static;
  display: block;
  background: none;
  box-shadow: none;
  border: none;
  border-radius: 0;
  min-width: 0;
  padding: 0;
  margin: 0;
  transform: none;
  transition: none;
}

/* 3. Ebene sichtbar + klickbar NUR wenn das Top-Item (Mega-Menu) offen ist */
.main-nav__list > li.is-mega-menu:hover .sub-menu li.is-section-header > .sub-menu,
.main-nav__list > li.is-mega-menu:focus-within .sub-menu li.is-section-header > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.main-nav__list .sub-menu li.is-section-header > .sub-menu li a {
  padding: 8px 0;
  font-size: 0.875rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.main-nav__list .sub-menu li.is-section-header > .sub-menu li:last-child a {
  border-bottom: none;
}

.main-nav__list .sub-menu li.is-section-header > .sub-menu li a:hover {
  padding-left: 6px;
  background: transparent;
  color: var(--berg-blue);
}

/* Contact Button in Nav */
.nav-contact-btn {
  display: inline-block;
  background: var(--berg-blue);
  color: var(--white);
  border-radius: 6px;
  padding: 10px 20px;
  margin-left: 8px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}

.nav-contact-btn:hover {
  background: var(--berg-blue-dark);
  color: var(--white);
  transform: translateY(-1px);
}

/* Hamburger Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  /* Touch-Target ≥44 px (WCAG 2.5.5) */
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ============================================================
   BUTTONS (global + core/button overrides)
   ============================================================ */
.wp-block-button__link,
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

/* Primary Button (Default) */
.wp-block-button:not([class*="is-style"]) .wp-block-button__link,
.wp-block-button.is-style-fill .wp-block-button__link,
.btn-primary {
  background: var(--berg-blue);
  color: var(--white) !important;
}

.wp-block-button:not([class*="is-style"]) .wp-block-button__link:hover,
.wp-block-button.is-style-fill .wp-block-button__link:hover,
.btn-primary:hover {
  background: var(--berg-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(30, 110, 187, 0.35);
}

/* Outline Button */
.wp-block-button.is-style-outline .wp-block-button__link,
.btn-outline {
  background: transparent;
  color: var(--white) !important;
  border: 2px solid rgba(255, 255, 255, 0.6) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white) !important;
  transform: translateY(-2px);
}

/* Outline on light background */
.wp-block-button.is-style-outline-dark .wp-block-button__link,
.btn-outline-dark {
  background: transparent;
  color: var(--berg-blue) !important;
  border: 2px solid var(--berg-blue) !important;
}

.wp-block-button.is-style-outline-dark .wp-block-button__link:hover,
.btn-outline-dark:hover {
  background: var(--berg-blue-pale);
  transform: translateY(-2px);
}

/* N₂ Button Variant */
.wp-block-button.is-style-n2 .wp-block-button__link {
  background: var(--n2-green);
  color: var(--white) !important;
}

.wp-block-button.is-style-n2 .wp-block-button__link:hover {
  background: #2a612c;
  transform: translateY(-2px);
}

/* O₂ Button Variant */
.wp-block-button.is-style-o2 .wp-block-button__link {
  background: var(--o2-blue);
  color: var(--white) !important;
}

.wp-block-button.is-style-o2 .wp-block-button__link:hover {
  background: #133370;
  transform: translateY(-2px);
}

/* ============================================================
   TABLES (core/table + zebra stripes)
   ============================================================ */
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.wp-block-table th {
  background: var(--berg-blue);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--berg-blue-dark);
}

.wp-block-table td {
  padding: 10px 16px;
  border: 1px solid var(--gray-200);
  vertical-align: middle;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) td {
  background: var(--gray-100);
}

.wp-block-table.is-style-stripes tbody tr:nth-child(even) td {
  background: var(--white);
}

.wp-block-table.is-style-stripes tbody tr:hover td {
  background: var(--berg-blue-pale);
}

/* N₂ / O₂ colored table header variant */
.wp-block-table.is-style-n2 th {
  background: var(--n2-green);
  border-color: #2a612c;
}

.wp-block-table.is-style-o2 th {
  background: var(--o2-blue);
  border-color: #133370;
}

/* ============================================================
   LISTS (core/list + Checkmark variant)
   ============================================================ */
.wp-block-list,
.wp-block-list ul,
.wp-block-list ol {
  padding-left: 1.5rem;
}

.wp-block-list.is-style-checkmark {
  list-style: none;
  padding-left: 0;
}

.wp-block-list.is-style-checkmark li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0;
}

.wp-block-list.is-style-checkmark li::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  background-color: var(--berg-blue);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

/* N₂ Checkmark */
.wp-block-list.is-style-checkmark-n2 li::before {
  background-color: var(--n2-green);
}

/* O₂ Checkmark */
.wp-block-list.is-style-checkmark-o2 li::before {
  background-color: var(--o2-blue);
}

/* ============================================================
   SEPARATOR (core/separator)
   ============================================================ */
.wp-block-separator {
  border-color: var(--gray-200);
  margin-block: 2rem;
}

.wp-block-separator.is-style-berg-blue {
  border-color: var(--berg-blue);
  border-width: 2px;
}

/* ============================================================
   IMAGES (core/image)
   ============================================================ */
figure.wp-block-image img {
  border-radius: 8px;
}

figure.wp-block-image.is-style-shadow img {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

figure.wp-block-image.is-style-product img {
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.12)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
}

/* ============================================================
   FOOTER NAVIGATION (wp_nav_menu output)
   ============================================================ */

.footer-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav__list li a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--body-text);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav__list li a:hover {
  color: var(--berg-blue);
}

/* Footer Bottom: Legal-Links horizontal */
.footer-legal__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.footer-legal__list li a {
  font-size: 0.8rem;
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal__list li a:hover {
  color: var(--gray-900);
}

/* Footer col headings */
.footer-col-heading {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-900);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  margin-top: 0;
}

/* Mobile nav list */
.mobile-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav__list li a {
  display: block;
  padding: 14px 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gray-700);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-100);
  transition: color 0.2s;
}

.mobile-nav__list li a:hover {
  color: var(--berg-blue);
}

.mobile-nav__list .sub-menu {
  list-style: none;
  padding-left: 16px;
  margin: 0;
  /* Akkordeon: standardmäßig versteckt; per .is-open auf parent <li> aufgeklappt */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-nav__list li.is-open > .sub-menu {
  max-height: 2000px; /* genug für 8+ Items */
}

.mobile-nav__list .sub-menu li a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--gray-500);
}

/* Toggle-Indikator (Chevron) für Items mit Children */
.mobile-nav__list .menu-item-has-children > a {
  position: relative;
  padding-right: 32px;
}
.mobile-nav__list .menu-item-has-children > a::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--gray-500);
  border-bottom: 2px solid var(--gray-500);
  transform: translateY(-75%) rotate(45deg);
  transition: transform 0.2s;
}
.mobile-nav__list li.is-open > a::after {
  transform: translateY(-25%) rotate(-135deg);
}

/* Section-Header im Mobile sieht aus wie eine Überschrift, nicht klickbar */
.mobile-nav__list .sub-menu li.is-section-header > a {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--berg-blue);
  pointer-events: none;
  cursor: default;
}
.mobile-nav__list .sub-menu li.is-section-n2 > a { color: var(--n2-green, #337635); }
.mobile-nav__list .sub-menu li.is-section-o2 > a { color: var(--o2-blue, #194189); }

/* Section-Header hat keinen Chevron — Children sind im Mobile immer offen */
.mobile-nav__list .sub-menu li.is-section-header > a::after { display: none; }
.mobile-nav__list .sub-menu li.is-section-header > .sub-menu {
  max-height: none; /* Always expanded inside the open mega-menu */
  padding-left: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(180deg, #FFFFFF 0%, #E3E3E3 100%);
  color: var(--body-text);
}

.footer-top {
  padding: 56px 0 40px;
}

.footer-grid {
  display: grid;
  /* Content-breite Spalten + space-between: Brand links / Kontakt rechts buendig,
     gleiche Luecken -> balancierte Raender ohne feste Breiten (Footer-Alignment-Fix B). */
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: 40px;
}
.footer-brand {
  max-width: 340px; /* cappt die Brand-Spalte; Claim bricht um statt die Spalte zu sprengen */
}

.footer-brand .footer-logo img,
.footer-brand .custom-logo-link img,
.footer-brand .custom-logo {
  height: 70px;
  width: auto;
  display: block;
}

.footer-brand .footer-logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--body-text);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-900);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--body-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--berg-blue);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--body-text);
}

.footer-contact-item .icon {
  color: var(--berg-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--body-text);
  text-decoration: none;
  transition: all 0.2s;
}

.footer-social a:hover {
  color: var(--berg-blue);
  background: rgba(0, 0, 0, 0.05);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Certification Badges */
.footer-certs {
  padding: 24px 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: 24px;
}

.footer-cert-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-cert-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--gray-700);
  white-space: nowrap;
}

.footer-cert-badge svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--berg-blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Footer Bottom */
.footer-bottom {
  background: #D9D9D9;
  padding: 16px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--gray-700);
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: var(--gray-700);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--gray-900);
}

/* ============================================================
   PAGE HEADER (Theme-Templates: archive-know-how, single-know-how)
   Block-basierter Header für Produktseiten lebt im Plugin (berg/page-header).
   ============================================================ */
.page-header {
  background: var(--off-white);
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--gray-200);
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0 0 12px;
  line-height: 1.2;
}

.page-header__overline {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--berg-blue);
  margin: 0 0 12px;
}

.page-header__intro {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 640px;
  line-height: 1.6;
  margin: 0;
}

/* Dark variant for archive listings */
.page-header--dark {
  background: linear-gradient(135deg, var(--berg-dark) 0%, var(--berg-blue-darker) 100%);
  border-bottom: none;
}

.page-header--dark h1 { color: var(--white); }
.page-header--dark .page-header__overline { color: var(--berg-blue-light); }
.page-header--dark .page-header__intro { color: rgba(255, 255, 255, 0.85); }

/* ============================================================
   KNOW-HOW ARCHIVE HEADER — 1:1 aus know-how.html (.page-header)
   Dunkler Diagonal-Gradient, zentriert, Overline + H1 + Intro
   ============================================================ */
.page-header--know-how-archive {
  background: linear-gradient(135deg, var(--berg-dark) 0%, var(--berg-blue-darker) 100%);
  padding: 60px 0 48px;
  text-align: center;
}

.page-header--know-how-archive .page-header__overline {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--berg-blue-light);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 0 0 16px;
}

.page-header--know-how-archive h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin: 0 0 16px;
}

.page-header--know-how-archive .page-header__intro {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Breadcrumb auf dunklem Header */
.breadcrumb--on-dark,
.page-header--know-how-archive .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.82rem;
}
.breadcrumb--on-dark a,
.page-header--know-how-archive .breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb--on-dark a:hover,
.page-header--know-how-archive .breadcrumb a:hover { color: var(--white); }
.breadcrumb--on-dark .sep,
.page-header--know-how-archive .breadcrumb .sep { color: rgba(255, 255, 255, 0.3); font-size: 0.75rem; }
.breadcrumb--on-dark .current,
.page-header--know-how-archive .breadcrumb .current { color: rgba(255, 255, 255, 0.9); font-weight: 600; }

/* ============================================================
   KNOW-HOW SINGLE HEADER — 1:1 aus know-how-article-template.html
   Weiss + dezenter Border + Badges-Top + Meta-Info-Zeile
   ============================================================ */
.page-header--know-how-single {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 40px 0 44px;
}

.page-header--know-how-single .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.82rem;
}
.page-header--know-how-single .breadcrumb a { color: var(--gray-500); text-decoration: none; transition: color 0.2s; }
.page-header--know-how-single .breadcrumb a:hover { color: var(--berg-blue); }
.page-header--know-how-single .breadcrumb .sep { color: var(--gray-300); font-size: 0.75rem; }
.page-header--know-how-single .breadcrumb .current { color: var(--berg-blue); font-weight: 600; }

/* Category-Badges (badge-gas mit dot, soft-tinted) */
.article-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.badge-gas {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge-n2         { background: rgba(51,118,53,0.10);  color: #2A5F2B; border: 1px solid rgba(51,118,53,0.3); }
.badge-o2         { background: rgba(25,65,137,0.08);  color: #194189; border: 1px solid rgba(25,65,137,0.25); }
.badge-technology { background: rgba(30,110,187,0.08); color: var(--berg-blue); border: 1px solid rgba(30,110,187,0.25); }
.badge-gas .badge-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.badge-n2 .badge-dot         { background: #337635; }
.badge-o2 .badge-dot         { background: #194189; }
.badge-technology .badge-dot { background: var(--berg-blue); }

.page-header--know-how-single h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.15;
  margin: 0 0 16px;
  max-width: 820px;
}

.page-header--know-how-single .article-teaser {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 700px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.article-meta-info {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.82rem;
  color: var(--gray-500);
}
.article-meta-info .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.article-meta-info svg {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  flex-shrink: 0;
}

/* ============================================================
   HERO IMAGE — off-white wrap, capped height, rounded top
   ============================================================ */
.article-hero-wrap {
  padding: 36px 0 0;
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-200);
}
.article-hero-image {
  max-width: var(--berg-container);
  margin: 0 auto;
  padding: 0 24px;
  overflow: hidden;
}
.article-hero-image img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  display: block;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
}

/* ============================================================
   ARTICLE LAYOUT — TOC sidebar + Body
   ============================================================ */
.article-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
  padding: 56px 0 80px;
}

/* TOC */
.article-toc {
  position: sticky;
  top: 88px;
}
.article-toc .toc-inner {
  border-left: 3px solid var(--gray-200);
  padding: 4px 0 4px 20px;
}
.article-toc .toc-overline {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gray-500);
  margin: 0 0 16px;
}
.article-toc .toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  margin: 0;
}
.article-toc .toc-list li a {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-500);
  text-decoration: none;
  padding: 6px 0 6px 14px;
  margin-left: -23px;
  border-left: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  line-height: 1.4;
}
.article-toc .toc-list li a:hover {
  color: var(--berg-blue);
  border-left-color: var(--gray-300);
}
.article-toc .toc-list li a.toc-active {
  color: var(--berg-blue);
  border-left-color: var(--berg-blue);
  font-weight: 600;
}

/* Article Body Typografie */
.article-body { min-width: 0; /* prevent grid-overflow */ }

.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.25;
  margin: 52px 0 20px;
  scroll-margin-top: 100px;
}
.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
  margin: 32px 0 12px;
  scroll-margin-top: 100px;
}

.article-body p {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--gray-700);
  margin: 0 0 20px;
}
.article-body p:last-child { margin-bottom: 0; }

/* Numbered list — selbst-stylisiert mit Counter-Bullets */
.article-body ol {
  margin: 20px 0 28px;
  padding-left: 0;
  list-style: none;
  counter-reset: article-ol;
}
.article-body ol li {
  counter-increment: article-ol;
  position: relative;
  padding-left: 44px; /* 28px Bullet + 16px Gap */
  margin-bottom: 24px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-700);
  /* Lange unbrechbare Wörter (z. B. "Umweltverträglichkeit") brechen bei Bedarf um.
     hyphens nutzt das <html lang="de-DE"> für korrekte deutsche Silbentrennung. */
  overflow-wrap: anywhere;
  hyphens: auto;
}
.article-body ol li::before {
  content: counter(article-ol);
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--berg-blue);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Heading (typisch <strong> als 1. Child) wird zu Block → Text fließt darunter
   eingerückt mit dem Heading, NICHT unter der Zahl */
.article-body ol li > strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
  line-height: 1.4;
}
/* Der <br/> direkt nach dem <strong>-Heading ist überflüssig — der Block-Heading
   bringt seinen eigenen Zeilenumbruch mit. */
.article-body ol li > strong + br {
  display: none;
}

/* Unordered list — runde berg-blue Bullets */
.article-body ul {
  margin: 16px 0 24px;
  padding-left: 0;
  list-style: none;
}
.article-body ul li {
  padding: 6px 0 6px 22px;
  position: relative;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-700);
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Body-Paragraphen + Headings: gleiche Schutzregel gegen unbrechbare Wörter */
.article-body p,
.article-body h2,
.article-body h3 {
  overflow-wrap: anywhere;
  hyphens: auto;
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 15px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--berg-blue);
}

/* Pull-Quote (blockquote) */
.article-body blockquote,
.article-body .pull-quote {
  margin: 40px 0;
  padding: 28px 32px;
  border-left: 4px solid var(--berg-blue);
  background: var(--berg-blue-pale);
  border-radius: 0 8px 8px 0;
}
.article-body blockquote p,
.article-body .pull-quote p {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  font-style: italic;
  color: var(--berg-blue-darker);
  line-height: 1.55;
  margin: 0;
}
.article-body cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--berg-blue);
  letter-spacing: 0.3px;
}
.article-body cite::before { content: "— "; }

/* Inline Image with Caption (figure) */
.article-body figure,
.article-body .article-image {
  margin: 36px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
}
.article-body figure img,
.article-body .article-image img,
.article-body img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 420px;
  object-fit: cover;
}
.article-body figcaption {
  background: var(--gray-100);
  padding: 10px 16px;
  font-size: 0.83rem;
  color: var(--gray-500);
  font-style: italic;
  line-height: 1.5;
}

/* Article divider */
.article-body hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 48px 0;
}

/* Post-Navigation (Prev/Next) */
.article-body .post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  font-size: 0.9rem;
}
.article-body .post-navigation a {
  color: var(--berg-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.article-body .post-navigation a:hover { color: var(--berg-blue-dark); }

/* ============================================================
   RESPONSIVE — Know-how-Pages (Mobile-Breakpoints aus Prototyp)
   ============================================================ */
@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 0;
  }
  .article-toc {
    position: static;
    order: -1;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 40px;
    padding-bottom: 32px;
    padding-top: 36px;
  }
  .article-toc .toc-inner { border-left: none; padding-left: 0; }
  .article-toc .toc-list { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .article-toc .toc-list li a {
    padding: 6px 14px;
    border-left: none;
    margin-left: 0;
    background: var(--gray-100);
    border-radius: 20px;
    font-size: 0.82rem;
    border: 1px solid var(--gray-200);
  }
  .article-toc .toc-list li a:hover,
  .article-toc .toc-list li a.toc-active {
    background: var(--berg-blue-pale);
    border-color: var(--berg-blue);
    color: var(--berg-blue);
  }
}

@media (max-width: 768px) {
  .page-header--know-how-archive { padding: 40px 0 36px; }
  .page-header--know-how-archive h1 { font-size: 2rem; }

  .page-header--know-how-single { padding: 28px 0 32px; }
  .page-header--know-how-single h1 { font-size: 1.6rem; }
  .page-header--know-how-single .article-teaser { font-size: 0.96rem; }
  .article-meta-info { flex-wrap: wrap; gap: 12px; }

  .article-hero-wrap { padding-top: 24px; }
  .article-hero-image img { max-height: 220px; border-radius: 8px 8px 0 0; }

  .article-body blockquote,
  .article-body .pull-quote { padding: 20px; }
  .article-body blockquote p,
  .article-body .pull-quote p { font-size: 1.05rem; }
}

@media (max-width: 480px) {
  .page-header--know-how-archive h1 { font-size: 1.6rem; }
  .page-header--know-how-archive .page-header__intro { font-size: 0.95rem; }

  .page-header--know-how-single .breadcrumb { font-size: 0.78rem; }
  .article-body h2 { font-size: 1.35rem; }
  .article-body h3 { font-size: 1.05rem; }
}

/* ============================================================
   BERG-BTN — globale Button-Klassen (Block-übergreifend genutzt)
   ============================================================ */
.berg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.25s;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.berg-btn--primary {
  background: var(--berg-blue);
  color: #ffffff;
}

.berg-btn--primary:hover {
  background: var(--berg-blue-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(30, 110, 187, 0.35);
}

.berg-btn--outline {
  background: transparent;
  color: var(--berg-blue);
  border-color: var(--berg-blue);
}

.berg-btn--outline:hover {
  background: var(--berg-blue);
  color: #ffffff;
}

/* Outline auf dunklem Hintergrund (z. B. Hero-Buttons) */
.berg-section-bg.is-variant-dark .berg-btn--outline,
.berg-split-hero .berg-btn--outline,
.berg-page-header .berg-btn--outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.berg-section-bg.is-variant-dark .berg-btn--outline:hover,
.berg-split-hero .berg-btn--outline:hover,
.berg-page-header .berg-btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}

/* O2-Variante (Outline mit O2-Blue, für inline-cta Sauerstoff) */
.berg-btn--outline-o2 {
  background: transparent;
  color: var(--o2-blue);
  border-color: var(--o2-blue);
}
.berg-btn--outline-o2:hover { background: var(--o2-blue); color: #ffffff; }

/* N2-Variante (Outline mit N2-Green) */
.berg-btn--outline-n2 {
  background: transparent;
  color: var(--n2-green);
  border-color: var(--n2-green);
}
.berg-btn--outline-n2:hover { background: var(--n2-green); color: #ffffff; }

/* Hero CTA (primary button) inherits the page-header gas colour.
   The hero sets is-gas-n2 / is-gas-o2 on .berg-page-header; the primary CTA
   inside it picks up the matching gas colour instead of brand blue.
   Nitrogen → N₂ green, Oxygen → O₂ blue. */
.berg-page-header.is-gas-n2 .berg-btn--primary {
  background: var(--n2-green);
}
.berg-page-header.is-gas-n2 .berg-btn--primary:hover {
  background: #2b642d; /* n2-green, ~15% darker */
  box-shadow: 0 6px 20px rgba(51, 118, 53, 0.35);
}
.berg-page-header.is-gas-o2 .berg-btn--primary {
  background: var(--o2-blue);
}
.berg-page-header.is-gas-o2 .berg-btn--primary:hover {
  background: #153774; /* o2-blue, ~15% darker */
  box-shadow: 0 6px 20px rgba(25, 65, 137, 0.35);
}

/* ---- Gas colour beyond the hero: CTA buttons + product cards ----
   N₂ → green, O₂ → blue. Scoped to the blocks' own .is-gas-* class (and
   .berg-cta-banner for the final CTA), so header/footer buttons keep brand blue. */
.berg-inline-cta.is-gas-n2 .berg-btn--primary,
body:has(.berg-page-header.is-gas-n2) .berg-cta-banner .berg-btn--primary {
  background: var(--n2-green);
}
.berg-inline-cta.is-gas-n2 .berg-btn--primary:hover,
body:has(.berg-page-header.is-gas-n2) .berg-cta-banner .berg-btn--primary:hover {
  background: #2b642d;
  box-shadow: 0 6px 20px rgba(51, 118, 53, 0.35);
}
.berg-inline-cta.is-gas-o2 .berg-btn--primary,
body:has(.berg-page-header.is-gas-o2) .berg-cta-banner .berg-btn--primary {
  background: var(--o2-blue);
}

/* Product cards: spec values + buttons follow the card's gas colour */
.berg-product-card.is-gas-n2 .berg-product-card__spec .value { color: var(--n2-green); }
.berg-product-card.is-gas-n2 .berg-product-card__btn,
.berg-product-card.is-gas-n2 .berg-product-card__btn--primary { background: var(--n2-green); }
.berg-product-card.is-gas-n2:hover .berg-product-card__btn { background: #2b642d; box-shadow: 0 4px 16px rgba(51, 118, 53, 0.35); }
.berg-product-card.is-gas-n2 .berg-product-card__btn--secondary { border-color: var(--n2-green); color: var(--n2-green); }
.berg-product-card.is-gas-n2 .berg-product-card__btn--secondary:hover { background: var(--n2-green); color: #fff; }
.berg-product-card.is-gas-o2 .berg-product-card__spec .value { color: var(--o2-blue); }

/* ============================================================
   INLINE-CTA — horizontaler Aktions-Banner (Card mit border-left)
   ============================================================ */
.berg-inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--white);
  border-radius: 12px;
  padding: 28px 36px;
  border-left: 4px solid var(--berg-blue);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  /* The inline-CTA reads as its own subsection within the surrounding
     section-bg. Generous top spacing decouples it from the block above
     (typically the specs-table) so it doesn't appear glued to the table. */
  margin-top: 96px;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .berg-inline-cta {
    margin-top: 56px;
    margin-bottom: 12px;
    padding: 22px 24px;
  }
}

.berg-inline-cta.is-gas-n2 { border-left-color: var(--n2-green); }
.berg-inline-cta.is-gas-o2 { border-left-color: var(--o2-blue); }

.berg-inline-cta__text h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 4px 0;
}

.berg-inline-cta__text p {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin: 0;
}

.berg-inline-cta__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  align-items: center;
}

@media (max-width: 768px) {
  .berg-inline-cta {
    flex-direction: column;
    text-align: center;
    border-left: none;
    border-top: 4px solid var(--berg-blue);
    padding: 24px;
  }
  .berg-inline-cta__actions { width: 100%; flex-direction: column; }
  .berg-inline-cta__actions .berg-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   SPECS-LAYOUT — 2 Spalten: Spec-Card links + Feature-Rows rechts
   ============================================================ */
.berg-specs-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}

.berg-specs-card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.berg-specs-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

.berg-specs-card__row:last-child { border-bottom: none; }

.berg-specs-card__label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-700);
}

.berg-specs-card__value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--berg-blue);
  text-align: right;
}

/* Gas-Tinting für die Spec-Card-Werte: passt zur N₂/O₂-Akzentfarbe der Seite */
body:has(.berg-page-header.is-gas-n2) .berg-specs-card__value { color: var(--n2-green); }
body:has(.berg-page-header.is-gas-o2) .berg-specs-card__value { color: var(--o2-blue); }

.berg-specs-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.berg-specs-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.berg-specs-feature__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--berg-blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.berg-specs-feature__icon svg {
  width: 20px;
  height: 20px;
  color: var(--berg-blue);
}

/* Gas-Tinting für Spec-Feature-Icons (Theme-Variante) */
body:has(.berg-page-header.is-gas-n2) .berg-specs-feature__icon svg { color: var(--n2-green); }
body:has(.berg-page-header.is-gas-o2) .berg-specs-feature__icon svg { color: var(--o2-blue); }

.berg-specs-feature__content h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 4px 0;
}

.berg-specs-feature__content p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 900px) {
  .berg-specs-layout { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   CONTENT-NARROW (Company-Teaser: zentrierter Block max-width 820px)
   ============================================================ */
.berg-content-narrow {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.berg-content-narrow p {
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-block: 0;
}

.berg-content-narrow > * + * {
  margin-top: 12px;
}

/* ============================================================
   CERT-BADGES (Card-Style für Quality-Section)
   ============================================================ */
.berg-cert-badges {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.berg-cert-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--berg-blue-pale);
  padding: 14px 20px;
  border-radius: 8px;
  border: 1px solid rgba(43, 92, 138, 0.1);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--berg-blue-darker);
}

.berg-cert-badge svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--berg-blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.berg-cert-badge small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--gray-500);
  font-size: 0.85em;
  margin-top: 2px;
}

.berg-cert-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

/* ============================================================
   PAGE HEADER (Theme-Templates: archive-know-how, single-know-how)
.entry-content {
  max-width: var(--berg-article);
  margin-inline: auto;
  padding-inline: 24px;
  padding-block: var(--wp--preset--spacing--large, 5rem);
}

/* Allow full-width blocks to escape the container */
.entry-content > .alignfull,
.entry-content > .wp-block-group.alignfull {
  margin-inline: -24px;
  max-width: calc(100% + 48px);
}

.entry-content > .alignwide {
  max-width: var(--berg-article-wide);
  margin-inline: auto;
}

/* ============================================================
   GAS BADGES (N₂ / O₂)
   ============================================================ */
.gas-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--white);
  flex-shrink: 0;
}

.gas-badge.n2,
.gas-badge--n2 {
  background: var(--n2-green);
}

.gas-badge.o2,
.gas-badge--o2 {
  background: var(--o2-blue);
}

/* ============================================================
   UTILITY: Section Backgrounds
   ============================================================ */
.bg-dark {
  background: var(--berg-dark);
  color: var(--white);
}

.bg-off-white {
  background: var(--off-white);
}

.bg-berg-blue {
  background: var(--berg-blue);
  color: var(--white);
}

/* ============================================================
   MOBILE NAVIGATION OVERLAY
   ============================================================ */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 200;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-nav-overlay.is-active {
  display: flex;
}

.mobile-nav-overlay__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-200);
}

.mobile-nav-overlay__logo .custom-logo-link img,
.mobile-nav-overlay__logo img {
  height: 50px;
  width: auto;
  display: block;
}

.mobile-nav-overlay__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--gray-700);
  padding: 8px;
  line-height: 1;
  transition: color 0.2s;
}

.mobile-nav-overlay__close:hover {
  color: var(--berg-blue);
}

.mobile-nav-overlay__links {
  padding: 16px 24px;
  flex: 1;
}

.mobile-nav-overlay__links a {
  display: block;
  padding: 14px 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gray-700);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-100);
  transition: color 0.2s;
}

.mobile-nav-overlay__links a:hover {
  color: var(--berg-blue);
}

.mobile-nav-overlay__sub {
  padding-left: 16px;
}

.mobile-nav-overlay__sub a {
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  color: var(--gray-500) !important;
}

.mobile-nav-overlay__footer {
  padding: 24px;
  border-top: 1px solid var(--gray-200);
}

.mobile-nav-overlay__footer .btn {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .topbar-right {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-cert-badges {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 16px;
  }

  .btn,
  .wp-block-button__link {
    padding: 12px 24px;
    font-size: 0.875rem;
  }

  /* Lange CTA-Texte (z. B. „Individuelles Angebot anfordern", noch länger in PL/FR)
     liefen mit white-space:nowrap + 28px-Padding über den Viewport (WebKit/Firefox).
     Auf Mobile umbrechen lassen + Padding reduzieren statt Overflow. */
  .berg-btn {
    padding: 12px 20px;
    white-space: normal;
    text-align: center;
    max-width: 100%;
  }
}

/* ============================================================
   TOUCH-TARGETS (WCAG 2.5.5) — nur auf Touch-Devices ≥44 px.
   Desktop mit Maus bleibt kompakt (Topbar wird nicht aufgebläht).
   ============================================================ */
@media (pointer: coarse) {
  .lang-switcher .current-lang {
    min-height: 44px;
    padding: 8px 12px;
  }
  .lang-switcher .lang-dropdown a {
    min-height: 44px;
  }
}
