/* Nur control/blitzeraus.php. Unveraenderte CSS-Bloecke aus dem bestehenden Header. */

/* Urspruenglicher Header-Styleblock 1 */

/* BODY darf beim geöffneten mobilen Menü nicht scrollen */
body.mobile-menu-open {
    overflow: hidden;
    height: 100vh;
}

/* Aktiviertes mobiles Menü ist vollständig scrollbar */
.custom-header-wrapper .mobile-nav.active {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: 100vh;
}
/* Hauptcontainer */
.hero-section {
    position: relative;
    width: 100%;
    height: 400px;
     overflow: visible;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: left;
    max-width: 900px;
    padding-top: 20px;
    box-sizing: border-box;
}

.hero-badge {
    background-color: #86b3d1;
    color: white;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 15px;
}

.hero-content h1 {
    font-size: 2rem;
    margin: 0;
    font-weight: bold;
    line-height: 1.3;
    color: #ffffff;
}

.hero-content h2 {
    font-size: 1.5rem;
    color: #ffffff;
    margin: 10px 0;
    line-height: 1.3;
}
.hero-content a {
    color: #ffffff;  
}

.hero-content p {
    font-size: 1rem;
    color: #ffffff;
    margin-top: 15px;
}

.hero-button {
  align-items: center;
  background-clip: padding-box;
  background-color: #ff482d;
  border: 1px solid #f93e22;
  border-radius: .25rem;
  box-shadow: rgba(0, 0, 0, 0.02) 0 1px 3px 0;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: system-ui, -apple-system, system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif; 
  font-size: 1rem;
  /* padding: 12px 20px; */
  padding: calc(.5rem - 1px) calc(1rem - 1px);
  position: relative;
  text-decoration: none;
  transition: all 250ms ease-in-out;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: baseline;
  width: auto;
  margin-top: 10px;
}
.hero-button:hover {
  background-color: #FD5039;
  border: 1px solid #fd4428;	
  transform: translateY(-1.5px);
  box-shadow: rgba(0, 0, 0, 0.15) 0 6px 12px;
}

.hero-button:focus {
  box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
}

.hero-button:active {
  box-shadow: rgba(0, 0, 0, .06) 0 2px 4px;
  transform: translateY(0);
}

.hero-note {
    font-size: 1rem;
    margin-top: 10px;
    opacity: 0.8;
}

@media (max-width: 1024px) {
    .hero-section {
        height: 350px;
    }

    .hero-content h1 {
        font-size: 1.4rem;
		line-height: 1.3;
    }

    .hero-content h2 {
        font-size: 1.1rem;
    }

    .hero-content p {
        font-size: 0.7rem;
		line-height: 1;
    }

    .hero-button {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
	.hero-note {
		font-size: 0.9rem;
     }  
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
    font-size: 19px;
    line-height: 20px;
   }
   .hero-span {
		font-size: 16px;
		line-height: 17px;
	  }

    .hero-content h2 {
        font-size: 0.9rem;
    }

    .hero-content p {
        font-size: 0.9rem;
		line-height: 1;
    }

    .hero-button {
        font-size: 0.8rem;
        padding: 8px 10px;
    }
	.hero-note {
		font-size: 0.9rem;
     }  
}


.custom-header-wrapper {
    --primary-color: #bc1d3d;
    --secondary-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #333;
    --highlight-color: #ff6d00;
	--border-color:#e5e7eb; 
	margin-top: -25px;
}

.custom-header-wrapper * {
    margin: 0;
    box-sizing: border-box;
}

.custom-header-wrapper .header-container {
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: visible;
}

.custom-header-wrapper .announcement-bar {
    background-color: #bc1d3d;
    color: white;
    text-align: center;
    padding: 13px;
    font-weight: 500;
    position: relative;
    font-size: 14px;
}

.custom-header-wrapper .announcement-bar .close-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
}

.custom-header-wrapper .main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    max-width: 1080px;
    margin: 0 auto;
}

.custom-header-wrapper .logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.custom-header-wrapper .logo span {
    color: var(--secondary-color);
}

.custom-header-wrapper .search-container {
    flex-grow: 1;
    max-width: 500px;
    margin: 0 20px;
    position: relative;
}

.custom-header-wrapper .search-container input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.custom-header-wrapper .search-container button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}

.custom-header-wrapper .header-icons {
    display: flex;
    gap: 20px;
}

.custom-header-wrapper .header-icons a {
    color: var(--dark-color);
    text-decoration: none;
    font-size: 20px;
}

.custom-header-wrapper .nav-container {
	position: relative;   /* NEU */
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1px 40px;
    max-width: 2000px;
    margin: 0 auto;
    overflow: visible;
}

.custom-header-wrapper .main-nav {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    white-space: nowrap;
    overflow: visible;
    position: relative;
}

.custom-header-wrapper .nav-item {
    position: relative;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 500;
    color: var(--dark-color);
    text-decoration: none;
    display: inline-block;
}

.custom-header-wrapper .nav-item:hover {
    color: var(--dark-color);
}

.custom-header-wrapper .dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    left: 0;
    top: 100%;
    padding: 15px 0;
    border-top: 3px solid var(--primary-color);
	border-radius: 5px;
}

.custom-header-wrapper .dropdown-item {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--dark-color);
}

.custom-header-wrapper .dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
    color: var(--primary-color);
}

.custom-header-wrapper .nav-item:hover .dropdown-content {
    display: block;
}

.custom-header-wrapper .chevron-down {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-style: solid;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform 0.2s;
}

.custom-header-wrapper .nav-item:hover .chevron-down {
    transform: rotate(-135deg) translateY(-3px);
}

/* === MEGA MENU STYLES === */
.custom-header-wrapper .mega-menu-wrapper {
    position: static;
}

.custom-header-wrapper .mega-menu-content {
    display: none;
    position: absolute;
    left: 50%;
	right: auto;
    transform: translateX(-50%);
    background-color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    top: 100%;
    padding: 40px;
    border-top: 3px solid var(--primary-color);
    border-radius: 5px;
    width: 90vw;
    max-width: 1400px;
    margin-top: 1px;
}

.custom-header-wrapper .mega-menu-wrapper:hover .mega-menu-content {
    display: block;
}

.custom-header-wrapper .mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.custom-header-wrapper .mega-menu-column {
    display: flex;
    flex-direction: column;
}

.custom-header-wrapper .mega-menu-column-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.custom-header-wrapper .mega-menu-column-title-mobile {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.custom-header-wrapper .mega-menu-item {
    display: block;
    padding: 3px 0;
    text-decoration: none;
    color: var(--dark-color);
    font-size: 14px;
    transition: all 0.2s ease;
}

.custom-header-wrapper .mega-menu-item-titel {
    color: var(--dark-color);
	margin-bottom: 5px;
    padding-bottom: 10px;
	font-size: 16px;
}

.custom-header-wrapper .mega-menu-item-titel:hover {
    color: var(--primary-color);
}

.custom-header-wrapper .mega-menu-item-titel:hover i {
    color: var(--primary-color);
}

.custom-header-wrapper .mega-menu-item:hover {
    color: var(--primary-color);
    padding-left: 5px;
}


/* Mobile anpassungen für Mega Menu */
@media (min-width: 993px) {
    .custom-header-wrapper .mega-menu-content.mega-rechner,
    .custom-header-wrapper .mega-menu-content.mega-blog,
    .custom-header-wrapper .mega-menu-content.mega-news {
        padding: 28px 32px;
    }

    .custom-header-wrapper .mega-menu-grid.mega-rechner-grid,
    .custom-header-wrapper .mega-menu-grid.mega-blog-grid,
    .custom-header-wrapper .mega-menu-grid.mega-news-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 22px;
        align-items: start;
    }

    .custom-header-wrapper .mega-rechner-card,
    .custom-header-wrapper .mega-blog-card,
    .custom-header-wrapper .mega-news-card {
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        background: #fff;
        padding: 14px 16px 16px;
        box-shadow: 0 6px 16px rgba(0,0,0,.08);
        transition: box-shadow .18s ease;
    }

    .custom-header-wrapper .mega-rechner-card:hover,
    .custom-header-wrapper .mega-blog-card:hover,
    .custom-header-wrapper .mega-news-card:hover {
        box-shadow: 0 12px 22px rgba(0,0,0,.12);
    }

    .custom-header-wrapper .mega-rechner-card .mega-menu-column-title,
    .custom-header-wrapper .mega-blog-card .mega-menu-column-title,
    .custom-header-wrapper .mega-news-card .mega-menu-column-title {
        border-bottom: none;
        margin: 0 0 10px;
        padding-bottom: 0;
    }

    .custom-header-wrapper .mega-rechner-card .mega-menu-item-titel,
    .custom-header-wrapper .mega-blog-card .mega-menu-item-titel,
    .custom-header-wrapper .mega-news-card .mega-menu-item-titel {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 700;
        line-height: 1.25;
        margin: 0;
        padding-bottom: 0;
    }

    .custom-header-wrapper .mega-rechner-card .mega-menu-item-titel i,
    .custom-header-wrapper .mega-blog-card .mega-menu-item-titel i,
    .custom-header-wrapper .mega-news-card .mega-menu-item-titel i {
        color: #323232;
        text-align: center;
        width: 18px;
    }

    .custom-header-wrapper .mega-rechner-card:hover .mega-menu-item-titel,
    .custom-header-wrapper .mega-rechner-card:hover .mega-menu-item-titel i,
    .custom-header-wrapper .mega-blog-card:hover .mega-menu-item-titel,
    .custom-header-wrapper .mega-blog-card:hover .mega-menu-item-titel i,
    .custom-header-wrapper .mega-news-card:hover .mega-menu-item-titel,
    .custom-header-wrapper .mega-news-card:hover .mega-menu-item-titel i {
        color: var(--primary-color);
    }
}

@media (max-width: 1200px) {
    .custom-header-wrapper .mega-menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .custom-header-wrapper .mega-menu-content {
        display: none !important;
    }
    
    .custom-header-wrapper .mega-menu-wrapper .nav-item {
        display: block;
    }
}

/* === MOBILE MENU === */
.custom-header-wrapper .mobile-header {
    display: none;
    padding: 15px;
    background-color: white;
    justify-content: space-between;
    align-items: center;
}

.custom-header-wrapper .menu-toggle,
.custom-header-wrapper .search-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.custom-header-wrapper .mobile-search {
    display: none;
    padding: 10px 15px;
    background-color: white;
}

.custom-header-wrapper .mobile-search input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
}

.custom-header-wrapper .mobile-search button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.custom-header-wrapper .mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 86%;
    max-width: 380px;
    background-color: #f6f7f8;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.custom-header-wrapper .mobile-nav.active {
    transform: translateX(0);
}

.custom-header-wrapper .mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.custom-header-wrapper .mobile-nav-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.custom-header-wrapper .mobile-nav-items {
    padding: 8px 0 18px;
}

.custom-header-wrapper .mobile-nav-item {
    padding: 15px 18px;
    border-bottom: 1px solid #e3e6e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #fff;
    color: #333;
    font-weight: 600;
    font-size: 15px;
}

.custom-header-wrapper .mobile-nav-item.active {
    background: #f1f3f4;
    color: #222;
}

.custom-header-wrapper .mobile-nav-item span {
    color: #333;
    font-weight: 700;
}

.custom-header-wrapper .mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f6f7f8;
    padding: 0 10px;
}

.custom-header-wrapper .mobile-dropdown-item {
    padding: 10px 14px;
    border-bottom: 1px solid #e6e9eb;
    display: block;
    color: #333;
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none !important;
    background: #fff;
}

.custom-header-wrapper .mobile-dropdown-item:hover,
.custom-header-wrapper .mobile-dropdown-item:focus {
    color: var(--primary-color);
    background: #fff7f9;
    text-decoration: none !important;
}

.custom-header-wrapper .mobile-dropdown-item.mobile-more-link {
    color: var(--primary-color);
    font-weight: 700;
}

.custom-header-wrapper .mobile-nav-item.active + .mobile-dropdown {
    max-height: 80vh;
    overflow-y: auto;
}

@media (max-width: 992px) {
    .custom-header-wrapper .mega-menu-column-title-mobile {
        margin: 14px 0 4px;
        padding: 0;
        border-bottom: none;
        background: transparent;
    }

    .custom-header-wrapper .mega-menu-column-title-mobile .mega-menu-item-titel {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 8px 4px 7px;
        margin: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        color: #222;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.35;
        text-decoration: none !important;
        box-shadow: none;
    }

    .custom-header-wrapper .mega-menu-column-title-mobile .mega-menu-item-titel i {
        color: var(--primary-color);
        width: 18px;
        text-align: center;
        flex: 0 0 18px;
    }

    .custom-header-wrapper .mega-menu-column-title-mobile .mega-menu-item-titel:hover,
    .custom-header-wrapper .mega-menu-column-title-mobile .mega-menu-item-titel:focus {
        color: var(--primary-color);
        background: transparent;
    }

    .custom-header-wrapper .mobile-dropdown .mobile-dropdown-item:first-of-type {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }

    .custom-header-wrapper .mobile-dropdown .mobile-dropdown-item:last-of-type {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        margin-bottom: 8px;
    }
}

/* Mobile Mega Menu Gruppen */
.custom-header-wrapper .mobile-mega-menu-group {
    background-color: #f5f5f5;
    padding: 10px 30px;
    font-weight: 600;
    font-size: 13px;
    color: var(--primary-color);
    border-bottom: 1px solid #ddd;
}

.custom-header-wrapper .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

@media (max-width: 992px) {
    .custom-header-wrapper .main-header,
    .custom-header-wrapper .nav-container {
        display: none;
    }

    .custom-header-wrapper .mobile-header {
        display: flex;
    }

    .custom-header-wrapper .mobile-nav {
        display: block;
    }
}

.CTA-header {
    align-items: center;
    background-color: #f16334;
    border: 1px solid #f16334;
    border-radius: .5rem;
    box-shadow: #f16334 0 1px 10px 0;
    box-sizing: border-box;
    color: #fff;
    display: inline-flex;
    font-family: system-ui, -apple-system, system-ui, PT Sans, sans-serif;
    font-size: 16px;
    font-weight: 500;
    min-height: 2.5rem;
    padding: calc(.5rem - 1px) calc(1rem - 1px);
    user-select: none;
    padding-left: 10px;
}
.suchfeld {
  flex: 1;
  max-width: 500px;
  display: flex;
  position: relative;
}

.suchfeld input {
  width: 100%;
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid #ccc;
  font-size: 14px;
  outline: none;
}

.suchfeld button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}
  .menu-item-news {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #bc1d3d;
    font-weight: bold;
    text-decoration: none;
  }

  .menu-item-news svg {
    width: 20px;
    height: 20px;
    fill: #bc1d3d;
  }

  .menu-item-news .news-text {
    text-decoration: underline;
  }

  .menu-item-news:hover .news-text {
    text-decoration: underline;
  }


/* Urspruenglicher Header-Styleblock 2 */

/* ===== DESKTOP: Behörden & Anwalt – Mega-Menu (CLEAN FINAL) ===== */
@media (min-width: 993px){

  /* Wrapper + Trigger */
  .custom-header-wrapper .ba-wrapper{ position:relative; }
  .custom-header-wrapper .ba-trigger{
    padding:12px 16px; cursor:pointer; font-weight:500; color:#333; display:inline-block;
  }
  .custom-header-wrapper .ba-wrapper:hover .ba-trigger,
  .custom-header-wrapper .ba-trigger:hover{ color:#333; }

  /* Layer / Canvas */
  .custom-header-wrapper .ba-menu{
    display:none; position:absolute; left:50%; top:100%; transform:translateX(-50%);
    width:90vw; max-width:1200px;
    background:#fff; border-top:3px solid var(--primary-color); border-radius:10px;
    padding:22px 26px; margin-top:1px;
    box-shadow:0 14px 32px rgba(0,0,0,.16); z-index:9999;

    /* WICHTIG: erlaubt Avatar & Zitat-Bubble */
    overflow:visible;
    /* überschreibt .main-nav { white-space:nowrap } */
    white-space:normal;
  }
  .custom-header-wrapper .ba-wrapper:hover .ba-menu{ display:block; }

  /* Layout: 2 Karten + rechte Spalte */
  .ba-grid{
    display:grid;
    grid-template-columns: 330px 330px 1fr;   /* etwas mehr Platz rechts */
    gap:24px; align-items:start;
  }

  /* Karten */
  .ba-card{
    border:1px solid #e5e7eb; border-radius:12px; background:#fff;
    padding:14px 16px 16px;
    box-shadow:0 6px 16px rgba(0,0,0,.08);
    transition:box-shadow .18s ease;
  }
  .ba-card-title{
    display:block; font-size:16px; font-weight:700; color:#111; margin:0 0 10px 0; text-decoration:none;
  }
  .ba-card-title:hover{ color:var(--primary-color); }
  .ba-card:hover{
    box-shadow:0 12px 22px rgba(0,0,0,.12);
  }
  .ba-card:hover .ba-card-title,
  .ba-card:hover .ba-card-title i{
    color:var(--primary-color);
  }
  .ba-thumb{
    display:block; width:100%; height:170px; object-fit:cover; object-position:center;
    border-radius:12px; /* border:2px solid #111; */   /* wie Referenzbild */
    box-shadow:0 6px 16px rgba(0,0,0,.08);
    margin-bottom:12px;
    transition:filter .18s ease;
  }
  .ba-card:hover .ba-thumb{
    filter:saturate(1.08);
  }
  .ba-links{ display:flex; flex-direction:column; gap:6px; }
  .ba-link{ display:block; font-size:14px; line-height:1.42; color:#333; text-decoration:none; padding:2px 0; }
  .ba-link:hover{ color:var(--primary-color); }

  /* Rechte Spalte */
  .ba-right{
    position:relative;
    min-height:300px;         /* Raum für Avatar */
    padding-right:260px;      /* Platz für Avatar rechts */
  }

  /* Zitatzeichen + Sprechblase in einer Zeile, hart begrenzt */
  .ba-quote-row{
    display:flex; align-items:flex-start; gap:14px;
    max-width:520px;          /* verhindert Überbreite */
  }
  .ba-quote{
    font-size:48px; line-height:1; color:#c8ced6; font-weight:900;
    margin-top:-6px; user-select:none;
  }
  .ba-bubble{
    position:relative; display:inline-block;
    width:350px;               /* feste Breite => 1:1 Look */
    max-width:100%;
    background:#fff;
    border:1px solid #e9edf2; border-radius:12px;
    box-shadow:0 10px 24px rgba(0,0,0,.10);
    padding:14px 16px;
  }
  .ba-bubble p{ margin:0; font-size:15px; line-height:1.45; color:#222; }
  .ba-bubble strong{ font-weight:800; }

  /* CTA unter der Blase */
  .ba-cta{
    display:inline-flex; align-items:center; margin-top:20px; margin-left: 45px;
    background:#bc1d3d; border:1px solid #bc1d3d; color:#fff; text-decoration:none;
    padding:10px 18px; border-radius:999px; font-size:15px; font-weight:700;
    box-shadow:0 10px 22px rgba(188,29,61,.30);
    white-space:nowrap;
  }
  .ba-cta:hover{ background:#a31733; }

  /* Avatar – sichtbar im Rahmen, wie Vorlage */
  .ba-avatar-wrap{
    position:absolute; right:120px; bottom:-113px;   /* leicht überstehend nach unten */
    width:380px; height:auto;
    z-index:2; display:block;
  }
  .ba-avatar{
    display:block; width:100%; height:auto; object-fit:contain;
    pointer-events:none;
  }
  .ba-ai-label{
    position:absolute; right:90px; bottom:22px;
    width:28px; height:28px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    background:rgba(0,0,0,.58); color:#fff;
    border:2px solid rgba(255,255,255,.72);
    font-size:12px; line-height:1; font-weight:700;
    letter-spacing:.2px;
    box-shadow:0 4px 12px rgba(0,0,0,.18);
  }
  .ba-ai-tooltip{
    position:absolute; right:126px; bottom:23px;
    background:rgba(0,0,0,.72); color:#fff;
    border-radius:999px; padding:6px 10px;
    font-size:13px; line-height:1; font-weight:600;
    white-space:nowrap;
    opacity:0; visibility:hidden; transform:translateX(-4px);
    transition:opacity .16s ease, transform .16s ease, visibility .16s ease;
  }
  .ba-avatar-wrap:hover .ba-ai-tooltip,
  .ba-avatar-wrap:focus-within .ba-ai-tooltip{
    opacity:1; visibility:visible; transform:translateX(0);
  }

  /* Standard-Dropdown hier ausblenden */
  .custom-header-wrapper .ba-wrapper .dropdown-content{ display:none !important; }
}

@media (min-width: 993px){
  /* BA-Menü wie Blog/News am Nav-Container zentrieren */
  .custom-header-wrapper .ba-wrapper{
    position: static !important;   /* statt relative */
  }
}


/* Urspruenglicher Header-Styleblock 3 */

/* ===== DESKTOP: Mega-Menu "Behörden Schreiben" ===== */
@media (min-width: 993px){
  /* Nur diese Instanz leicht schmaler als Blog */
  .custom-header-wrapper .mega-menu-content.mega-ber{
    width: 85vw;
    max-width: 1200px;
    padding: 28px 32px;
  }
  .custom-header-wrapper .mega-ber-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
  }
  .custom-header-wrapper .mega-card{
    display: block;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
    transition: box-shadow .18s ease;
  }
  .custom-header-wrapper .mega-card:hover{
    box-shadow: 0 12px 22px rgba(0,0,0,.12);
  }
  .custom-header-wrapper .mega-card img{
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: filter .18s ease;
  }
  .custom-header-wrapper .mega-card:hover img{
    filter: saturate(1.08);
  }
  .custom-header-wrapper .mega-card-title{
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px 14px;
    font-size: 15px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
  }
  .custom-header-wrapper .mega-card-title:hover{ text-decoration:none; }
  .custom-header-wrapper .mega-card-title i{
    color: #323232;
  }
  .custom-header-wrapper .mega-card:hover .mega-card-title,
  .custom-header-wrapper .mega-card:hover .mega-card-title i,
  .custom-header-wrapper .mega-card-title:hover,
  .custom-header-wrapper .mega-card-title:hover i{
    color: var(--primary-color);
  }
  /* Standard-Dropdown innerhalb der Wrapper-Instanz sicher aus */
  .custom-header-wrapper .mega-ber-wrapper .dropdown-content{ display:none !important; }
}

/* Tablet-Desktop Zwischenbreite: 2 Spalten */
@media (min-width: 993px) and (max-width: 1200px){
  .custom-header-wrapper .mega-ber-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Unter 992px wird das Mega-Menu sowieso per !important ausgeblendet (bereits vorhanden) */


/* Urspruenglicher Header-Styleblock 4 */

/* ===== DESKTOP: Mega-Menu "Bußgeldkataloge 2026" ===== */
@media (min-width: 993px){
  .custom-header-wrapper .mega-menu-content.mega-bk{
    width: 90vw;
    max-width: 1400px;
    padding: 28px 32px;
  }
  .custom-header-wrapper .mega-bk-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Spalten, 2 Reihen */
    gap: 24px;
    align-items: start;
  }
  /* Karten verwenden die bereits definierten .mega-card-Styles */
  .custom-header-wrapper .mega-bk .mega-card img{
    height: 160px;           /* einheitliche Höhe */
    object-fit: cover;
  }

  /* kleine Themenliste unter den Titeln */
  .custom-header-wrapper .mega-list{
    list-style: none;
    padding: 0 14px 14px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .custom-header-wrapper .mega-list a{
    text-decoration: none;
    font-size: 14px;
    line-height: 1.42;
    color: #333;
  }
  .custom-header-wrapper .mega-list a:hover{ color: var(--primary-color); }

  /* altes Dropdown in diesem Wrapper unterdrücken */
  .custom-header-wrapper .mega-bk-wrapper .dropdown-content{ display:none !important; }
}

/* 2-Spalten-Fallback bei knappem Platz */
@media (min-width: 993px) and (max-width: 1200px){
  .custom-header-wrapper .mega-bk-grid{ grid-template-columns: repeat(2, 1fr); }
}


/********************** NEU **********************/

@media (min-width: 993px) {
    .custom-header-wrapper .mega-bk-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        align-items: start;
    }
}

@media (min-width: 993px) {
    .custom-header-wrapper .mega-card-title {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 14px 10px;
        font-size: 15px;
        font-weight: 700;
        color: #111;
        text-decoration: none;
    }

    .custom-header-wrapper .mega-card-title:hover {
        text-decoration: none;
    }
}

@media (min-width: 993px) {
    .custom-header-wrapper .mega-list {
        list-style: none;
        padding: 0 14px 14px;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 0px;
    }
}

