/* =========================================================
   Countable theme — fonts
   (Provided: Inter 400/700, Roboto Serif 400/600/700.
    Design also uses Inter 500/600/800 and JetBrains Mono —
    add those .woff2 files to assets/fonts for an exact match.)
   ========================================================= */
@font-face {
	font-family: "Inter";
	src: url("../fonts/Inter-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/Inter-Bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Roboto Serif";
	src: url("../fonts/RobotoSerif-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Roboto Serif";
	src: url("../fonts/RobotoSerif-SemiBold.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Roboto Serif";
	src: url("../fonts/RobotoSerif-Bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* =========================================================
   Design tokens (from Figma "Countable new")
   ========================================================= */
:root {
	--color-bg: #efeae0;
	--color-white: #ffffff;
	--color-black: #000000;
	--color-line: #c4c1c1;
	--color-line-soft: #d1cec8;
	--color-card-line: #d8d4cb;
	--color-accent: #ffcb14;
	--color-ink: #000000;
	--color-grey-40: #666666;
	--color-body: #333333;
	--color-nav: #1a1a1a;

	--font-heading: "Inter", "Helvetica Neue", Arial, sans-serif;
	--font-body: "Roboto Serif", Georgia, "Times New Roman", serif;
	--font-mono: "JetBrains Mono", ui-monospace, "Courier New", monospace;

	--container: 1320px;
	--gutter: 60px;
}

/* =========================================================
   Base
   ========================================================= */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Lenis smooth scroll (JS hands over scrolling once active) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-ink);
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -0.02em;
	margin: 0;
}

/* Full-bleed section band: background/border span the viewport,
   content is constrained to --container and centred. */
.section {
	width: 100%;
	border-top: 1px solid var(--color-line);
	padding-block: 80px;
	padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2));
}

/* Breathing room when scrolled to via an anchor / deep link. */
.section[id],
.tabs__tab { scroll-margin-top: 100px; }

.eyebrow {
	font-family: var(--font-mono);
	text-transform: uppercase;
	letter-spacing: 1.44px;
	font-size: 12px;
	line-height: 18px;
	color: var(--color-grey-40);
	margin: 0 0 15px;
}

.eyebrow::before {
	content: "";
	display: inline-block;
	width: 24px;
	height: 1px;
	margin-right: 10px;
	background: currentColor;
	vertical-align: middle;
}

/* =========================================================
   Buttons
   ========================================================= */
.button {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-heading);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	border: 0;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.button:active { transform: translateY(1px); }

.button--primary {
	background: var(--color-black);
	color: var(--color-white);
	padding: 16px 28px;
	border-radius: 999px;
}

.button--primary::after {
	content: "\2192";
	font-family: var(--font-body);
	transition: transform 0.2s ease;
}

.button--primary:hover { background: #1a1a1a; }
.button--primary:hover::after { transform: translateX(4px); }

.button--link {
	position: relative;
	background: transparent;
	color: var(--color-black);
	padding: 16px 8px;
}

.button--link::after {
	content: "";
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 10px;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}

.button--link:hover::after { transform: scaleX(1); }

/* Hover interactions */
.tabs__tab { transition: background-color 0.2s ease; }
.tabs__tab:not(.is-active):hover { background: #faf8f3; }

.main-navigation__menu a { transition: opacity 0.2s ease; }
.main-navigation__menu a:hover { opacity: 0.6; }

.routenplaner__pill,
.routenplaner__btn,
.routenplaner__consent-btn {
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.routenplaner__pill:not(.is-active):hover,
.routenplaner__btn:hover,
.routenplaner__consent-btn:hover { background: rgba(255, 255, 255, 0.2); }

.routenplaner__btn:active,
.routenplaner__consent-btn:active { transform: translateY(1px); }

.contact__form .wpcf7-submit { transition: background-position 0.2s ease, transform 0.15s ease, opacity 0.2s ease; }
.contact__form .wpcf7-submit:hover { background-position: right 16px center; opacity: 0.92; }
.contact__form .wpcf7-submit:active { transform: translateY(1px); }

/* Counters fade-up reveal — only hidden once JS confirms it will reveal them
   (guarded with the .is-animated flag so they can never get stuck invisible). */
.counters.is-animated .counters__item {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.counters.is-animated .counters__item:nth-child(2) { transition-delay: 0.08s; }
.counters.is-animated .counters__item:nth-child(3) { transition-delay: 0.16s; }
.counters.is-animated .counters__item:nth-child(4) { transition-delay: 0.24s; }

.counters.is-animated .counters__item.is-visible { opacity: 1; transform: none; }
.counters{border: none;}
/* =========================================================
   Hero
   ========================================================= */
.hero {
	border-top: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 580px;
}

.hero__content {
	align-self: center;
	max-width: 700px;
	margin-left: auto;
	width: 100%;
	padding: 60px 48px 60px max(var(--gutter), calc((100% - var(--container)) / 2));
	display: flex;
	flex-direction: column;
	gap: 23px;
}

.hero .eyebrow { margin: 0; }

.hero__title {
	font-size: 56px;
	line-height: 66px;
}

.hero__text {
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 26px;
	color: var(--color-black);
	max-width: 620px;
}

.hero__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding-top: 13px;
}

.hero__media { border-left: 1px solid var(--color-line); }

.hero__image {
	width: 100%;
	height: 580px;
	object-fit: cover;
}

/* =========================================================
   Philosophie (heading + accordion)
   ========================================================= */
.philosophie {
	padding-block: 80px;
	display: grid;
	grid-template-columns: 615px 1fr;
	gap: 80px;
	align-items: start;
	border-top:none
}

.philosophie__title {
	font-size: 56px;
	line-height: 66px;
	margin-top: 1rem;
}

/* =========================================================
   Accordion (Philosophie)
   ========================================================= */
.accordion__item { border-bottom: 1px solid var(--color-line-soft); }

.accordion__trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	background: none;
	border: 0;
	padding: 20px 0;
	cursor: pointer;
	text-align: left;
	font-family: var(--font-heading);
	font-size: 18px;
	font-weight: 500;
	line-height: 27.3px;
	color: var(--color-black);
}

.accordion__icon {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: url("../images/arrow-icon.svg") no-repeat center / contain;
	mask: url("../images/arrow-icon.svg") no-repeat center / contain;
	transition: transform 0.25s ease;
}

.accordion__item.is-open .accordion__icon { transform: rotate(180deg); }

.accordion__panel { overflow: hidden; max-height: 0; transition: max-height 0.3s ease; }

.accordion__content {
	padding-bottom: 20px;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 26px;
	color: var(--color-body);
}

/* =========================================================
   Counters  (Figma node 409:638)
   ========================================================= */
.counters {
	background: var(--color-white);
	padding-block: 40px;
}

.counters__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 40px;
}

.counters__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 10px;
	text-align: center;
}

.counters__item + .counters__item::before {
	content: "";
	position: absolute;
	left: -20px;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 52px;
	background: var(--color-line);
}

.counters__number {
	display: block;
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 56px;
	line-height: 56px;
	letter-spacing: -2.24px;
	color: var(--color-black);
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
	text-align: center;
}

.counters__label {
	display: block;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 18px;
	letter-spacing: 0.26px;
	text-transform: uppercase;
	color: var(--color-grey-40);
}

/* =========================================================
   Leistungen (tabbed services card)
   ========================================================= */
.leistungen { padding-block: 80px; }

.leistungen__intro { margin-bottom: 56px; }

.leistungen__title {
	font-size: 52px;
	line-height: 62.4px;
}

.tabs {
	background: transparent;
	border: 0;
	overflow: visible;
}

.tabs__nav {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	background: var(--color-white);
	border: 1px solid var(--color-black);
	border-radius: 8px;
}

.tabs__nav .tabs__tab:first-child { border-radius: 8px 0 0 0px; }
.tabs__nav .tabs__tab:last-child { border-radius: 0 8px 0px 0; }

.tabs__tab {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 40px 16px 36px;
	background: var(--color-white);
	border: 0;
	border-right: 1px solid var(--color-card-line);
	cursor: pointer;
	font-family: var(--font-heading);
}

.tabs__tab:last-child { border-right: 0; }

/* Active tab: raised 3D tab with a black outline (no yellow fill) */
.tabs__tab.is-active {
	background: var(--color-white);
	z-index: 3;
	border-right-color: transparent;
	box-shadow: 0 0 0 2px var(--color-black), 0 14px 26px rgba(0, 0, 0, 0.18);
}

.tabs__badge {
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tabs__badge img { width: 60px; height: 60px; object-fit: contain; }

.tabs__label {
	font-weight: 600;
	font-size: 18px;
	letter-spacing: -0.14px;
	line-height: 18.2px;
	color: #444;
}

.tabs__tab.is-active .tabs__label { color: var(--color-black); }

.tabs__num {
	position: absolute;
	top: 14px;
	left: 17px;
	font-family: var(--font-mono);
	font-weight: 500;
	font-size: 10px;
	letter-spacing: 0.8px;
	line-height: 15px;
	color: #bbb;
}

.tabs__tab.is-active .tabs__num { color: rgba(0, 0, 0, 0.45); }

/* Bottom underline bar replaced by the raised black outline above. */

.tabs__panel {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 64px;
	padding: 52px 56px;
	margin-top: -1px;
	background: var(--color-white);
	border: 2px solid var(--color-black);
	border-radius: 0 0 8px 8px;
}

.tabs__panel[hidden] { display: none; }

.tabs__panel-head {
	border-right: 1px solid var(--color-card-line);
	padding-right: 24px;
}

.tabs__panel-title {
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 30px;
	line-height: 38px;
	margin: 0 0 12px;
  word-break:break-word;
	color: var(--color-black);
}

.tabs__panel-caption {
	font-family: var(--font-mono);
	text-transform: uppercase;
	letter-spacing: 1.1px;
	font-size: 11px;
	line-height: 16.5px;
	color: #888;
	margin: 0;
}

.tabs__panel-body {
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 26px;
	color: var(--color-body);
}

.tabs__panel-body p { margin-top: 0; }

/* =========================================================
   FAQs
   ========================================================= */
.faqs {
	padding-block: 80px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 80px;
	align-items: start;
}

.faqs__title {
	font-size: 56px;
	line-height: 66px;
	margin-bottom: 1rem;
}

.faqs__text {
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 26px;
	color: var(--color-grey-40);
}

.faqs__item { border-top: 1px solid rgba(10, 10, 10, 0.12); }
.faqs__item:last-child { border-bottom: 1px solid rgba(10, 10, 10, 0.12); }

.faqs__trigger {
	align-items: center;
	gap: 24px;
	padding: 24px 4px;
}

.faqs__index {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--color-grey-40);
	flex: 0 0 32px;
}

.faqs__question {
	flex: 1;
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 18px;
	letter-spacing: -0.18px;
	color: var(--color-black);
}

.faqs__toggle {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--color-black);
	position: relative;
	transition: background 0.2s ease;
}

.faqs__toggle::before,
.faqs__toggle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background: var(--color-white);
	transform: translate(-50%, -50%);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.faqs__toggle::before { width: 12px; height: 2px; }
.faqs__toggle::after { width: 2px; height: 12px; }

.faqs__item.is-open .faqs__toggle { background: var(--color-accent); }
.faqs__item.is-open .faqs__toggle::before,
.faqs__item.is-open .faqs__toggle::after { background: var(--color-black); }
.faqs__item.is-open .faqs__toggle::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }

.faqs__answer {
	padding: 0 64px 28px 56px;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 26px;
	color: var(--color-grey-40);
}

/* =========================================================
   Text animation slider (marquee band)
   ========================================================= */
.text-slider {
	border-top: 1px solid rgba(196, 193, 193, 0.5);
	padding: 0;
	background: var(--color-black);
	color: var(--color-white);
}

.text-slider__viewport { overflow: hidden; }

.text-slider__track {
	display: flex;
	width: max-content;
	animation: marquee 30s linear infinite;
}

.text-slider__group {
	display: flex;
	align-items: center;
	gap: 30px;
	list-style: none;
	margin: 0;
	padding: 0 30px 0 0;
	height: 172px;
}

.text-slider__item {
	font-family: var(--font-heading);
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-size: clamp(1.6rem, 4vw, 56px);
	white-space: nowrap;
	display: flex;
	align-items: center;
	gap: 30px;
}

.text-slider__item::before {
	content: "";
	width: 0.55em;
	height: 0.55em;
	border-radius: 50%;
	background: var(--color-accent);
	flex: 0 0 auto;
}

@keyframes marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* Note: animations intentionally run regardless of the OS "reduce motion"
   setting, because many Windows laptops ship with it off by default and the
   brand animations would otherwise appear broken. */

/* =========================================================
   Contact (dark) — info + Routenplaner + CF7 form
   ========================================================= */
.contact {
	background: var(--color-black);
	color: var(--color-white);
	border-top: 1px solid rgba(221, 221, 221, 0.5);
	padding-block: 80px 32px;
}

.contact .eyebrow { color: rgba(255, 255, 255, 0.55); }

.contact__head { margin-bottom: 56px; }

.contact__title {
	font-size: 57px;
	line-height: 66px;
	letter-spacing: -2.419px;
	color: var(--color-white);
	max-width: 520px;
}

.contact__main {
	display: grid;
	grid-template-columns: 400px 1fr;
	gap: 60px;
	align-items: start;
}

.contact__text {
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-white);
	margin-bottom: 32px;
}

.contact__list {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
	font-family: var(--font-heading);
}

.contact__list-item {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 500;
	font-size: 15px;
	color: var(--color-white);
}

.contact__list-item--addr { align-items: flex-start; }

.contact__icon {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	color: rgba(255, 255, 255, 0.7);
}

.contact__icon svg { display: block; }

.contact__list a {
	font-weight: 500;
	font-size: 15px;
	color: var(--color-white);
	text-decoration: none;
}

.contact__list-addr { display: block; font-size: 15px; line-height: 22px; }

/* Routenplaner */
.routenplaner { display: flex; flex-direction: column; gap: 14px; max-width: 400px; }
.routenplaner__eyebrow { margin: 0; }

.routenplaner__toggle { display: flex; gap: 8px; }

.routenplaner__pill {
	border: 0;
	cursor: pointer;
	border-radius: 100px;
	padding: 8px 18px;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 13px;
	background: rgba(255, 255, 255, 0.1);
	color: var(--color-white);
}

.routenplaner__pill.is-active { background: var(--color-white); color: var(--color-black); }

.routenplaner__map {
	position: relative;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	overflow: hidden;
	height: 150px;
}

.routenplaner__map[hidden] { display: none; }
.routenplaner__map iframe { width: 100%; height: 100%; border: 0; display: block; }

.routenplaner__consent {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px;
	text-align: center;
	background: rgba(255, 255, 255, 0.05);
}

.routenplaner__consent-text {
	margin: 0;
	font-family: var(--font-heading);
	font-size: 12px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.7);
}

.routenplaner__consent-btn {
	border: 0;
	cursor: pointer;
	border-radius: 8px;
	padding: 8px 16px;
	background: var(--color-white);
	color: var(--color-black);
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 13px;
}

.routenplaner__label {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 13px;
	color: var(--color-white);
}

.routenplaner__input {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	padding: 0 14px;
	height: 44px;
	color: var(--color-white);
	font-family: var(--font-heading);
	font-size: 14px;
}

.routenplaner__input::placeholder { color: #ccc; }

.routenplaner__btn {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.1);
	border: 0;
	border-radius: 8px;
	padding: 0 18px;
	height: 39.5px;
	color: var(--color-white);
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
}

.routenplaner__btn-icon {
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
	background: currentColor;
	-webkit-mask: url("../images/route-icon.svg") no-repeat center / contain;
	mask: url("../images/route-icon.svg") no-repeat center / contain;
}

.contact__notice {
	padding: 1rem 1.25rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	color: rgba(255, 255, 255, 0.7);
}

/* CF7 form on the dark contact section */
.contact__form .wpcf7-form { display: flex; flex-direction: column; gap: 20px; }
.contact__form .wpcf7-form > p,
.contact__form .wpcf7-form > div { margin: 0; }
/* Stop CF7 from spacing the label off the field with stray line breaks. */
.contact__form .wpcf7-form br { display: none; }
.contact__form .cf7-row { display: flex; gap: 16px; }
.contact__form .cf7-row > .cf7-field { flex: 1; }
.contact__form .cf7-field { display: flex; flex-direction: column; gap: 8px; margin: 0; }

.contact__form .cf7-label,
.contact__form label {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 13px;
	color: var(--color-white);
}

.contact__form input[type="text"],
.contact__form input[type="email"],
.contact__form input[type="tel"],
.contact__form textarea {
	width: 100%;
	height: 48px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: transparent;
	padding: 0 16px;
	color: var(--color-white);
	font-family: var(--font-heading);
	font-size: 15px;
}

.contact__form textarea { height: 140px; padding: 14px 16px; resize: vertical; }
.contact__form input::placeholder,
.contact__form textarea::placeholder { color: #ccc; }

.contact__form .wpcf7-form-control-wrap { display: block; }

.contact__form .cf7-consent {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 13px;
	line-height: 20px;
	color: var(--color-white);
	margin: 0;
}

.contact__form .cf7-consent a { color: var(--color-white); }
.contact__form .cf7-consent .wpcf7-list-item { margin: 0; }

.contact__form .cf7-consent label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	font-weight: 600;
	font-size: 13px;
}

.contact__form input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin: 0;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: transparent;
	cursor: pointer;
	position: relative;
}

.contact__form input[type="checkbox"]:checked {
	background: var(--color-accent);
	border-color: var(--color-accent);
}

.contact__form input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 1px;
	width: 5px;
	height: 10px;
	border: solid var(--color-black);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.contact__form .wpcf7-submit {
	align-self: flex-start;
	background: var(--color-white);
	color: var(--color-black);
	border: 0;
	border-radius: 100px;
	padding: 14px 48px 14px 28px;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 20px center;
}

/* =========================================================
   Text Module (Impressum / Datenschutz etc.)
   ========================================================= */
.text-module__title {
	font-size: clamp(32px, 4vw, 48px);
	line-height: 1.1;
	margin-bottom: 1.5rem;
}

.text-module__content {
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.7;
	color: var(--color-body);
}

.text-module__content > :first-child { margin-top: 0; }
.text-module__content > :last-child { margin-bottom: 0; }

.text-module__content h2,
.text-module__content h3,
.text-module__content h4 {
	color: var(--color-ink);
	margin: 2rem 0 0.75rem;
}

.text-module__content h2 { font-size: 26px; }
.text-module__content h3 { font-size: 21px; }
.text-module__content h4 { font-size: 18px; }

.text-module__content p { margin: 0 0 1.1rem; }

.text-module__content a {
	color: var(--color-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.text-module__content ul,
.text-module__content ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
.text-module__content li { margin-bottom: 0.4rem; }

.text-module__content table {
	border-collapse: collapse;
	width: 100%;
	margin: 0 0 1.1rem;
}

.text-module__content th,
.text-module__content td {
	border: 1px solid var(--color-line);
	padding: 8px 12px;
	text-align: left;
	vertical-align: top;
}

/* =========================================================
   404
   ========================================================= */
.error-404 {
	border-top: 0;
	min-height: 64vh;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
}

.error-404__title {
	font-size: clamp(44px, 7vw, 84px);
	line-height: 1.05;
	margin: 8px 0 16px;
}

.error-404__text {
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 26px;
	color: var(--color-grey-40);
	max-width: 46ch;
	margin: 0 0 28px;
}

.error-404__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

/* =========================================================
   Site header / nav
   ========================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--color-bg);
	border-bottom: 1px solid var(--color-line);
}

/* Keep the sticky header below the WordPress admin bar when logged in */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

.site-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 36px;
	padding: 20px max(var(--gutter), calc((100% - var(--container)) / 2));
}

.site-logo__img { max-height: 24px; width: auto; }
.site-logo--text { font-family: var(--font-heading); font-weight: 700; text-decoration: none; }

.main-navigation { grid-column: 2; justify-self: center; }

.main-navigation__menu {
	list-style: none;
	display: flex;
	justify-content: center;
	gap: 36px;
	margin: 0;
	padding: 0;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 16px;
}

.main-navigation__menu a { text-decoration: none; color: var(--color-nav); }
.main-navigation__menu > li > a::after { content: "."; color: var(--color-accent); }

/* Parent items keep the dot and add the arrow icon to signal a dropdown */
.main-navigation__menu .menu-item-has-children > a {
	display: inline-flex;
	align-items: center;
}

.main-navigation__menu .menu-item-has-children > a::before {
	content: "";
	order: 1;
	width: 14px;
	height: 14px;
	margin-left: 6px;
	background: currentColor;
	-webkit-mask: url("../images/arrow-icon.svg") no-repeat center / contain;
	mask: url("../images/arrow-icon.svg") no-repeat center / contain;
	transition: transform 0.25s ease;
}

.main-navigation__menu .menu-item-has-children:hover > a::before,
.main-navigation__menu .menu-item-has-children:focus-within > a::before { transform: rotate(180deg); }

/* Submenus (desktop dropdown) */
.main-navigation__menu li { position: relative; }

.main-navigation__menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 6px;
	position: absolute;
	top: calc(100% + 14px);
	left: 50%;
	min-width: 200px;
	background: var(--color-white);
	border: 1px solid var(--color-line);
	border-radius: 12px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
	z-index: 60;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 8px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

/* hover bridge so the gap above the dropdown doesn't drop the hover */
.main-navigation__menu .menu-item-has-children::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	height: 16px;
}

.main-navigation__menu li:hover > .sub-menu,
.main-navigation__menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.main-navigation__menu .sub-menu li { display: block; }

.main-navigation__menu .sub-menu a {
	display: block;
	padding: 9px 16px;
	border-radius: 8px;
	font-weight: 500;
	font-size: 15px;
	white-space: nowrap;
	color: var(--color-nav);
}

.main-navigation__menu .sub-menu a:hover { opacity: 1; background: rgba(0, 0, 0, 0.05); }

/* Mobile hamburger toggle */
.menu-toggle {
	display: none;
	grid-column: 3;
	justify-self: end;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 10px;
	background: none;
	border: 0;
	cursor: pointer;
}

.menu-toggle__bar {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--color-nav);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Site footer (4-column dark)
   ========================================================= */
.site-footer {
	background: var(--color-black);
	color: var(--color-white);
	border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.site-footer__inner {
	padding: 80px max(var(--gutter), calc((100% - var(--container)) / 2)) 32px;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 48px;
	padding-bottom: 57px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo { display: inline-block; margin: 0 0 1rem; }
.footer-logo__img { max-height: 32px; width: auto; }

.footer-brand {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 28px;
	letter-spacing: -0.56px;
	margin: 0 0 1rem;
	display: inline-flex;
	align-items: flex-end;
	gap: 4px;
}

.footer-brand__dot {
	width: 5px;
	height: 5px;
	border-radius: 2.5px;
	background: var(--color-accent);
	margin-bottom: 6px;
}

.footer-tagline {
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 14px;
	line-height: 22.4px;
	color: rgba(255, 255, 255, 0.55);
	margin: 0;
}

.footer-col__heading {
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 12px;
	letter-spacing: 0.96px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	margin: 0 0 4px;
}

.footer-col__heading + .footer-col__value,
.footer-col__heading + .footer-col__lines { margin-bottom: 16px; }

.footer-col__value {
	display: block;
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 16px;
	color: var(--color-white);
	text-decoration: none;
}

.footer-col__lines {
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 14px;
	line-height: 22.4px;
	color: var(--color-white);
}

.footer-col__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-col__menu a {
	display: block;
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 14px;
	line-height: 26.6px;
	color: var(--color-white);
	text-decoration: none;
}

.site-footer__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	padding-top: 32px;
}

.footer-copyright {
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.55);
	margin: 0;
}

.footer-legal {
	list-style: none;
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
}

.footer-legal a {
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
	.philosophie,
	.faqs { grid-template-columns: 1fr; gap: 40px; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
	:root { --gutter: 16px; }

	.hero,
	.contact__main { grid-template-columns: 1fr; }

	.contact__form .cf7-row { flex-direction: column; }

	.hero { min-height: 0; }
	.hero__content { margin-left: 0; max-width: none; padding: 48px var(--gutter); }
	.hero__media { border-left: 0; }
	.hero__image { height: auto; aspect-ratio: 4 / 3; }
	.hero__actions { flex-direction: column; align-items: flex-start; gap: 20px; }

	.hero__title,
	.philosophie__title,
	.faqs__title { font-size: 40px; line-height: 1.1; }
	.leistungen__title { font-size: 36px; line-height: 1.1; }

	.counters__number { font-size: 44px; line-height: 44px; }

	/* Counters: full-bleed 2-per-row grid, borders touch edges & neighbours */
	.counters { padding: 0; }
	.counters__list {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 0;
	}
	.counters__item { padding: 28px 12px; }
	.counters__item + .counters__item::before { display: none; }
	.counters__item:nth-child(odd) {
		border-left: 1px solid var(--color-line);
		border-right: 1px solid var(--color-line);
	}
	.counters__item:nth-child(even) { border-right: 1px solid var(--color-line); }
	.counters__item:nth-child(-n+2) { border-bottom: 1px solid var(--color-line); }

	.tabs__nav { grid-template-columns: repeat(2, 1fr); }
	.tabs__tab { padding: 30px 12px; }
	.tabs__num { top: 12px; left: 12px; }
	.tabs__tab:nth-child(2) { border-right: 0; }
	.tabs__tab:nth-child(-n+2) { border-bottom: 1px solid var(--color-card-line); }
	.tabs__panel { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
	.tabs__panel-head { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--color-card-line); padding-bottom: 24px; }
}

@media (max-width: 768px) {
	.menu-toggle { display: inline-flex; grid-column: 2; }
	.site-header__inner { grid-template-columns: 1fr auto; }
	.main-navigation {
		display: none;
		grid-column: 1 / -1;
		justify-self: stretch;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		width: 100%;
		background: var(--color-bg);
		border-bottom: 1px solid var(--color-line);
		padding: 0.5rem var(--gutter) 1.5rem;
		box-shadow: 0 16px 28px rgba(0, 0, 0, 0.12);
	}

	.main-navigation__menu { font-size: 18px; }
	.main-navigation.is-open { display: block; }
	.main-navigation__menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
		padding-top: 1rem;
	}

	/* Submenus stack inline (indented) instead of floating */
	.main-navigation__menu .menu-item-has-children::after { content: none; }
	.main-navigation__menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		min-width: 0;
		margin: 0.5rem 0 0;
		padding: 0 0 0 16px;
		border: 0;
		border-left: 1px solid var(--color-line);
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}

	.main-navigation__menu .sub-menu a { padding: 6px 0; border-radius: 0; }
}

@media (max-width: 600px) {
	.site-footer__grid { grid-template-columns: 1fr; gap: 32px; }

	/* Word slider: shorter band, slightly larger text */
	.text-slider__group { height: 104px; gap: 20px; padding-right: 20px; }
	.text-slider__item { font-size: 34px; gap: 20px; }

	/* Counters: tighter type so long labels fit the narrow cells */
	.counters__item { padding: 20px 8px; }
	.counters__number { font-size: 38px; line-height: 1.05; }
	.counters__label {
		font-size: 12px;
		line-height: 1.35;
		letter-spacing: 0.3px;
		overflow-wrap: anywhere;
	}
}
