/* =========================================================================
   CLW nativer Header — 1:1 Live: TRANSPARENTER Overlay ueber dem Hero,
   weisser Text/Logo. Eigene clw-*-Klassen, kein Fremd-CSS greift hinein.
   Akzent/CTA #910048.
   ========================================================================= */

#clw-header {
	position: absolute; top: 0; left: 0; right: 0; z-index: 50;
	background: transparent; color: #fff;
}
#clw-header *, #clw-header *::before, #clw-header *::after { box-sizing: border-box; }
#clw-header a { text-decoration: none; color: #fff; }
#clw-header ul { margin: 0; padding: 0; list-style: none; }

.clw-wrap { width: 100%; max-width: 1340px; margin: 0 auto; padding: 0 28px;
	display: flex; align-items: center; justify-content: space-between; gap: 28px; }

/* ============================ TOP-BAR ============================ */
.clw-topbar { border-bottom: 1px solid rgba(255,255,255,.14); font-size: 13.5px; }
.clw-topbar .clw-wrap { min-height: 46px; }
.clw-topbar a { opacity: .9; transition: color .2s; }
/* #clw-header-Präfix nötig: sonst schlägt #clw-header a{color:#fff} (ID) den Hover. */
#clw-header .clw-topbar a:hover { opacity: 1; color: #910048; } /* E-Mail/Nummer Hover pink wie Original (ct-link) */
.clw-topbar-links { display: flex; gap: 28px; }
.clw-topbar-right { display: flex; align-items: center; gap: 22px; }
.clw-linkedin { display: inline-flex; font-size: 16px; transition: color .2s; }
#clw-header .clw-linkedin:hover { color: #910048; }

/* CTA-Button (Get in Touch / Jetzt kontaktieren) */
.clw-cta { display: inline-flex; align-items: center; background: #910048; color: #fff;
	padding: 13px 24px; font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: background .2s; }
.clw-cta:hover { background: #73003a; color: #fff; }
.clw-topbar .clw-cta { align-self: stretch; } /* bis Oberkante wie Live */

/* Sprach-Switcher */
#clw-header .cpel-switcher__nav { display: flex; }
#clw-header .cpel-switcher__list { display: flex; align-items: center; gap: 12px; }
#clw-header .cpel-switcher__lang a { display: inline-flex; align-items: center; gap: 5px; opacity: .8; }
#clw-header .cpel-switcher__lang--active a { opacity: 1; font-weight: 700; }
#clw-header .cpel-switcher__lang a:hover { opacity: 1; color: #910048; } /* Sprach-Switcher Hover pink */
#clw-header .cpel-switcher__flag img { display: block; width: 20px; height: 14px; border-radius: 1px; }
#clw-header .cpel-switcher__code { font-size: 13px; }
#clw-header .elementor-widget-polylang-language-switcher,
#clw-header .elementor-widget-container { display: inline-block; }

/* ============================ MAIN-BAR ============================ */
.clw-mainbar .clw-wrap { min-height: 86px; }
.clw-logo img { display: block; height: 46px; width: auto; }
.clw-logo img.clw-logo-dark { display: none; } /* nur im weissen Sticky sichtbar (Spezifitaet schlaegt .clw-logo img) */

.clw-nav { display: flex; flex: 1; justify-content: center; align-self: stretch; }
.clw-menu { display: flex; align-items: stretch; gap: 6px; }
.clw-menu > li { position: relative; display: flex; align-items: center; } /* volle Bar-Höhe -> Dropdown sitzt bündig (top:100% = Bar-Unterkante) */
.clw-menu > li > a { display: flex; align-items: center; gap: 6px; padding: 12px 16px; font-weight: 700; font-size: 15px; } /* 1:1 Elementor: Poppins 700 */
.clw-menu > li.menu-item-has-children > a::after {
	content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg); opacity: .85;
}
/* transparent (Elementor 138): Hover magenta #910148, aktiv dunkelblau #002E5D.
   #clw-header-Präfix nötig (sonst überschreibt #clw-header a{color:#fff} per ID). */
#clw-header .clw-menu > li:hover > a { color: #910148; }
#clw-header .clw-menu > li.current-menu-item > a,
#clw-header .clw-menu > li.current-menu-ancestor > a { color: #002E5D; }

/* Dropdown = MAGENTA Box (#910048) + weißer Text, fett (1:1 Elementor 138/273).
   Hover ändert NUR die Schriftfarbe auf Dunkelblau #002E5D (kein BG-Wechsel) — genau wie Original.
   In transparent + Sticky identisch. */
/* #clw-header-Präfix nötig: sonst schlägt der Reset `#clw-header ul{padding:0}` (höhere Spezifität) das padding. */
#clw-header .clw-menu .sub-menu { position: absolute; top: 100%; left: 0; min-width: 250px;
	background: #910048; padding: 22px 0; box-shadow: 0 16px 36px rgba(0,0,0,.28); z-index: 99;
	opacity: 0; visibility: hidden; transform: translateY(0);
	transition: opacity .2s, visibility .2s; }
/* #clw-header-Präfix MUSS auch hier stehen, sonst schlägt die Basisregel
   `#clw-header .clw-menu .sub-menu{opacity:0}` (ID) per Spezifität durch -> Dropdown ginge nicht auf. */
#clw-header .clw-menu > li:hover > .sub-menu { opacity: 1; visibility: visible; }
#clw-header .clw-menu .sub-menu a,
#clw-header.is-stuck .clw-menu .sub-menu a { display: block; padding: 9px 22px; font-size: 14px; font-weight: 700; color: #fff; opacity: 1; }
#clw-header .clw-menu .sub-menu a:hover,
#clw-header.is-stuck .clw-menu .sub-menu a:hover { color: #002E5D; background: none; }

.clw-mainbar-right { display: flex; align-items: center; gap: 16px; }
.clw-phone { display: inline-flex; align-items: center; gap: 11px; }
.clw-phone-ic { font-size: 24px; color: #fff; }
.clw-phone-text { display: flex; flex-direction: column; line-height: 1.25; }
.clw-phone-num { font-weight: 700; font-size: 16px; }
.clw-phone-sub { font-size: 12px; opacity: .85; }
.clw-phone-ic, .clw-phone-num, .clw-phone-sub { transition: color .2s; }
#clw-header .clw-phone:hover .clw-phone-ic, #clw-header .clw-phone:hover .clw-phone-num { color: #910048; } /* Nummer Hover pink */

/* Burger (nur mobil) */
.clw-burger { display: none; flex-direction: column; justify-content: space-between;
	width: 30px; height: 21px; background: none; border: 0; cursor: pointer; padding: 0; }
.clw-burger span { display: block; width: 100%; height: 3px; background: #fff; border-radius: 2px; }

/* ============================ STICKY (WEISS, nur Menue-Ebene, dunkles Logo — wie Live beim Scrollen) ============================ */
#clw-header.is-stuck {
	position: fixed; top: 0; background: #fff; color: #1B2336;
	box-shadow: 0 4px 18px rgba(0,0,0,.10);
	animation: clwSlideDown .3s ease;
}
#clw-header.is-stuck .clw-topbar { display: none; }                  /* nur die Menue-Ebene bleibt */
#clw-header.is-stuck .clw-mainbar .clw-wrap { min-height: 72px; }
#clw-header.is-stuck .clw-logo img { height: 40px; }
#clw-header.is-stuck a { color: #1B2336; }
/* Sticky-Menü (Elementor 273): Top-Level magenta #910148, Hover/aktiv dunkelblau #002E5D */
#clw-header.is-stuck .clw-menu > li > a { color: #910148; }
#clw-header.is-stuck .clw-menu > li:hover > a,
#clw-header.is-stuck .clw-menu > li.current-menu-item > a,
#clw-header.is-stuck .clw-menu > li.current-menu-ancestor > a { color: #002E5D; }
/* Sticky-Telefon wie Live (273): Icon magenta #910048, Nummer/Text schwarz, Hover pink */
#clw-header.is-stuck .clw-phone-ic { color: #910048; }
#clw-header.is-stuck .clw-phone-num { color: #000000; }
#clw-header.is-stuck .clw-phone-sub { color: #000000; }
#clw-header.is-stuck .clw-phone:hover .clw-phone-num { color: #910048; }
/* Sprach-Switcher in der Mainbar: nur im Sticky sichtbar (transparent = Topbar-Switcher), Text grau wie Live */
.clw-mainbar-lang { display: none; }
#clw-header.is-stuck .clw-mainbar-lang { display: inline-flex; align-items: center; }
#clw-header.is-stuck .clw-mainbar-lang .cpel-switcher__code,
#clw-header.is-stuck .clw-mainbar-lang .cpel-switcher__lang a { color: #7a7a7a; }
#clw-header.is-stuck .clw-mainbar-lang .cpel-switcher__lang--active a { color: #1B2336; }
@media (max-width:991px){ .clw-mainbar-lang { display: none !important; } }
#clw-header.is-stuck .clw-burger span { background: #1B2336; }
#clw-header.is-stuck .clw-logo-light { display: none; }
#clw-header.is-stuck .clw-logo-dark { display: block; }
@keyframes clwSlideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* ============================ OFF-CANVAS (1:1 creydtlaw.de Mobile: MAGENTA, slide von LINKS,
   einklappbare Untermenüs mit Chevron-Box, nur Menü + DE/EN) ============================ */
.clw-offcanvas { position: fixed; inset: 0; z-index: 1100; visibility: hidden; pointer-events: none; }
.clw-offcanvas-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .3s; }
.clw-offcanvas-panel { position: absolute; top: 0; left: 0; right: auto; width: 86%; max-width: 340px; height: 100%;
	overflow-y: auto; background: #910048; color: #fff; padding: 26px 26px 40px;
	transform: translateX(-100%); transition: transform .3s ease; }
.clw-offcanvas.is-open { visibility: visible; pointer-events: auto; }
.clw-offcanvas.is-open .clw-offcanvas-overlay { opacity: 1; }
.clw-offcanvas.is-open .clw-offcanvas-panel { transform: translateX(0); }
.clw-offcanvas-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.clw-offcanvas-logo img { display: block; max-height: 46px; width: auto; }
.clw-offcanvas-close { background: none; border: 0; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; padding: 0; }

.clw-offcanvas-menu li { display: block; position: relative; }
.clw-offcanvas-menu > li { border-bottom: 1px solid rgba(255,255,255,.25); }
.clw-offcanvas-menu > li > a { display: block; padding: 14px 44px 14px 0; color: #fff; font-weight: 600; font-size: 16px; }
/* Chevron-Toggle-Box rechts (per JS nur bei Untermenüs eingefügt) */
.clw-offcanvas-toggle { position: absolute; top: 7px; right: 0; width: 34px; height: 34px; padding: 0;
	display: flex; align-items: center; justify-content: center; background: none;
	border: 1px solid rgba(255,255,255,.55); cursor: pointer; }
.clw-offcanvas-toggle::before { content: ""; width: 8px; height: 8px;
	border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.clw-offcanvas-menu li.is-open > .clw-offcanvas-toggle::before { transform: translateY(2px) rotate(-135deg); }
/* Untermenü per Default eingeklappt */
.clw-offcanvas-menu .sub-menu { display: none; padding: 2px 0 10px 4px; }
.clw-offcanvas-menu li.is-open > .sub-menu { display: block; }
.clw-offcanvas-menu .sub-menu a { display: block; padding: 9px 0; color: rgba(255,255,255,.9); font-weight: 400; font-size: 14px; }

/* DE/EN sind Polylang-lang-items IM Menü (wie Live-Mobil): Flagge + Code als Zeile. */
.clw-offcanvas-menu > li.lang-item > a { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.clw-offcanvas-menu > li.lang-item img { width: 22px; height: auto; display: inline-block; }
/* Im Desktop-Hauptmenü KEINE DE/EN-lang-items (dort übernimmt der Topbar-Switcher) */
.clw-nav .clw-menu > li.lang-item { display: none; }
body.clw-offcanvas-open { overflow: hidden; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 991px) {
	.clw-topbar { display: none; }
	.clw-mainbar .clw-wrap { min-height: 64px; }
	.clw-logo img { height: 38px; }
	.clw-nav, .clw-phone { display: none; }
	.clw-burger { display: flex; }
	#clw-header.is-stuck .clw-mainbar .clw-wrap { min-height: 56px; }
}
@media (min-width: 992px) { .clw-offcanvas { display: none; } }

#clw-header, .clw-offcanvas { max-width: 100%; }
#clw-header img { max-width: 100%; }
