/* ==========================================================================
   Handy – handy.css
   The accent colour (#6edff9) is used ONLY for buttons and separators.
   ========================================================================== */

:root {
	--hd-accent: #6edff9;
	--hd-on-accent: #1D232A;
	--hd-dark: #1D232A;
	--hd-light: #F5F6F8;
	--hd-white: #FFFFFF;
	--hd-muted: #5b6570;
	--hd-line: #e3e7eb;
	--hd-bar: #18191b;
	--hd-radius: 8px;
	--hd-wrap: 1200px;
	--hd-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--hd-font);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	color: var(--hd-dark);
	background: var(--hd-white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--hd-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

p { margin: 0 0 1.5em; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 20px; }

.prose h1 { font-size: 42px; }
.prose h2 { font-size: 35px; }
.prose h3 { font-size: 29px; }
.prose h4 { font-size: 24px; }
.prose ul, .prose ol { margin: 0 auto 1.5em; padding-left: 2em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li > ul, .prose li > ol { margin: .5em 0 0; }

.wrap { width: 100%; max-width: var(--hd-wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 860px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	top: 8px; left: 8px; z-index: 100000;
	padding: 12px 18px; background: #fff; color: #000;
}

/* ---------- Buttons (accent) ---------- */
.wp-block-button__link,
.wp-element-button,
.button,
button.button,
input[type="submit"] {
	display: inline-block;
	background: var(--hd-accent);
	color: var(--hd-on-accent);
	border: 0;
	border-radius: var(--hd-radius);
	padding: 12px 28px;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: filter .2s ease, transform .2s ease;
}
.wp-block-button__link:hover,
.wp-element-button:hover,
.button:hover,
input[type="submit"]:hover {
	background: var(--hd-accent);
	color: var(--hd-on-accent);
	filter: brightness(.93);
	transform: translateY(-1px);
}

/* ---------- Top bar (header laid over the hero) ---------- */
.top-bar {
	position: absolute;
	top: 0; left: 0; right: 0;
	z-index: 50;
	padding: 28px 20px;
	transition: background-color .25s ease, padding .25s ease, box-shadow .25s ease;
}
.top-bar__inner.wrap { max-width: none; padding: 0; }
.top-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand img, .custom-logo { max-height: 40px; width: auto; }
.brand__name { color: var(--hd-white); font-size: 1.6rem; font-weight: 800; text-decoration: none; }
.brand__name:hover { text-decoration: none; }

.main-menu .menu { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.main-menu a {
	display: block;
	padding: 10px 14px;
	color: var(--hd-white);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: .03em;
	text-transform: uppercase;
	text-decoration: none;
}
.main-menu a:hover,
.main-menu .current-menu-item > a { text-decoration: underline; text-underline-offset: 6px; }
.main-menu .menu-item { position: relative; }
.main-menu .menu > li + li::before {
	content: "";
	position: absolute; left: 0; top: 50%;
	width: 1px; height: 16px;
	background: rgba(255, 255, 255, .45);
	transform: translateY(-50%);
}
.main-menu .sub-menu {
	display: none;
	position: absolute; top: 100%; left: 0;
	width: 220px; margin: 0; padding: 8px;
	list-style: none;
	background: var(--hd-dark);
	border-radius: var(--hd-radius);
	box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}
.main-menu .menu-item:hover > .sub-menu,
.main-menu .menu-item:focus-within > .sub-menu { display: block; }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger__line {
	display: block;
	width: 26px; height: 3px; margin: 5px 0;
	background: var(--hd-white);
	border-radius: 2px;
	transition: transform .25s ease, opacity .25s ease;
}

.top-bar.is-scrolled {
	position: fixed;
	background: var(--hd-dark);
	padding: 14px 20px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
}

/* ---------- Stage (hero) ---------- */
.stage {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 100vh;
	min-height: 100svh;
	overflow: hidden;
	background-color: var(--hd-dark);
	color: var(--hd-white);
	border-bottom: 3px solid var(--hd-accent); /* separator */
}
.stage::before {
	content: "";
	position: absolute; inset: 0;
	z-index: 0;
	background-image: var(--stage-bg, none);
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	opacity: .25;
	pointer-events: none;
}
.stage__body { position: relative; z-index: 1; padding-top: 140px; padding-bottom: 90px; text-align: center; }
.stage__body > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.stage__body h1 {
	font-size: clamp(2.2rem, 5vw, 4rem);
	font-weight: 800;
	color: var(--hd-white);
	margin-bottom: .35em;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.stage__body h2 {
	font-size: clamp(1.15rem, 2.2vw, 1.6rem);
	font-weight: 500;
	color: rgba(255, 255, 255, .92);
	margin-bottom: 1.4em;
}
.stage__body p { color: rgba(255, 255, 255, .92); }
.stage__body .wp-block-buttons { margin-top: 8px; justify-content: center; }

.stage--inner { min-height: 340px; }
.stage--inner .stage__body { padding-top: 150px; padding-bottom: 60px; }
.stage--inner .stage__body h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 auto; }

/* ---------- Bands (sections) ---------- */
.band { padding: 80px 0; }
.band__title { text-align: center; font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 10px; }
.band--angebot { background: var(--hd-white); }
.band--ablauf { background: var(--hd-light); }
.band--aktuell { background: var(--hd-light); padding-bottom: 110px; }

.band__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; margin-bottom: 40px; }
.band__more { font-weight: 700; font-size: .95rem; padding-bottom: 16px; }
.band--aktuell .band__title { position: relative; text-align: left; margin-bottom: 0; padding-bottom: 16px; }
.band--aktuell .band__title::after { /* separator under the title */
	content: "";
	position: absolute; left: 0; bottom: 0;
	width: 60px; height: 3px;
	background: var(--hd-accent);
}

/* Gutenberg content of angebot / ablauf */
:where(.band--angebot, .band--ablauf) h2 { text-align: center; font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 10px; }
.band--angebot .wp-block-columns,
.band--ablauf .wp-block-columns { gap: 36px; margin-bottom: 0; margin-top: 40px; }
.band--angebot .wp-block-column,
.band--ablauf .wp-block-column {
	padding: 32px 28px;
	border-top: 3px solid var(--hd-accent); /* separator */
	transition: transform .2s ease, box-shadow .2s ease;
}
.band--angebot .wp-block-column:hover,
.band--ablauf .wp-block-column:hover { transform: translateY(-4px); }
.band--angebot .wp-block-column { background: var(--hd-light); }
.band--angebot .wp-block-column:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, .10); }
.band--ablauf .wp-block-column { background: var(--hd-white); box-shadow: 0 4px 18px rgba(0, 0, 0, .08); }
.band--ablauf .wp-block-column:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, .13); }
.band--angebot .wp-block-column h3,
.band--ablauf .wp-block-column h3 { font-size: 22px; margin-bottom: 12px; }
.band--angebot .wp-block-column p,
.band--ablauf .wp-block-column p { color: var(--hd-muted); }
.band--angebot .wp-block-column > :last-child,
.band--ablauf .wp-block-column > :last-child { margin-bottom: 0; }
.band--angebot .wp-block-image img,
.band--ablauf .wp-block-image img { border-radius: var(--hd-radius); }

/* Highlight band: full-width background image at 25 % opacity */
.band--highlight {
	position: relative;
	overflow: hidden;
	padding: 100px 40px;
	background-color: var(--hd-dark);
	color: var(--hd-white);
}
.band--highlight::before {
	content: "";
	position: absolute; inset: 0;
	z-index: 0;
	background-image: var(--band-bg, none);
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	opacity: .25;
	pointer-events: none;
}
.band--highlight > .wrap { position: relative; z-index: 1; padding-left: 0; padding-right: 0; }
.band--highlight h2 { text-align: center; color: var(--hd-white); font-size: clamp(1.7rem, 3vw, 2.4rem); }
.band--highlight p { color: rgba(255, 255, 255, .92); }
.band--highlight .wp-block-buttons { justify-content: center; }

/* ---------- FAQ ---------- */
.band--fragen { background: var(--hd-white); }
.fragen { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: start; }
.fragen__intro { position: sticky; top: 110px; }
.fragen__title { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 18px; }
.fragen__line { width: 60px; height: 3px; margin: 0 0 18px; border: 0; background: var(--hd-accent); } /* separator */
.fragen__text { color: var(--hd-muted); margin: 0 0 24px; }
.fragen__list { counter-reset: frage; border-bottom: 1px solid var(--hd-line); }
.frage { counter-increment: frage; border-top: 1px solid var(--hd-line); }
.frage__titel { display: flex; align-items: center; gap: 18px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 1.1rem; font-weight: 600; }
.frage__titel::-webkit-details-marker { display: none; }
.frage__titel::before { content: counter(frage, decimal-leading-zero); flex: none; font-size: .85rem; font-weight: 700; letter-spacing: .08em; color: var(--hd-muted); }
.frage__titel span { flex: 1; }
.frage__titel::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .25s ease; }
.frage[open] .frage__titel::after { transform: rotate(-135deg); }
.frage__titel:hover { color: var(--hd-muted); }
.frage__antwort { padding: 0 0 24px 46px; color: var(--hd-muted); }
.frage__antwort p { margin-bottom: .8em; }
.frage__antwort > :last-child { margin-bottom: 0; }
.fragen__alle { margin: 28px 0 0; }
@media (max-width: 820px) {
	.fragen { grid-template-columns: 1fr; gap: 30px; }
	.fragen__intro { position: static; }
}

/* ---------- Tiles (posts) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tile { display: flex; flex-direction: column; background: var(--hd-white); border-radius: var(--hd-radius); overflow: hidden; box-shadow: 0 4px 18px rgba(0, 0, 0, .08); transition: transform .2s ease, box-shadow .2s ease; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0, 0, 0, .13); }
.tile__image { display: block; aspect-ratio: 16 / 10; background: var(--hd-light); overflow: hidden; }
.tile__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile:hover .tile__image img { transform: scale(1.05); }
.tile__placeholder { display: block; width: 100%; height: 100%; background: var(--hd-light); }
.tile__body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.tile__date { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--hd-muted); margin-bottom: 8px; }
.tile__title { font-size: 1.25rem; line-height: 1.3; margin-bottom: .6em; }
.tile__title a { text-decoration: none; }
.tile__title a:hover { text-decoration: underline; }
.tile__excerpt { color: var(--hd-muted); margin: 0 0 16px; }
.tile__more { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hd-line); font-size: .9rem; font-weight: 700; text-decoration: none; }
.tile__more:hover { text-decoration: underline; }

/* ---------- Pages and posts ---------- */
.page-body { padding: 60px 0; }
.prose > * { max-width: 820px; margin-left: auto; margin-right: auto; }
.prose > .alignwide { max-width: var(--hd-wrap); }
.prose > .alignfull { max-width: none; }
.page-thumb { max-width: 820px; margin: 0 auto 12px; }
.page-thumb img { width: 100%; height: auto; border-radius: var(--hd-radius); }
.page-meta { max-width: 820px; margin: 0 auto 28px; color: var(--hd-muted); font-size: .9rem; }
.page-meta > span + span::before { content: "|"; margin: 0 8px; opacity: .5; }

.pager { margin-top: 40px; text-align: center; }
.pager .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 3px; border-radius: var(--hd-radius); background: var(--hd-light); text-decoration: none; }
.pager .current { background: var(--hd-accent); color: var(--hd-on-accent); font-weight: 700; }

/* ---------- Comments ---------- */
.comments { padding: 0 0 70px; }
.comments__list { list-style: none; padding: 0; }
.comments__list .children { list-style: none; padding-left: 1.5rem; }
.comments__list .comment-body { padding: 1.25rem 0; border-bottom: 1px solid var(--hd-line); }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea,
.search-field { width: 100%; padding: 12px 15px; font: inherit; border: 1px solid #cfd4da; border-radius: var(--hd-radius); }

/* ---------- Contact form ---------- */
.kontakt-form { max-width: 820px; margin: 0 auto; }
.kontakt-form p { margin: 0 0 20px; }
.kontakt-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.kontakt-form label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 15px; }
.kontakt-form input[type="text"], .kontakt-form input[type="email"], .kontakt-form textarea {
	width: 100%; padding: 12px 15px; font: inherit; font-size: 16px;
	color: var(--hd-dark); background: var(--hd-white);
	border: 1px solid #cfd4da; border-radius: var(--hd-radius);
}
.kontakt-form input:focus, .kontakt-form textarea:focus { outline: 2px solid var(--hd-dark); outline-offset: 1px; }
.kontakt-form__check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.kontakt-form__check input { margin-top: 6px; }
.kontakt-form__hp { position: absolute; left: -9999px; }
.kontakt-hinweis { max-width: 820px; margin: 0 auto 28px; padding: 14px 18px; border-left: 4px solid; font-weight: 500; }
.kontakt-hinweis--success { background: #e7f6ec; border-color: #2e9b57; color: #1d6b3b; }
.kontakt-hinweis--error { background: #fdecef; border-color: #c0392b; color: #8f1d12; }
.kontakt-intro { margin: 0 auto 36px; }

/* ---------- Footer: copyright only ---------- */
.page-end {
	background: var(--hd-bar);
	border-top: 3px solid var(--hd-accent); /* separator */
	padding: 22px 0;
	font-size: .85rem;
	line-height: 1.5;
	text-align: center;
	color: rgba(255, 255, 255, .65);
}
.page-end a { color: rgba(255, 255, 255, .8); }
.page-end__copy p { margin: 0; }
.page-end__menu .menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; margin: 10px 0 0; padding: 0; list-style: none; }

/* ---------- Breadcrumbs (in inner hero) ---------- */
.crumbs { margin-bottom: 14px; font-size: 13px; }
.crumbs ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; margin: 0; padding: 0; list-style: none; color: rgba(255, 255, 255, .7); }
.crumbs li + li::before { content: "/"; margin: 0 10px; opacity: .5; }
.crumbs a { color: rgba(255, 255, 255, .85); }

/* ---------- Separator block: width classes (Advanced > CSS class) ---------- */
.wp-block-separator {
	border: 0 !important; height: 3px !important;
	background-color: var(--hd-accent) !important;
	width: 30% !important;               /* default width: 30 % */
	margin-left: auto !important; margin-right: auto !important;
	opacity: 1 !important;
}
.wp-block-separator.linie-25 { width: 25% !important; }
.wp-block-separator.linie-50 { width: 50% !important; }
.wp-block-separator.linie-75 { width: 75% !important; }

/* ---------- Back to top (button style) ---------- */
.to-top {
	position: fixed; right: 22px; bottom: 22px; z-index: 90;
	display: flex; align-items: center; justify-content: center;
	width: 48px; height: 48px;
	background: var(--hd-accent); color: var(--hd-on-accent);
	border: 0; border-radius: 50%;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
	cursor: pointer;
	opacity: 0; visibility: hidden; transform: translateY(12px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
	.burger { display: block; position: relative; z-index: 60; }
	.main-menu {
		position: fixed; inset: 0 0 0 auto;
		width: min(320px, 85vw);
		padding: 90px 24px 24px;
		background: var(--hd-dark);
		transform: translateX(100%);
		transition: transform .3s ease;
		overflow-y: auto;
		z-index: 55;
	}
	.main-menu.is-open { transform: none; }
	.main-menu .menu { flex-direction: column; align-items: stretch; }
	.main-menu a { padding: 14px 8px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
	.main-menu .menu > li + li::before { display: none; }
	.main-menu .sub-menu { display: block; position: static; background: none; box-shadow: none; padding: 0 0 0 14px; width: auto; }
	.burger[aria-expanded="true"] .burger__line:nth-child(2) { transform: translateY(8px) rotate(45deg); }
	.burger[aria-expanded="true"] .burger__line:nth-child(3) { opacity: 0; }
	.burger[aria-expanded="true"] .burger__line:nth-child(4) { transform: translateY(-8px) rotate(-45deg); }
	.band { padding: 56px 0; }
	.band--highlight { padding: 64px 24px; }
	.stage__body { padding-bottom: 60px; }
}
@media (max-width: 600px) {
	.tiles { grid-template-columns: 1fr; }
	.kontakt-form__row { grid-template-columns: 1fr; }
}

/* ---------- Ablauf: automatic step numbers 1, 2, 3 above each column ----------
   Just add a Heading (H3) and a Paragraph in each column; the number is generated by CSS. */
.band--ablauf .wp-block-columns { counter-reset: schritt; }
.band--ablauf .wp-block-column { counter-increment: schritt; text-align: center; border-top: 0; padding-top: 28px; }
.band--ablauf .wp-block-column::before {
	content: counter(schritt);
	display: flex; align-items: center; justify-content: center;
	width: 64px; height: 64px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: var(--hd-dark);
	color: var(--hd-white);
	font-size: 28px; font-weight: 800; line-height: 1;
}
.band--ablauf .wp-block-column::after { order: -1; }
