/* Neuber Bau – Ergänzungen zum Theme (Nachbau 2026-11) */

/* „Über uns“ ist der letzte Menüpunkt: Untermenü rechtsbündig, sonst ragt es rechts aus dem Bild */
@media (min-width: 992px) {
  #menu-main-menu > li:last-child > .dropdown-menu { left: auto; right: 0; margin-left: 0; min-width: 0; width: max-content; }
  #menu-main-menu > li:last-child > .dropdown-menu li a { white-space: nowrap; }
}

/* Cookie-Hinweis */
.nb-cc { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999; max-width: 560px; margin-left: auto;
  background: #fff; color: #333; border-top: 4px solid var(--logo-color, #e6321e); box-shadow: 0 8px 30px rgba(0,0,0,.25);
  padding: 18px 20px; font-size: 14px; line-height: 1.5; display: none; }
.nb-cc.auf { display: block; }
.nb-cc h4 { margin: 0 0 6px; font-size: 18px; color: #000; }
.nb-cc p { margin: 0 0 12px; }
.nb-cc a { color: var(--logo-color, #e6321e); text-decoration: underline; }
.nb-cc label { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0; cursor: pointer; }
.nb-cc label input { margin-top: 4px; }
.nb-cc .nb-cc-wahl { display: none; margin: 0 0 12px; padding: 10px 12px; background: #f5f5f5; }
.nb-cc.details .nb-cc-wahl { display: block; }
.nb-cc .nb-cc-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.nb-cc button { border: 0; padding: 8px 16px; cursor: pointer; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; }
.nb-cc .ja { background: var(--logo-color, #e6321e); color: #fff; }
.nb-cc .nein, .nb-cc .mehr { background: #e9e9e9; color: #333; }
/* Platzhalter statt fremd eingebundenem Inhalt */
.nb-extern { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px;
  padding: 30px; background: #f5f5f5; border: 1px solid #ddd; color: #444; }
.nb-extern button { border: 0; padding: 10px 20px; background: var(--logo-color, #e6321e); color: #fff; cursor: pointer; text-transform: uppercase; }

/* Team „Das sind WIR“: alle Fotos gleich groß, ein Raster */
.wp-block-gallery.nb-team { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px !important; }
.wp-block-gallery.nb-team > figure.wp-block-image { width: auto !important; margin: 0 !important; aspect-ratio: 4 / 5; position: relative; overflow: hidden; }
.wp-block-gallery.nb-team > figure.wp-block-image img { width: 100% !important; height: 100% !important; object-fit: cover; object-position: center 20%; }
@media (max-width: 991px) { .wp-block-gallery.nb-team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

iframe[data-nb-src] { display: none; }
/* im 16:9-Container des Konfigurators den Platz ausfüllen */
div[style*="padding-top:56.25%"] > .nb-extern { position: absolute; inset: 0; }
.nb-extern:not(div[style*="padding-top"] > .nb-extern) { min-height: 420px; }
