/* =====================================================================
   Andrew Bannon – The Vibechanger
   Layout-Idee: Wand-Grau des Fotos als Bühne, zweifarbige Kompositawörter
   (dunkel|hell) als Markenzeichen, Salbei-Overlay-Menü, grüner Footer.
   ===================================================================== */

/* Optional lokal gehostete Schrift (DSGVO): WOFF2-Dateien nach assets/fonts/ legen
@font-face { font-family: "Lexend"; src: url("../fonts/lexend-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("../fonts/lexend-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
*/

:root {
	--forest: #1f4a33;   /* tiefe Schrift, Wortwand */
	--green: #336b48;    /* Footer, Claim dunkel */
	--ink: #065e3b;      /* Logo-B, Menü dunkel */
	--sage: #8fae99;     /* Menü hell, Logo-A */
	--mint: #dce5de;     /* Overlay, helle Wortteile */
	--wall: #b3bdc2;     /* Wandgrau des Fotos */
	--paper: #f3f6f3;    /* Seitenhintergrund */
	--white: #ffffff;
	--line: rgba(51, 107, 72, .2);

	--font: "Lexend", "Avenir Next", "Segoe UI", system-ui, sans-serif;
	--gutter-l: max(16px, env(safe-area-inset-left, 0px));
	--gutter-r: max(16px, env(safe-area-inset-right, 0px));
	--max: 1240px;

	--logo-a: var(--sage);
	--logo-b: var(--ink);
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-weight: 300;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--forest);
	background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.screen-reader-text, .skip-link:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: fixed; z-index: 100; top: 8px; left: 8px; background: var(--white); padding: 8px 12px; }

.wrap {
	width: 100%;
	max-width: var(--max);
	margin-inline: auto;
	padding-left: var(--gutter-l);
	padding-right: var(--gutter-r);
}

/* Zweifarbige Wortteile ------------------------------------------------- */
.w-a, .w-b { white-space: nowrap; }
.section-title, .page-hero__title, .hero__claim, .service__title, .eyebrow {
	text-transform: uppercase;
	letter-spacing: .01em;
	text-wrap: balance;
}
.section-title .w-a, .page-hero__title .w-a, .service__title .w-a { color: var(--green); }
.section-title .w-b, .page-hero__title .w-b, .service__title .w-b { color: var(--sage); }

.section-title {
	font-weight: 700;
	font-size: clamp(1.75rem, 4.4vw, 3.25rem);
	line-height: 1.05;
	margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
}
.eyebrow { font-size: .8125rem; font-weight: 400; letter-spacing: .12em; margin: 0 0 1rem; }
.eyebrow .w-a { color: var(--sage); }
.eyebrow .w-b { color: var(--ink); }

/* Header --------------------------------------------------------------- */
.site-header {
	position: absolute;
	z-index: 20;
	top: 0; left: 0; right: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	/* Menü-Symbol: mittig auf einer Linie mit dem Home-Button (Mobil Mitte 37,5px, ab Tablet 77,5px) */
	padding: calc(13.5px + env(safe-area-inset-top, 0px)) calc(var(--gutter-r) + 40px) 0 var(--gutter-l);
	pointer-events: none;
}
.site-header > * { pointer-events: auto; }
/* Home-Button oben links (alle Seiten außer Startseite): Mobil 10px/10px, ab Tablet 40px oben / 20px links */
.home-btn {
	position: fixed; /* bleibt beim Scrollen immer sichtbar */
	top: calc(10px + env(safe-area-inset-top, 0px));
	left: calc(10px + env(safe-area-inset-left, 0px));
	z-index: 40;
	display: block;
	width: 55px;
	height: 55px;
	pointer-events: auto;
}
.home-btn img { display: block; width: 100%; height: 100%; }
.menu-toggle { margin-left: auto; }
@media (min-width: 768px) {
	.home-btn { top: calc(40px + env(safe-area-inset-top, 0px)); left: calc(20px + env(safe-area-inset-left, 0px)); width: 75px; height: 75px; }
	.site-header { padding-top: calc(53.5px + env(safe-area-inset-top, 0px)); }
}

.menu-toggle {
	width: 48px; height: 48px;
	display: grid; place-items: center;
	background: none; border: 0; cursor: pointer; padding: 0;
	color: var(--green);
}
.is-home .menu-toggle { color: var(--mint); }
.menu-toggle__bars { display: grid; gap: 6px; width: 38px; }
.menu-toggle__bars i { display: block; height: 4px; background: currentColor; transition: transform .25s ease; }
.menu-toggle:hover .menu-toggle__bars i:nth-child(2) { transform: translateX(-6px); }

/* Overlay-Menü ---------------------------------------------------------- */
.site-menu {
	position: fixed; inset: 0; z-index: 50;
	background: var(--mint);
	overflow-y: auto;
	animation: menu-in .35s ease both;
}
.site-menu__inner {
	min-height: 100%;
	max-width: var(--max);
	margin-inline: auto;
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	align-items: center;
	gap: clamp(1rem, 5vw, 5rem);
	padding: calc(80px + env(safe-area-inset-top, 0px)) var(--gutter-r) calc(48px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
	position: relative;
}
.site-menu__close {
	position: fixed; /* am Bildschirmrand ausgerichtet, genau über dem Menü-Symbol */
	top: calc(11.5px + env(safe-area-inset-top, 0px));
	right: calc(var(--gutter-r) + 38px);
	width: 52px; height: 52px; padding: 6px;
	background: none; border: 0; cursor: pointer;
	color: var(--sage);
	transition: color .2s;
}
.site-menu__close:hover { color: var(--ink); }
@media (min-width: 768px) { .site-menu__close { top: calc(51.5px + env(safe-area-inset-top, 0px)); } }
.site-menu__logo { position: relative; display: block; justify-self: center; width: min(100%, 220px); aspect-ratio: 1; --logo-a: var(--sage); --logo-b: var(--ink); }
.site-menu__logo .ab-logo { display: block; width: 100%; height: 100%; transition: opacity .6s ease; }
/* Bildfeld: exakt die Außenkante des Logo-Rahmens */
.site-menu__visual { position: absolute; inset: .8%; overflow: hidden; pointer-events: none; }
.site-menu__img, .site-menu__ph { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease; }
.site-menu__img { object-fit: cover; }
.site-menu__ph {
	display: grid; place-content: center; justify-items: center; gap: .5rem;
	background: var(--ink); color: var(--sage);
	font-size: .625rem; letter-spacing: .18em; text-transform: uppercase;
}
.site-menu__ph svg { width: 34%; max-width: 64px; }
.site-menu__logo[data-state="img"] .ab-logo, .site-menu__logo[data-state="ph"] .ab-logo { opacity: 0; }
.site-menu__logo[data-state="img"] .site-menu__img { opacity: 1; }
.site-menu__logo[data-state="ph"] .site-menu__ph { opacity: 1; }
@media (max-width: 560px) { .site-menu__ph span { display: none; } }
.menu-overlay { list-style: none; margin: 0; padding: 0; display: grid; gap: .2em; text-align: center; }
.menu-overlay a {
	display: inline-block;
	text-decoration: none;
	font-size: clamp(1.05rem, 3.4vw, 2.25rem);
	font-weight: 300;
	letter-spacing: .02em;
	line-height: 1.55;
	text-transform: uppercase;
}
.menu-overlay .w-a { color: var(--sage); transition: color .2s; }
.menu-overlay .w-b { color: var(--ink); }
.menu-overlay a:hover .w-a, .menu-overlay .current-menu-item .w-a { color: var(--ink); }

/* Sprachumschalter (WPML) */
.lang-switch { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; justify-content: center; gap: 1.25rem; font-size: .8125rem; letter-spacing: .18em; }
.lang-switch a { text-decoration: none; color: var(--sage); }
.lang-switch a:hover, .lang-switch .is-active { color: var(--ink); }

@keyframes menu-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* Hero ------------------------------------------------------------------ */
.hero {
	position: relative;
	min-height: min(100svh, 920px);
	background: var(--wall);
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1fr); /* Headline darf nicht breiter als der Bildschirm werden */
}
.hero__media, .hero__media img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
}
.hero__media img { object-fit: cover; object-position: 50% 100%; }
.hero__claim {
	position: relative;
	align-self: start;
	margin: 0;
	padding: calc(22vh + env(safe-area-inset-top, 0px)) var(--gutter-r) 0 var(--gutter-l);
	text-align: center;
	white-space: nowrap;
	font-weight: 700;
	font-size: 6vw;
	line-height: 1;
	transition: opacity var(--claim-fade, 1.2s) cubic-bezier(.45, 0, .2, 1), transform var(--claim-fade, 1.2s) cubic-bezier(.45, 0, .2, 1), filter var(--claim-fade, 1.2s) ease;
}
.hero__claim .w-a { color: var(--green); }
.hero__claim .w-b { color: var(--mint); }
.hero__claim { min-width: 0; max-width: 100%; }
.hero__claim.is-out { opacity: 0; transform: translateY(4px); filter: blur(3px); }

.hero__sign {
	position: absolute;
	right: calc(var(--gutter-r) + 40px); /* 40px mehr Abstand zum rechten Rand, bündig mit dem Menü-Symbol */
	bottom: clamp(16px, 3vw, 40px);
	display: grid;
	grid-template-columns: auto auto;
	column-gap: 10px;
	row-gap: .3em;
	align-items: end;
	color: var(--white);
	font-size: clamp(.95rem, 1.6vw, 1.3rem);
	--logo-a: #6aa088;
	--logo-b: var(--ink);
}
@media (max-width: 899px) { .hero__sign { right: calc(var(--gutter-r) + 4px); } } /* Mobil: Logo 20px vom rechten Rand */
.hero__mark { grid-column: 2; grid-row: 2; width: clamp(64px, 9vw, 110px); }
.hero__sign .ab-logo { width: 100%; display: block; }
.hero__sign-text { grid-column: 1; grid-row: 2; margin: 0; display: grid; text-align: right; line-height: 1.05; font-size: 1em; text-shadow: 0 1px 12px rgba(31, 74, 51, .25); }
/* Name über dem Logo, bündig mit der rechten Kante des „A“ (Logo-Mitte = 49,6 % vom rechten Logo-Rand) */
.hero__name-row { grid-column: 2; grid-row: 1; position: relative; margin: 0; height: 1.05em; }
.hero__name {
	position: absolute;
	right: 49.6%;
	bottom: 0;
	white-space: nowrap;
	font-weight: 300;
	line-height: 1.05;
	text-shadow: 0 1px 12px rgba(31, 74, 51, .25);
}
.hero__role { font-weight: 600; margin-bottom: .25em; color: #c6d4cc; }
.hero__line { font-weight: 300; }

@media (min-width: 900px) {
	.hero { min-height: min(100svh, 860px); }
	/* Hochformat-Foto ohne Hochskalieren: mittig, Ränder weich in die Wandfarbe */
	.hero--portrait { background: linear-gradient(180deg, #98a1a5 0%, #a9b3b9 28%, #b0babf 55%, #abb6bc 78%, #9ba7ae 100%); }
	.hero--portrait .hero__media img {
		left: 50%;
		width: auto;
		max-width: none;
		height: 100%;
		transform: translateX(-50%);
		object-fit: contain;
		-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
		mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
	}
	.hero__media img { object-position: 50% 100%; }
	.hero__claim { padding-top: calc(16vh + env(safe-area-inset-top, 0px)); font-size: 4.2vw; }
	/* Headline über dem Motiv: Header füllt den ganzen Bildschirm, damit über dem Motiv Luft bleibt */
	.hero--tall { min-height: 100svh; }
}

/* Hochformat-Bild für Handy/Tablet im Hochformat: ganze Bildidee sichtbar, kein Anschnitt */
@media (max-aspect-ratio: 4/5) {
	.hero--has-mobile .hero__media img { object-position: 50% 50% !important; }
}
@media (max-aspect-ratio: 4/5) and (max-width: 767px) {
	.hero--has-mobile { min-height: 0; aspect-ratio: var(--m-ratio, 9 / 16); }
}

/* Abschnitts-Raster (Leistungen, Anfrage, FAQ) ------------------------ */
.services__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.75rem;
}
@media (min-width: 960px) {
	.services__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 5rem); }
	.services__head { position: sticky; top: 2rem; align-self: start; }
}
.label {
	margin: 0;
	font-size: .8125rem;
	font-weight: 400;
	letter-spacing: .18em;
	text-transform: uppercase;
	line-height: 1.4;
}
.label .w-a { color: var(--green); }
.label .w-b { color: var(--sage); }
.services__intro { margin: .75rem 0 0; max-width: 26ch; font-size: .9375rem; color: var(--green); opacity: .8; }

/* Leistungen: Akkordeon ------------------------------------------------- */
.services { padding-block: clamp(4rem, 9vw, 7rem); }
.accordion { border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc__summary, .faq__q {
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.15rem;
	cursor: pointer;
	user-select: none;
}
.acc__summary::-webkit-details-marker, .faq__q::-webkit-details-marker { display: none; }
.acc__label {
	font-size: clamp(.95rem, 1.4vw, 1.0625rem);
	font-weight: 300;
	letter-spacing: .14em;
	text-transform: uppercase;
	transition: letter-spacing .35s ease;
}
.acc__label .w-a { color: var(--sage); transition: color .25s; }
.acc__label .w-b { color: var(--ink); }
.acc__summary:hover .acc__label .w-a, .acc[open] .acc__label .w-a { color: var(--ink); }
.acc__summary:hover .acc__label { letter-spacing: .17em; }

.acc__icon { position: relative; width: 14px; height: 14px; flex: none; color: var(--green); }
.acc__icon::before, .acc__icon::after {
	content: ""; position: absolute; left: 0; right: 0; top: 50%;
	height: 1px; background: currentColor; transition: transform .3s ease;
}
.acc__icon::after { transform: rotate(90deg); }
details[open] > summary .acc__icon::after { transform: rotate(0deg); }

.acc__panel { padding-bottom: clamp(2rem, 4vw, 3rem); }
details[open] .acc__panel, details[open] .faq__a { animation: panel-in .45s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.feature { max-width: 760px; }
.feature__media { margin: .25rem 0 1.75rem; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mint); max-width: 100%; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transition: transform 1.6s cubic-bezier(.2,.6,.2,1); }
details[open] .feature__media img { transform: scale(1); }
.feature__h1 {
	margin: 0 0 .5rem;
	font-size: clamp(1.35rem, 2.3vw, 1.75rem);
	font-weight: 400;
	line-height: 1.25;
	color: var(--forest);
	text-wrap: balance;
}
.feature__h2 {
	margin: 0 0 1.5rem;
	font-size: clamp(1rem, 1.4vw, 1.125rem);
	font-weight: 300;
	line-height: 1.45;
	color: var(--green);
	opacity: .85;
	text-wrap: balance;
}
.feature__text { max-width: 64ch; font-size: .9875rem; line-height: 1.75; color: var(--forest); }
.feature__text p { margin: 0 0 1em; }
.feature__more {
	display: inline-flex;
	gap: .35em;
	margin-top: .25rem;
	font-size: .8125rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
	border-bottom: 1px solid var(--sage);
	padding-bottom: 2px;
	transition: border-color .2s, gap .2s;
}
.feature__more:hover { border-color: var(--ink); gap: .6em; }

/* FAQ ------------------------------------------------------------------- */
.faq { background: var(--mint); padding-block: clamp(3.5rem, 8vw, 6rem); --line: rgba(6, 94, 59, .18); }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { font-size: 1rem; font-weight: 400; color: var(--forest); line-height: 1.45; }
.faq__q:hover { color: var(--ink); }
.faq__a { max-width: 64ch; padding-bottom: 1.4rem; font-size: .9375rem; line-height: 1.7; color: var(--green); }
.faq__a p { margin: 0 0 .75em; }
.faq__a p:last-child { margin-bottom: 0; }

/* Journal --------------------------------------------------------------- */
.journal { padding-block: clamp(4rem, 9vw, 7rem); }
.journal--archive { padding-top: 2rem; }
.journal__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.card__link { display: grid; gap: .6rem; text-decoration: none; }
.card__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--wall); max-width: 100%; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card__link:hover .card__media img { transform: scale(1.03); }
.card__date { font-size: .8125rem; letter-spacing: .08em; color: var(--sage); text-transform: uppercase; }
.card__title { margin: 0; font-size: 1.35rem; font-weight: 600; line-height: 1.2; text-transform: uppercase; color: var(--green); }
.card__title .w-b { color: var(--sage); }
.card__excerpt { margin: 0; font-size: .975rem; }

/* Anfrage --------------------------------------------------------------- */
.cta { padding-block: clamp(3.5rem, 8vw, 6rem); border-top: 1px solid var(--line); }
.cta__body { display: grid; gap: 1.5rem; }
.cta__text { margin: 0; max-width: 52ch; font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 300; line-height: 1.5; color: var(--forest); }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.cta__mail { font-size: .9rem; color: var(--green); text-decoration: none; }
a.cta__mail:hover { text-decoration: underline; }
.btn {
	display: inline-block;
	padding: .85rem 1.5rem;
	background: var(--green);
	color: var(--white);
	text-decoration: none;
	font-weight: 400;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-size: .78rem;
	transition: background .2s;
}
.btn:hover { background: var(--ink); }

/* Unterseiten ----------------------------------------------------------- */
.page-hero {
	position: relative;
	background: var(--wall);
	padding-block: calc(120px + env(safe-area-inset-top, 0px)) clamp(3rem, 7vw, 5rem);
	overflow: hidden;
}
.page-hero--image { min-height: 60vh; display: grid; align-items: end; }
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .wrap { position: relative; }
.page-hero__title { margin: 0; font-weight: 700; font-size: clamp(2rem, 6.5vw, 5rem); line-height: 1; }
.page-hero__title .w-a { color: var(--green); }
.page-hero__title .w-b { color: var(--mint); }
.page-hero__title--post { font-size: clamp(1.75rem, 4.5vw, 3.5rem); }
.page-hero__lead { max-width: 52ch; margin: 1.25rem 0 0; color: var(--forest); font-size: 1.15rem; }

.page-content { padding-block: clamp(3rem, 7vw, 5rem); }
.page-content > * { max-width: 68ch; }
.page-content > .alignwide { max-width: var(--max); }
.page-content > .alignfull { max-width: none; margin-inline: calc(-1 * var(--gutter-l)); }
.page-content h2 { font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.15; color: var(--green); text-transform: uppercase; margin: 2.5rem 0 1rem; }
.page-content h3 { font-weight: 600; font-size: 1.25rem; color: var(--green); margin: 2rem 0 .75rem; }
.page-content blockquote { margin: 2rem 0; padding-left: 1.25rem; border-left: 3px solid var(--sage); font-size: 1.35rem; font-weight: 200; color: var(--ink); }
.post-figure img { display: block; width: 100%; height: auto; }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-bottom: 4rem; }
.post-nav a { color: var(--green); }

/* Footer ---------------------------------------------------------------- */
.site-footer { background: var(--green); color: var(--white); font-size: .78rem; line-height: 1.35; padding-bottom: env(safe-area-inset-bottom, 0px); }
.site-footer__inner {
	max-width: var(--max);
	margin-inline: auto;
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: clamp(1.25rem, 4vw, 4rem);
	padding: clamp(1.25rem, 3vw, 2.5rem) var(--gutter-r) 1rem var(--gutter-l);
}
.menu-footer { list-style: none; margin: 0; padding: 0; text-transform: uppercase; letter-spacing: .02em; }
.menu-footer a { text-decoration: none; }
.menu-footer .w-a { color: var(--white); }
.menu-footer .w-b { color: var(--sage); transition: color .2s; }
.menu-footer a:hover .w-b { color: var(--mint); }
.menu-footer--cols { columns: 2; column-gap: clamp(1rem, 3vw, 3rem); max-width: 380px; }
.site-footer__address { font-style: normal; color: var(--mint); }
.site-footer__address .w-strong { color: var(--white); }
.site-footer__address a { text-decoration: none; color: var(--white); }
.site-footer__copy { margin: 0; padding: .75rem var(--gutter-r) 1.25rem var(--gutter-l); max-width: var(--max); margin-inline: auto; color: var(--sage); font-size: .72rem; }

@media (max-width: 560px) {
	.site-footer__inner { grid-template-columns: auto 1fr; }
	.site-footer__address { grid-column: 1 / -1; }
	.site-menu__inner { grid-template-columns: 1fr 1.6fr; gap: .75rem; }
	.site-menu__logo { width: min(100%, 110px); }
}

/* Bewegung reduzieren --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
