/* AntiBooks, gemeinsame Styles für alle Seiten: Farbwerte, Header, Footer, Burger-Menü.
   Markup: parts/abh-header.php und parts/abh-footer.php. Präfix abh- (neues Design).
   Selektoren sind teils doppelt verschachtelt, damit Astra-Regeln (a:hover, button) auf den Unterseiten nicht greifen. */

:root {
	--abh-navy: #0B0B4A;
	--abh-text: #2E2E48;
	--abh-body: #4A4A63;
	--abh-muted: #5E5E74;
	--abh-accent: #00739A;
	--abh-cyan: #009FD1;
	--abh-bg: #F6F6F3;
	--abh-line: #E3E3DE;
	--abh-line-strong: #D9D9D3;
	--abh-line-soft: #ECECE7;
}

.abh-header, .abh-footer {
	font-family: Poppins, system-ui, sans-serif;
	font-size: 16px;
	line-height: normal;
	color: var(--abh-text);
	-webkit-text-size-adjust: 100%;
}
.abh-header *, .abh-header *::before, .abh-header *::after,
.abh-footer *, .abh-footer *::before, .abh-footer *::after { box-sizing: border-box; }
.abh-header img, .abh-header svg, .abh-footer img { vertical-align: middle; }
.abh-header a:focus-visible, .abh-header button:focus-visible, .abh-footer a:focus-visible {
	outline: 2px solid var(--abh-cyan);
	outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.abh-btn { display: inline-flex; align-items: center; text-decoration: none; font-weight: 500; }
.abh-header .abh-btn--nav,
.abh-header .abh-btn--nav:hover,
.abh-header .abh-btn--nav:focus {
	gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px;
	background: var(--abh-navy); color: #FFFFFF; font-size: 15px; text-decoration: none;
}

/* ---------- Header ---------- */
.abh-header { padding: 16px 24px 0; }
.abh-nav {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
	background: #FFFFFF; border: 1px solid var(--abh-line); border-radius: 14px;
	padding: 12px 12px 12px 20px; box-shadow: 0 6px 24px rgba(11, 11, 74, 0.05);
}
.abh-nav__logo { display: flex; align-items: center; }
.abh-nav__logo img { display: block; height: 20px; width: auto; max-width: none; }
.abh-nav__menu { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.abh-nav .abh-nav__menu a,
.abh-nav .abh-nav__menu a:hover,
.abh-nav .abh-nav__menu a:focus { text-decoration: none; color: var(--abh-text); }
.abh-nav .abh-nav__menu .abh-btn--menu { display: none; }
.abh-nav__toggle { display: none; }

.abh-bafa-wrap { display: flex; justify-content: center; }
.abh-header .abh-bafa-bar,
.abh-header .abh-bafa-bar:hover,
.abh-header .abh-bafa-bar:focus {
	display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
	padding: 10px 18px; background: #FFFFFF; border: 1px solid var(--abh-line); border-top: none;
	border-radius: 0 0 12px 12px; font-size: 14px; color: var(--abh-body); text-decoration: none;
}
.abh-bafa-bar__more { color: var(--abh-navy); font-weight: 600; }

/* ---------- Footer ---------- */
.abh-footer { padding: 40px 56px; font-size: 14px; color: var(--abh-muted); }
.abh-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.abh-footer__bottom img { display: block; height: 18px; width: auto; max-width: none; }
.abh-footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.abh-footer .abh-footer__links a,
.abh-footer .abh-footer__links a:hover,
.abh-footer .abh-footer__links a:focus { color: var(--abh-muted); text-decoration: none; }

/* Linkspalten, Social Icons und Partnerlogos über der Footer-Zeile */
.abh-footer--links { border-top: 1px solid var(--abh-line); padding-top: 64px; }
.abh-footer__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 32px 28px; }
.abh-footer .abh-footer__heading { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--abh-accent); }
.abh-footer .abh-footer__heading a { color: inherit; text-decoration: none; }
.abh-footer__col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.abh-footer__col li { margin: 0; line-height: 1.45; }
.abh-footer .abh-footer__col a { color: var(--abh-text); text-decoration: none; font-size: 14px; }
.abh-footer .abh-footer__col a:hover { color: var(--abh-accent); }
.abh-footer .abh-footer__tagline { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: var(--abh-muted); }
.abh-footer__social { display: flex; gap: 10px; }
.abh-footer .abh-footer__social a {
	display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
	border: 1px solid var(--abh-line); border-radius: 10px; background: #FFFFFF; color: var(--abh-navy);
}
.abh-footer .abh-footer__social a:hover { color: var(--abh-accent); border-color: var(--abh-line-strong); }
.abh-footer__social svg { width: 15px; height: 15px; }
.abh-footer__badges {
	display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 40px;
	margin: 48px 0 40px; padding: 32px 0; border-top: 1px solid var(--abh-line); border-bottom: 1px solid var(--abh-line);
}
.abh-footer__badges img { display: block; height: 72px; width: auto; max-width: none; }

/* ---------- Burger-Menü unter 900 px ---------- */
@media (max-width: 899px) {
	.abh-nav { gap: 12px; }
	.abh-nav__logo { order: 1; }
	.abh-header .abh-btn--nav { order: 2; margin-left: auto; }
	.abh-nav .abh-nav__toggle,
	.abh-nav .abh-nav__toggle:hover,
	.abh-nav .abh-nav__toggle:focus {
		order: 3; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
		width: 44px; height: 44px; min-height: 0; padding: 0; margin: 0; background: #FFFFFF; color: var(--abh-navy);
		border: 1px solid var(--abh-line); border-radius: 10px; box-shadow: none; cursor: pointer;
	}
	.abh-nav__toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--abh-navy); transition: transform .2s, opacity .2s; }
	.abh-nav.is-open .abh-nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
	.abh-nav.is-open .abh-nav__toggle span:nth-child(2) { opacity: 0; }
	.abh-nav.is-open .abh-nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
	.abh-nav__menu { order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; }
	.abh-nav--js .abh-nav__menu { display: none; }
	.abh-nav--js.is-open .abh-nav__menu { display: flex; }
	.abh-nav .abh-nav__menu a { display: flex; align-items: center; min-height: 48px; border-top: 1px solid var(--abh-line-soft); }
}
@media (max-width: 559px) {
	.abh-header .abh-btn--nav { display: none; }
	.abh-nav .abh-nav__toggle { margin-left: auto; }
	.abh-nav .abh-nav__menu .abh-btn--menu,
	.abh-nav .abh-nav__menu .abh-btn--menu:hover {
		display: inline-flex; justify-content: center; gap: 8px; min-height: 44px; margin: 8px 0 4px;
		border-top: none; border-radius: 10px; background: var(--abh-navy); color: #FFFFFF;
	}
}
@media (max-width: 640px) {
	.abh-footer { padding-left: 20px; padding-right: 20px; }
	.abh-footer--links { padding-top: 48px; }
	.abh-footer__nav { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.abh-footer__badges { gap: 20px 28px; }
	.abh-footer__badges img { height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
	.abh-nav__toggle span { transition: none; }
}
