/* Anruf Auskunft – Artikel- und Nummernseiten (Design „Signal“) */
.aa-einzelseite {
	--aa-ink: #0B2B2E;
	--aa-text: #233B3E;
	--aa-muted: #5B6E71;
	--aa-line: #DDE5E6;
	--aa-page: #FFFFFF;
	--aa-soft: #EEF8D2;
	--aa-primary: #0F5A52;
	--aa-primary-dark: #0B3B36;
	--aa-mint: #C6F432;
	--aa-font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--aa-kopf: 92px;
	background: var(--aa-page);
}
.aa-einzelseite #content > .ast-container { max-width: none; padding: 0; display: block; }
.aa-einzelseite #primary { margin: 0; padding: 0; width: 100%; }
.aa-art { max-width: 1440px; margin: 0 auto; padding: 0 32px 72px; font-family: var(--aa-font); color: var(--aa-text); }
.aa-art a { text-decoration: none; }

/* Kopf ------------------------------------------------------------------ */
.aa-art-kopf { padding: 28px 0 40px; }
.aa-pfad { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--aa-muted); margin-bottom: 28px; }
.aa-pfad a { color: var(--aa-muted); }
.aa-pfad a:hover { color: var(--aa-primary); }
.aa-pfad-aktuell { color: var(--aa-ink); }
.aa-art-kopf-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 56px; align-items: center; }
.aa-art-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.aa-chip { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; background: var(--aa-primary); color: #fff !important; font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.aa-chip:hover { background: var(--aa-primary-dark); }
.aa-chip-hell { background: var(--aa-soft); color: var(--aa-primary-dark) !important; }
.aa-art-titel { margin: 0 0 24px; font-family: var(--aa-font); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; font-weight: 800; letter-spacing: -.025em; color: var(--aa-ink); text-wrap: balance; }
.aa-art-meta { display: flex; align-items: center; gap: 14px; }
.aa-avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--aa-primary); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .02em; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--aa-line); }
.aa-avatar-gross { width: 64px; height: 64px; font-size: 20px; }
.aa-art-meta-text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.aa-art-autor { font-weight: 700; color: var(--aa-ink); }
.aa-art-autor a { color: var(--aa-primary); }
.aa-art-daten { color: var(--aa-muted); font-weight: 500; }
.aa-art-bild { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 18px 40px rgba(11, 43, 46, .12); aspect-ratio: 16 / 9; background: var(--aa-soft); }
.aa-art-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Raster ---------------------------------------------------------------- */
.aa-art-raster {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr) 300px;
	grid-template-areas: "links mitte rechts";
	gap: 36px;
	align-items: start;
}
.aa-art-links { grid-area: links; position: sticky; top: var(--aa-kopf); }
.aa-art-mitte { grid-area: mitte; min-width: 0; background: #fff; border: 1px solid var(--aa-line); border-radius: 24px; padding: 48px 52px; }
.aa-art-rechts { grid-area: rechts; display: flex; flex-direction: column; gap: 20px; }

/* Inhaltsverzeichnis ----------------------------------------------------- */
.aa-toc { background: #fff; border: 1px solid var(--aa-line); border-radius: 20px; padding: 18px 8px 14px 18px; }
.aa-toc-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; list-style: none; cursor: pointer; padding-right: 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--aa-ink); }
.aa-toc-kopf::-webkit-details-marker { display: none; }
.aa-toc-zeit { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--aa-muted); }
.aa-toc-fortschritt { height: 3px; margin: 12px 10px 10px 0; border-radius: 3px; background: var(--aa-page); overflow: hidden; }
.aa-toc-fortschritt span { display: block; height: 100%; width: 0; background: var(--aa-primary); border-radius: 3px; transition: width .15s linear; }
.aa-toc-liste { list-style: none; margin: 0; padding: 0 6px 0 0; max-height: calc(100vh - var(--aa-kopf) - 140px); overflow-y: auto; counter-reset: toc; }
.aa-toc-liste li { margin: 0; }
.aa-toc-liste a { display: flex; gap: 10px; padding: 7px 10px 7px 12px; border-left: 2px solid transparent; border-radius: 0 10px 10px 0; font-size: 13.5px; line-height: 1.4; font-weight: 600; color: var(--aa-muted); transition: color .2s, background-color .2s, border-color .2s; }
.aa-toc-e2 { counter-increment: toc; }
.aa-toc-e2 > a::before { content: counter(toc, decimal-leading-zero); flex: none; font-size: 11px; font-weight: 800; color: var(--aa-primary); padding-top: 2px; font-variant-numeric: tabular-nums; }
.aa-toc-e3 > a { padding-left: 36px; font-size: 13px; font-weight: 500; }
.aa-toc-liste a:hover { color: var(--aa-ink); background: var(--aa-page); }
.aa-toc-liste a.ist-aktiv { color: var(--aa-primary-dark); border-left-color: var(--aa-primary); background: var(--aa-soft); }
.aa-toc-liste a.ist-aktiv::before { color: var(--aa-primary); }

/* Artikeltext ------------------------------------------------------------ */
.aa-inhalt { font-size: 18px; line-height: 1.75; color: var(--aa-text); }
.aa-inhalt > *:first-child { margin-top: 0; }
.aa-inhalt > p:first-child { font-size: 20px; line-height: 1.65; color: var(--aa-ink); }
.aa-inhalt p { margin: 0 0 1.15em; }
.aa-inhalt h2, .aa-inhalt h3 { font-family: var(--aa-font); color: var(--aa-ink); scroll-margin-top: calc(var(--aa-kopf) + 8px); text-wrap: balance; }
.aa-inhalt h2 { margin: 2em 0 .6em; font-size: 28px; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; }
.aa-inhalt h3 { margin: 1.6em 0 .5em; font-size: 21px; line-height: 1.3; font-weight: 800; }
.aa-inhalt a { color: var(--aa-primary); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(14, 110, 107, .35); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.aa-inhalt a:hover { text-decoration-color: var(--aa-primary); }
.aa-inhalt strong { color: var(--aa-ink); font-weight: 750; }
.aa-inhalt ul, .aa-inhalt ol { margin: 0 0 1.3em; padding-left: 0; }
.aa-inhalt ul > li { list-style: none; position: relative; padding-left: 28px; margin: 0 0 .55em; }
.aa-inhalt ul > li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--aa-mint); box-shadow: 0 0 0 3px var(--aa-soft); }
.aa-inhalt ol > li { margin: 0 0 .55em 1.3em; }
.aa-inhalt figure.wp-block-image { margin: 2em 0; }
.aa-inhalt figure.wp-block-image img { border-radius: 18px; width: 100%; height: auto; }
.aa-inhalt figcaption { margin-top: 10px; font-size: 13px; color: var(--aa-muted); text-align: left; }
.aa-inhalt .wp-block-table { margin: 1.6em 0; overflow-x: auto; }
.aa-inhalt .wp-block-table table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
.aa-inhalt .wp-block-table td, .aa-inhalt .wp-block-table th { border: 1px solid var(--aa-line); padding: 10px 12px; }
.aa-inhalt .aa-nummerntabelle table { border-radius: 14px; overflow: hidden; }
.aa-inhalt .aa-nummerntabelle a { text-decoration: none; }

/* FAQ (Rank Math) */
.aa-inhalt .rank-math-block { margin-top: 1em; display: flex; flex-direction: column; gap: 12px; }
.aa-inhalt .rank-math-list { display: flex; flex-direction: column; gap: 12px; }
.aa-inhalt .rank-math-list-item { border: 1px solid var(--aa-line); border-radius: 16px; padding: 18px 22px; background: var(--aa-page); }
.aa-inhalt .rank-math-question { margin: 0 0 6px !important; font-size: 18px !important; line-height: 1.4; }
.aa-inhalt .rank-math-answer { font-size: 16px; line-height: 1.65; }
.aa-inhalt .rank-math-answer p:last-child { margin-bottom: 0; }

/* Autor unter dem Artikel */
.aa-art-fuss { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--aa-line); }
.aa-autorbox { display: flex; gap: 20px; align-items: flex-start; }
.aa-autorbox-titel { margin: 0 0 6px; font-size: 17px; font-weight: 800; color: var(--aa-ink); }
.aa-autorbox-text { margin: 0 0 10px; font-size: 15px; line-height: 1.6; color: var(--aa-muted); }
.aa-pfeil { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--aa-primary) !important; }
.aa-pfeil::after { content: "→"; transition: transform .2s; }
.aa-pfeil:hover::after { transform: translateX(3px); }

/* Seitenspalte ----------------------------------------------------------- */
.aa-box { background: #fff; border: 1px solid var(--aa-line); border-radius: 20px; padding: 22px; }
.aa-box-titel { margin: 0 0 8px; font-size: 16px; font-weight: 800; color: var(--aa-ink); }
.aa-box-text { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: var(--aa-muted); }
.aa-box-suche { background: var(--aa-primary); border-color: var(--aa-primary); background-image: radial-gradient(circle at 100% 0, rgba(198, 244, 50, .35) 0, rgba(198, 244, 50, 0) 55%); }
.aa-box-suche .aa-box-titel { color: #fff; font-size: 18px; }
.aa-box-suche .aa-box-text { color: rgba(255, 255, 255, .82); }
.aa-suche { display: flex; flex-direction: column; gap: 8px; }
.aa-suche input[type="search"] { width: 100%; height: 48px; padding: 0 16px; border-radius: 12px; border: 0; background: #fff; font-family: var(--aa-font); font-size: 15px; font-weight: 600; color: var(--aa-ink); }
.aa-suche input[type="search"]:focus { outline: 3px solid var(--aa-mint); outline-offset: 0; }
.aa-suche button { height: 46px; border-radius: 12px; border: 0; background: #C6F432; color: #0B3B36; font-family: var(--aa-font); font-size: 15px; font-weight: 800; cursor: pointer; transition: background-color .2s; }
.aa-suche button:hover { background: #B3E01F; }
.aa-top { list-style: none; margin: 0; padding: 0; counter-reset: top; }
.aa-top li { counter-increment: top; display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--aa-line); }
.aa-top li:first-child { border-top: 0; padding-top: 4px; }
.aa-top li::before { content: counter(top); flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--aa-soft); color: var(--aa-primary-dark); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.aa-top a { font-size: 14px; line-height: 1.45; font-weight: 700; color: var(--aa-ink); }
.aa-top a:hover { color: var(--aa-primary); }

/* Weitere Artikel ---------------------------------------------------------- */
.aa-weitere { margin-top: 72px; }
.aa-weitere-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.aa-weitere-kopf h2 { margin: 0; font-family: var(--aa-font); font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--aa-ink); }
.aa-weitere-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.aa-karte { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--aa-line); border-radius: 20px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.aa-karte:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(11, 43, 46, .1); }
.aa-karte-bild { display: block; aspect-ratio: 16 / 9; background: var(--aa-soft); overflow: hidden; }
.aa-karte-bild img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.aa-karte:hover .aa-karte-bild img { transform: scale(1.03); }
.aa-karte-text { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.aa-karte-ressort { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--aa-soft); color: var(--aa-primary-dark); font-size: 12px; font-weight: 700; }
.aa-karte-titel { margin: 0; font-family: var(--aa-font); font-size: 18px; line-height: 1.35; font-weight: 800; color: var(--aa-ink); }
.aa-karte-titel a { color: var(--aa-ink); }
.aa-karte-titel a::after { content: ""; position: absolute; inset: 0; }
.aa-karte-fuss { margin: auto 0 0; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--aa-muted); }
.aa-karte-mehr { font-weight: 700; color: var(--aa-primary); }
.aa-karte-mehr::after { content: " →"; }

/* Kleinere Desktops: Inhaltsverzeichnis über dem Text ---------------------- */
@media (max-width: 1279px) {
	.aa-art-raster { grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "links rechts" "mitte rechts"; row-gap: 20px; }
	.aa-art-links { position: static; }
	.aa-toc-liste { max-height: none; }
	.aa-art-mitte { padding: 40px 44px; }
}
@media (max-width: 1023px) {
	.aa-art { padding: 0 20px 56px; }
	.aa-art-kopf-raster { grid-template-columns: 1fr; gap: 28px; }
	.aa-art-raster { grid-template-columns: minmax(0, 1fr); grid-template-areas: "links" "mitte" "rechts"; }
	.aa-weitere-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.aa-art { padding: 0 16px 48px; }
	.aa-art-kopf { padding: 18px 0 28px; }
	.aa-pfad { margin-bottom: 18px; }
	.aa-art-bild { border-radius: 16px; }
	.aa-art-mitte { padding: 26px 20px; border-radius: 18px; }
	.aa-inhalt { font-size: 17px; }
	.aa-inhalt > p:first-child { font-size: 18px; }
	.aa-inhalt h2 { font-size: 24px; }
	.aa-inhalt h3 { font-size: 19px; }
	.aa-weitere-raster { grid-template-columns: 1fr; }
	.aa-weitere-kopf h2 { font-size: 24px; }
	.aa-autorbox { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	.aa-karte, .aa-karte-bild img, .aa-toc-fortschritt span { transition: none; }
	html { scroll-behavior: auto; }
}
html:has(body.aa-einzelseite) { scroll-behavior: smooth; }
@media (max-width: 1279px) {
	.aa-toc-kopf { font-size: 13px; }
	.aa-toc-zeit { margin-left: auto; }
	.aa-toc-kopf::after { content: ""; flex: none; width: 8px; height: 8px; margin: -4px 4px 0 6px; border-right: 2px solid var(--aa-primary); border-bottom: 2px solid var(--aa-primary); transform: rotate(45deg); transition: transform .2s; }
	.aa-toc[open] .aa-toc-kopf::after { transform: rotate(-135deg); margin-top: 4px; }
	.aa-toc:not([open]) { padding-bottom: 18px; }
}
.aa-einzelseite .site-main > .aa-art { margin-left: auto !important; margin-right: auto !important; width: 100%; box-sizing: border-box; }

/* Artikel-Kopf: Petrol-Hintergrund ueber die volle Breite (Design Petrol + Limette) */
.aa-art-kopf { background: #0B3B36; box-shadow: 0 0 0 100vmax #0B3B36; clip-path: inset(0 -100vmax); color: #CFE3DE; margin-bottom: 40px; }
.aa-art-kopf .aa-pfad, .aa-art-kopf .aa-pfad a, .aa-art-kopf .aa-pfad span { color: #CFE3DE; }
.aa-art-kopf .aa-pfad a:hover { color: #C6F432; }
.aa-art-kopf .aa-pfad-aktuell { color: #FFFFFF; }
.aa-art-kopf .aa-art-titel { color: #FFFFFF; }
.aa-art-kopf .aa-chip { background: #14564E; color: #C6F432; }
.aa-art-kopf .aa-avatar { background: #C6F432; color: #0B3B36; }
.aa-art-kopf .aa-art-autor { color: #FFFFFF; }
.aa-art-kopf .aa-art-autor a { color: #C6F432; }
.aa-art-kopf .aa-art-daten, .aa-art-kopf .aa-art-daten * { color: #CFE3DE; }
/* Ressort-Label auf Karten: Petrol mit Limette, wie im Artikel-Kopf */
.aa-karte-ressort { background: #0B3B36; color: #C6F432; }
