/* =====================================================================
   Truck & Bus Cleaning e.K. (Projekt asn) – Ergänzungen zum Elementor-Aufbau
   Nur, was Elementor nicht nativ abbildet: Sticky-Chrome, Status-Badges, Kicker-Linie,
   Preistabellen, Menü-Dropdown, Hover ohne Übergang. Farben/Typo stehen nativ in den Widgets.
   ===================================================================== */

/* ---------- Basis ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; }
	html { scroll-behavior: auto; }
}
.e-con .elementor-widget-text-editor p { margin-block: 0; }
.e-con .elementor-widget-text-editor a:hover { color: inherit; }

/* ---------- Chrome: Sticky-Kopfzeile + mobile CTA-Leiste ---------- */
body:not(.elementor-editor-active) .elementor-location-header,
body:not(.elementor-editor-active) .elementor-location-footer { display: contents; }
.e-con.asn-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; }
.e-con.asn-header > .e-con-inner { flex-grow: 1; position: static; }
.e-con.asn-mbar { position: sticky; bottom: 0; z-index: 60; }

/* Zeitgesteuerter Banner (Body-Klasse aus functions.php / asn.js) */
body:not(.asn-xmas-on):not(.elementor-editor-active) .e-con.asn-xmas { --display: none !important; display: none !important; }

/* Öffnungsstatus: nur das passende Badge zeigen */
body.asn-open:not(.elementor-editor-active) .elementor-widget.asn-badge--closed,
body:not(.asn-open):not(.elementor-editor-active) .elementor-widget.asn-badge--open { display: none !important; }

/* ---------- Logo ---------- */
.asn-logo a, .asn-ft-logo a { display: block; line-height: 0; }
.asn-logo img { display: block; height: clamp(58px, 6vw, 84px) !important; width: auto !important; max-width: none !important; }
.asn-ft-logo img { display: block; height: 96px !important; width: auto !important; max-width: none !important; }

/* ---------- Badges ---------- */
.asn-badge .elementor-heading-title { display: flex; width: fit-content; align-items: center; gap: 8px; height: 28px; padding: 0 12px 0 11px; border-radius: 999px; white-space: nowrap; }
.asn-badge--open .elementor-heading-title { background: #E3101A; }
.asn-badge--closed.asn-badge--dark .elementor-heading-title { box-shadow: inset 0 0 0 1.5px #9DB8DE; }
.asn-badge--closed.asn-badge--light .elementor-heading-title { box-shadow: inset 0 0 0 1.5px #8D9BB0; }
.asn-pulse { position: relative; display: inline-block; width: 8px; height: 8px; flex: none; }
.asn-pulse::before, .asn-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #FFFFFF; }
.asn-pulse::before { animation: asnPulse 1.8s ease-out infinite; }
@keyframes asnPulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.8); opacity: 0; } }
.asn-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #9DB8DE; flex: none; }
.asn-badge--light .asn-dot { background: #8D9BB0; }
.asn-badge-neu { display: inline-block; vertical-align: 3px; margin-left: 4px; padding: 3px 9px; border-radius: 999px; background: #14A0E0; color: #04254A; font-family: 'Barlow', sans-serif; font-size: 13px; font-weight: 700; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Texthelfer ---------- */
.asn-kicker .elementor-heading-title { display: flex; width: fit-content; align-items: center; gap: 10px; }
.asn-kicker .elementor-heading-title::before { content: ""; flex: none; width: 28px; height: 4px; border-radius: 2px; background: #14A0E0; }
.asn-balance .elementor-heading-title { text-wrap: balance; }
.asn-pretty p { text-wrap: pretty; }
.asn-hyph .elementor-heading-title { hyphens: auto; }
.asn-nowrap, .asn-nowrap .elementor-heading-title { white-space: nowrap; }
.asn-strong { font-weight: 700; }
.elementor-widget.asn-autow { --container-widget-width: auto; width: auto; }

/* ---------- Icons (Lucide-Kontur: Farbe über currentColor) ---------- */
.asn-ico .elementor-icon-wrapper { display: flex; line-height: 0; }
.asn-ico .elementor-icon { display: inline-flex; align-items: center; justify-content: center; }
.asn-map-pin .elementor-icon { box-shadow: 0 10px 24px rgba(11, 76, 156, .3); }

/* Icon-Listen (Top-Bar, Adresse Hero) */
.asn-topinfo .elementor-icon-list-item, .asn-topinfo .elementor-icon-list-item > a,
.asn-addr .elementor-icon-list-item, .asn-addr .elementor-icon-list-item > a { gap: 8px; }
.asn-topinfo .elementor-icon-list-item, .asn-topinfo .elementor-icon-list-item > a { align-items: center; color: #FFFFFF; }
.asn-addr .elementor-icon-list-item, .asn-addr .elementor-icon-list-item > a { align-items: flex-start; }
.elementor-widget.asn-topinfo .elementor-icon-list-icon + .elementor-icon-list-text,
.elementor-widget.asn-addr .elementor-icon-list-icon + .elementor-icon-list-text { padding-inline-start: 0; }
.asn-topinfo .elementor-icon-list-icon, .asn-addr .elementor-icon-list-icon { display: flex; padding: 0 !important; }
.asn-topinfo .elementor-icon-list-icon { color: #FFFFFF; }
.asn-addr .elementor-icon-list-icon { color: #0B4C9C; margin-top: 2px; }
.asn-topinfo .elementor-icon-list-icon svg, .asn-addr .elementor-icon-list-icon svg { margin: 0 !important; fill: none !important; }
.asn-topinfo .elementor-icon-list-item > a:hover, .asn-topinfo .elementor-icon-list-item > a:hover .elementor-icon-list-text { color: #FFFFFF; }

/* ---------- Buttons (Pill, sofortiger Hover wie im Design) ---------- */
.asn-btn .elementor-button { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; white-space: nowrap; transition: none; }
.asn-btn--hdr .elementor-button { min-height: 48px; }
.asn-btn .elementor-button-content-wrapper { align-items: center; }
.asn-btn .elementor-button-icon { display: flex; }
.asn-btn .elementor-button-icon svg { width: 22px; height: 22px; }
.asn-btn--hdr .elementor-button-icon svg { width: 20px; height: 20px; }
.asn-btn--wa .elementor-button:focus:not(:hover) { background-color: #25D366 !important; color: #052E16 !important; }
.asn-btn--red .elementor-button:focus:not(:hover) { background-color: #E3101A !important; color: #FFFFFF !important; }
.asn-btn--blue .elementor-button:focus:not(:hover) { background-color: #0B4C9C !important; color: #FFFFFF !important; }
.asn-btn--outline .elementor-button:focus:not(:hover) { background-color: #FFFFFF !important; color: #0B4C9C !important; }

/* ---------- Navigation ---------- */
.asn-nav .elementor-item, .asn-nav .elementor-item::before, .asn-nav .elementor-item::after { transition: none !important; }
.asn-nav .elementor-nav-menu--main .elementor-item::before { border-radius: 12px; }
@media (min-width: 1080px) {
	.asn-nav .elementor-nav-menu--main .elementor-nav-menu { justify-content: center; }
}
@media (max-width: 1079px) {
	.e-con.asn-header { --position: sticky; }
	.e-con.asn-header .asn-callfab { margin-left: auto; }
	.elementor-widget.asn-nav { position: static; }
	.asn-nav .elementor-menu-toggle { box-sizing: border-box; width: 48px; height: 48px; padding: 0; border-style: solid; border-color: #D5E0EE !important; display: flex; align-items: center; justify-content: center; }
	.asn-nav .elementor-menu-toggle svg { width: 24px; height: 24px; fill: none !important; }
	.asn-nav nav.elementor-nav-menu--dropdown { position: absolute !important; left: 0; right: 0; top: 100% !important; margin: 0 !important; width: auto !important; background: #FFFFFF; transition: none !important; }
	.asn-nav .elementor-menu-toggle.elementor-active + nav.elementor-nav-menu--dropdown { padding: 4px 16px 20px; border-bottom: 1px solid #E1E8F1; box-shadow: 0 24px 32px -16px rgba(8, 40, 90, .28); }
	.asn-nav nav.elementor-nav-menu--dropdown .elementor-item { display: flex !important; align-items: center; justify-content: space-between; min-height: 58px; padding: 0 !important; border-bottom: 1px solid #E1E8F1; text-align: left; }
	.asn-nav nav.elementor-nav-menu--dropdown .elementor-item::after { content: "" !important; position: static !important; opacity: 1 !important; display: block !important; flex: none; width: 22px; height: 22px; background: currentColor !important; -webkit-mask: var(--asn-arrow) center / contain no-repeat; mask: var(--asn-arrow) center / contain no-repeat; }
}
/* Zusatz-Buttons im Mobilmenü: JS verschiebt sie ins Dropdown */
body:not(.elementor-editor-active) .elementor-location-header .e-con.asn-header > .e-con-inner > .e-con.asn-mmenu-cta { --display: none !important; display: none !important; }
.asn-nav nav.elementor-nav-menu--dropdown .e-con.asn-mmenu-cta { --display: grid !important; display: grid !important; margin-top: 16px; }

/* ---------- Footer ---------- */
.asn-ft-text a, .asn-ft-text a:hover { color: #FFFFFF; font-weight: 600; }
.asn-ft-link a, .asn-ft-link a:hover { color: #FFFFFF; }
.asn-ft-link a:hover { text-decoration: underline; }
.elementor-widget.asn-ft-logo { width: auto; }

/* ---------- Kontakt-CTA ---------- */
.asn-cta-text a, .asn-cta-text a:hover { color: #FFFFFF; font-weight: 700; }

/* ---------- Bilder ---------- */
.asn-cover img, .asn-gal-img img { display: block; }
.asn-gal > .elementor-widget-image, .asn-gal .elementor-widget-image > .elementor-widget-container { height: 100%; min-width: 0; }
.asn-gal .elementor-widget-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.asn-qr img { display: block; width: 112px; height: 112px; }

/* ---------- Preistabellen ---------- */
.asn-ptable-w table.asn-ptable { width: 100%; margin: 0; border: 0; border-collapse: collapse; font-size: 17px; line-height: 1.5; }
.asn-ptable tbody > tr { display: grid; grid-template-columns: minmax(0, 1fr) 74px 82px; align-items: baseline; gap: 12px; padding: 11px clamp(16px, 2vw, 24px); border-top: 1px solid #E1E8F1; }
.asn-ptable tbody > tr > td, .asn-ptable tbody > tr > th { padding: 0; border: 0; background: none !important; line-height: inherit; vertical-align: inherit; }
.asn-ptable tbody > tr:hover > td, .asn-ptable tbody > tr:hover > th { background: none !important; }
.asn-ptable td:first-child { display: flex; align-items: baseline; gap: 10px; min-width: 0; font-size: 17px; line-height: 1.35; color: #1D2B3F; }
.asn-ptable .asn-pnr { flex: none; width: 32px; font-size: 14px; font-weight: 600; color: #5A6880; font-variant-numeric: tabular-nums; }
.asn-ptable .asn-pname { min-width: 0; }
.asn-ptable .asn-pnet { text-align: right; font-size: 16px; color: #3E4D63; white-space: nowrap; font-variant-numeric: tabular-nums; }
.asn-ptable .asn-pgross { text-align: right; font-size: 17px; font-weight: 700; color: #0B4C9C; white-space: nowrap; font-variant-numeric: tabular-nums; }
.asn-ptable tbody > tr.asn-pgroup { display: block; padding: 9px clamp(16px, 2vw, 24px); background: #F4F8FC; }
.asn-ptable tr.asn-pgroup > th { display: block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #3E4D63; line-height: 1.5; text-align: left; }

/* Hinweis- und Zahlungsbox */
.asn-hint p:first-child { font-size: 17px; }
.asn-hint strong { color: #0B4C9C; font-weight: 700; }
.elementor-widget.asn-hint p + p { margin-top: 8px; }
.elementor-widget.asn-pay p + p { margin-top: 6px; }
.asn-pay .asn-pay-label { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.asn-pay .asn-pay-methods { font-weight: 600; color: #1D2B3F; }

/* ---------- Anfahrt: Karten-Platzhalter ---------- */
.e-con.asn-map { background: repeating-linear-gradient(135deg, #E4ECF5 0 14px, #EEF4FA 14px 28px); text-align: center; }
.asn-map-label .elementor-heading-title { display: inline-block; padding: 6px 10px; border-radius: 8px; background: #FFFFFF; font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; }

/* ---------- FAQ ---------- */
.asn-faq .e-n-accordion-item { border-radius: 20px; overflow: hidden; background: #FFFFFF; }
.asn-faq .e-n-accordion-item-title { min-height: 64px; align-items: center; gap: 16px; }
.asn-faq .e-n-accordion-item-title-text { font-family: 'Barlow', sans-serif; font-weight: 700; line-height: 1.3; }
.asn-faq .e-n-accordion-item-title-icon { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: #EEF5FB; display: grid; place-items: center; }
.asn-faq .e-n-accordion-item-title-icon span { display: flex; }
.asn-faq .e-n-accordion-item-title-icon svg { width: 20px !important; height: 20px !important; fill: none !important; }
.asn-faq .e-n-accordion-item-title-icon .e-opened svg { transform: none; }
.asn-faq .e-n-accordion-item > .e-con { border: 0 !important; }

/* Rahmen als Inset-Schatten wie im Design (nimmt keinen Platz ein) */
.e-con.asn-ring, .elementor-widget.asn-pay { box-shadow: inset 0 0 0 1.5px #DCE5F0; }

/* Buttons im Nav-Dropdown: Menü-Linkfarben (Pro: .elementor-nav-menu--dropdown a) nicht erben */
.asn-nav nav.elementor-nav-menu--dropdown .asn-btn--wa .elementor-button { color: #052E16 !important; background-color: #25D366 !important; }
.asn-nav nav.elementor-nav-menu--dropdown .asn-btn--wa .elementor-button:hover { background-color: #1FBF5B !important; }
.asn-nav nav.elementor-nav-menu--dropdown .asn-btn--red .elementor-button { color: #FFFFFF !important; background-color: #E3101A !important; }
.asn-nav nav.elementor-nav-menu--dropdown .asn-btn--red .elementor-button:hover { background-color: #C40D16 !important; }
.asn-nav nav.elementor-nav-menu--dropdown .asn-btn .elementor-button { font-family: 'Barlow', sans-serif; font-size: 18px; font-weight: 700; letter-spacing: 0; text-transform: none; line-height: 1.5; }

/* ---------- Rechtsseiten (Impressum, Datenschutz) ---------- */
body.asn-legal:not(.elementor-editor-active) { min-height: 100vh; display: flex; flex-direction: column; }
body.asn-legal:not(.elementor-editor-active) main#content { flex: 1 0 auto; display: flex; flex-direction: column; }
.asn-logo-legal a { display: block; line-height: 0; }
.asn-logo-legal img { display: block; height: clamp(54px, 5.4vw, 76px) !important; width: auto !important; max-width: none !important; }
.asn-legal-text a { font-weight: 600; }
.asn-ph { padding: 1px 7px; border-radius: 6px; background: #FFF6DB; box-shadow: inset 0 0 0 1.5px #E2B93B; color: #6B4E00; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; }
.elementor-widget.asn-ph-box, .e-con.asn-ph-ring { box-shadow: inset 0 0 0 1.5px #E2B93B; }
.asn-mono .elementor-heading-title { font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; }
.asn-legal-list ul { margin: 0; padding-left: 20px; }
.asn-legal-list li + li { margin-top: 2px; }
.asn-backlink .elementor-button { display: inline-flex; align-items: center; min-height: 48px; transition: none; }
.asn-backlink .elementor-button-content-wrapper { align-items: center; }
.asn-backlink .elementor-button-icon { display: flex; }
.asn-backlink .elementor-button-icon svg { width: 20px; height: 20px; }
.asn-backlink .elementor-button:focus:not(:hover) { background-color: transparent !important; color: #0B4C9C !important; }
body.asn-legal:not(.elementor-editor-active) main#content > [data-elementor-type="wp-page"] { flex: 1 0 auto; display: flex; flex-direction: column; }
body.asn-legal:not(.elementor-editor-active) .e-con.asn-legal-main { flex-grow: 1; }

/* ---------- Barrierefreiheit: Tastaturfokus (WCAG 2.4.7 / 2.4.11) ----------
   3 px Markenblau mit 2 px Abstand; auf blauen Flächen (Top-Bar, Kontakt, Footer) weiß. */
:where(a, button, summary, [role="button"], [tabindex]):focus-visible { outline: 3px solid #0B4C9C !important; outline-offset: 2px; }
.e-con.asn-topbar :focus-visible, .e-con.asn-xmas :focus-visible, #kontakt :focus-visible,
.e-con.asn-footer :focus-visible, .e-con.asn-footer-legal :focus-visible { outline-color: #FFFFFF !important; }
.asn-faq .e-n-accordion-item-title:focus-visible { outline-offset: -3px; }
.asn-nav .elementor-menu-toggle:focus-visible { outline-offset: 2px; }
.asn-nav nav.elementor-nav-menu--dropdown a:focus-visible { outline-offset: -3px; }

/* Sprunglink sichtbar, sobald er den Fokus hat */
.skip-link.screen-reader-text:focus { position: fixed !important; top: 8px; left: 8px; z-index: 100000; width: auto; height: auto; clip: auto !important; clip-path: none !important;
	padding: 12px 20px; border-radius: 999px; background: #FFFFFF; color: #0B4C9C; font: 700 16px/1.5 'Barlow', sans-serif; box-shadow: 0 4px 16px rgba(8, 40, 90, .25); }

/* Mindestgröße Klickfläche 24 px (WCAG 2.5.8) für alleinstehende Footer-Links */
.asn-ft-link a { display: inline-block; }
