/* =========================================================================
   Assemblixx Theme — theme.css
   Enthält NUR, was Inline-Styles nicht leisten können:
   Font-Face, Basis-Reset, Keyframes, Hover/Focus-Zustände (aus style-hover /
   style-focus der Vorlage), Responsive-Verhalten (Mobile-Menü) und
   prefers-reduced-motion. Alle Farb-/Layoutwerte sind 1:1 aus der Vorlage.
   ========================================================================= */

@import url("../fonts/fonts.css");

/* ---- Basis-Reset (aus dem <helmet><style> der Vorlage) ---- */
html { scroll-behavior: smooth; }
body { margin: 0; background: #0E1613; }
* { box-sizing: border-box; }
input, textarea, button { font-family: 'Instrument Sans', sans-serif; }

img { max-width: 100%; }

/* Lange, umbruchlose Token (URLs/E-Mails in Rechtstexten) nicht überlaufen lassen */
.axx-root { overflow-wrap: break-word; }

/* Skip-Link (A11y) */
.axx-skip {
	position: absolute; left: -9999px; top: 0; z-index: 200;
	background: #68C058; color: #0E1613; font-weight: 700;
	padding: 10px 16px; border-radius: 0 0 12px 0; text-decoration: none;
}
.axx-skip:focus { left: 0; }

/* ---- Keyframes ---- */
@keyframes axxFloat {
	0%, 100% { transform: translateY(0) rotate(-3deg); }
	50% { transform: translateY(-10px) rotate(-3deg); }
}

/* Referenzen-Marquee: eine langsam rotierende Logo-Reihe (Endlos-Loop) */
.axx-marquee {
	overflow: hidden;
	width: 100%;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.axx-marquee-track {
	display: flex;
	align-items: center;
	gap: 16px;
	width: max-content;
	animation: axxMarquee 45s linear infinite;
	will-change: transform;
}
.axx-marquee:hover .axx-marquee-track { animation-play-state: paused; }
.axx-logo-chip { flex: 0 0 auto; width: 160px; }
@keyframes axxMarquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); } /* zwei identische Sätze → nahtloser Loop */
}
@media (prefers-reduced-motion: reduce) {
	/* Bewegung aus (global), stattdessen manuell scrollbar */
	.axx-marquee { overflow-x: auto; }
}

/* =========================================================================
   Hover-/Focus-Zustände  (ersetzen style-hover / style-focus der Vorlage)
   ========================================================================= */
.axx-navlink:hover { color: #FFFFFF; }
.axx-navgroup-btn:hover,
.axx-navgroup.open .axx-navgroup-btn { color: #FFFFFF; }
.axx-navgroup.open .axx-caret { transform: rotate(180deg) !important; }
.axx-navgroup.open .axx-drop { display: flex !important; }

/* Unsichtbare Hover-Brücke über die 6px-Lücke zwischen Button und Panel
   (nur Desktop), damit das Menü beim Rüberfahren nicht schließt. */
@media (min-width: 1025px) {
	.axx-navgroup > .axx-drop::before {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: -10px;
		height: 12px;
	}
}

.axx-dropitem:hover { background: rgba(104,192,88,0.14); color: #FFFFFF; }

.axx-cta:hover { background: #7BD65C; }
.axx-ghost:hover { border-color: #68C058; color: #8FD97F; }
.axx-card:hover { border-color: #68C058; }
.axx-chip:hover { border-color: #68C058; color: #3E8E4E; background: #FFFFFF; }
.axx-foot-link:hover { color: #8FD97F; }
.axx-plan-cta:hover { opacity: 0.88; }
.axx-textlink:hover { color: #17201B; }
.axx-contact-link:hover { color: #3E8E4E; }
.axx-input:focus { border-color: #68C058; }
/* Formularfelder dürfen in Grid-Spalten schrumpfen (kein H-Scroll auf Mobile) */
.axx-input { min-width: 0; max-width: 100%; }

/* Sichtbare Focus-Ringe (A11y, Abschnitt 7 Handoff) */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
	outline: 2px solid #68C058;
	outline-offset: 2px;
}

/* =========================================================================
   FAQ-Akkordeon offener Zustand (per .open von theme.js gesetzt)
   ========================================================================= */
.axx-faq-item.open { border-color: #68C058 !important; }
.axx-faq-item.open .axx-faq-icon { background: #68C058 !important; color: #0E1613 !important; }

/* =========================================================================
   Responsive: Mobile-Menü ab ≤ 1024px (Handoff Abschnitt 5)
   ========================================================================= */
@media (max-width: 1024px) {
	/* Kopfzeile: Logo links · Sprachumschalter + Burger rechts · CTA volle Breite darunter */
	.axx-burger { display: block !important; order: 3; margin-left: 8px !important; }
	.axx-langtoggle { order: 2; margin-left: auto; }
	/* Nur den Header-CTA (direktes Kind der Kopfzeile) einklappen — NICHT die
	   anderen grünen Buttons (Hero, Kontakt, 404 …), die dieselbe Klasse nutzen.
	   Er überstrahlt sonst die eingeklappte Kopfzeile; erscheint erst im Menü. */
	.axx-headbar > .axx-cta { display: none; }
	.axx-headbar.axx-open > .axx-cta {
		display: block;
		order: 6;
		width: 100%;
		text-align: center;
		margin-top: 12px;
	}

	/* Off-Canvas-Liste (per Burger geöffnet) */
	.axx-nav {
		display: none !important;
		width: 100%;
		order: 5;
		flex-direction: column;
		align-items: stretch !important; /* überschreibt inline align-items:center */
		gap: 0;
		margin: 10px 0 0 !important;
		padding-top: 4px;
		border-top: 1px solid rgba(255,255,255,0.12);
	}
	.axx-nav.open { display: flex !important; }

	.axx-navgroup { position: static !important; width: 100%; }
	.axx-navgroup-btn {
		width: 100%;
		justify-content: space-between;
		align-items: center;
		padding: 15px 4px !important;
		font-size: 16px !important;
		border-bottom: 1px solid rgba(255,255,255,0.08);
	}
	.axx-navlink {
		display: block;
		width: 100%;
		text-align: left;
		padding: 15px 4px !important;
		font-size: 16px !important;
		border-bottom: 1px solid rgba(255,255,255,0.08);
	}

	/* Dropdown-Inhalte: eingerückt, transparent, ohne Panel-Optik */
	.axx-drop {
		position: static !important;
		min-width: 0 !important;
		width: 100%;
		box-shadow: none !important;
		background: transparent !important;
		border: 0 !important;
		border-radius: 0 !important;
		margin: 0 !important;
		padding: 2px 0 8px 12px !important;
	}
	.axx-dropitem { padding: 11px 12px !important; border-radius: 8px; }
}

/* Touch-Ziele ≥ 48px auf Mobile */
@media (max-width: 640px) {
	.axx-navgroup-btn, .axx-navlink, .axx-dropitem { min-height: 48px; }
}

/* =========================================================================
   prefers-reduced-motion (Handoff Abschnitt 7/8)
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { animation: none !important; transition: none !important; }
}
