/*
Theme Name: Access Sprachschule
Theme URI: https://access-sprachschule.ch/
Author: Matthias Hummler
Description: Block-Theme für die Access Sprachschule in Sempach. Legt bei der Aktivierung alle Seiten mit Inhalten, Bildern und Menü an. Enthält Kontaktformulare, Niveau-Auswahl, Preisliste mit Einstellungsseite, OpenStreetMap-Karte und den Hausaufgaben-Prototyp.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: access-sprachschule
*/

:root {
	--ac-bordeaux: #760E2E;
	--ac-bordeaux-dunkel: #5A0A23;
	--ac-tinte: #1A1A1A;
	--ac-grau: #55504F;
	--ac-rose: #F2C4D1;
	--ac-rose-2: #D99AAD;
	--ac-rose-hell: #F3DCE3;
	--ac-hell: #F6F1F2;
	--ac-hell-2: #FAF7F7;
	--ac-linie: #E6E0E1;
	--ac-gelb: #F5C518;
	--ac-gruen: #1F7A4D;
	--ac-rot: #B3372D;
	--ac-header-h: 93px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ac-header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--ac-gelb); outline-offset: 3px; border-radius: 6px; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.entry-content > * + *, .wp-block-post-content > * + * { margin-block-start: 0; }

/* ---------- Grundgerüst ---------- */
.ac-section { padding: 88px 24px; }
.ac-section.ac-tight-top { padding-top: 24px; }
.ac-section.ac-tight-bottom { padding-bottom: 24px; }
.ac-inner { max-width: 1200px; margin-inline: auto; }
.ac-narrow { max-width: 900px; margin-inline: auto; }
.ac-inner > * + *, .ac-narrow > * + * { margin-block-start: 28px; }
.ac-inner > .ac-headrow + *, .ac-inner > .ac-stack + * { margin-block-start: 0; }
.ac-bg-hell { background: var(--ac-hell-2); }
.ac-bg-bordeaux { background: var(--ac-bordeaux); color: #FFFFFF; }
.ac-bg-bordeaux a:not(.wp-block-button__link) { color: #FFFFFF; }
.ac-stack > * + * { margin-block-start: 16px !important; }
.ac-lead { color: var(--ac-grau); max-width: 42em; }
.ac-bg-bordeaux .ac-lead, .ac-panel .ac-lead { color: var(--ac-rose-hell); }
.ac-kicker { font-weight: 600; color: var(--ac-bordeaux); margin: 0; }
.ac-bg-bordeaux .ac-kicker { color: var(--ac-rose); }
.ac-muted { color: var(--ac-grau); }
.ac-small { font-size: 15px; }
h1, h2, h3 { margin-top: 0; }
.ac-h2-small { font-size: 26px !important; font-weight: 600 !important; letter-spacing: 0 !important; }

/* Zeilen und Raster */
.ac-row { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.ac-row > * { flex: 1 1 420px; min-width: 0; margin: 0 !important; }
.ac-row.ac-top { align-items: flex-start; }
.ac-row > .ac-grow { flex: 2 1 520px; }
.ac-bookbox { border: 2px solid var(--ac-linie); border-radius: 28px; padding: clamp(28px, 5vw, 56px); }
.ac-contactbox > * + * { margin-block-start: 18px !important; }
.ac-contactbox .wp-block-image img { border-radius: 16px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.ac-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.ac-grid.ac-grid-wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ac-grid > *, .ac-cards > * { margin: 0 !important; min-width: 0; }
.ac-stack { margin-bottom: 36px; }
.ac-tightflow > * + * { margin-block-start: 12px !important; }
.ac-headrow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 36px; }
.ac-headrow > * { margin: 0 !important; }

/* ---------- Kopfzeile ---------- */
header.wp-block-template-part { position: sticky; top: 0; z-index: 100; }
.admin-bar header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 0px); }
.ac-header { background: #FFFFFF; border-bottom: 1px solid var(--ac-linie); box-shadow: 0 4px 16px rgba(26, 26, 26, 0.06); }
.ac-header-inner { max-width: 1200px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.ac-header-inner > * { margin: 0 !important; }
.ac-logo img { width: 160px; display: block; }
.ac-header-right { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.ac-header-right > * { margin: 0 !important; }
.ac-header .wp-block-navigation { font-size: 17px; gap: 6px 24px; }
.ac-header .wp-block-navigation a { color: var(--ac-tinte); text-decoration: none; }
.ac-header .wp-block-navigation a:hover { color: var(--ac-bordeaux); }
.ac-header .wp-block-navigation .wp-block-navigation__submenu-container { border: 1px solid var(--ac-linie) !important; border-radius: 12px; padding: 8px 0; box-shadow: 0 12px 28px rgba(26, 26, 26, 0.12); min-width: 220px !important; }
.ac-header .wp-block-navigation .wp-block-navigation__submenu-container a { padding: 8px 18px; }
.ac-header-buttons { gap: 10px !important; }
.ac-header-buttons .wp-block-button__link { font-size: 16px; padding: 10px 20px; }
@media (max-width: 960px) {
	:root { --ac-header-h: 72px; }
	.ac-header-inner { padding: 10px 16px; flex-wrap: nowrap; }
	.ac-logo img { width: 120px; }
	.ac-header-buttons .is-style-ac-outline { display: none; }
	.ac-header-buttons .wp-block-button__link { font-size: 15px; padding: 9px 16px; }
}
.wp-block-navigation__responsive-container.is-menu-open { padding: 28px 24px !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { gap: 14px; font-size: 20px; }

/* ---------- Knöpfe ---------- */
.wp-block-buttons { gap: 12px; }
.wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; text-decoration: none; }
.is-style-ac-yellow .wp-block-button__link { background: var(--ac-gelb); color: var(--ac-tinte); }
.ac-hero .is-style-ac-yellow .wp-block-button__link { font-size: 20px; padding: 16px 32px; box-shadow: 0 6px 18px rgba(40, 0, 12, 0.35); }
.is-style-ac-white .wp-block-button__link { background: #FFFFFF; color: var(--ac-bordeaux); font-weight: 700; }
.is-style-ac-outline-light .wp-block-button__link { background: transparent; color: #FFFFFF; border: 2px solid var(--ac-rose-2); font-weight: 700; }
.is-style-ac-outline .wp-block-button__link { background: transparent; color: var(--ac-bordeaux); border: 2px solid var(--ac-bordeaux); font-weight: 600; }
.is-style-ac-outline-light .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.08); }
.is-style-ac-outline .wp-block-button__link:hover { background: var(--ac-hell); }

/* ---------- Startbereich ---------- */
.ac-hero { background: var(--ac-bordeaux); color: #FFFFFF; overflow: hidden; padding: 72px 24px 80px; }
.ac-hero h1 { font-size: clamp(2.5rem, 4.8vw, 4rem); line-height: 1.04; }
.ac-hero .ac-lead { font-size: 20px; }
.ac-greetings { font-weight: 800; line-height: 0.98; letter-spacing: -0.03em; }
.ac-greetings p { margin: 0 !important; font-size: clamp(2.8rem, 6.4vw, 5.6rem); }
.ac-greetings p:nth-child(2) { color: var(--ac-rose); padding-left: 10%; }
.ac-greetings p:nth-child(3) { color: #D97F99; }
.ac-greetings p:nth-child(4) { padding-left: 8%; }
.ac-big-greet.ac-long { font-size: clamp(2.6rem, 6vw, 5.4rem) !important; }
.ac-greet-sm { font-weight: 800; font-size: 30px !important; line-height: 1.1; color: var(--ac-bordeaux); }
.ac-big-greet { font-weight: 800; font-size: clamp(3rem, 8vw, 7rem) !important; line-height: 0.95; letter-spacing: -0.04em; color: var(--ac-rose); }
.ac-pagehead { background: var(--ac-bordeaux); color: #FFFFFF; padding: 56px 24px 64px; }

/* ---------- Karten ---------- */
.ac-card { background: var(--ac-hell); border-radius: 22px; padding: 26px; position: relative; display: flex; flex-direction: column; gap: 10px; }
.ac-card > * { margin: 0 !important; }
.ac-card h3 { font-size: 22px; line-height: 1.2; }
.ac-card p { color: var(--ac-grau); font-size: 16px; }
.ac-card.ac-card-big { padding: clamp(24px, 4vw, 40px); }
.ac-card.ac-card-big h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.ac-card.ac-card-big p { font-size: 19px; color: #3E3A39; }
.ac-card .ac-price-link { margin-top: auto !important; font-weight: 700; font-size: 16px; }
.ac-card .ac-badge { align-self: flex-start; background: var(--ac-gelb); color: var(--ac-tinte); font-size: 14px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.ac-card[class*="ac-icon-"]::before { content: ""; width: 44px; height: 44px; background: var(--ac-bordeaux); -webkit-mask: var(--ac-icon) no-repeat center / contain; mask: var(--ac-icon) no-repeat center / contain; }
.ac-icon-person { --ac-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 20c.8-3.8 3.6-6 7-6s6.2 2.2 7 6'/%3E%3C/svg%3E"); }
.ac-icon-idee { --ac-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4.5c-3.6 0-6.5 2.6-6.5 6 0 1.8.8 3.3 2 4.4V19h9v-4.1c1.2-1.1 2-2.6 2-4.4 0-3.4-2.9-6-6.5-6z'/%3E%3Cpath d='M9.5 19v1.5h5V19M12 8v4M10 10h4'/%3E%3C/svg%3E"); }
.ac-icon-gruppe { --ac-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3Ccircle cx='16.5' cy='9' r='2.5'/%3E%3Cpath d='M2.5 19c.6-3.2 2.8-5 5.5-5s4.9 1.8 5.5 5'/%3E%3Cpath d='M14 14.3c.8-.5 1.6-.8 2.5-.8 2.3 0 4.2 1.6 4.8 4.5'/%3E%3C/svg%3E"); }
.ac-icon-schild { --ac-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8.2-7 10-4-1.8-7-5.5-7-10V6z'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E"); }
.ac-icon-smile { --ac-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8.5 14.5c.9 1.3 2.1 2 3.5 2s2.6-.7 3.5-2M9 9.5h.01M15 9.5h.01'/%3E%3C/svg%3E"); }
.ac-icon-liste { --ac-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M4 12h10M4 18h6'/%3E%3Cpath d='M17 15l2 2 3-4'/%3E%3C/svg%3E"); }
.ac-icon-welt { --ac-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3z'/%3E%3C/svg%3E"); }
.ac-icon-buch { --ac-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M3 5.5C5.5 4.5 9 4.5 12 6c3-1.5 6.5-1.5 9-.5V19c-2.5-1-6-1-9 .5-3-1.5-6.5-1.5-9-.5z'/%3E%3Cpath d='M12 6v13.5'/%3E%3C/svg%3E"); }
.ac-icon-garten { --ac-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M12 21v-9'/%3E%3Cpath d='M12 12c0-4 3-7 8-7 0 4.5-3 7-8 7z'/%3E%3Cpath d='M12 15c0-3-2.3-5.5-6.5-5.5 0 3.4 2.3 5.5 6.5 5.5z'/%3E%3C/svg%3E"); }
.ac-icon-berg { --ac-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M3 20l6-11 4 6 2-3 6 8z'/%3E%3Ccircle cx='17' cy='6' r='2'/%3E%3C/svg%3E"); }
.ac-icon-stern { --ac-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cellipse cx='12' cy='12' rx='10' ry='4' transform='rotate(-25 12 12)'/%3E%3C/svg%3E"); }
.ac-icon-musik { --ac-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M9 18V5l11-2v13'/%3E%3Ccircle cx='6.5' cy='18' r='2.5'/%3E%3Ccircle cx='17.5' cy='16' r='2.5'/%3E%3C/svg%3E"); }
.ac-icon-glas { --ac-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3h8l-.5 6a3.5 3.5 0 0 1-7 0z'/%3E%3Cpath d='M12 12.5V20M8.5 20h7'/%3E%3C/svg%3E"); }

/* Klickbare Karten: Link im Titel deckt die ganze Karte ab */
.ac-linkcard { position: relative; }
.ac-linkcard h3 a, .ac-linkcard .ac-cardlink a { color: inherit; text-decoration: none; }
.ac-linkcard h3 a::after, .ac-linkcard .ac-cardlink a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ac-linkcard:hover { box-shadow: 0 0 0 2px var(--ac-bordeaux) inset; }

/* Sprachkarten Startseite */
.ac-lang { min-height: 230px; }
.ac-lang .ac-greet { font-weight: 800; font-size: 30px !important; line-height: 1.1; color: var(--ac-bordeaux) !important; }
.ac-lang h3 { font-size: 22px; }
.ac-lang .ac-formats { margin-top: auto !important; }

/* Unterrichtsformen */
.ac-formate { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 40px; }
.ac-formate > * { margin: 0 !important; border-top: 3px solid var(--ac-bordeaux); padding-top: 20px; }
.ac-formate > * > * { margin: 0 0 8px !important; }
.ac-formate h3 { font-size: 25px; }
.ac-formate p { color: var(--ac-grau); }
.ac-formate .ac-price-link { font-weight: 700; font-size: 16px; }

/* Bilder */
.ac-photo img { border-radius: 24px; width: 100%; object-fit: cover; display: block; }
.ac-photo { margin: 0 !important; }
.ac-photo figcaption { margin-top: 8px; color: var(--ac-grau); font-size: 15px; }
.ac-photo-wide img { aspect-ratio: 16 / 9; max-height: 560px; object-position: center 40%; }
.ac-photo-43 img { aspect-ratio: 4 / 3; }
.ac-photo-tall img { aspect-ratio: 3 / 4; }
.ac-photo-340 img { height: 340px; }
.ac-altstadt { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: stretch; }
.ac-altstadt > * { margin: 0 !important; min-width: 0; }
.ac-altstadt .ac-photo-tall { display: flex; flex-direction: column; }
.ac-altstadt .ac-photo-tall img { flex: 1; aspect-ratio: auto; min-height: 420px; }
.ac-altstadt .ac-col { display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.ac-altstadt .ac-col > * { margin: 0 !important; }
.ac-photorow { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 18px !important; }
.ac-photorow > :first-child { flex: 2 1 420px; }
.ac-photorow > :last-child { flex: 1 1 240px; }
.ac-photorow > * { margin: 0 !important; min-width: 0; }

/* Team-Karten */
.ac-team { display: flex; flex-wrap: wrap; gap: 20px; }
.ac-team > * { flex: 1 1 340px; margin: 0 !important; }
.ac-person { display: flex; flex-direction: row; align-items: center; gap: 22px; }
.ac-person > * { margin: 0 !important; }
.ac-person .wp-block-image { flex: 0 0 150px; }
.ac-person .wp-block-image img { width: 150px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; display: block; }
.ac-person .ac-person-text > * { margin: 0 0 6px !important; }
.ac-person .ac-person-text h3 { font-size: 22px; }
.ac-person .ac-cardlink { color: var(--ac-bordeaux); font-weight: 700; font-size: 16px; }
.ac-person.ac-person-big { background: #FFFFFF; border: 2px solid var(--ac-linie); padding: clamp(22px, 4vw, 36px); flex-wrap: wrap; }
.ac-person.ac-person-big .wp-block-image, .ac-person.ac-person-big .wp-block-image img { flex-basis: 170px; width: 170px; }
.ac-person.ac-person-big .ac-person-text { flex: 1 1 320px; }
.ac-person.ac-person-big h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }

/* Hausaufgaben-Teaser */
.ac-panel { background: var(--ac-bordeaux); color: #FFFFFF; border-radius: 28px; padding: clamp(28px, 5vw, 56px); }
.ac-panel.ac-panel-dark { background: var(--ac-tinte); }
.ac-panel h2 { font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.ac-sample { background: #FFFFFF; color: var(--ac-tinte); border-radius: 18px; padding: 24px 28px; }
.ac-sample > * { margin: 0 0 8px !important; }
.ac-sample .ac-cloze { font-size: 20px; line-height: 2.1; }
.ac-gap { padding: 2px 10px; border-radius: 6px 6px 0 0; border-bottom: 2px solid var(--ac-tinte); background: #FFF1C2; }
.ac-gap.ok { background: #D9EFE4; border-color: var(--ac-gruen); }
.ac-gap.leer { background: #EEF2F1; padding: 2px 22px; }

/* Schritte */
.ac-steps { display: flex; flex-direction: column; gap: 28px; list-style: none; padding: 0; margin: 0; counter-reset: ac-step; }
.ac-steps > li { display: flex; gap: 18px; align-items: flex-start; counter-increment: ac-step; }
.ac-steps > li::before { content: counter(ac-step); flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--ac-bordeaux); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; }
.ac-steps strong { display: block; font-size: 20px; }
.ac-steps span { color: var(--ac-grau); }

/* Hinweisbox */
.ac-note { border: 2px solid var(--ac-linie); border-radius: 18px; padding: 22px 26px; display: flex; flex-wrap: wrap; gap: 12px 40px; }
.ac-note > * { flex: 1 1 300px; margin: 0 !important; }
.ac-box { background: var(--ac-hell); border-radius: 18px; padding: 22px 26px; }
.ac-box > * { margin: 0 !important; }

/* Zitat */
.ac-quote { border: 0 !important; padding: 0 !important; margin: 0 !important; }
.ac-quote p { font-weight: 300; font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.35; letter-spacing: -0.01em; }
.ac-quote cite { display: block; margin-top: 14px; font-style: normal; font-weight: 700; font-size: 17px; color: var(--ac-tinte); }

/* Polaroid */
.ac-polaroid { background: #FFFFFF; padding: 14px 14px 18px; border-radius: 10px; transform: rotate(2deg); box-shadow: 0 18px 40px rgba(40, 0, 12, 0.35); max-width: 500px; }
.ac-polaroid.ac-left { transform: rotate(-2deg); }
.ac-polaroid img { border-radius: 4px; display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ac-polaroid figcaption { color: var(--ac-grau) !important; text-align: center; font-size: 16px; margin: 12px 0 0; }

/* Aufklappbare Felder */
.wp-block-details { border-top: 1px solid var(--ac-linie); padding: 4px 0; }
.wp-block-details summary { cursor: pointer; font-weight: 700; font-size: 19px; padding: 14px 0; }
.wp-block-details > :not(summary) { color: var(--ac-grau); margin: 0 0 16px !important; }
.ac-details-box .wp-block-details { border: 2px solid var(--ac-linie); border-radius: 16px; padding: 4px 20px; }
.ac-details-box .wp-block-details summary { font-size: 17px; }
.ac-faq { border-bottom: 1px solid var(--ac-linie); }

/* Rechtstexte */
.ac-legal { max-width: 820px; margin: 0 auto; padding: 48px 24px 96px; }
.ac-legal h2 { font-weight: 700; font-size: 24px; letter-spacing: 0; line-height: 1.25; margin: 36px 0 12px; }
.ac-legal h3 { font-size: 19px; margin: 20px 0 6px; }
.ac-legal p, .ac-legal ul { margin: 0 0 12px; line-height: 1.65; }

/* ---------- Fusszeile ---------- */
.ac-footer { background: var(--ac-hell); padding: 64px 24px 40px; }
.ac-footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.ac-footer-grid > * { margin: 0 !important; }
.ac-footer-grid > * > * { margin: 0 0 6px !important; }
.ac-footer img { width: 140px; }
.ac-footer-copy { max-width: 1200px; margin: 32px auto 0 !important; color: var(--ac-grau); font-size: 14px; }

/* ---------- Formulare ---------- */
.ac-form { display: flex; flex-direction: column; gap: 14px; }
.ac-form label { font-weight: 700; display: block; margin-bottom: 6px; }
.ac-form .ac-opt { font-weight: 400; color: var(--ac-grau); }
.ac-form input[type=text], .ac-form input[type=email], .ac-form input[type=tel], .ac-form select, .ac-form textarea { font: inherit; width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; border: 2px solid #D3C6C9; background: #FFFFFF; color: var(--ac-tinte); min-height: 48px; }
.ac-form textarea { min-height: 160px; resize: vertical; }
.ac-form .ac-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 18px; }
.ac-form .ac-check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 16px; color: var(--ac-grau); }
.ac-form .ac-check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--ac-bordeaux); flex: none; }
.ac-form .ac-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ac-form button { font: inherit; border: 0; cursor: pointer; background: var(--ac-gelb); color: var(--ac-tinte); font-weight: 800; padding: 16px 32px; border-radius: 999px; font-size: 19px; min-height: 48px; align-self: flex-start; }
.ac-form-card { background: #FFFFFF; color: var(--ac-tinte); border-radius: 20px; padding: 26px; }
.ac-msg { padding: 14px 18px; border-radius: 12px; font-weight: 600; }
.ac-msg.ok { background: #DDF2E5; color: #14532D; }
.ac-msg.err { background: #FBE0DC; color: #7A1D15; }

/* ---------- Niveau-Auswahl ---------- */
.ac-levels { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ac-lvl { font: inherit; cursor: pointer; min-width: 64px; min-height: 48px; padding: 10px 18px; border-radius: 14px; font-weight: 800; font-size: 19px; background: #FFFFFF; color: var(--ac-bordeaux); border: 2px solid #D3C6C9; }
.ac-lvl[aria-pressed="true"] { background: var(--ac-bordeaux); color: #FFFFFF; border-color: var(--ac-bordeaux); }
.ac-lvl-panel { display: flex; flex-wrap: wrap; gap: 32px; background: #FFFFFF; border: 2px solid var(--ac-linie); border-radius: 24px; padding: clamp(24px, 4vw, 40px); }
.ac-lvl-panel[hidden] { display: none; }
.ac-lvl-main { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ac-lvl-code { font-weight: 800; font-size: 56px; line-height: 1; color: var(--ac-bordeaux); }
.ac-lvl-bar { height: 10px; border-radius: 999px; background: #EFE7E9; overflow: hidden; }
.ac-lvl-bar span { display: block; height: 100%; background: var(--ac-bordeaux); border-radius: 999px; }
.ac-lvl-side { flex: 1 1 300px; min-width: 0; background: var(--ac-hell); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.ac-lvl-side strong { font-size: 22px; line-height: 1.25; }

/* ---------- Preise ---------- */
.ac-seg { display: inline-flex; background: var(--ac-bordeaux-dunkel); border-radius: 999px; padding: 5px; gap: 4px; }
.ac-seg button { border: 0; min-height: 44px; padding: 10px 20px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; background: transparent; color: #FFFFFF; }
.ac-seg button[aria-pressed="true"] { background: #FFFFFF; color: var(--ac-bordeaux); }
.ac-prices-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.ac-prices-head .ac-seg { background: var(--ac-bordeaux); }
.ac-price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.ac-price-cards[hidden] { display: none; }
.ac-price-card { background: var(--ac-hell); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.ac-price-card h3 { margin: 0; font-size: 23px; }
.ac-price-card p { margin: 0; color: var(--ac-grau); font-size: 16px; }
.ac-price-card ul { list-style: none; margin: auto 0 0; padding: 0; }
.ac-price-card li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid #E3D6D9; }
.ac-price-card li span:first-child { color: var(--ac-grau); font-size: 16px; }
.ac-price { font-weight: 800; font-size: 22px; color: var(--ac-bordeaux); white-space: nowrap; }
.ac-price.na { font-weight: 400; font-size: 15px; color: #8A7F81; }
.ac-table-wrap { overflow-x: auto; border: 1px solid var(--ac-linie); border-radius: 18px; }
.ac-table { width: 100%; border-collapse: collapse; font-size: 17px; min-width: 620px; }
.ac-table caption { text-align: left; padding: 16px 16px 0; color: var(--ac-grau); font-size: 15px; }
.ac-table th, .ac-table td { padding: 12px 16px; border-bottom: 1px solid var(--ac-linie); text-align: right; white-space: nowrap; }
.ac-table thead th { border-bottom: 2px solid var(--ac-tinte); }
.ac-table th:first-child, .ac-table td:nth-child(2), .ac-table thead th:nth-child(2) { text-align: left; }
.ac-table tbody tr:nth-child(even) { background: var(--ac-hell-2); }

/* ---------- Karte ---------- */
.ac-map iframe { width: 100%; aspect-ratio: 1100 / 620; border: 2px solid var(--ac-linie); border-radius: 24px; display: block; }
.ac-map p { margin: 8px 0 0; font-size: 14px; color: var(--ac-grau); }

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
	.ac-section { padding: 64px 20px; }
	.ac-hero { padding: 48px 20px 56px; }
	.ac-person { flex-direction: row; }
	.ac-person .wp-block-image { flex-basis: 110px; }
	.ac-person .wp-block-image img { width: 110px; }
	.ac-altstadt .ac-photo-tall img { min-height: 320px; }
	.ac-photo-340 img { height: 240px; }
}

/* ---------- Feinschliff ---------- */
.wp-block-image figcaption, .wp-block-image .wp-element-caption { text-align: left; }
.ac-polaroid figcaption, .ac-polaroid .wp-element-caption { text-align: center; }
.ac-hero .ac-lead, .ac-pagehead .ac-lead { color: var(--ac-rose-hell); }
.home .ac-hero h1 { font-weight: 600; letter-spacing: -0.025em; }
.ac-steps > li { display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; row-gap: 2px; align-items: start; }
.ac-steps > li::before { grid-row: 1 / span 2; }
.ac-steps > li > strong, .ac-steps > li > span { grid-column: 2; }
.ac-grid:has(> :nth-child(5):last-child), .ac-price-cards { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ac-pagehead .ac-kicker, .ac-hero .ac-kicker { color: var(--ac-rose); }
.ac-box.ac-contactbox > * + * { margin-block-start: 18px !important; }
.ac-logo img { width: 160px !important; height: auto !important; }
@media (max-width: 960px) {
	.ac-logo img { width: 116px !important; }
	.ac-header-right { flex-wrap: nowrap; gap: 14px; }
	.ac-header-right .wp-block-navigation { order: 2; }
	.ac-header-right .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }
}
.ac-header .wp-block-navigation .ac-mobile-only { display: none; }
.ac-header .is-menu-open .ac-mobile-only { display: flex; font-weight: 700; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { align-items: flex-start !important; text-align: left; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 16px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { border: 0 !important; box-shadow: none !important; padding: 6px 0 0 18px !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container a { padding: 6px 0 !important; font-size: 18px; color: var(--ac-grau); }
