/* AntiBooks Startseite (front-page.php), Entwurf Oktober 2026
   Präfix abh- (AntiBooks Home), damit nichts mit den ab-Klassen aus style.css kollidiert.
   Wird nur auf der Startseite geladen, Header/Footer/Farbwerte kommen aus assets/site/site.css. */

.abh-body { margin: 0; background: #F6F6F3; }
/* Astra gibt den Scroll-to-top-Button im wp_footer aus, ohne Astra-CSS wäre er ungestylt */
.abh-body #ast-scroll-top { display: none; }

.abh-page {
	font-family: Poppins, system-ui, sans-serif;
	font-size: 16px;
	line-height: normal;
	color: var(--abh-text);
	background: var(--abh-bg);
	min-height: 100vh;
	-webkit-text-size-adjust: 100%;
}
.abh-page img, .abh-page svg { vertical-align: middle; }
.abh-page img { max-width: 100%; }
:where(.abh-page a) { color: var(--abh-navy); }
:where(.abh-page a:hover) { color: var(--abh-accent); }
.abh-page a:focus-visible, .abh-page button:focus-visible, .abh-page summary:focus-visible {
	outline: 2px solid var(--abh-cyan);
	outline-offset: 3px;
}

.abh-frame {
	max-width: 1248px;
	margin: 0 auto;
	border-left: 1px solid var(--abh-line);
	border-right: 1px solid var(--abh-line);
}

/* ---------- Buttons und Textlinks ---------- */
.abh-btn--primary { gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 12px; background: var(--abh-navy); color: #FFFFFF; font-size: 16px; }
.abh-btn--secondary { min-height: 52px; padding: 0 24px; border-radius: 12px; background: #FFFFFF; border: 1px solid var(--abh-line-strong); color: var(--abh-navy); font-size: 16px; }
.abh-btn--outline { align-self: flex-start; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--abh-line-strong); color: var(--abh-navy); font-size: 15px; }
.abh-btn--outline-lg { min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid var(--abh-line-strong); color: var(--abh-navy); font-size: 15px; }
.abh-btn--light { gap: 10px; min-height: 54px; padding: 0 28px; border-radius: 12px; background: #FFFFFF; color: var(--abh-navy); font-size: 16px; font-weight: 600; }
.abh-more { font-size: 15px; font-weight: 600; text-decoration: none; }

/* ---------- Typografie ---------- */
.abh-eyebrow { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--abh-accent); }
.abh-h1 { margin: 0; font-family: Poppins, sans-serif; font-weight: 600; font-size: clamp(38px, 4vw, 56px); line-height: 1.12; letter-spacing: -0.025em; color: var(--abh-navy); }
.abh-h2 { margin: 0; font-family: Poppins, sans-serif; font-weight: 600; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.15; letter-spacing: -0.02em; color: var(--abh-navy); }
.abh-note { margin: 0; font-size: 14px; color: var(--abh-muted); }
.abh-num { font-size: 13px; color: var(--abh-accent); }
.abh-fill { flex: 1; }

/* ---------- Hero ---------- */
.abh-hero { padding: 72px 56px 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.abh-hero__copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.abh-hero__lead { margin: 0; max-width: 520px; font-size: 19px; line-height: 1.55; color: var(--abh-body); }
.abh-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.abh-hero__media { flex: 1 1 380px; min-width: 0; max-width: 480px; position: relative; }
.abh-hero__photo { border-radius: 20px; overflow: hidden; background: #ECECE7; border: 1px solid var(--abh-line); aspect-ratio: 4 / 5; }
.abh-hero__photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 15%; display: block; }
.abh-hero__badge {
	position: absolute; left: -24px; bottom: 32px; background: #FFFFFF; border: 1px solid var(--abh-line);
	border-radius: 14px; padding: 16px 20px; box-shadow: 0 12px 32px rgba(11, 11, 74, 0.10);
	display: flex; flex-direction: column; gap: 4px;
}
.abh-hero__badge-name { font-family: Poppins, sans-serif; font-weight: 600; font-size: 22px; color: var(--abh-navy); }
.abh-hero__badge-role { font-size: 14px; color: var(--abh-muted); }

/* ---------- Belege-Animation (nur CSS) ---------- */
.abh-flow { padding: 24px 0 64px; }
.abh-flow__labels { display: flex; justify-content: space-between; padding: 0 56px 14px; font-size: 13px; color: var(--abh-muted); }
.abh-flow__stage { position: relative; height: 210px; overflow: hidden; border-top: 1px solid var(--abh-line); border-bottom: 1px solid var(--abh-line); background: #F1F1EC; }
.abh-flow__half { position: absolute; top: 0; bottom: 0; width: 50%; overflow: hidden; }
.abh-flow__half--in { left: 0; }
.abh-flow__half--out { left: 50%; }
/* padding-right = gap, damit -50% genau einem Kartensatz entspricht und die Schleife nicht springt */
.abh-flow__track { position: absolute; left: 0; top: 34px; display: flex; gap: 40px; padding-right: 40px; width: max-content; animation: abh-flow 36s linear infinite; }
.abh-flow__half--out .abh-flow__track { left: -100%; }
@keyframes abh-flow { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.abh-receipt {
	width: 150px; height: 140px; flex: none; box-sizing: border-box; padding: 14px; background: #FFFFFF;
	border-radius: 4px; box-shadow: 0 8px 18px rgba(11, 11, 74, 0.10);
	font-size: 10px; color: #6B6B80; display: flex; flex-direction: column; gap: 6px;
}
.abh-receipt:nth-child(8n+1) { transform: rotate(-3deg); }
.abh-receipt:nth-child(8n+2) { transform: rotate(2deg); }
.abh-receipt:nth-child(8n+3) { transform: rotate(-1.5deg); }
.abh-receipt:nth-child(8n+4) { transform: rotate(3deg); }
.abh-receipt:nth-child(8n+5) { transform: rotate(-2.5deg); }
.abh-receipt:nth-child(8n+6) { transform: rotate(1deg); }
.abh-receipt:nth-child(8n+7) { transform: rotate(-1deg); }
.abh-receipt:nth-child(8n+8) { transform: rotate(2.5deg); }
.abh-receipt__vendor { font-weight: 500; color: var(--abh-text); text-transform: uppercase; letter-spacing: 0.04em; }
.abh-receipt__line { display: block; height: 3px; width: 90%; background: #E6E6E1; }
.abh-receipt__line:nth-of-type(3) { width: 70%; }
.abh-receipt__line:nth-of-type(4) { width: 80%; }
.abh-receipt__sum { display: flex; justify-content: space-between; border-top: 1px dashed var(--abh-line-strong); padding-top: 6px; }
.abh-receipt__amount { color: var(--abh-text); }

.abh-booked {
	width: 150px; height: 140px; flex: none; box-sizing: border-box; padding: 12px; background: #FFFFFF;
	border: 1px solid #DCDCD6; border-radius: 10px;
	font-size: 10px; color: var(--abh-muted); display: flex; flex-direction: column; gap: 6px;
}
.abh-booked__status { display: flex; justify-content: space-between; align-items: center; }
.abh-booked__label { color: var(--abh-accent); font-weight: 500; }
.abh-booked__vendor { color: var(--abh-text); font-weight: 500; }
.abh-booked__sum { display: flex; justify-content: space-between; border-top: 1px solid var(--abh-line-soft); padding-top: 6px; }
.abh-booked__amount { color: var(--abh-navy); font-weight: 500; }

.abh-flow__line { position: absolute; top: 0; bottom: 0; left: calc(50% - 1px); width: 2px; background: var(--abh-cyan); }
.abh-flow__dot { position: absolute; left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%; background: var(--abh-cyan); }
.abh-flow__dot--top { top: 12px; }
.abh-flow__dot--bottom { bottom: 12px; }

/* ---------- Kennzahlen ---------- */
.abh-stats { padding: 0 56px 96px; }
.abh-stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.abh-stat { background: #FFFFFF; border: 1px solid var(--abh-line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.abh-stat__value { font-family: Poppins, sans-serif; font-weight: 600; font-size: 44px; line-height: 1; color: var(--abh-navy); }
.abh-stat__label { font-size: 15px; font-weight: 600; color: var(--abh-navy); }
.abh-stat__text { font-size: 14px; color: var(--abh-muted); }
.abh-stat--dark { background: var(--abh-navy); border: none; }
.abh-stat--dark .abh-stat__value, .abh-stat--dark .abh-stat__label { color: #FFFFFF; }
.abh-stat--dark .abh-stat__text { color: #C9C9E0; }

/* ---------- Problem ---------- */
.abh-problem { padding: 0 56px 96px; display: flex; flex-wrap: wrap; gap: 48px; }
.abh-problem__head { flex: 1 1 340px; min-width: 0; }
.abh-problem__grid { flex: 2 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 24px; }
.abh-pain { border-top: 2px solid var(--abh-navy); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.abh-pain__title { font-size: 17px; font-weight: 600; color: var(--abh-navy); }
.abh-pain__text { font-size: 15px; line-height: 1.55; color: var(--abh-body); }

/* ---------- Standard-Abschnitt (Fokus, Leistungen, Ablauf) ---------- */
.abh-block { padding: 96px 56px; border-top: 1px solid var(--abh-line); display: flex; flex-direction: column; gap: 48px; }
.abh-intro { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.abh-intro--wide { max-width: 760px; }
.abh-intro__text { margin: 0; font-size: 17px; line-height: 1.65; color: var(--abh-body); }

/* Vergleich */
.abh-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.abh-compare__card { background: #FFFFFF; border: 1px solid var(--abh-line); border-radius: 20px; padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.abh-compare__card--dark { background: var(--abh-navy); border: none; }
.abh-compare__title { margin: 0; font-size: 20px; font-weight: 600; color: var(--abh-muted); }
.abh-compare__card--dark .abh-compare__title { color: #FFFFFF; }
.abh-compare__list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.abh-compare__item { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--abh-line-soft); font-size: 15px; color: var(--abh-body); }
.abh-compare__item:last-child { border-bottom: 1px solid var(--abh-line-soft); }
.abh-compare__item svg { flex: none; }
.abh-compare__card--dark .abh-compare__item { border-color: #2A2A6A; color: #FFFFFF; }

/* Leistungen */
.abh-services { display: flex; flex-direction: column; gap: 20px; }
.abh-service { background: #FFFFFF; border: 1px solid var(--abh-line); border-radius: 20px; padding: 40px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.abh-service__copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.abh-service__title { margin: 0; font-family: Poppins, sans-serif; font-weight: 600; font-size: 32px; color: var(--abh-navy); }
.abh-service__text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--abh-body); }
.abh-checks { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 15px; color: var(--abh-text); }
.abh-checks li { display: flex; gap: 10px; align-items: center; }
.abh-checks svg { flex: none; }
.abh-service__visual { flex: 1 1 380px; min-width: 0; background: var(--abh-bg); border: 1px solid var(--abh-line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.abh-service__visual--flow { padding: 24px; gap: 14px; }
.abh-inbox__head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--abh-muted); }
.abh-inbox__title { font-weight: 600; color: var(--abh-navy); }
.abh-inbox__list { background: #FFFFFF; border: 1px solid var(--abh-line); border-radius: 10px; display: flex; flex-direction: column; }
.abh-inbox__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #F0F0EB; font-size: 14px; }
.abh-inbox__row:last-child { border-bottom: none; }
.abh-inbox__name { color: var(--abh-text); flex: 1; }
.abh-inbox__amount { font-family: Poppins, sans-serif; color: var(--abh-navy); white-space: nowrap; }
.abh-pill { white-space: nowrap; font-size: 12px; padding: 3px 8px; border-radius: 999px; background: #E3F3F9; color: #00607F; }
.abh-pill--warn { background: #FFF1DD; color: #7A4A00; }
.abh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.abh-chips--center { justify-content: center; }
.abh-chip { font-size: 13px; padding: 8px 12px; background: #FFFFFF; border: 1px solid var(--abh-line); border-radius: 8px; color: var(--abh-text); }
.abh-arrow { display: flex; justify-content: center; }
.abh-system { padding: 14px 16px; background: var(--abh-navy); border-radius: 10px; color: #FFFFFF; font-size: 15px; font-weight: 500; text-align: center; }
.abh-services__small { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.abh-card { background: #FFFFFF; border: 1px solid var(--abh-line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.abh-card__title { margin: 0; font-family: Poppins, sans-serif; font-weight: 600; font-size: 26px; color: var(--abh-navy); }
.abh-card__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--abh-body); }
.abh-card .abh-more { margin-top: auto; }

/* ---------- Zielgruppen ---------- */
.abh-audience { padding: 0 56px 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.abh-audience__card { background: #FFFFFF; border: 1px solid var(--abh-line); border-radius: 20px; padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.abh-audience__title { margin: 0; font-family: Poppins, sans-serif; font-weight: 600; font-size: 36px; color: var(--abh-navy); }
.abh-audience__text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--abh-body); }
.abh-audience__card--dark { background: var(--abh-navy); border: none; }
.abh-audience__card--dark .abh-audience__title { color: #FFFFFF; }
.abh-audience__card--dark .abh-audience__text { color: #D2D2E6; }
.abh-audience__card--dark .abh-btn--outline { border-color: #4A4A8A; color: #FFFFFF; }

/* ---------- Ablauf ---------- */
.abh-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.abh-step { display: flex; flex-direction: column; gap: 12px; }
.abh-step__num { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--abh-cyan); display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--abh-navy); }
.abh-step__title { font-size: 19px; font-weight: 600; color: var(--abh-navy); }
.abh-step__text { font-size: 15px; line-height: 1.6; color: var(--abh-body); }

/* ---------- Über mich ---------- */
.abh-about { padding: 96px 56px; border-top: 1px solid var(--abh-line); display: flex; flex-wrap: wrap; gap: 56px; }
.abh-about__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.abh-about__list { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; }
.abh-cv { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--abh-line); }
.abh-cv:last-child { border-bottom: 1px solid var(--abh-line); }
.abh-cv__num { font-size: 13px; color: var(--abh-accent); width: 28px; flex: none; }
.abh-cv__text { font-size: 15px; line-height: 1.55; color: var(--abh-text); }
.abh-cv__text strong { color: var(--abh-navy); }

/* ---------- Referenzen ---------- */
.abh-refs { padding: 96px 56px; border-top: 1px solid var(--abh-line); display: flex; flex-direction: column; gap: 40px; }
.abh-refs__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.abh-refs__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.abh-quote { margin: 0; background: #FFFFFF; border: 1px solid var(--abh-line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.abh-quote blockquote { margin: 0; padding: 0; border: none; font-family: Poppins, sans-serif; font-size: 18px; line-height: 1.55; font-style: normal; color: var(--abh-navy); }
.abh-quote figcaption { margin-top: auto; font-size: 14px; color: var(--abh-muted); }
.abh-quote figcaption strong { color: var(--abh-text); }

/* ---------- BAFA ---------- */
.abh-bafa { padding: 0 56px 96px; }
.abh-bafa__card { background: #FFFFFF; border: 1px solid var(--abh-line); border-radius: 20px; padding: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.abh-bafa__copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.abh-bafa__title { margin: 0; font-family: Poppins, sans-serif; font-weight: 600; font-size: 32px; color: var(--abh-navy); }
.abh-bafa__text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--abh-body); }

/* ---------- FAQ ---------- */
.abh-faq { padding: 96px 56px; border-top: 1px solid var(--abh-line); display: flex; flex-wrap: wrap; gap: 48px; }
.abh-faq__head { flex: 1 1 320px; min-width: 0; }
.abh-faq__list { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; }
.abh-faq__item { border-top: 1px solid var(--abh-line); padding: 20px 0; }
.abh-faq__item:last-child { border-bottom: 1px solid var(--abh-line); }
.abh-faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 18px; font-weight: 500; color: var(--abh-navy); }
.abh-faq__item summary::-webkit-details-marker { display: none; }
.abh-faq__plus { font-size: 24px; color: var(--abh-accent); transition: transform .2s; }
.abh-faq__item[open] .abh-faq__plus { transform: rotate(45deg); }
.abh-faq__answer { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--abh-body); }

/* ---------- Abschluss-CTA ---------- */
.abh-cta { padding: 0 24px 24px; }
.abh-cta__card { background: var(--abh-navy); border-radius: 24px; padding: 80px 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.abh-cta__title { margin: 0; max-width: 760px; font-family: Poppins, sans-serif; font-weight: 600; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.15; letter-spacing: -0.02em; color: #FFFFFF; }
.abh-cta__text { margin: 0; max-width: 560px; font-size: 17px; line-height: 1.6; color: #D2D2E6; }
.abh-cta__note { font-size: 14px; color: #B9B9D6; }

/* ---------- Mobil (wie Entwurf) ---------- */
@media (max-width: 640px) {
	.abh-section { padding-left: 20px; padding-right: 20px; }
	.abh-section > * { padding: 28px 22px; }
	.abh-h1 { font-size: 32px; }
	.abh-hero__badge { left: 12px; right: 12px; }
	/* Leistungskarten: im Entwurf lief „Automatisierung“ und die Belegliste bei 390 px über den Kartenrand */
	.abh-service { padding: 24px 16px; }
	.abh-service__title { font-size: 26px; }
	.abh-service__visual { padding: 12px; }
	.abh-inbox__row { padding: 10px; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	.abh-flow__track { animation: none; }
	.abh-faq__plus { transition: none; }
}
