/* ==========================================================================
   BVE Theme — Core Styles
   Bildungsverein der Ver- und Entsorgungsunternehmen Thüringen e.V.
   ========================================================================== */

/* ---------- Local Font: Quicksand (variable weight 300–700) ---------- */
@font-face {
  font-family: 'Quicksand';
  src: url('../fonts/Quicksand-Variable.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- CSS Custom Properties ---------- */
/* Note: --bve-text, --bve-text-muted, --bve-navy, --bve-navy-2, --bve-disabled
   are owned by the bve-blocks plugin (Settings → BVE Theme Tokens) and emitted
   in <head> at wp_head priority 1. Defining them here would override the plugin
   values via the cascade (theme.css loads after the inline <style>). */
:root {
  --bve-navy-deep: #091f36;
  --bve-blue: #0077b6;
  --bve-blue-light: #4db8e8;
  --bve-blue-pale: #e8f4fc;
  --bve-surface: #f0f7fc;
  --bve-gold: #f7c948;
  --bve-border: #d0dde8;
  --bve-radius: 10px;
  --bve-radius-lg: 16px;
  --bve-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --bve-max-width: 1100px;
  --bve-font: 'Quicksand', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
  overflow-x: hidden;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth !important;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
}

body {
  font-family: var(--bve-font);
  font-size: 1.05rem; /* slightly larger than browser default 16px for readability */
  font-weight: 300;
  color: var(--bve-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* prevent horizontal scroll from full-bleed banners */
}

/* Global paragraph/list sizing — consistent across all pages */
p,
li,
td,
dd {
  font-size: 1rem; /* inherits body 1.05rem base — resolves to ~16.8px */
  line-height: 1.75;
}

/* Sticky footer: page always fills viewport, main expands to push footer down */
.wp-site-blocks {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.wp-site-blocks > main,
.wp-site-blocks > .wp-block-group:not(.bve-header):not(.bve-footer-wrap) {
  flex: 1;
}

h1, h2, h3 { font-weight: 500; }
h4, h5, h6 { font-weight: 500; }

/* ---------- Header / Navigation ---------- */
.wp-block-navigation a {
  color: #fff !important;
  text-decoration: none;
  transition: color var(--bve-transition);
}
.wp-block-navigation a:hover {
  color: var(--bve-blue-light) !important;
}

/* Hide WP's submenu toggle button + SVG chevron — we use CSS ::after ▾ instead.
   NOTE: .wp-block-navigation__submenu-icon is the chevron next to submenu parents.
   The mobile hamburger open/close buttons have different classes and are styled below. */
.wp-block-navigation-submenu__toggle,
.wp-block-navigation__submenu-icon {
  display: none !important;
}

/* ---------- Mobile hamburger toggle button ---------- */
/* The open button (three bars) — always present in WP markup, shown only below 900px */
.wp-block-navigation__responsive-container-open {
  display: none; /* hidden on desktop, shown via media query below */
}
/* The close button (X) inside the overlay */
.wp-block-navigation__responsive-container-close {
  color: #fff !important;
  fill: #fff !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  padding: 0.5rem;
}
.wp-block-navigation__responsive-container-close svg {
  fill: #fff !important;
  width: 24px;
  height: 24px;
}

/* ---------- Mobile navigation overlay ---------- */
/* The responsive container — full-screen overlay when open */
.wp-block-navigation__responsive-container {
  display: none;
}
.wp-block-navigation__responsive-container.is-menu-open {
  display: flex !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 100000 !important;
  background: var(--bve-navy) !important;
  flex-direction: column !important;
  padding: 1.5rem 2rem !important;
  overflow-y: auto !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
  align-self: flex-end;
  margin-bottom: 1.5rem;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  gap: 0.25rem !important;
}
/* Force LIs to be plain block (WP's default makes them flex with align-items:flex-end
   from the layout/justifyContent="right" setting, which right-aligns the A inside) */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item {
  display: block !important;
  width: 100% !important;
  text-align: left !important;
  align-self: stretch !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.15rem;
  color: #fff !important;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  height: auto !important;
  overflow: visible !important;
  pointer-events: auto !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  min-width: 0 !important;
  padding: 0 0 0 1.25rem !important;
  margin: -0.25rem 0 0.5rem 0 !important;
  background: transparent !important;
  transform: none !important;
  left: auto !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  font-size: 0.95rem !important;
  padding: 0.45rem 0 !important;
  opacity: 0.88;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  background: transparent !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
  background: transparent !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content::before {
  content: '› ';
  opacity: 0.55;
  margin-right: 0.3em;
}
/* Show ▾ chevron on parent items in mobile overlay so users see structure */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu > .wp-block-navigation-item__content::after {
  display: inline;
}
/* Hide Ausbildungsplan sticky badge while mobile menu is open. The badge has
   transform: translateY(-50%) which creates its own stacking context — fighting
   z-index in that scenario is fragile, so we hide the badge entirely. */
body:has(.wp-block-navigation__responsive-container.is-menu-open) .bve-ausbildungsplan-sticky {
  display: none !important;
}

/* Dropdown submenu indicator — appended to the link text via CSS */
.wp-block-navigation-submenu > .wp-block-navigation-item__content::after {
  content: ' ▾';
  font-size: 0.7em;
  opacity: 0.7;
  margin-left: 0.3em;
}

/* Dropdown menu panel — hidden by default, shown on :hover via pure CSS.
   WP's navigation/view.js is deregistered in functions.php so there is no
   competing JS setting inline opacity/visibility. The :hover pseudo-class
   on the parent <li> is sufficient for desktop hover dropdowns. */
.wp-block-navigation__submenu-container {
  /* Layout & positioning */
  position: absolute !important;
  display: block !important;
  top: 100% !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  /* Appearance */
  background: var(--bve-navy) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
  min-width: 200px !important;
  padding: 0.5rem 0 !important;
  /* Hidden state — revealed by :hover rule below */
  opacity: 0 !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease, visibility 0.2s ease !important;
}

/* Invisible hover bridge: a ::before on the dropdown extends upward 16px,
   overlapping the parent <li>. This keeps the cursor within a hoverable
   element while traversing the gap. Placed on the dropdown (not the <li>)
   so it doesn't affect the nav bar's flex alignment.
   pointer-events: none ensures clicks pass through to the parent nav link
   below — without this the bridge blocks the lower half of the nav button. */
.wp-block-navigation__submenu-container::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
  pointer-events: none;
}

.wp-block-navigation-submenu:hover > .wp-block-navigation__submenu-container,
.wp-block-navigation-submenu:focus-within > .wp-block-navigation__submenu-container {
  opacity: 1 !important;
  visibility: visible !important;
  height: auto !important;
  width: auto !important;
  overflow: visible !important;
  min-width: 200px !important;
  pointer-events: auto !important;
}

/* Mobile (<= 900px): switch to hamburger mode.
   Desktop nav links + hover dropdowns are hidden; the hamburger button appears.
   The actual menu content lives inside .wp-block-navigation__responsive-container
   which is toggled by our custom JS in theme.js. */
@media (max-width: 900px) {
  /* Show the hamburger open button */
  .wp-block-navigation__responsive-container-open {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    padding: 0.5rem;
    color: #fff !important;
    fill: #fff !important;
  }
  .wp-block-navigation__responsive-container-open svg {
    fill: #fff !important;
    width: 28px;
    height: 28px;
  }
  /* WP ships its hamburger SVG with only 2 paths (lines). Hide them and paint
     3 horizontal lines via CSS background-gradients on the SVG element itself. */
  .wp-block-navigation__responsive-container-open svg path {
    display: none;
  }
  .wp-block-navigation__responsive-container-open svg {
    background-image:
      linear-gradient(currentColor, currentColor),
      linear-gradient(currentColor, currentColor),
      linear-gradient(currentColor, currentColor);
    background-size: 20px 2px;
    background-repeat: no-repeat;
    background-position: 4px 6px, 4px 13px, 4px 20px;
  }

  /* Hide the desktop inline nav list.
     WP nests __container inside __responsive-container > __responsive-dialog,
     so the direct-child combinator (>) misses it.  Target all __container
     instances that are NOT inside the open mobile overlay. */
  .wp-block-navigation .wp-block-navigation__container {
    display: none !important;
  }
  /* Re-show the list when the overlay is open (hamburger menu active) */
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    display: flex !important;
  }

  /* The responsive container (when closed) is display:block from WP core CSS,
     inflating the nav element's height and misaligning the hamburger with the
     login button.  Collapse it out of flow so it doesn't affect layout. */
  .wp-block-navigation__responsive-container:not(.is-menu-open) {
    position: absolute !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  /* Add spacing between hamburger and login button */
  .wp-block-navigation__responsive-container-open {
    margin-right: 0.75rem;
  }

  /* Header layout: logo left, hamburger center, login right */
  .bve-header-content > .wp-block-group {
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  /* The right group (nav + login) should spread out */
  .bve-header-content > .wp-block-group > .wp-block-group:last-child {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
  }

  /* Reset submenu container for overlay context */
  .wp-block-navigation__submenu-container {
    position: static !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    pointer-events: auto !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    left: auto !important;
  }
}

/* Dropdown items */
.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  padding: 0.5rem 1.25rem !important;
  font-size: 0.9rem !important;
  color: rgba(255, 255, 255, 0.85) !important;
  transition: background var(--bve-transition), color var(--bve-transition) !important;
}
.wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

/* Sticky header */
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ---------- Page Banner (water image + title + icon) ---------- */
/* Zero out WP's block-gap margin on main when a page banner is present */
body:has(.bve-page-banner) .wp-site-blocks > main {
  margin-block-start: 0 !important;
}
.bve-page-banner {
  position: relative;
  /* Break out of WP content container to full viewport width.
     !important needed to override WP's .is-layout-constrained rule which sets
     margin-left: auto !important and max-width on all children. */
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  /* Pull up under header wave for seamless overlap */
  margin-top: -10.5rem !important;
  margin-bottom: 2rem;
  overflow: hidden;
}
.bve-page-banner > picture,
.bve-page-banner > picture > img {
  display: block;
  width: 100%;
  height: 270px;
  object-fit: cover;
  object-position: center 40%;
}
.bve-page-banner .bve-banner-title {
  position: absolute;
  bottom: 20%;
  /* Align with the centered 1100px content container */
  left: max(1.5rem, calc(50vw - 550px));
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 1.3;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.bve-page-banner .bve-banner-icon {
  position: absolute;
  /* Large icon, ~10% of its width bleeding off the right edge */
  right: -3vw;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(120px, 18vw, 260px);
  height: auto;
}
@media (max-width: 900px) {
  .bve-page-banner {
    margin-top: -3rem;
  }
  .bve-page-banner .bve-banner-icon {
    display: none;
  }
  .bve-page-banner .bve-banner-title {
    bottom: auto;
    top: 60%;
  }
}

/* ---------- Header: single SVG background ---------- */
.bve-header {
  position: relative;
}
.wp-block-group.bve-header-content.is-layout-flow.wp-block-group-is-layout-flow {
  margin-block-start: 0;
}
.bve-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  line-height: 0;
  overflow: hidden;
}
.bve-header-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.bve-wave-mobile { display: none; }
@media (max-width: 900px) {
  .bve-wave-desktop { display: none; }
  .bve-wave-mobile { display: initial; }
}
.bve-header-content {
  position: relative;
  z-index: 1;
}

/* Login button: yellow/gold like old site */
.wp-block-button.bve-login-btn .wp-block-button__link.wp-element-button {
  background-color: #c8d830 !important;
  color: #001f3a !important;
  font-weight: 700 !important;
  border: none !important;
}
.wp-block-button.bve-login-btn .wp-block-button__link.wp-element-button:hover {
  background-color: #b5c22a !important;
}

/* Logo sizing — large, matching original (~160-180px wide) */
.wp-block-site-logo,
.wp-block-site-logo a {
  display: block;
}
.bve-header .wp-block-site-logo {
  margin-left: 20px;
  /* Nudge up visually — transform doesn't affect layout/container height */
  transform: translateY(-10px);
}
.wp-block-site-logo img {
  width: 180px !important;
  max-width: none !important;
  height: auto !important;
}
@media (max-width: 900px) {
  .wp-block-site-logo img {
    width: 100px !important;
  }
  .bve-header .wp-block-site-logo {
    margin-left: 0;
    transform: none;
  }
  /* Reduce header padding on mobile */
  .bve-header-content {
    padding-top: 1.5rem !important;
    padding-bottom: 4rem !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  /* Login button: smaller on mobile */
  .wp-block-button.bve-login-btn .wp-block-button__link {
    padding: 0.4rem 1rem !important;
    font-size: 0.8rem !important;
  }
  .wp-block-buttons {
    margin-left: 0 !important;
  }
}

/* (wave is now part of the single header SVG) */

/* ---------- Water Splash Footer ---------- */
.bve-footer {
  background-image: url('../images/bg-footer-lo.webp');
  background-image: image-set(
    url('../images/bg-footer-lo.avif') type('image/avif'),
    url('../images/bg-footer-lo.webp') type('image/webp')
  );
  background-size: max(100%, 970px) auto;
  background-position: top center;
  background-repeat: no-repeat;
  /* White below the image so text area is clean once image ends */
  background-color: #fff;
  overflow: hidden;
  padding: 0;
}

.bve-footer-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  /* Percentage top-padding tracks the water image height (bg-size: 100% auto
     keeps the splash zone at a fixed % of container width).
     Image is 1968×956 → splash clears at ~55% of image height ≈ 27% of width.
     30% gives comfortable clearance; 10rem is the mobile floor. */
  padding: max(8rem, 20%) 2rem 2rem;
}

.bve-footer-columns {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  max-width: 650px;
}

.bve-footer-col .bve-footer-heading {
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bve-navy);
  margin: 0 0 0.75rem;
}

/* Unified icon list for both Kontakt and Quick Links */
.bve-icon-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bve-icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--bve-text);
  margin-bottom: 0.4rem;
}

.bve-icon-list li i,
.bve-icon-list li .bve-icon {
  color: var(--bve-navy);
  font-size: 0.8rem;
  width: 1rem;
  text-align: center;
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.bve-icon-list li img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.bve-icon-list a {
  color: var(--bve-navy);
  text-decoration: none;
  transition: color var(--bve-transition);
}

.bve-icon-list a:hover {
  color: var(--bve-blue);
}

.bve-footer-legal {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bve-border);
  display: flex;
  align-items: baseline;
  gap: 2rem;
}

.bve-footer-legal a {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bve-navy);
  text-decoration: none;
  transition: color var(--bve-transition);
}

.bve-footer-legal a:hover {
  color: var(--bve-blue);
}

.bve-footer-copy {
  font-size: 0.8rem;
  color: var(--bve-text-muted);
  margin-top: 1rem;
}

/* Footer at 768px: keep two-column layout, no min-height needed */

/* ---------- Hero / Banner Sections ---------- */
.bve-hero {
  position: relative;
  background: linear-gradient(135deg, var(--bve-navy) 0%, var(--bve-blue) 60%, var(--bve-blue-light) 100%);
  color: #fff;
  padding: clamp(3rem, 8vw, 6rem) 2rem;
  overflow: hidden;
}
.bve-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.bve-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}
.bve-hero h1 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.bve-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  max-width: 600px;
}


/* ---------- Content Cards ---------- */
.bve-card {
  background: #fff;
  border-radius: var(--bve-radius-lg);
  box-shadow: 0 2px 16px rgba(12, 53, 89, 0.08);
  padding: 2rem;
  transition: transform var(--bve-transition), box-shadow var(--bve-transition);
}
.bve-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(12, 53, 89, 0.12);
}

/* Blue surface card */
.bve-card-surface {
  background: var(--bve-surface);
  border: 1px solid var(--bve-border);
}

/* ---------- Section Styling ---------- */
.bve-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.bve-section-surface {
  background: var(--bve-surface);
}
.bve-section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--bve-navy);
  text-align: center;
  margin-bottom: 2.5rem;
}
.bve-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--bve-blue);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
/* Columns: prevent horizontal overflow, allow vertical */
.wp-block-column {
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Contact form spacing */
.bve-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.bve-contact-form > div {
  margin-top: 0 !important; /* override inline margin-top, use gap instead */
}

.bve-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--bve-transition);
  cursor: pointer;
  border: none;
}
.bve-btn-primary {
  background: #0c3559;
  color: #fff;
}
.bve-btn-primary:hover {
  background: var(--bve-navy);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 119, 182, 0.3);
}
.bve-btn-outline {
  background: transparent;
  color: var(--bve-blue);
  border: 2px solid var(--bve-blue);
}
.bve-btn-outline:hover {
  background: var(--bve-blue);
  color: #fff;
}
.bve-btn-white {
  background: #fff;
  color: var(--bve-navy);
}
.bve-btn-white:hover {
  background: var(--bve-blue-pale);
}

/* ---------- Partner Logo Grid ---------- */
.bve-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  padding: 2rem 0;
}
.bve-partners img {
  height: 50px;
  width: auto;
  filter: grayscale(30%);
  opacity: 0.8;
  transition: all var(--bve-transition);
}
.bve-partners img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* ---------- Team Grid ---------- */
.bve-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}
.bve-team-member img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bve-blue-pale);
  transition: border-color var(--bve-transition);
}
.bve-team-member:hover img {
  border-color: var(--bve-blue);
}
.bve-team-member h4 {
  margin: 1rem 0 0.25rem;
  font-size: 1rem;
  color: var(--bve-navy);
}
.bve-team-member .role {
  font-size: 0.85rem;
  color: var(--bve-text-muted);
}

/* ---------- Icon Navigation (Aktuelles/Ausbildung/Weiterbildung) ---------- */
.bve-icon-nav {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 2rem 0;
}
.bve-icon-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--bve-navy);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--bve-transition);
}
.bve-icon-nav a:hover {
  color: var(--bve-blue);
}
.bve-icon-nav img {
  width: 48px;
  height: 48px;
}

/* ---------- Scroll Animations ---------- */
.bve-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.bve-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.bve-fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.bve-fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.bve-fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.bve-fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delay for children */
.bve-stagger > *:nth-child(1) { transition-delay: 0s; }
.bve-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.bve-stagger > *:nth-child(3) { transition-delay: 0.2s; }
.bve-stagger > *:nth-child(4) { transition-delay: 0.3s; }
.bve-stagger > *:nth-child(5) { transition-delay: 0.4s; }
.bve-stagger > *:nth-child(6) { transition-delay: 0.5s; }
.bve-stagger > *:nth-child(7) { transition-delay: 0.6s; }
.bve-stagger > *:nth-child(8) { transition-delay: 0.7s; }

/* ---------- Testimonial ---------- */
.bve-testimonial {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
}
.bve-testimonial img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bve-blue-pale);
  margin-bottom: 1.5rem;
}
.bve-testimonial blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--bve-text);
  line-height: 1.8;
  margin: 0;
  padding: 0;
  border: none;
}
.bve-testimonial cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-weight: 600;
  color: var(--bve-navy);
}

/* ---------- Cookie Banner ---------- */
.bve-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bve-navy);
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease-out;
}
.bve-cookie-banner.visible {
  transform: translateY(0);
}
.bve-cookie-banner p {
  margin: 0;
  flex: 1;
}
.bve-cookie-banner a {
  color: var(--bve-blue-light);
}
.bve-cookie-dismiss {
  background: #0c3559;
  color: #fff;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: background var(--bve-transition);
}
.bve-cookie-dismiss:hover {
  background: var(--bve-blue-light);
}

/* ---------- Screen constraints ---------- */
body {
  min-width: 320px;
}

/* On 4K+ screens, cap rendered content at 1920px and center it.
   Backgrounds (header navy, footer water) still bleed full-width. */
/* 4K+: full-width layout, content containers handle max-width internally */

/* ---------- Responsive ---------- */

/* Large screens: wider footer columns */
@media (min-width: 1200px) {
  .bve-footer-columns {
    max-width: 800px;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .bve-footer-columns {
    max-width: 100%;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .bve-icon-nav {
    gap: 1.5rem;
  }
  .bve-icon-nav img {
    width: 36px;
    height: 36px;
  }
  .bve-team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .bve-cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.25rem;
  }
  .wp-block-columns {
    flex-direction: column !important;
  }
  .bve-footer-legal {
    gap: 1.5rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .bve-team-grid {
    grid-template-columns: 1fr;
  }
  .bve-hero {
    padding: 2rem 1rem;
  }
  .bve-footer-inner {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  /* KONTAKT + QUICK LINKS stay side by side — this is the minimum width target */
  .bve-footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .bve-footer-col .bve-footer-heading {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
  }
  .bve-icon-list li {
    font-size: 0.75rem;
    gap: 0.4rem;
  }
  .bve-icon-list li img {
    width: 16px;
    height: 16px;
  }
  .bve-footer-legal {
    gap: 1rem;
  }
  .bve-footer-legal a {
    font-size: 0.75rem;
  }
  .bve-footer-copy {
    font-size: 0.7rem;
  }
}

/* ---------- Utility ---------- */
.bve-text-center { text-align: center; }
.bve-mb-0 { margin-bottom: 0 !important; }
.bve-mt-2 { margin-top: 2rem; }
.bve-mt-3 { margin-top: 3rem; }

/* ---------- Kontakt Page — Contact Form Section ---------- */
.bve-contact-form-section {
  background: var(--bve-surface);
  border: 1px solid var(--bve-border);
  border-radius: var(--bve-radius-lg);
  padding: 2rem 2.5rem 2.5rem;
  margin-bottom: 2.5rem;
}

.bve-contact-form-section h2.wp-block-heading {
  color: var(--bve-navy);
  margin-bottom: 1.5rem;
}

/* ---------- Kontakt Page — "Finden Sie uns" Card ---------- */
.bve-find-us-card {
  background: var(--bve-surface);
  border: 1px solid var(--bve-border);
  border-radius: var(--bve-radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 12px rgba(0, 31, 58, 0.06);
}

.bve-find-us-inner {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 0;
}

.bve-find-us-details {
  padding: 2rem 2rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--bve-border);
}

.bve-find-us-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bve-navy);
  margin: 0 0 1.25rem 0;
}

.bve-find-us-list {
  gap: 0 !important; /* override any flex gap if .bve-icon-list sets one */
}

.bve-find-us-list li {
  margin-bottom: 0.75rem;
  align-items: flex-start;
}

.bve-find-us-list li:last-child {
  margin-bottom: 0;
}

.bve-find-us-list li i,
.bve-find-us-list li .bve-icon {
  color: var(--bve-blue);
  margin-top: 0.2rem;
  font-size: 0.9rem;
  width: 1.1em;
  flex-shrink: 0;
}

.bve-find-us-list a {
  color: var(--bve-text);
  text-decoration: none;
  transition: color var(--bve-transition);
}

.bve-find-us-list a:hover {
  color: var(--bve-blue);
}

.bve-find-us-map {
  position: relative;
  overflow: hidden;
  /* Minimum height so card doesn't collapse on short content */
  min-height: 260px;
}

.bve-map-link {
  display: block;
  height: 100%;
  position: relative;
}

.bve-map-link picture,
.bve-map-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.bve-map-link:hover img {
  transform: scale(1.02);
}

.bve-map-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 31, 58, 0.75));
  color: #fff;
  padding: 1.5rem 1rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.bve-map-link:hover .bve-map-overlay {
  opacity: 1;
}

/* ---------- Kontakt Page — Ansprechpartner Section ---------- */
.bve-ansprechpartner-section {
  background: var(--bve-blue-pale);
  border-radius: var(--bve-radius-lg);
  padding: 2.5rem 2.5rem 2rem;
  margin-bottom: 1rem;
}

.bve-ansprechpartner-section h2.wp-block-heading {
  color: var(--bve-navy);
  margin-bottom: 0.75rem;
}

.bve-ansprechpartner-section p {
  color: var(--bve-text);
  max-width: 620px;
  margin-bottom: 1.5rem;
}

/* Arrow icon inside the Zum Team button */
.bve-ansprechpartner-section .wp-block-button__link i {
  vertical-align: middle;
}

/* ---------- Kontakt Page — Responsive ---------- */
@media (max-width: 768px) {
  .bve-find-us-inner {
    grid-template-columns: 1fr;
  }

  .bve-find-us-details {
    border-right: none;
    border-bottom: 1px solid var(--bve-border);
    padding: 1.5rem;
  }

  .bve-find-us-map {
    min-height: 220px;
  }

  .bve-contact-form-section {
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .bve-ansprechpartner-section {
    padding: 1.5rem 1.25rem;
  }
}

/* ==========================================================================
   Blog Post — Shared Styles (.bve-blog-*)
   Used by all blog posts in pages/blog/*.php
   ========================================================================== */

/* ---------- Outer wrapper ---------- */
.bve-blog-wrap {
  max-width: 1100px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
}

/* ---------- Post meta: date + category badge ---------- */
.bve-blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  font-size: 0.875rem;
  color: var(--bve-text-muted);
}
.bve-blog-meta time {
  display: flex;
  align-items: center;
  gap: 0.4em;
}
.bve-blog-meta .bve-blog-badge {
  display: inline-block;
  background: #e0f2fe;
  color: #0284c7;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2em 0.75em;
  border-radius: 999px;
}
.bve-blog-meta .bve-blog-sep {
  width: 3px;
  height: 3px;
  background: #cbd5e1;
  border-radius: 50%;
  display: inline-block;
}

/* ---------- Article title + decorative rule ---------- */
.bve-blog-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--bve-navy-2);
  line-height: 1.25;
  margin: 0 0 0.5rem;
}
.bve-blog-title-rule {
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  border-radius: 2px;
  margin-bottom: 1.75rem;
}

/* ---------- Body text ---------- */
.bve-blog-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--bve-text);
}
.bve-blog-body p {
  margin: 0 0 1.25rem;
}
.bve-blog-body p:last-child {
  margin-bottom: 0;
}
.bve-blog-body strong {
  color: var(--bve-navy-2);
}
.bve-blog-body a {
  color: #0284c7;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* ---------- Hero / feature image ---------- */
.bve-blog-hero {
  margin: 0 0 2rem;
  border-radius: 8px;
  overflow: hidden;
}
.bve-blog-hero picture,
.bve-blog-hero img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Highlight / callout box ---------- */
.bve-blog-highlight {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border-left: 4px solid #0284c7;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.bve-blog-highlight p {
  margin: 0;
  font-size: 1rem;
  color: var(--bve-navy-2);
}
.bve-blog-highlight strong {
  color: #0284c7;
}

/* ---------- Thank-you / info box ---------- */
.bve-blog-infobox {
  background: #f0f9ff;
  border-left: 4px solid #0284c7;
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.25rem;
  margin: 2rem 0;
  font-size: 0.975rem;
  color: var(--bve-navy-2);
}

/* ---------- Photo gallery grid ---------- */
.bve-blog-gallery {
  margin: 2rem 0;
}
.bve-blog-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.bve-blog-gallery-grid figure {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.bve-blog-gallery-grid picture,
.bve-blog-gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 600px) {
  .bve-blog-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Lightbox gallery (zeugnisuebergabe-2025 style) ---------- */
.bve-blog-gallery-lightbox {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1rem 0 2rem;
}
@media (max-width: 700px) {
  .bve-blog-gallery-lightbox { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 440px) {
  .bve-blog-gallery-lightbox { grid-template-columns: 1fr; }
}
.bve-blog-gallery-lightbox .bve-blog-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #f3f4f6;
  cursor: pointer;
  aspect-ratio: 3 / 2;
}
.bve-blog-gallery-lightbox .bve-blog-gallery-item.bve-gallery-featured {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 7;
}
.bve-blog-gallery-lightbox .bve-blog-gallery-item picture,
.bve-blog-gallery-lightbox .bve-blog-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}
.bve-blog-gallery-lightbox .bve-blog-gallery-item:hover img,
.bve-blog-gallery-lightbox .bve-blog-gallery-item:focus img {
  transform: scale(1.04);
  filter: brightness(1.05);
}
.bve-blog-gallery-lightbox .bve-blog-gallery-item:focus-visible {
  outline: 3px solid #0284c7;
  outline-offset: 2px;
}
.bve-blog-gallery-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(2, 132, 199, 0.25);
  transition: opacity 0.25s ease;
}
.bve-blog-gallery-item:hover .bve-blog-gallery-zoom,
.bve-blog-gallery-item:focus .bve-blog-gallery-zoom {
  opacity: 1;
}
.bve-blog-gallery-zoom svg {
  width: 40px;
  height: 40px;
  fill: #fff;
}

/* ---------- Lightbox overlay ---------- */
.bve-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 20, 35, 0.93);
  align-items: center;
  justify-content: center;
}
.bve-lightbox.active {
  display: flex;
}
.bve-lightbox-inner {
  position: relative;
  max-width: min(1200px, 95vw);
  max-height: 90vh;
}
.bve-lightbox-inner img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}
.bve-lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
  opacity: 0.8;
  padding: 0;
}
.bve-lightbox-close:hover { opacity: 1; }
.bve-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 1.2rem;
  transition: background 0.2s;
}
.bve-lightbox-nav:hover { background: rgba(255, 255, 255, 0.25); }
.bve-lightbox-prev { right: calc(100% + 0.75rem); }
.bve-lightbox-next { left: calc(100% + 0.75rem); }
.bve-lightbox-caption {
  position: absolute;
  bottom: -2.25rem;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

/* ---------- Gallery heading (with line) ---------- */
.bve-blog-gallery-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bve-navy-2);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.bve-blog-gallery-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

/* ---------- Photo caption ---------- */
.bve-blog-caption {
  font-size: 0.8rem;
  color: var(--bve-text-muted);
  margin-top: 0.5rem;
  text-align: center;
  font-style: italic;
}
.bve-blog-credit {
  font-size: 0.8rem;
  color: var(--bve-text-muted);
  font-style: italic;
  margin: 0.5rem 0 1rem;
}

/* ---------- CTA strip ---------- */
.bve-blog-cta {
  margin: 2rem 0 0;
}
.bve-blog-cta-inner {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-radius: 10px;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.bve-blog-cta-text {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}
.bve-blog-cta-text span {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.2rem;
}
.bve-blog-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: #0284c7;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, box-shadow 0.2s;
}
.bve-blog-cta a:hover {
  background: #eff6ff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ---------- Back link ---------- */
.bve-blog-back {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}
.bve-blog-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: #0284c7;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}
.bve-blog-back a:hover {
  text-decoration: underline;
}

/* ---------- Two-column layout (text + image) ---------- */
.bve-blog-cols {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 360px);
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2rem;
}
@media (max-width: 700px) {
  .bve-blog-cols {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
.bve-blog-col-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
}
.bve-blog-col-image picture,
.bve-blog-col-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Animated Section Dividers ---------- */
.bve-divider {
  display: block;
  height: 3px;
  width: 100%;
  max-width: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--bve-blue) 25%,
    var(--bve-blue-light) 50%,
    var(--bve-blue) 75%,
    transparent 100%
  );
  border: none;
  margin: 2rem 0;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center center;
  transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.bve-divider--visible {
  transform: scaleX(1);
}
/* Short decorative variant (centered, max 60px) — used below section headings */
.bve-divider--short {
  max-width: 60px;
  margin: 0.75rem auto 2rem;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--bve-blue) 25%,
    var(--bve-blue-light) 50%,
    var(--bve-blue) 75%,
    transparent 100%
  );
}
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bve-divider { transition: none; transform: scaleX(1); }
}

/* ---------- Logo + text row (Viega style) ---------- */
.bve-blog-intro-row {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.bve-blog-logo {
  flex: 0 0 auto;
  width: 140px;
}
.bve-blog-logo img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 600px) {
  .bve-blog-intro-row { flex-direction: column; gap: 1rem; }
  .bve-blog-logo { width: 100px; }
}

/* ============================================================
   LANDING PAGES — shared styles for /weiterbildung/* pages v1.8.8
   ============================================================
   All classes use the .lp- prefix to avoid conflicts with the
   rest of the theme. BVE design tokens are used throughout:
     --bve-blue (#0077b6)  replaces --color-primary (#0284c7)
     --bve-navy (#001f3a)  replaces --color-secondary (#0c4a6e)
     --bve-font (Quicksand) replaces Segoe UI
     --bve-max-width (1100px) is the content ceiling
   ============================================================ */

/* ---- Shared local tokens (scoped to .lp-wrapper) ---- */
.lp-wrapper {
  --lp-green: #16a34a;
  --lp-green-bg: #f0fdf4;
  --lp-yellow: #ecc94b;
  --lp-red: #c53030;
  --lp-red-bright: #e11d48;
  --lp-blue-bg: #f0f9ff;
  --lp-blue-soft: #e0f2fe;
  --lp-blue-border: #bae6fd;
  --lp-gray-bg: #f8fafc;
  --lp-gray-border: #e2e8f0;
  --lp-text: var(--bve-text);
  --lp-text-light: var(--bve-text);
  --lp-text-muted: var(--bve-text);
  --lp-text-slate: var(--bve-text-muted);
  --lp-radius-lg: 12px;
  --lp-radius-md: 8px;
  --lp-radius-pill: 50px;
  --lp-section-gap: 4rem;

  max-width: var(--bve-max-width);
  margin: 0 auto;
  padding: 0 1rem;
  color: var(--lp-text);
  line-height: 1.6;
  font-family: var(--bve-font);
  background: #fff;
  box-sizing: border-box;
}

/* ---- Hero / course header ---- */
.lp-hero {
  margin-bottom: 3rem;
  text-align: center;
  background: linear-gradient(135deg, var(--lp-blue-bg) 0%, var(--lp-blue-soft) 100%);
  padding: 4rem 1rem;
  border-radius: var(--lp-radius-lg);
  border: 1px solid var(--lp-blue-border);
}

.lp-hero-title {
  font-size: 2.4rem;
  line-height: 1.1;
  color: var(--bve-navy);
  margin-bottom: 1.5rem;
  font-weight: 800;
}
@media (max-width: 768px) {
  .lp-hero-title { font-size: 1.5rem; }
}

.lp-hero-sub {
  font-size: 1.3rem;
  color: var(--lp-text-light);
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.4;
}

.lp-hero-meta {
  font-size: 0.9rem;
  color: var(--lp-text-slate);
  margin-top: 1rem;
}

/* ---- Badges / pill labels ---- */
.lp-badge-row {
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lp-badge {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: var(--lp-radius-pill);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
}

.lp-badge-blue     { background: var(--bve-blue); }
.lp-badge-navy     { background: var(--bve-navy); }
.lp-badge-red      { background: var(--lp-red); }
.lp-badge-green    { background: var(--lp-green); }

/* ---- CTA container ---- */
.lp-cta-row {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

/* ---- Buttons ---- */
.lp-btn-primary {
  display: inline-block;
  background: var(--bve-blue);
  color: #fff;
  padding: 16px 32px;
  text-decoration: none;
  border-radius: var(--lp-radius-md);
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 119, 182, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: var(--bve-font);
}
.lp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -3px rgba(0, 119, 182, 0.4);
  color: #fff;
  text-decoration: none;
}

.lp-btn-secondary {
  display: inline-block;
  background: var(--bve-blue);
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: var(--lp-radius-md);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 6px rgba(0, 119, 182, 0.2);
  font-family: var(--bve-font);
}
.lp-btn-secondary:hover { color: #fff; text-decoration: none; opacity: 0.9; }

/* ---- Sections ---- */
.lp-section {
  margin-bottom: var(--lp-section-gap);
}

.lp-section-center {
  margin-bottom: var(--lp-section-gap);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.lp-section-title {
  font-size: 2rem;
  color: var(--bve-text);
  margin-bottom: 1rem;
  font-weight: 700;
}
@media (max-width: 768px) {
  .lp-section-title { font-size: 1.4rem; }
}

.lp-section-text {
  font-size: 1.1rem;
  color: var(--lp-text-muted);
}

/* ---- Card grids ---- */
.lp-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: var(--lp-section-gap);
}

.lp-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 5rem;
}
@media (max-width: 768px) {
  .lp-grid-2 { grid-template-columns: 1fr; gap: 1.5rem; }
}

.lp-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
  margin-bottom: var(--lp-section-gap);
}

/* ---- Cards ---- */
.lp-card {
  background: #fff;
  padding: 2rem;
  border: 1px solid var(--lp-gray-border);
  border-radius: var(--lp-radius-lg);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.lp-card-green {
  background: var(--lp-green-bg);
  padding: 2rem;
  border-radius: var(--lp-radius-lg);
  border-left: 6px solid var(--lp-green);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.lp-card-blue {
  background: var(--lp-blue-bg);
  padding: 2rem;
  border-radius: var(--lp-radius-lg);
  border-left: 6px solid var(--bve-blue);
  text-align: left;
  display: flex;
  flex-direction: column;
}

/* ---- Method/info boxes (3-up grid, left-border accents) ---- */
.lp-method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 3rem;
}

.lp-method-box {
  padding: 1.5rem;
  border-radius: var(--lp-radius-md);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.lp-method-box-gray  { background: var(--lp-gray-bg);  border-left: 4px solid var(--lp-text-muted); }
.lp-method-box-blue  { background: var(--lp-blue-bg);  border-left: 4px solid var(--bve-blue); }
.lp-method-box-red   { background: #fff5f5;             border-left: 4px solid var(--lp-red-bright); }

/* ---- Module badge (circle number + label above) ---- */
.lp-module-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.lp-module-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--lp-text-slate);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 6px;
}

.lp-step-circle {
  background: var(--bve-blue);
  color: #fff;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lp-step-circle-alt  { background: #0096c7; }
.lp-step-circle-dark { background: #075985; }

/* Heading row that combines module-badge + text */
.lp-module-heading {
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  color: var(--bve-navy);
  margin-top: 0;
}
@media (max-width: 768px) {
  .lp-module-heading { font-size: 1.3rem; }
}

/* Praxis-Box — orange/brown gradient panel (Quereinsteiger Wasser, "Praxis: Probeentnahme") */
.lp-praxis-box {
  background: linear-gradient(135deg, #78350f 0%, #92400e 60%, #b45309 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px -8px rgba(120, 53, 15, 0.35);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: stretch;
}
.lp-praxis-icon {
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 2.5rem;
  text-align: center;
}
.lp-praxis-icon i,
.lp-praxis-icon .bve-icon {
  font-size: 3rem;
  color: #fcd34d;
  margin-bottom: 0.5rem;
}
.lp-praxis-icon span {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fcd34d;
}
.lp-praxis-content {
  padding: 2.5rem;
}
.lp-praxis-title {
  color: #fcd34d;
  margin-top: 0;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.lp-praxis-lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.lp-praxis-body {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  margin-bottom: 1.75rem;
}
.lp-praxis-body strong {
  color: #fcd34d;
}
.lp-praxis-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.lp-praxis-step {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 1.25rem;
  border-top: 3px solid #fcd34d;
}
.lp-praxis-step strong {
  color: #fcd34d;
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}
.lp-praxis-step span {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}
@media (max-width: 768px) {
  .lp-praxis-box { grid-template-columns: 1fr; }
  .lp-praxis-icon { padding: 1.5rem 1rem; flex-direction: row; gap: 0.75rem; }
  .lp-praxis-icon i, .lp-praxis-icon .bve-icon { margin-bottom: 0; }
  .lp-praxis-content { padding: 1.5rem; }
  .lp-praxis-steps { grid-template-columns: 1fr; }
}

/* Section sub-headline (e.g. "Sicherheitsunterweisung … Rechtliche Grundlagen") */
.lp-section-subhead {
  font-size: 1.8rem;
  margin-top: 0;
  color: var(--lp-blue-soft);
}
@media (max-width: 768px) {
  .lp-section-subhead { font-size: 1.3rem; }
}

/* Section heading on a dark gradient background (white text). Used by the navy
   "5 Sicherheitsregeln" panel on the EFKffT course page. */
.lp-section-heading-dark {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.15;
}
@media (max-width: 768px) {
  .lp-section-heading-dark { font-size: 1.5rem; }
}

/* Warning-Box — pink/red panel used for "Erste Hilfe bei Stromunfällen" (Jahresunterweisung) */
.lp-warning-box {
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: var(--lp-radius-lg);
  padding: 2.5rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}
.lp-warning-body {
  flex: 2;
  min-width: 300px;
}
.lp-warning-title {
  color: var(--lp-red);
  margin-top: 0;
  font-size: 1.4rem;
}
.lp-warning-lead {
  color: #7f1d1d;
  margin-bottom: 1.5rem;
}
.lp-warning-rule {
  background: white;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid var(--lp-red);
  font-weight: bold;
  color: var(--lp-red);
}
.lp-warning-stat {
  flex: 1;
  min-width: 250px;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #fecaca;
}
.lp-warning-stat-label {
  margin-top: 0;
  color: var(--lp-red);
  font-size: 1rem;
}
.lp-warning-stat-number {
  font-size: 2.8rem;
  font-weight: bold;
  color: var(--lp-red);
  line-height: 1;
}
.lp-warning-stat-text {
  font-size: 0.85rem;
  color: #7f1d1d;
  margin-top: 10px;
}
@media (max-width: 768px) {
  .lp-warning-box { padding: 1.5rem; gap: 1.5rem; }
  .lp-warning-body { min-width: 0; flex-basis: 100%; }
  .lp-warning-stat { min-width: 0; flex-basis: 100%; }
}

/* ---- Navy stats bar ---- */
.lp-stats-bar {
  margin-bottom: var(--lp-section-gap);
  padding: 3rem;
  background: linear-gradient(135deg, #004e89 0%, #0077b6 60%, #0096c7 100%);
  color: #fff;
  border-radius: var(--lp-radius-lg);
}

.lp-stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.lp-stat-box {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--lp-radius-md);
}

.lp-stat-box-yellow {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: var(--lp-radius-lg);
  border-left: 6px solid var(--lp-yellow);
}

.lp-stat-box-top {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--lp-radius-md);
  border-top: 4px solid var(--lp-yellow);
}

/* ---- Regulation list (inside dark stats bar) ---- */
.lp-reg-list dt {
  font-weight: 700;
  color: var(--lp-blue-border);
  margin-bottom: 4px;
}
.lp-reg-list dd {
  margin-left: 0;
  margin-bottom: 12px;
  opacity: 0.8;
  padding-left: 10px;
  border-left: 2px solid var(--bve-blue);
}

/* ---- Module/curriculum list ---- */
.lp-module-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.lp-module-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--lp-gray-border);
  font-size: 0.95rem;
  color: var(--lp-text-muted);
}
.lp-module-list li:last-child { border-bottom: none; }
.lp-module-list li strong { color: var(--lp-text-light); }

/* ---- Schedule / Termine section ---- */
.lp-termine {
  margin-bottom: var(--lp-section-gap);
  background: #fff;
  border: 1px solid var(--lp-gray-border);
  border-radius: var(--lp-radius-lg);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.lp-termine-header {
  background: linear-gradient(90deg, #004e89 0%, #0077b6 60%, #0096c7 100%);
  color: #fff;
  padding: 1.5rem;
  text-align: center;
}

.lp-termine-header h2,
.lp-termine-header h3 {
  margin: 0;
  color: #fff;
}

.lp-termine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.lp-termine-col-left {
  padding: 2rem;
  border-right: 1px solid #edf2f7;
}

.lp-termine-col-right {
  padding: 2rem;
  background: #fcfcfc;
}

/* ---- Status tags ---- */
.lp-status {
  font-weight: 700;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 0.85rem;
}
.lp-status-ok      { color: var(--lp-green);  background: #f0fff4; }
.lp-status-warn    { color: #d97706;           background: #fffbeb; }
.lp-status-alert   { color: #dc2626;           background: #fef2f2; }

/* ---- Price table ---- */
.lp-price-table {
  width: 100%;
  font-size: 0.95rem;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}
.lp-price-table tr { border-bottom: 1px solid var(--lp-gray-border); }
.lp-price-table td { padding: 7px 0; }

/* ---- FAQ / Accordion ---- */
.lp-accordion {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.lp-accordion-item {
  border-bottom: 1px solid var(--lp-gray-border);
  padding: 1rem 0;
}

.lp-accordion-question {
  color: var(--bve-blue);
  margin-bottom: 5px;
  font-weight: 700;
  font-size: 1rem;
}

.lp-accordion-answer {
  font-size: 0.95rem;
  margin: 0;
  color: var(--lp-text-light);
}

/* ---- CTA / cross-sell box ---- */
.lp-cta-box {
  border: 2px dashed var(--bve-blue);
  border-radius: var(--lp-radius-lg);
  padding: 2rem;
  text-align: center;
  margin-bottom: var(--lp-section-gap);
  background: var(--lp-blue-bg);
}

/* ---- Registration footer ---- */
.lp-registration-footer {
  text-align: center;
  border-top: 2px solid var(--lp-blue-soft);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.lp-registration-footer .lp-hero-title {
  margin-bottom: 1rem;
}

/* ---- Step row (numbered process) ---- */
.lp-step-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.lp-step-row-number {
  background: var(--bve-blue);
  color: #fff;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.lp-step-row-alt  .lp-step-row-number { background: var(--bve-navy); }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  /* .lp-hero-title font-size handled by the ≤768px rule near .lp-hero-title definition */
  .lp-hero-sub    { font-size: 1.1rem; }
  .lp-stats-bar   { padding: 2rem 1.25rem; }
  .lp-termine-col-left,
  .lp-termine-col-right { border-right: none; }
}

