/*
Theme Name:   Ampush
Theme URI:    https://asociacion-ampush.com
Description:  Child-Theme von Astra für die Asociación Ampush: naturnahes Design, lokale Schriften, DE/EN/ES.
Author:       Asociación Ampush
Template:     astra
Version:      1.0.4
Text Domain:  ampush
License:      GNU General Public License v2 or later
*/

/* ---------- Schriften (lokal, SIL Open Font License) ---------- */
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Farben und Masse ---------- */
:root {
	--amp-huito: #18261f;      /* Text, dunkle Bänder */
	--amp-canopy: #2f4b38;     /* Kopfzeile, Überschriften, Links */
	--amp-river: #5e7f75;      /* Linien, Pfad (nicht für Fliesstext) */
	--amp-mist: #eef2ec;       /* Seitenhintergrund */
	--amp-chonta: #c9922b;     /* Buttons, Hervorhebungen */
	--amp-paper: #fbfcf9;      /* Formulare, Kästen */
	--amp-line: rgba(24, 38, 31, .16);
	--amp-serif: "Fraunces", Georgia, "Times New Roman", serif;
	--amp-sans: "Source Sans 3", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--amp-measure: 68ch;
	--amp-wide: 1180px;
	--amp-gutter: clamp(1rem, 4vw, 2.5rem);
	--amp-space: clamp(4rem, 9vw, 7.5rem);
}

/* ---------- Grundlagen ---------- */
html { scroll-behavior: smooth; }
body,
.ast-separate-container,
.ast-plain-container,
.site-content { background: var(--amp-mist); }
body, button, input, select, textarea {
	font-family: var(--amp-sans);
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--amp-huito);
}
h1, h2, h3, h4, .entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 {
	font-family: var(--amp-serif);
	font-weight: 400;
	color: var(--amp-canopy);
	letter-spacing: -0.01em;
	line-height: 1.12;
}
.entry-content h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: 0 0 1.2rem; }
.entry-content h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); margin: 2.2rem 0 .6rem; }
.entry-content p, .entry-content li { max-width: var(--amp-measure); }
.entry-content p { margin-bottom: 1.1em; }
a { color: var(--amp-canopy); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover, a:focus { color: var(--amp-huito); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amp-chonta); outline-offset: 3px; }
::selection { background: var(--amp-chonta); color: var(--amp-huito); }

/* Volle Breite für die neuen Seiten */
.amp-page .site-content > .ast-container { max-width: none; padding: 0; }
.amp-page .entry-content > * { margin-left: auto; margin-right: auto; }
.amp-page .entry-header { display: none; }
.amp-page #primary { margin: 0; padding: 0; }
.amp-page .entry-content > .alignfull { max-width: none; width: 100%; }

.amp-section { padding: var(--amp-space) var(--amp-gutter); }
.amp-section > * { max-width: var(--amp-wide); margin-left: auto !important; margin-right: auto !important; }
.amp-section.amp-narrow > * { max-width: 760px; }

/* ---------- Kopfzeile ---------- */
.site-header, .ast-primary-header-bar, .main-header-bar { background: var(--amp-canopy) !important; border: 0 !important; }
.ast-builder-menu-1 .menu-item > .menu-link,
.main-header-menu .menu-item > .menu-link,
.ast-mobile-header-content .menu-link { color: var(--amp-mist) !important; font-family: var(--amp-sans); font-size: 1rem; }
.main-header-menu .menu-item > .menu-link:hover,
.main-header-menu .current-menu-item > .menu-link { color: #fff !important; text-decoration: underline; text-underline-offset: .4em; }
.main-header-menu .amp-menu-cta > .menu-link {
	background: var(--amp-chonta); color: var(--amp-huito) !important; border-radius: 2px;
	padding: .5em 1.1em !important; margin-left: .8rem; font-weight: 600; text-decoration: none !important;
}
.main-header-menu .amp-menu-cta > .menu-link:hover { background: #dba644; }
.main-header-menu .lang-item > .menu-link { font-size: .9rem; opacity: .85; padding-left: .45em; padding-right: .45em; }
.main-header-menu .lang-item + .lang-item > .menu-link::before { content: ""; }
.ast-mobile-header-content, .ast-mobile-popup-drawer .ast-mobile-popup-inner { background: var(--amp-canopy) !important; }
.ast-button-wrap .menu-toggle .ast-mobile-svg, .menu-toggle .ast-mobile-svg { fill: var(--amp-mist) !important; }

/* ---------- Hero (Cover-Block) ---------- */
.amp-hero.wp-block-cover { min-height: 88vh !important; padding: 0 var(--amp-gutter) clamp(3rem, 8vh, 6rem); align-items: flex-end; }
.amp-hero .wp-block-cover__background { background: linear-gradient(180deg, rgba(24,38,31,0) 30%, rgba(24,38,31,.82) 100%) !important; opacity: 1 !important; }
.amp-hero .wp-block-cover__inner-container { max-width: var(--amp-wide); width: 100%; margin: 0 auto; color: var(--amp-mist); }
.amp-hero h1 {
	font-family: var(--amp-serif); font-weight: 400; color: var(--amp-mist);
	font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 1.6rem;
}
/* Die drei Zeilen des Leitsatzes treten wie Schritte auf einem Pfad nach rechts. */
.amp-hero h1 .amp-step { display: block; }
.amp-hero h1 .amp-step:nth-child(2) { padding-left: 1.1em; }
.amp-hero h1 .amp-step:nth-child(3) { padding-left: 2.2em; color: #fff; }
.amp-hero p { max-width: 36rem; font-size: 1.2rem; color: var(--amp-mist); }
.amp-hero--page.wp-block-cover { min-height: 62vh !important; }
.amp-hero--page h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
@media (prefers-reduced-motion: no-preference) {
	.amp-hero h1 .amp-step { animation: amp-arrive .9s cubic-bezier(.2,.7,.2,1) both; }
	.amp-hero h1 .amp-step:nth-child(2) { animation-delay: .35s; }
	.amp-hero h1 .amp-step:nth-child(3) { animation-delay: .7s; }
}
@keyframes amp-arrive { from { opacity: 0; transform: translateX(-.4em); } to { opacity: 1; transform: none; } }

/* ---------- Buttons ---------- */
.wp-block-button__link, .wpforms-submit, .wpforms-form button[type=submit] {
	background: var(--amp-chonta) !important; color: var(--amp-huito) !important;
	font-family: var(--amp-sans); font-weight: 600; font-size: 1.05rem;
	border-radius: 2px !important; padding: .8em 1.5em !important; border: 0 !important; text-decoration: none !important;
}
.wp-block-button__link:hover, .wpforms-submit:hover { background: #dba644 !important; }
.is-style-outline .wp-block-button__link, .wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent !important; color: inherit !important; box-shadow: inset 0 0 0 2px currentColor;
}
.amp-hero .is-style-outline .wp-block-button__link { color: var(--amp-mist) !important; }

/* ---------- Text-Bild-Abschnitte ---------- */
.amp-split { gap: clamp(2rem, 5vw, 5rem) !important; align-items: center !important; }
.amp-split .wp-block-image { margin: 0; }
.amp-split .wp-block-image img { width: 100%; border-radius: 2px; }
/* Feste Formate nur für Bilder ohne eigene Formatklasse; unbeschnittene Bilder behalten ihr Seitenverhältnis aus width/height */
.amp-split .wp-block-image:not(.amp-img--natural) img { aspect-ratio: 4 / 5; object-fit: cover; }
.amp-split--wide .wp-block-image:not(.amp-img--natural):not(.amp-img--portrait) img { aspect-ratio: 3 / 2; }
.amp-caption, .wp-block-image figcaption { font-size: .9rem; color: var(--amp-canopy); margin-top: .5rem; text-align: left; }

/* ---------- Dunkles Band (Winterretreat) ---------- */
.amp-band { background: var(--amp-huito); color: var(--amp-mist); }
.amp-band h2, .amp-band h3 { color: var(--amp-mist); }
.amp-band a:not(.wp-block-button__link) { color: var(--amp-mist); }
.amp-facts { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; margin: 2rem 0 2.5rem; max-width: 46rem; border-top: 1px solid rgba(238,242,236,.22); }
.amp-facts dt, .amp-facts dd { margin: 0; padding: .9rem 0; border-bottom: 1px solid rgba(238,242,236,.22); }
.amp-facts dt { color: rgba(238,242,236,.78); font-size: 1rem; }
.amp-facts dd { font-family: var(--amp-serif); font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.amp-section:not(.amp-band) .amp-facts { border-top-color: var(--amp-line); }
.amp-section:not(.amp-band) .amp-facts dt, .amp-section:not(.amp-band) .amp-facts dd { border-bottom-color: var(--amp-line); }
.amp-section:not(.amp-band) .amp-facts dt { color: var(--amp-canopy); }

/* ---------- Zitat ---------- */
.amp-quote { border: 0 !important; padding: 0 !important; margin: 0 auto !important; }
.amp-quote p { font-family: var(--amp-serif); font-style: italic; font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.25; color: var(--amp-canopy); max-width: 30ch; }

/* ---------- Pfad (Anreise), das Signatur-Element ---------- */
.amp-trail { list-style: none; margin: 2.5rem 0 0 !important; padding: 0 0 0 2.2rem !important; position: relative; max-width: 44rem; }
.amp-trail::before { content: ""; position: absolute; left: .55rem; top: .6rem; bottom: .6rem; border-left: 2px dashed var(--amp-river); }
.amp-trail li { position: relative; padding: 0 0 2rem; max-width: none; }
.amp-trail li::before {
	content: ""; position: absolute; left: -2.2rem; top: .45rem; width: 1.15rem; height: 1.15rem;
	border-radius: 50%; background: var(--amp-mist); border: 2px solid var(--amp-river);
}
.amp-trail li strong { display: block; font-family: var(--amp-serif); font-weight: 400; font-size: 1.45rem; color: var(--amp-canopy); }
.amp-trail li.amp-trail__walk { padding-top: .2rem; }
.amp-trail li.amp-trail__walk::before { width: .7rem; height: .7rem; left: -1.97rem; top: .6rem; background: var(--amp-river); border-color: var(--amp-river); }
.amp-trail li.amp-trail__walk::after {
	content: ""; position: absolute; left: -1.75rem; top: 1.6rem; bottom: .2rem;
	border-left: 4px dotted var(--amp-canopy);
}
.amp-trail li:last-child { padding-bottom: 0; }
.amp-trail li:last-child::before { background: var(--amp-chonta); border-color: var(--amp-chonta); }

/* ---------- Anmeldeablauf (echte Reihenfolge) ---------- */
.amp-steps { list-style: none; counter-reset: amp-step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding: 0 !important; margin: 2rem 0 0 !important; }
.amp-steps li { counter-increment: amp-step; max-width: none; border-top: 2px solid var(--amp-canopy); padding-top: 1rem; }
.amp-steps li::before { content: counter(amp-step); display: block; font-family: var(--amp-serif); font-size: 2.4rem; line-height: 1; color: var(--amp-chonta); margin-bottom: .6rem; }
.amp-steps li strong { display: block; font-family: var(--amp-serif); font-weight: 400; font-size: 1.3rem; color: var(--amp-canopy); margin-bottom: .3rem; }
.amp-band .amp-steps li { border-top-color: rgba(238,242,236,.4); }
.amp-band .amp-steps li strong { color: var(--amp-mist); }

/* ---------- Listen ---------- */
.amp-list { padding-left: 1.2rem; }
.amp-list li { margin-bottom: .45rem; }
.amp-list li::marker { color: var(--amp-chonta); }

/* ---------- Hinweis / Entwurf ---------- */
.amp-note { background: var(--amp-paper); border-left: 4px solid var(--amp-chonta); padding: 1rem 1.25rem; max-width: 46rem; }
.amp-draft { background: #fff4d6; border: 2px dashed #b07d16; padding: 1rem 1.25rem; font-weight: 600; max-width: 46rem; }

/* ---------- Formular ---------- */
.amp-form { background: var(--amp-paper); padding: clamp(1.5rem, 4vw, 3rem); border-radius: 2px; max-width: 760px; }
.amp-form .wpforms-field-label { font-weight: 600; color: var(--amp-huito); }
.amp-form input[type=text], .amp-form input[type=email], .amp-form input[type=number], .amp-form select, .amp-form textarea {
	border: 1px solid rgba(24,38,31,.35) !important; border-radius: 2px !important; background: #fff !important; font-size: 1.05rem !important; max-width: 100% !important;
}
.amp-form .wpforms-field-sublabel, .amp-form .wpforms-field-description { color: var(--amp-canopy); }
.amp-form .wpforms-confirmation-container-full { background: var(--amp-mist) !important; border: 2px solid var(--amp-canopy) !important; color: var(--amp-huito); }

/* ---------- Fusszeile ---------- */
.site-footer { background: var(--amp-huito) !important; }
.site-footer .site-primary-footer-wrap, .site-footer .site-above-footer-wrap, .site-footer .site-below-footer-wrap { display: none !important; }
.amp-footer { color: var(--amp-mist); padding: clamp(3rem, 6vw, 5rem) var(--amp-gutter) 2rem; font-size: 1rem; }
.amp-footer__inner { max-width: var(--amp-wide); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.amp-footer h2 { font-family: var(--amp-serif); font-weight: 400; color: var(--amp-mist); font-size: 1.5rem; margin: 0 0 .8rem; }
.amp-footer h3 { font-family: var(--amp-sans); font-weight: 600; color: var(--amp-mist); font-size: 1rem; margin: 0 0 .6rem; }
.amp-footer a { color: var(--amp-mist); }
.amp-footer ul { list-style: none; margin: 0; padding: 0; }
.amp-footer li { margin-bottom: .35rem; }
.amp-footer__base { max-width: var(--amp-wide); margin: 3rem auto 0; padding-top: 1.2rem; border-top: 1px solid rgba(238,242,236,.2); font-size: .9rem; color: rgba(238,242,236,.75); }

/* ---------- Mobil ---------- */
@media (max-width: 921px) {
	.amp-steps { grid-template-columns: 1fr 1fr; }
	.amp-footer__inner { grid-template-columns: 1fr; gap: 2rem; }
	.main-header-menu .amp-menu-cta > .menu-link { margin: .8rem 1rem; display: inline-block; }
}
@media (max-width: 600px) {
	body, button, input, select, textarea { font-size: 1.0625rem; }
	.amp-hero.wp-block-cover { min-height: 78vh !important; }
	.amp-hero h1 .amp-step:nth-child(2) { padding-left: .6em; }
	.amp-hero h1 .amp-step:nth-child(3) { padding-left: 1.2em; }
	.amp-steps { grid-template-columns: 1fr; }
	.amp-facts { grid-template-columns: 1fr; }
	.amp-facts dt { border-bottom: 0; padding-bottom: 0; }
	.amp-facts dd { padding-top: .2rem; }
	.amp-split .wp-block-image:not(.amp-img--natural):not(.amp-img--portrait) img { aspect-ratio: 3 / 2; }
}

/* ---------- Ergänzungen ---------- */
.amp-section--flush { padding-top: calc(var(--amp-space) * .35); }
.amp-lists { gap: clamp(2rem, 5vw, 5rem) !important; }
.amp-lists h3 { margin-top: 0; }
.amp-page .amp-form.alignfull { width: auto; }

/* ---------- Korrekturen nach Sichtprüfung 1 ---------- */
.amp-hero .wp-block-cover__inner-container { margin-left: auto !important; margin-right: auto !important; padding: 0; }
.amp-hero .wp-block-cover__inner-container > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.amp-hero .wp-block-cover__inner-container > p { max-width: 38rem !important; color: var(--amp-mist) !important; text-shadow: 0 1px 12px rgba(24,38,31,.6); }
@media (min-width: 601px) { .amp-hero h1 .amp-step { white-space: nowrap; } }
.amp-hero h1 { text-shadow: 0 2px 24px rgba(24,38,31,.35); }

/* Seitentitel neben dem Logo nur für Screenreader (Logo enthält den Namen) */
.site-header .site-title, .site-header .site-description {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
/* Obere Leiste mit Social-Icons */
.ast-above-header-bar, .ast-above-header-wrap, .ast-above-header { background: var(--amp-huito) !important; border: 0 !important; min-height: 0 !important; }
.ast-above-header-bar .ast-builder-social-element svg, .ast-above-header .ast-social-icon-image-wrap svg { fill: var(--amp-mist) !important; }
.ast-above-header-bar .site-above-header-wrap { min-height: 34px !important; }
/* Button im Menü */
.main-header-menu .amp-menu-cta { display: flex; align-items: center; }
.main-header-menu .amp-menu-cta > .menu-link { line-height: 1.2 !important; height: auto !important; }
.ast-primary-header-bar .site-primary-header-wrap { min-height: 84px !important; }

/* ---------- Korrekturen nach Sichtprüfung 2 ---------- */
/* Astra (klassisches Layout) verpackt Gruppen-Inhalte und begrenzt Kinder auf 850 px */
.amp-section .wp-block-group__inner-container > *,
.amp-section > .wp-block-group__inner-container > .wp-block-columns { max-width: var(--amp-wide) !important; margin-left: auto !important; margin-right: auto !important; }
.amp-section.amp-narrow .wp-block-group__inner-container > * { max-width: 760px !important; }
.amp-section .wp-block-column > * { max-width: none; }
.amp-section .wp-block-column p, .amp-section .wp-block-column li { max-width: var(--amp-measure); }
/* Fusszeile steht ausserhalb des Astra-<footer> */
.amp-footer { background: var(--amp-huito); }
.wp-block-cover.amp-hero.has-custom-content-position .wp-block-cover__inner-container { width: 100% !important; max-width: var(--amp-wide) !important; }
/* 404 und Suche lesbar */
.error404 .page-title, .error404 .entry-title, .search .page-title { color: var(--amp-canopy) !important; }
.error404 .ast-404-layout-1, .error404 .site-content { background: var(--amp-mist); }

/* ---------- Aufenthaltsphasen (Zeitleiste) ---------- */
.amp-phases { list-style: none; margin: 2.5rem 0 0 !important; padding: 0 !important; display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 2.5rem; position: relative; }
.amp-phases::before { content: ""; position: absolute; left: .55rem; right: 0; top: .55rem; border-top: 2px dashed var(--amp-river); }
.amp-phase { position: relative; padding-top: 2.2rem; max-width: none; }
.amp-phase::before {
	content: ""; position: absolute; left: 0; top: 0; width: 1.15rem; height: 1.15rem; border-radius: 50%;
	background: var(--amp-mist); border: 2px solid var(--amp-river);
}
.amp-phase--main::before { background: var(--amp-chonta); border-color: var(--amp-chonta); width: 1.4rem; height: 1.4rem; top: -.12rem; }
.amp-phase__when { display: block; font-size: .95rem; color: var(--amp-canopy); }
.amp-phase strong { display: block; font-family: var(--amp-serif); font-weight: 400; font-size: 1.45rem; line-height: 1.2; color: var(--amp-canopy); margin: .2rem 0 .3rem; }
.amp-phase--main strong { font-size: 1.75rem; color: var(--amp-huito); }
.amp-phase__tag { display: inline-block; font-size: .9rem; font-style: italic; color: var(--amp-canopy); margin-bottom: .6rem; }
.amp-phase--main .amp-phase__tag { font-style: normal; font-weight: 600; background: var(--amp-chonta); color: var(--amp-huito); padding: .1rem .55rem; border-radius: 2px; }
.amp-phase p { font-size: 1rem; margin: 0; }
@media (max-width: 921px) {
	.amp-phases { grid-template-columns: 1fr; gap: 0; padding-left: 2.2rem !important; }
	.amp-phases::before { left: .55rem; right: auto; top: .6rem; bottom: .6rem; border-top: 0; border-left: 2px dashed var(--amp-river); }
	.amp-phase { padding: 0 0 2rem; }
	.amp-phase::before { left: -2.2rem; top: .2rem; }
	.amp-phase--main::before { left: -2.32rem; top: .08rem; }
	.amp-phase:last-child { padding-bottom: 0; }
}

/* ---------- Zurückhaltender Abschnitt (Traditionelles Pflanzenwissen) ---------- */
.amp-quiet .wp-block-group__inner-container { border-top: 1px solid var(--amp-line); padding-top: 2rem; }
.amp-quiet h3 { font-size: 1.25rem; margin-top: 0; }
.amp-quiet p { font-size: 1rem; color: var(--amp-canopy); }
/* Mehrfachauswahl im Formular etwas luftiger */
.amp-form .wpforms-field-checkbox li { margin-bottom: .35rem !important; }
/* Lesebreite für Fliesstext direkt in breiten Abschnitten, bündig mit der Überschrift */
.amp-section:not(.amp-narrow) .wp-block-group__inner-container > p { max-width: var(--amp-measure) !important; margin-left: calc((100% - min(100%, var(--amp-wide))) / 2) !important; margin-right: auto !important; }
.amp-section:not(.amp-narrow) .wp-block-group__inner-container > p.amp-note { max-width: min(100%, var(--amp-wide)) !important; }
@media (max-width: 600px) { .amp-hero--page h1 { font-size: 1.95rem !important; line-height: 1.12; hyphens: manual; } }

/* ---------- Breites Bild (Fluss) ---------- */
.amp-page .entry-content > .amp-imageband { margin: 0 0 var(--amp-space) !important; }
.amp-imageband img { width: 100%; height: clamp(260px, 58vh, 620px); object-fit: cover; object-position: 50% 60%; display: block; border-radius: 0; }
.amp-imageband figcaption { max-width: var(--amp-wide); margin: .6rem auto 0 !important; padding: 0 var(--amp-gutter); color: var(--amp-canopy); font-size: .95rem; text-align: left; }
@media (max-width: 600px) { .amp-imageband img { height: 46vh; object-position: 40% 60%; } }
/* ---------- Begleiter ---------- */
.amp-team .amp-facts { max-width: 52rem; }
.amp-team .amp-facts dd { font-size: clamp(1.05rem, 1.6vw, 1.2rem); font-family: var(--amp-sans); }
.amp-team .amp-facts dt { font-family: var(--amp-serif); font-size: 1.25rem; }
/* Startseiten-Hero auf dem Handy: wächst mit dem Inhalt (lange Sätze in ES/EN) */
@media (max-width: 600px) {
	.amp-hero.wp-block-cover:not(.amp-hero--page) { min-height: 78vh !important; height: auto !important; padding-top: 6rem; }
	.amp-hero:not(.amp-hero--page) h1 { font-size: 2.2rem; line-height: 1.08; }
}

/* ---------- Kopfzeile Variante A (12.11.2026): exaktes Logo-Grün, damit das Logo-Feld mit der Fläche verschmilzt ---------- */
:root { --amp-logo-green: #13491E; }
.site-header, .ast-primary-header-bar, .main-header-bar,
.ast-above-header-bar, .ast-above-header-wrap, .ast-above-header,
.ast-mobile-header-wrap .ast-primary-header-bar, .ast-mobile-header-content,
.ast-mobile-popup-drawer .ast-mobile-popup-inner { background: var(--amp-logo-green) !important; }
.ast-above-header-bar { border-bottom: 1px solid rgba(238,242,236,.08) !important; }
.site-header { box-shadow: 0 1px 0 rgba(24,38,31,.25); }

/* ---------- Handy-Menü (geöffnet): Grün statt Astra-Weiss, gut lesbar ---------- */
.ast-mobile-header-content .main-header-menu,
.ast-mobile-header-content .main-navigation,
.ast-mobile-header-content .main-header-bar-navigation { background: var(--amp-logo-green) !important; }
.ast-mobile-header-content .main-header-menu .menu-item > .menu-link { color: var(--amp-mist) !important; border-bottom: 1px solid rgba(238,242,236,.12) !important; padding-top: .85rem !important; padding-bottom: .85rem !important; }
.ast-mobile-header-content .main-header-menu .current-menu-item > .menu-link { color: #fff !important; text-decoration: underline; text-underline-offset: .35em; }
.ast-mobile-header-content .main-header-menu .lang-item > .menu-link { font-size: 1rem; opacity: .9; }
.ast-mobile-header-content .main-header-menu .amp-menu-cta > .menu-link { color: var(--amp-huito) !important; border-bottom: 0 !important; margin: 1rem; }
/* ---------- 404 und Suche im Seitenhintergrund ---------- */
.error404 .site-content, .error404 .ast-container, .error404 #primary, .error404 .site-main, .error404 .entry-content, .error404 article { background: var(--amp-mist) !important; }
.error404 .search-field { background: #fff; border: 1px solid rgba(24,38,31,.35); }

body.error404, body.search { background: var(--amp-mist) !important; }

/* ---------- Bildformate je Foto (12.11.2026) ---------- */
/* Gruppen- und Querformatfotos: nie beschneiden */
/* Kein aspect-ratio überschreiben: WordPress setzt für lazy Bilder 'contain: size' und braucht das Seitenverhältnis aus width/height */
.amp-img--natural img { height: auto !important; object-fit: initial; }
/* Hochformate: einheitlich 4:5, auch am Smartphone */
.amp-split .amp-img--portrait img,
.wp-block-columns .amp-img--portrait img { aspect-ratio: 4 / 5 !important; object-fit: cover; }
/* Bildausschnitt je Foto */
.amp-pos-top img { object-position: 50% 15% !important; }
.amp-pos-upper img { object-position: 50% 35% !important; }
.amp-pos-lower img { object-position: 50% 65% !important; }
.amp-pos-bottom img { object-position: 50% 85% !important; }
.wp-block-image.amp-img--natural figcaption { margin-top: .6rem; }

/* Bildstreifen im natürlichen Seitenverhältnis (z. B. Wandbild mit Schriftzug) */
.amp-imageband--natural img { height: auto !important; object-fit: initial !important; max-height: none; }
@media (max-width: 600px) { .amp-imageband--natural img { height: auto !important; } }
.amp-page .entry-content > .amp-imageband--natural { margin-bottom: 0 !important; }

/* Seitenkopf unter einem Bildstreifen (statt Text über dem Bild) */
.amp-pagehead { padding-top: clamp(1.5rem, 4vw, 2.75rem) !important; }
.amp-pagehead h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.08; color: var(--amp-canopy); margin: .4rem 0 1rem; }
.amp-pagehead .amp-lead { font-size: clamp(1.1rem, 1.9vw, 1.35rem); line-height: 1.55; max-width: 40rem; }
.amp-pagehead .amp-caption { margin-top: 0; }

/* ---------- E-023: Einladungssatz statt dreiteiligem Leitsatz ---------- */
/* Ein zusammenhängender Satz: kleiner als der frühere Slogan, begrenzte Zeilenlänge, ausgeglichener Umbruch. */
.amp-hero h1.amp-invite {
	font-size: clamp(1.75rem, 2.9vw, 2.75rem); line-height: 1.18; letter-spacing: -0.01em;
	max-width: 20em; text-wrap: balance; hyphens: manual; overflow-wrap: normal;
	margin: 0 0 1.4rem;
	text-shadow: 0 2px 18px rgba(24,38,31,.6), 0 1px 3px rgba(24,38,31,.35);
}
.amp-quote p { text-wrap: balance; }
/* 14.11.2026: Abstand zwischen Schlusszitat und Buttons (nur Über uns und Der Ort: einzige Stellen mit Zitat direkt vor Buttons) */
.amp-quote + .wp-block-buttons { margin-top: clamp(2rem, 4vw, 2.75rem); }
/* 14.11.2026: WhatsApp-Button (Shortcode, nur Retreat und Anfrage): Abstand zur Überschrift darüber (Anfrage) bzw. zum Button „Platz anfragen“ (Retreat) */
h3 + .amp-wa { margin-top: 24px; }
.wp-block-buttons + .amp-wa { margin-top: 16px; }
.amp-wa { display: flex; flex-wrap: wrap; }
.amp-wa .wp-block-button__link { display: inline-block; } /* wie die übrigen Buttons; sonst ragt der Rahmen des Inline-Links über den Abstand */
/* E-030: kurzer Satz; Breite wirksam begrenzen (die Cover-Regel setzt sonst max-width: none !important), damit rechts möglichst viel Bild frei bleibt */
.amp-hero .wp-block-cover__inner-container > h1.amp-invite { max-width: 20em !important; }
.amp-nowrap { white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
	.amp-hero h1.amp-invite { animation: amp-arrive .9s cubic-bezier(.2,.7,.2,1) both; }
}
@media (max-width: 600px) {
	.amp-hero h1.amp-invite { font-size: clamp(1.4rem, 6vw, 1.7rem); line-height: 1.2; }
	.amp-hero .wp-block-cover__inner-container > h1.amp-invite { max-width: none !important; }
	/* Lesbarkeit über hellem Himmel: dieselbe Überlagerung, beginnt auf schmalen Bildschirmen weiter oben (nur Startseite) */
	.amp-hero:has(.amp-invite) .wp-block-cover__background { background: linear-gradient(180deg, rgba(24,38,31,.25) 0%, rgba(24,38,31,.55) 30%, rgba(24,38,31,.85) 100%) !important; }
}
