/*
Theme Name: Aptender 2026
Theme URI: https://aptender.de
Description: Kind-Theme von Twenty Twenty-Five fuer aptender.de - Produktwebseite Aptender der diovina GmbH. Hell, Dunkelblau #1F3A5F mit Gruen #2E8B57 als Akzent, barrierearm (WCAG 2.1 AA als Ziel), ohne Drittanbieter und Cookies.
Author: Claude fuer diovina GmbH
Template: twentytwentyfive
Version: 1.3.1
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: aptender-2026
License: GNU General Public License v2 or later
*/

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--wp--preset--color--gruen); outline-offset: 2px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
html { scroll-behavior: smooth; }

/* Kopf (sticky am Template-Part-Container) */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 100; }
body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; } }
.ap-logo { display: inline-block; line-height: 0; }
.ap-logo img { width: 190px; height: auto; display: block; }
.ap-kopf .wp-block-navigation a { text-decoration: none; color: var(--wp--preset--color--blau); }
.ap-kopf .wp-block-navigation a:hover, .ap-kopf .wp-block-navigation a:focus { text-decoration: underline; text-underline-offset: .25em; }
.ap-kopf [aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--wp--preset--color--gruen); text-underline-offset: .35em; }
.ap-kopf .ap-nav-kontakt a { background: var(--wp--preset--color--blau); color: #fff !important; padding: .45rem 1rem; border-radius: 4px; }
.ap-kopf .ap-nav-kontakt a:hover, .ap-kopf .ap-nav-kontakt a:focus { background: #142740; text-decoration: none; }
.ap-kopf .wp-block-navigation__responsive-container.is-menu-open { background: #fff !important; color: var(--wp--preset--color--blau) !important; }

/* Titelband und Seitenkopf */
.ap-hero { background: linear-gradient(135deg, #1F3A5F 0%, #274a78 60%, #2b5a7c 100%); color: #fff; }
.ap-hero h1 { color: #fff; margin-top: 0; }
.ap-hero p { color: #e6edf5; }
.ap-dachzeile { color: #9fe0bb; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: var(--wp--preset--font-size--small); margin-bottom: .5rem; }
.ap-hero .wp-block-button__link { background: #fff; color: var(--wp--preset--color--blau); }
.ap-hero .wp-block-button__link:hover, .ap-hero .wp-block-button__link:focus { background: #d9f2e4; color: var(--wp--preset--color--blau); }
.ap-hero .is-style-outline .wp-block-button__link { background: transparent; color: #fff; border: 2px solid #fff; }
.ap-hero .is-style-outline .wp-block-button__link:hover, .ap-hero .is-style-outline .wp-block-button__link:focus { background: #fff; color: var(--wp--preset--color--blau); }
.ap-seitenkopf { background: var(--wp--preset--color--hell); border-bottom: 1px solid var(--wp--preset--color--rand); }
.ap-seitenkopf h1 { color: var(--wp--preset--color--blau); margin: 0; }

/* Abschnitte */
.ap-abschnitt { margin: 0 0 3.5rem; }
.ap-abschnitt > h2 { margin-top: 0; }
.ap-intro { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--contrast); max-width: 46rem; }

/* Haken-Liste */
.ap-haken { list-style: none; margin: 1rem 0; padding: 0; }
.ap-haken li { position: relative; padding-left: 2rem; margin: 0 0 .7rem; }
.ap-haken li::before { content: ""; position: absolute; left: .3rem; top: .35em; width: .55rem; height: 1rem; border: solid var(--wp--preset--color--gruen); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.ap-punkte { margin: 1rem 0; padding-left: 1.3rem; }
.ap-punkte li { margin: 0 0 .7rem; }

/* Kacheln */
.ap-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.ap-kachel { background: #fff; border: 1px solid var(--wp--preset--color--rand); border-top: 4px solid var(--wp--preset--color--gruen); border-radius: 6px; padding: 1.25rem 1.35rem; margin: 0; }
.ap-kachel h3 { margin: 0 0 .5rem; color: var(--wp--preset--color--blau); font-size: 1.15rem; }
.ap-kachel p { margin: 0; }
.ap-zwei { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.ap-zwei .ap-kachel { padding: 1.75rem; }

/* Schritte */
.ap-schritte { counter-reset: schritt; list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.ap-schritte li { counter-increment: schritt; position: relative; padding: 1.1rem 1.25rem 1.1rem 4.25rem; background: var(--wp--preset--color--hell); border-radius: 6px; margin: 0; }
.ap-schritte li::before { content: counter(schritt); position: absolute; left: 1.1rem; top: 1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--wp--preset--color--blau); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ap-schritte strong { color: var(--wp--preset--color--blau); display: block; font-weight: 700; }

/* Vergleichstabelle */
.ap-tabelle { width: 100%; border-collapse: collapse; margin: 1.25rem 0 0; font-size: 1rem; }
.ap-tabelle caption { text-align: left; font-weight: 600; margin-bottom: .5rem; color: var(--wp--preset--color--grau-text); }
.ap-tabelle th, .ap-tabelle td { border-bottom: 1px solid var(--wp--preset--color--rand); padding: .75rem .9rem; text-align: left; vertical-align: top; }
.ap-tabelle thead th { background: var(--wp--preset--color--blau); color: #fff; }
.ap-tabelle td.ap-ja { color: #1f6b42; font-weight: 700; }
.ap-tabelle td.ap-nein { color: var(--wp--preset--color--grau-text); }
.ap-tabelle-rahmen { overflow-x: auto; }

/* Messwerte */
.ap-werte { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.25rem; list-style: none; margin: 1.5rem 0 .75rem; padding: 0; }
.ap-werte li { background: var(--wp--preset--color--hell); border-radius: 6px; padding: 1.25rem; margin: 0; }
.ap-werte .ap-zahl { display: block; font-size: 2.1rem; font-weight: 700; color: var(--wp--preset--color--blau); line-height: 1.1; margin-bottom: .35rem; }
.ap-fussnote { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--grau-text); }

/* Aufruf-Band */
.ap-band { background: var(--wp--preset--color--blau); color: #fff; border-radius: 8px; padding: 2rem 2.25rem; margin: 3rem 0 0; }
.ap-band h2 { color: #fff; margin-top: 0; }
.ap-band p { color: #e6edf5; }
.ap-band a.ap-knopf { display: inline-block; background: #fff; color: var(--wp--preset--color--blau); padding: .65rem 1.25rem; border-radius: 4px; font-weight: 600; text-decoration: none; }
.ap-band a.ap-knopf:hover, .ap-band a.ap-knopf:focus { background: #d9f2e4; }
.ap-hinweis { border-left: 4px solid var(--wp--preset--color--gruen); background: var(--wp--preset--color--hell); padding: 1rem 1.25rem; border-radius: 0 6px 6px 0; }

/* Fuss */
.ap-fuss { border-top: 1px solid #2f4d74; }
.ap-fuss a { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.ap-fuss a:hover, .ap-fuss a:focus { color: #9fe0bb; }
.ap-fuss-logo img { width: 160px; height: auto; display: block; }

/* Inhaltsbreite: linksbündig am Seitentitel */
.ap-inhalt > * { max-width: 960px; margin-left: 0 !important; margin-right: 0 !important; }
.ap-start > * { max-width: 1180px; }
.ap-inhalt { padding-left: 0 !important; padding-right: 0 !important; }
.ap-inhalt > * { box-sizing: border-box; }

/* Kontaktformular */
.ap-formular { max-width: 640px; }
.ap-feld { margin: 0 0 1rem; }
.ap-feld label { display: block; font-weight: 600; color: var(--wp--preset--color--blau); margin-bottom: .3rem; }
.ap-feld input, .ap-feld textarea { width: 100%; box-sizing: border-box; font: inherit; padding: .6rem .75rem; border: 1px solid #9aa6b5; border-radius: 4px; background: #fff; color: var(--wp--preset--color--contrast); }
.ap-feld input:focus, .ap-feld textarea:focus { border-color: var(--wp--preset--color--blau); }
.ap-honig { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ap-formular .cf-turnstile { margin: .5rem 0 1rem; }
.ap-fehler { border-left-color: #b3261e; }
.ap-gesendet { background: var(--wp--preset--color--hell); border-left: 4px solid var(--wp--preset--color--gruen); border-radius: 0 6px 6px 0; padding: 1.5rem 1.75rem; }
.ap-gesendet h3 { margin-top: 0; }
#formular { scroll-margin-top: 8rem; }

/* Registrierung */
.ap-reg { max-width: 760px; }
.ap-bereich { border: 1px solid var(--wp--preset--color--rand); border-radius: 6px; padding: 1.25rem 1.5rem .5rem; margin: 0 0 1.5rem; }
.ap-bereich > legend { font-weight: 700; font-size: 1.2rem; color: var(--wp--preset--color--blau); padding: 0 .4rem; }
.ap-gruppe { border: 0; padding: 0; margin: 0 0 1.1rem; }
.ap-gruppe > legend { font-weight: 600; color: var(--wp--preset--color--blau); margin-bottom: .35rem; padding: 0; }
.ap-option { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400 !important; color: var(--wp--preset--color--contrast) !important; margin: .2rem 0; cursor: pointer; }
.ap-option input { width: auto !important; margin-top: .35rem; flex: none; }
.ap-spalten { columns: 2 16rem; column-gap: 1.5rem; }
.ap-spalten > legend { column-span: all; }
.ap-feld select { width: 100%; box-sizing: border-box; font: inherit; padding: .55rem .7rem; border: 1px solid #9aa6b5; border-radius: 4px; background: #fff; }
.ap-feld-klein input { max-width: 9rem; }
.ap-hilfe { display: block; font-size: .9rem; color: var(--wp--preset--color--grau-text); margin: -.1rem 0 .35rem; }
.ap-pflicht { color: #b3261e; }
.ap-feld-fehler input, .ap-feld-fehler textarea, .ap-feld-fehler select, [aria-invalid="true"] { border-color: #b3261e !important; }
.ap-gruppenfehler { display: block; color: #b3261e; font-size: .9rem; margin-top: .25rem; column-span: all; }
.ap-fehler ul { margin: .25rem 0 0; }
.ap-fehler a { color: #b3261e; }
.ap-einzel { margin: .5rem 0 1rem; }
.ap-feld label.ap-option, label.ap-option { display: flex; }
.ap-option input[type="checkbox"], .ap-option input[type="radio"] { width: 1.15rem !important; height: 1.15rem; margin-top: .25rem; accent-color: var(--wp--preset--color--blau); }
.ap-kopf .ap-nav-kontakt a { background: transparent; color: var(--wp--preset--color--blau) !important; padding: 0; }
.ap-kopf .ap-nav-registrieren a { background: var(--wp--preset--color--blau); color: #fff !important; padding: .45rem 1rem; border-radius: 4px; }
.ap-kopf .ap-nav-registrieren a:hover, .ap-kopf .ap-nav-registrieren a:focus { background: #142740; text-decoration: none; }
.ap-option-erklaert { margin: .4rem 0 .9rem; }
.ap-option-erklaert strong { font-weight: 600; color: var(--wp--preset--color--blau); }
.ap-erklaerung { display: block; font-size: .92rem; color: var(--wp--preset--color--grau-text); line-height: 1.5; margin-top: .15rem; }
