/* ==========================================================================
   APS Design: Kopf, Fuß und Schnellaktionen. Grundlagen stehen in system.css.
   ========================================================================== */

/* ---------- Kopf ---------- */
.aps-kopf { position: relative; z-index: 50; background: var(--aps-paper); border-bottom: 1px solid var(--aps-ink); }
.aps-design-sticky .aps-kopf { position: sticky; top: 0; }
.admin-bar.aps-design-sticky .aps-kopf { top: 32px; }
.aps-kopf__innen { display: flex; align-items: center; gap: clamp(8px, 2vw, 32px); min-height: 80px; }
.aps-kopf__logo { display: block; flex: 0 0 auto; }
body.aps-design .aps-kopf__logo img { display: block; width: auto; height: 64px; }
.aps-logo-text { font-weight: 700; color: var(--aps-ink); }

.aps-kopf__nav { flex: 1 1 auto; min-width: 0; }
.aps-kopf__liste { display: flex; flex-wrap: wrap; gap: 4px clamp(14px, 2vw, 28px); margin: 0; padding: 0; list-style: none; }
body.aps-design .aps-kopf__liste a {
	display: block; padding: 8px 0;
	color: var(--aps-ink); font-weight: 600; text-decoration: none;
	transition: color var(--aps-tempo) linear;
}
body.aps-design .aps-kopf__liste a:hover,
body.aps-design .aps-kopf__liste .current-menu-item > a { color: var(--aps-red); }

.aps-kopf__aktion { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
body.aps-design a.aps-kopf__tel { display: inline-flex; align-items: center; gap: 8px; color: var(--aps-ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
body.aps-design a.aps-kopf__tel:hover { color: var(--aps-red); }

.aps-kopf__mobil { display: none; }
.aps-kopf__mobil summary {
	display: flex; align-items: center; min-height: 44px; padding: 0 14px;
	border: 1px solid var(--aps-ink); border-radius: var(--aps-radius);
	font-weight: 600; cursor: pointer; list-style: none;
}
.aps-kopf__mobil summary::-webkit-details-marker { display: none; }
.aps-kopf__mobil[open] summary { color: var(--aps-paper); background: var(--aps-ink); }
.aps-kopf__mobil-inhalt {
	position: absolute; left: 0; right: 0; top: 100%; display: grid; gap: 12px; padding: 8px var(--aps-gutter) 20px;
	background: var(--aps-paper); border-bottom: 1px solid var(--aps-ink);
	max-height: calc(100vh - 120px); overflow-y: auto;
}
.aps-kopf__mobil-liste { margin: 0; padding: 0; list-style: none; }
body.aps-design .aps-kopf__mobil-liste a { display: block; padding: 14px 0; border-bottom: 1px solid var(--aps-line); color: var(--aps-ink); font-size: 1.25rem; font-weight: 600; text-decoration: none; }
body.aps-design .aps-kopf__mobil-liste .current-menu-item > a { color: var(--aps-red); }

@media (max-width: 1180px) { .aps-kopf__tel span { display: none; } }
@media (max-width: 980px) {
	.aps-kopf__nav, .aps-kopf__aktion { display: none; }
	.aps-kopf__mobil { display: block; }
	.aps-sprache { margin-left: auto; }
	.aps-kopf__innen { min-height: 64px; }
	body.aps-design .aps-kopf__logo img { height: 48px; }
}

/* ---------- Fuß ---------- */
.aps-fuss { margin-top: 0; }
.aps-fuss__oben { padding-block: clamp(48px, 6vw, 80px); }
.aps-fuss__marke p { max-width: 36ch; margin: 16px 0 24px; color: var(--aps-on-ink-muted); }
.aps-fuss__logo { display: inline-block; color: var(--aps-on-ink); }
body.aps-design .aps-fuss__logo img { display: block; width: auto; height: 84px; }
.aps-fuss .aps-logo-text { color: var(--aps-on-ink); font-size: 1.5rem; }
.aps-fuss__liste, .aps-fuss__recht, .aps-fuss__profile { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.aps-fuss__unten { border-top: 1px solid var(--aps-on-ink-line); }
.aps-fuss__zeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 32px; padding-block: 16px; font-size: 0.9375rem; }
body.aps-design .aps-fuss a { text-decoration: none; }

/* ---------- Schnellaktionen ---------- */
.aps-anruf { display: none; }
@media (max-width: 767px) {
	.aps-design-mit-leiste { padding-bottom: 52px; }
	.aps-anruf { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1px; background: var(--aps-on-ink-line); border-top: 1px solid var(--aps-on-ink-line); }
	body.aps-design .aps-anruf a { display: flex; align-items: center; justify-content: center; min-height: 52px; color: var(--aps-on-ink); background: var(--aps-ink); font-weight: 600; text-decoration: none; }
	body.aps-design .aps-anruf a:first-child { color: #fff; background: var(--aps-red); }
}
body.aps-design a.aps-schwebe { position: fixed; right: 16px; bottom: 16px; z-index: 55; padding: 10px 14px; color: var(--aps-on-ink); background: var(--aps-ink); font-weight: 600; text-decoration: none; }
@media (max-width: 767px) { body.aps-design a.aps-schwebe { display: none; } }

/* ---------- Seiten ohne eigenen Abschnitt ---------- */
.page-header .entry-title { display: none; }

/* Elementor-Hüllen dürfen die vollen Flächen nicht einengen. */
.aps-vollbreit .elementor-widget-shortcode, .aps-vollbreit .elementor-shortcode { width: 100%; }
body.aps-design .site-main.page { max-width: none; padding: 0; }
body.aps-design .page-content { margin: 0; }

.aps-fuss__widerruf { padding: 0; border: 0; color: var(--aps-on-ink); background: none; font: inherit; cursor: pointer; }
.aps-fuss__widerruf:hover { text-decoration: underline; }

/* ---------- Sprachumschalter ---------- */
.aps-sprache { position: relative; flex: 0 0 auto; }
.aps-sprache[hidden] { display: none; }
.aps-sprache summary { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--aps-ink); cursor: pointer; list-style: none; }
.aps-sprache summary::-webkit-details-marker { display: none; }
.aps-sprache details[open] summary { color: var(--aps-red); }
.aps-sprache ul { position: absolute; right: 0; top: 100%; z-index: 70; min-width: 170px; margin: 0; padding: 0; list-style: none; color: var(--aps-ink); background: var(--aps-paper); border: 1px solid var(--aps-ink); }
.aps-sprache button { display: block; width: 100%; font: 500 0.9375rem var(--aps-font); text-align: left; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .aps-sprache summary:hover { color: var(--aps-red); } }

/* Logos in Knöpfen und im Fuß. */
.aps-marke-logo { flex: 0 0 auto; display: inline-block; vertical-align: -3px; }
.aps-mit-marke { display: inline-flex; align-items: center; gap: 6px; }
.aps-anruf a .aps-marke-logo { margin-right: 6px; }
.aps-fuss__profile { align-items: center; gap: 6px 16px; }
.aps-fuss__profil { display: inline-flex; padding: 4px; }
.aps-fuss__profil::after { display: none; }
.aps-fuss__profil .aps-marke-logo { transition: transform var(--aps-tempo) linear; }
@media (hover: hover) and (pointer: fine) { .aps-fuss__profil:hover .aps-marke-logo { transform: translateY(-2px); } }

/* Google-Leiste ausblenden, Layout bleibt stehen. */
.goog-te-banner-frame, .skiptranslate > iframe, #goog-gt-tt { display: none !important; }
body.aps-design { top: 0 !important; }
font { background: none !important; box-shadow: none !important; }
[dir="rtl"] .aps-schild dd { text-align: left; }
[dir="rtl"] .aps-start-hero__bild { right: auto; left: 0; }

.aps-einwilligung { max-width: 520px; padding: 24px; border: 1px solid var(--aps-ink); border-radius: var(--aps-radius); color: var(--aps-ink); background: var(--aps-paper); }
.aps-einwilligung::backdrop { background: rgba(20, 17, 15, .6); }
body.aps-design .aps-einwilligung h2 { font-size: var(--aps-h3); }

/* ---------- Bausteine ---------- */
.aps-b-kopf h2 { margin-bottom: 12px; }
.aps-b-kopf .aps-schild { margin-top: 20px; }
.aps-b-rastertitel { margin-bottom: 20px; }
.aps-b-mehr { margin: 24px 0 0; }
.aps-seitenkopf--bild .aps-seitenkopf__bild img { display: block; width: 100%; height: 100%; max-height: 340px; object-fit: cover; }

.aps-karte { padding-block: var(--aps-section-s); }
.aps-karte__innen { display: grid; grid-template-columns: 5fr 7fr; gap: var(--aps-gap); align-items: center; }
body.aps-design .aps-karte__titel { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.aps-karte__rahmen iframe { display: block; width: 100%; height: 360px; border: 0; }
.aps-karte__rahmen[hidden] { display: none; }
@media (max-width: 900px) { .aps-karte__innen { grid-template-columns: 1fr; } }

.aps-404 { padding-block: var(--aps-section); overflow: hidden; }
.aps-404__nummer { margin: 0; color: var(--aps-line); font-size: clamp(7rem, 16vw, 15rem); font-weight: 700; line-height: 0.85; letter-spacing: -0.05em; }
.aps-404__suche { display: flex; max-width: 560px; margin: 24px 0 16px; border: 1px solid var(--aps-ink); }
.aps-404__suche input { flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 0 14px; border: 0; background: var(--aps-white); font: 400 1rem var(--aps-font); }
body.aps-design .aps-404__suche button { border-radius: 0; }

/* ---------- Über uns ---------- */
.aps-seite-ueber .aps-text p { margin: 0 0 1em; }
.aps-danke { padding-block: var(--aps-section); }
.aps-b-kopf > .aps-schild:first-child { margin-top: 0; }
.aps-b-kopf > .aps-schild + p { margin-top: 12px; font-size: 0.9375rem; }

.aps-seite-ueber__bild { aspect-ratio: 4 / 3; overflow: hidden; }
.aps-seite-ueber__bild img { display: block; width: 100%; height: 100%; object-fit: cover; }

body.aps-design .site-main.aps-seite { max-width: none !important; width: 100%; margin: 0; padding: 0; }
