/* Fox Trading – Ergänzungen zu legacy.css: Ersatz für JavaScript-Bausteine der Altseite
   (Master Slider, Slick-Karussell, Porto-Menüs, Interactive Banner) + Barrierefreiheit. Optik wie bisher. */

/* ---------- Basis / Barrierefreiheit ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; left: 10px; top: 10px; z-index: 200000; width: auto; height: auto; clip: auto; padding: 10px 14px; background: #fff; color: #cc4c01; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid #cc4c01; outline-offset: 2px; }
img { max-width: 100%; height: auto; }

/* ---------- Porto-Menüs ohne JavaScript (Hover + Tastatur) ---------- */
.mega-menu > li.menu-item:hover > .popup,
.mega-menu > li.menu-item:focus-within > .popup { display: block; }
.mega-menu > li.menu-item > .popup { animation: fox-fadein-left .2s ease-out; }
@keyframes fox-fadein-left { from { opacity: 0; transform: translate3d(-8px, 0, 0); } to { opacity: 1; transform: none; } }
#main-menu .mega-menu > li.menu-item > a .fa-home { font-size: 14px; }

/* ---------- Startseiten-Slider (ersetzt Master Slider, 1200 × 500, Überblendung) ---------- */
.fox-slider { position: relative; max-width: 1200px; margin: 0 auto; aspect-ratio: 1200 / 500; overflow: hidden; container-type: inline-size; background: #f4f4f4; }
.fox-slider__stage, .fox-slide { position: absolute; inset: 0; }
.fox-slide { opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 0s linear 1s; }
.fox-slide.is-active { opacity: 1; visibility: visible; transition: opacity 1s ease; z-index: 1; }
.fox-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fox-slide__layer { position: absolute; font-family: "Europe_ext", "Open Sans", sans-serif; white-space: nowrap; text-shadow: 2px 2px 4px rgba(0,0,0,.15); }
/* bisher h1-Elemente mit der globalen Überschriftenregel (Open Sans 600, -1px) – hier als p, damit die Seite nur eine H1 hat */
.fox-slide__layer p { margin: 0 0 10px; line-height: 1.15; font-family: "Open Sans", sans-serif; font-weight: 600; letter-spacing: calc(-1 / 1200 * 100cqw); font-size: calc(var(--fs) / 1200 * 100cqw); }
.fox-slide.is-active .fox-slide__layer p { animation: fox-layer-in .3125s cubic-bezier(.23, 1, .32, 1) both; animation-delay: var(--d, 0ms); }
@keyframes fox-layer-in { from { opacity: 0; translate: 0 -50px; } to { opacity: 1; translate: 0 0; } }
.fox-slider__arrow { position: absolute; top: 50%; z-index: 3; width: 40px; height: 40px; margin-top: -20px; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: #605652; cursor: pointer; opacity: 0; transition: opacity .3s; font: normal 18px/40px FontAwesome; text-align: center; padding: 0; }
.fox-slider__arrow--prev { left: 15px; } .fox-slider__arrow--next { right: 15px; }
.fox-slider__arrow--prev::before { content: "\f104"; } .fox-slider__arrow--next::before { content: "\f105"; }
.fox-slider:hover .fox-slider__arrow, .fox-slider__arrow:focus-visible { opacity: 1; }
@media (max-width: 767px) { .fox-slider__arrow { display: none; } }

/* ---------- Interactive Banner: Hover-Transparenz (bisher per JS aus data-hover-opacity) ---------- */
.ult-new-ib:hover .ult-new-ib-img, .ult-new-ib:focus-within .ult-new-ib-img { opacity: var(--fox-hover-op, .5) !important; }
.ult-new-ib .ult-new-ib-link:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

/* ---------- Karussell (ersetzt Slick). Punkte/Pfeile erzeugt fox.js mit Slick-Klassen → Optik aus legacy.css ---------- */
/* Lade-Zustand des Plugins (Spinner, erstes Element unsichtbar bis Slick umbaut) aufheben */
.ult-carousel-wrapper.fox-carousel > div:first-child > .ult-item-wrap:first-child { min-height: 0; }
.ult-carousel-wrapper.fox-carousel > div:first-child > .ult-item-wrap:first-child > * { opacity: 1; filter: none; }
.ult-carousel-wrapper.fox-carousel > div:first-child > .ult-item-wrap:first-child::before { content: none; display: none !important; }
.ult-carousel-wrapper.fox-carousel > div:first-child > .ult-item-wrap { display: none; }
.ult-carousel-wrapper.fox-carousel > div:first-child > .ult-item-wrap.is-active { display: block; animation: fox-fade .3s ease; }
@keyframes fox-fade { from { opacity: .3; } to { opacity: 1; } }
/* Slick legte die Elemente in eine transformierte Spur (eigener Stapelkontext) – sonst verdecken Banner (z-index 1)
   nachfolgende, absolut positionierte Inhalte wie den Text im Kasten „Kundenkonto eröffnen“ */
.ult-carousel-wrapper.fox-carousel > .slick-slider { isolation: isolate; }
/* schmale Handys: zwei Elemente nebeneinander (bisher „breakpoint 481 → slidesToShow 2“) */
.ult-carousel-wrapper.fox-carousel--multi > .slick-slider { display: flex; flex-wrap: wrap; }
.ult-carousel-wrapper.fox-carousel--multi > div:first-child > .ult-item-wrap.is-active { width: 50%; }
.ult-carousel-wrapper.fox-carousel--multi .slick-dots { width: 100%; }
/* Punkte: Knopf im Listeneintrag (Barrierefreiheit), optisch neutral – Darstellung kommt weiter vom Symbol <i> */
.slick-dots li button.fox-dot { all: unset; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; cursor: pointer; line-height: inherit; font-size: inherit; color: inherit; }
body .ult-carousel-wrapper .slick-dots li { width: 24px; height: 24px; margin: 0 2px; }
.slick-dots li button.fox-dot::before { content: none; }
.slick-dots li button.fox-dot:focus-visible { outline: 2px solid #cc4c01; outline-offset: 1px; }

/* ---------- Barrierefreiheit (Nutzerwunsch 10.10.2026) ---------- */
/* Startseite: Hinweis „Interesse an einer Zusammenarbeit?“ zentriert (ersetzt die Zeile mit „Weitere Produkte“, 10.10.2026) */
.fox-cta-home { margin: 40px 0 0; text-align: center; }
.fox-cta-home p { margin: 0 0 4px; }
.fox-cta-home a#btn-w { position: static; display: inline-block; margin-top: 14px; }
/* Zwischenüberschrift (fett) + Liste: Aufzählungspunkte bündig unter der Überschrift */
.wpb_text_column p:has(> strong:only-child) + ul { padding-left: 18px; }
/* Links im Fließtext nicht nur über die Farbe erkennbar */
#footer .footer-bottom a, .wpb_text_column p a:not([id]):not([class]), .fox-privacy a { text-decoration: underline; }
/* Tippflächen der Footer-Links mindestens 24 px hoch */
#footer .textwidget a.foolink { display: inline-block; min-height: 24px; line-height: 24px; }
/* Kontraste auf grauen Flächen (Lighthouse 10.10.2026) */
.fox-faq-item > summary { color: #605652; }
.fox-privacy a { color: #b34401; }
/* Karussell-Pfeile: Tippfläche mindestens 24 px */
.fox-carousel .slick-prev, .fox-carousel .slick-next { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-top: -12px; }
/* Bildbox „Über uns“: Fotos füllen die Box – kein Innenabstand, einheitliches Format 5:4, Punkte unter dem Bild (Nutzerwunsch 10.10.2026) */
.featured-box .box-content:has(> .fox-carousel) { padding: 0; border-radius: 8px; overflow: hidden; }
.featured-box .box-content > .fox-carousel { margin: 0; }
.featured-box .fox-carousel .wpb_single_image { margin: 0; }
.featured-box .fox-carousel .vc_single_image-wrapper { display: block; padding: 0; border: 0; border-radius: 0; }
.featured-box .fox-carousel img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; }
.featured-box .fox-carousel img.fox-lagerfoto { object-position: 50% 30%; }
body .featured-box .fox-carousel ul.slick-dots { position: static; width: 100%; margin: 10px 0 12px; }
.featured-box .fox-carousel .slick-prev { left: 10px; z-index: 2; }
.featured-box .fox-carousel .slick-next { right: 10px; z-index: 2; }

/* ---------- Reiter (Ultimate Tabs): Umschaltung per fox.js ---------- */
.ult_tabmenu .ult_a { cursor: pointer; }

/* ---------- Mobiles Seitenmenü (Porto nav-panel) ---------- */
.accordion-menu li > .sub-menu { display: none; }
.accordion-menu li.open > .sub-menu { display: block; }
.accordion-menu li > .arrow { cursor: pointer; }
html.panel-opened, html.panel-opened body { overflow: hidden; }
#nav-panel .switcher-wrap { padding: 10px 15px; }

/* ---------- „Nach oben“-Button (ersetzt Porto-topcontrol): Anthrazit, weißer Pfeil, Orange bei Hover/Fokus ---------- */
html #topcontrol.fox-topcontrol { position: fixed; right: 20px; bottom: 20px; z-index: 1040; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
	background: #605652; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: pointer; text-align: center;
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .3s, visibility .3s, transform .3s, background-color .2s; }
html #topcontrol.fox-topcontrol.is-visible { opacity: 1; visibility: visible; transform: none; }
html #topcontrol.fox-topcontrol:hover, html #topcontrol.fox-topcontrol:focus-visible { background: #cc4c01; }
html #topcontrol.fox-topcontrol:focus-visible { outline: 2px solid #cc4c01; outline-offset: 3px; }
html #topcontrol.fox-topcontrol i { position: static; display: block; height: auto; margin: 0; font-size: 18px; line-height: 44px; }
.fox-topcontrol .fa-chevron-up::before { content: "\f077"; }
@media (prefers-reduced-motion: reduce) { html #topcontrol.fox-topcontrol { transition: none; transform: none; } }

/* ---------- Karte (Zwei-Klick, Optik wie bisher: graue Fläche mit Marker, 400 px) ---------- */
.fox-map { position: relative; height: 400px; background: #e5e3df; }
.fox-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.fox-map__placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px; }
.fox-map__pin { width: 22px; height: 22px; border-radius: 50% 50% 50% 0; background: #d33; transform: rotate(-45deg); box-shadow: 0 2px 3px rgba(0,0,0,.3); margin-bottom: 6px; }
.fox-map__addr { margin: 0; color: #605652; font-weight: 600; }
.fox-map__load { background: #cc4c01; border: 1px solid #cc4c01; color: #fff; border-radius: 4px; padding: 8px 18px; font-weight: 700; cursor: pointer; }
.fox-map__load:hover { background: #605652; border-color: #605652; }
.fox-map__note { margin: 0; font-size: 11px; color: #555; }

/* ---------- Formular-Meldungen (neu, im Stil der Formularkarte) ---------- */
.fox-form .fox-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fox-form-notice { border-radius: 5px; padding: 12px 15px; margin: 0 0 14px; font-size: 13px; }
.fox-form-notice p { margin: 0; }
.fox-form-notice ul { margin: 6px 0 0; padding-left: 18px; }
.fox-form-notice--ok { background: #e8f5ec; border-left: 4px solid #1e7b3a; color: #1e4d2b; }
.fox-form-notice--err { background: #fce8ea; border-left: 4px solid #b00020; color: #6b0013; }
.fox-form-err { display: block; margin-top: 4px; color: #b00020; font-size: 12px; font-weight: 600; }
.fox-contact-card [aria-invalid="true"] { border-color: #b00020 !important; }
/* Platzhalter wie bisher (Contact Form 7): unsichtbar, hält den Abstand zwischen Button und Pflichtfeld-Hinweis */
.fox-actions .wpcf7-spinner { display: inline-block; visibility: hidden; width: 24px; height: 24px; margin: 0; vertical-align: middle; }

/* Startseite (/): Logo stand bisher in <h1 class="logo"> und übernahm deren Zeilenmaße – gleiche Höhe ohne zweite H1 */
#header .logo.fox-logo-front { font-family: "Open Sans", sans-serif; font-size: 36px; line-height: 44px; }
@media (max-width: 479px) { #header .logo.fox-logo-front { font-size: 33.42857143px; line-height: 40px; } }

/* Buttons: Hover-Fläche auch bei Tastaturfokus einblenden (Maus: .ubtn-left-bg:hover aus legacy.css) */
a.ubtn-link:focus-visible .ubtn-left-bg .ubtn-hover { left: 0; }

/* Seitenüberschrift (H1) in der Optik der bisherigen Überschrift (vorher h2/h3/h4 – SEO: genau eine H1 je Seite).
   Werte aus legacy.css (h2/h3/h4 inkl. Verkleinerung bis 479 px); Abstände/Farben behalten Klassen und Inline-Stile. */
h1.fox-h1-h2 { font-size: 30px; letter-spacing: -1px; }
h1.fox-h1-h3 { font-size: 25px; line-height: 32px; letter-spacing: normal; margin-bottom: 33px; }
h1.fox-h1-h4 { font-size: 20px; line-height: 27px; letter-spacing: normal; margin-bottom: 14px; }
@media (max-width: 479px) {
	h1.fox-h1-h2 { font-size: 27.85714286px; }
	h1.fox-h1-h3 { font-size: 23.21428571px; line-height: 29.09090909px; }
	h1.fox-h1-h4 { font-size: 18.57142857px; line-height: 24.54545455px; }
}

/* Getarnte E-Mail-Adressen: Tarnteile nie anzeigen, nicht vorlesen, nicht mitkopieren */
.fox-hide { display: none !important; }
/* Getarnte E-Mail-Adresse: wie ein Link, aber nicht markier- und kopierbar */
.fox-email { color: #cc4c01; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; user-select: none; }
.fox-email:hover { text-decoration: underline; }
.fox-email:focus-visible { outline: 2px solid #cc4c01; outline-offset: 2px; }

/* ---------- Handy-Ansicht (Nutzer-Feedback 10.10.2026) ---------- */
/* Logo: das alte Theme blendete es auf hochauflösenden Bildschirmen (iPhone, skalierte Laptops) zugunsten eines nicht vorhandenen „Retina-Logos“ aus */
.fox-lang-mobile, .fox-swipe-dots { display: none; }
.fox-lang-mobile .fa-globe::before { content: "\f0ac"; }
@media (min-resolution: 1.5dppx) { #header .logo img.standard-logo { display: inline-block; } }
@media (max-width: 767px) {
	/* obere Leiste (Kontaktformular, Sprache) auch auf dem Handy */
	#header .header-top { display: block; }
	#header .header-top .container { display: flex; align-items: center; justify-content: space-between; }
	#header .header-top .header-left, #header .header-top .header-right { float: none; display: block; text-align: left; }
	#header .header-top .fox-lang-mobile { display: inline-block; min-height: 24px; line-height: 24px; padding: 0 2px; color: #605652; font-weight: 600; }
	#header .header-top .container::before, #header .header-top .container::after { content: none; }
	/* Abstand über dem Footer (Desktop 170 px) */
	.footer-wrapper { padding-top: 24px; }
	#footer .container { padding-top: 24px; }
	#footer aside.widget[hidden] { display: none; }
	#footer .row > div:first-child > aside.widget { margin-top: 0; }
	#footer .footer-bottom .container { padding-top: 0; }
	#footer .footer-bottom .textwidget p > br:first-child { display: none; }
	/* Zeilen „Text – Knopf – oder – Knopf“: kompakt untereinander */
	.vc_row:has(.ubtn-ctn-center) .wpb_text_column, .vc_row:has(.ubtn-ctn-center) .ubtn-ctn-center { margin-bottom: 12px; }
	.vc_row:has(.ubtn-ctn-center) a.ubtn-link { padding-top: 0; padding-bottom: 0; }
	/* Kachel- und Fotoreihen: ein Wisch-Slider (fox.js fasst die Zeilen in .fox-swipe zusammen) */
	.fox-swipe { display: flex; gap: 12px; margin: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.fox-swipe::-webkit-scrollbar { display: none; }
	.fox-swipe > .vc_row { display: contents; }
	.fox-swipe > .vc_row::before, .fox-swipe > .vc_row::after { content: none; }
	.fox-swipe .vc_column_container { flex: 0 0 85%; width: auto; padding: 0; scroll-snap-align: start; }
	.fox-swipe .wpb_content_element, .fox-swipe .wpb_single_image, .fox-swipe .ult-new-ib { margin-bottom: 0; }
	.fox-swipe-dots { display: flex; justify-content: center; margin: 6px 0 28px; }
	.fox-swipe-dots button { all: unset; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; cursor: pointer; }
	.fox-swipe-dots button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #c9c4c1; }
	.fox-swipe-dots button[aria-current="true"]::before { background: #cc4c01; }
	.fox-swipe-dots button:focus-visible { outline: 2px solid #cc4c01; outline-offset: -2px; border-radius: 50%; }
	/* Copyright: Impressum/Datenschutz gemeinsam in der zweiten Zeile */
	#footer .footer-bottom .fox-legal-links { display: block; white-space: nowrap; }
}
