/* Design W18 „Gegliedert & einladend“ – Kopf „Weiche“ (docs/plan-vorlage-weiche.md). Keine externen Ressourcen. */
:root {
	--accent: #2f6f8f;
	--accent-2: #c8742f;
	--accent-3: #5f8a3a;
	--ink: #1b2430;
	--muted: #5b6673;
	--line: #e3e7ec;
	--bg: #ffffff;
	--bg-soft: #f4f6f8;
	--radius: 14px;
	--max: 1120px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
/* the two other tile colours follow the chosen accent (hue turned), where the browser can */
@supports (color: oklch(from red l c h)) {
	body {
		--accent-2: oklch(from var(--accent) clamp(.55, l, .68) clamp(.09, c, .16) calc(h + 170));
		--accent-3: oklch(from var(--accent) clamp(.5, l, .62) clamp(.08, c, .14) calc(h + 265));
	}
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section__title { margin-bottom: 1.2em; }
.section__title::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--accent); margin-top: 14px; }
.section__title--mitte { text-align: center; }
.section__title--mitte::after { margin-inline: auto; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: transform .15s, background .15s; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -10px var(--accent); }
.btn--primary:hover, .btn--hell:hover { transform: translateY(-1px); }
.btn--hell { background: #fff; color: var(--ink); }
.btn--rand { border: 1.5px solid rgba(255, 255, 255, .8); color: #fff; }
.btn--rand:hover { background: rgba(255, 255, 255, .14); }

/* top bar: the facts people look for first */
.topbar { list-style: none; margin: 0; padding: 8px 20px; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 28px; background: var(--ink); color: rgba(255, 255, 255, .92); font-size: .88rem; }
.topbar li { white-space: nowrap; }
.topbar:not(:has(li)) { display: none; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.2rem; }
.brand__logo { height: 44px; width: auto; }
.brand__logo[src=""], .brand__logo:not([src]) { display: none; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--accent); }
.nav__cta { background: var(--accent); color: #fff !important; padding: 9px 16px; border-radius: 999px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2px; width: 24px; background: var(--ink); margin: 0 auto; }

/* head "Weiche": light photo, title, three ways in */
.kopf { position: relative; overflow: hidden; color: #fff; background: #6b7a86; }
.kopf__bild { position: absolute; inset: 0; animation: kopfZoom 1.8s ease-out both; }
.kopf__bild img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.kopf__bild img[src=""], .kopf__bild img:not([src]) { display: none; }
.kopf__bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 28, 38, .10) 0%, rgba(20, 28, 38, .28) 45%, rgba(20, 28, 38, .42) 100%); }
@keyframes kopfZoom { from { transform: scale(1.05); } to { transform: none; } }
.kopf__inner { position: relative; padding: clamp(56px, 9vw, 110px) 0 44px; text-align: center; }
.kopf h1, .kopf__lead, .kopf__eyebrow { text-shadow: 0 1px 14px rgba(10, 20, 30, .45); }
.kopf__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.kopf__eyebrow i { width: 28px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3)); }
.kopf h1 { margin: 14px auto 12px; max-width: 16em; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.12; }
.kopf__lead { margin: 0 auto; max-width: 40em; font-size: clamp(1rem, 1.6vw, 1.15rem); white-space: pre-line; }

.wege { list-style: none; margin: 40px auto 26px; padding: 0; max-width: 900px; display: flex; justify-content: center; gap: 18px; }
.weg { flex: 0 1 calc((100% - 36px) / 3); animation: wegIn .8s ease-out both; }
.weg:nth-child(1) { animation-delay: .45s; }
.weg:nth-child(2) { animation-delay: .6s; }
.weg:nth-child(3) { animation-delay: .75s; }
@keyframes wegIn { from { opacity: 0; transform: translateY(18px); } }
.weg a { height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 14px 18px; border-radius: var(--radius); background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .32); color: #fff; text-decoration: none; transition: background .2s, transform .2s; }
.weg a:hover, .weg a:focus-visible { background: rgba(255, 255, 255, .24); transform: translateY(-3px); }
.weg__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: var(--accent); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .6); }
.weg:nth-child(2) .weg__icon { background: var(--accent-2); }
.weg:nth-child(3) .weg__icon { background: var(--accent-3); }
.weg strong { font-size: 1.08rem; text-shadow: 0 1px 8px rgba(10, 20, 30, .4); }
.weg small { font-size: .88rem; opacity: .9; }
.weg small:empty { display: none; }
.kopf__knoepfe { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* benefits bar */
.vorteile { list-style: none; margin: 0; padding: 16px 20px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 34px; background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: .95rem; }
.vorteile li { display: flex; align-items: center; gap: 8px; }
.vorteile li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.vorteile:not(:has(li)) { display: none; }

/* areas: the tiles jump here */
.bereiche__intro { max-width: 46em; margin: -.6em auto 2.4em; text-align: center; color: var(--muted); }
.bereiche__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(36px, 6vw, 72px); }
.bereich { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; scroll-margin-top: 90px; }
.bereich:nth-child(even) img { order: 2; }
.bereich img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.bereich img[src=""], .bereich img:not([src]) { display: none; }
.bereich__marke { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; margin-bottom: 12px; color: #fff; font-size: 22px; background: var(--accent); }
.bereich:nth-child(2) .bereich__marke { background: var(--accent-2); }
.bereich:nth-child(3) .bereich__marke { background: var(--accent-3); }
.bereich h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.bereich p { color: var(--muted); white-space: pre-line; }

/* more services */
.mehr { margin-top: clamp(48px, 7vw, 80px); }
.mehr__titel { text-align: center; margin-bottom: 1.2em; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); font-size: 22px; margin-bottom: 12px; }
.card p { color: var(--muted); margin: 0; }

/* about */
.about { background: var(--bg-soft); }
.about__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about__media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.about__text p { white-space: pre-line; }

/* hours */
.zeiten__inner { max-width: 640px; }
.zeiten__tabelle { display: grid; grid-template-columns: 1fr auto; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.zeiten__tabelle dt, .zeiten__tabelle dd { margin: 0; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.zeiten__tabelle dt:nth-last-of-type(1), .zeiten__tabelle dd:last-child { border-bottom: 0; }
.zeiten__tabelle dt { font-weight: 600; }
.zeiten__tabelle dd { text-align: right; color: var(--muted); }
.zeiten__tabelle .is-heute { background: color-mix(in srgb, var(--accent) 10%, #fff); color: var(--ink); }

/* questions */
.faq { background: var(--bg-soft); }
.faq__inner { max-width: 820px; }
.faq__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 6px; white-space: pre-line; }

/* contact */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.contact__list li { display: flex; gap: 12px; align-items: flex-start; }
.contact__list i { color: var(--accent); font-size: 20px; margin-top: 2px; }
.contact__list a { color: var(--ink); text-decoration: none; }
.contact__list span { white-space: pre-line; }
.maplink { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-height: 220px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-soft); text-decoration: none; color: var(--ink); transition: box-shadow .2s; }
.maplink:hover { box-shadow: 0 18px 40px -24px rgba(27, 36, 48, .35); }
.maplink i { font-size: 34px; color: var(--accent); }
.maplink__addr { font-size: 1.1rem; font-weight: 600; }
.maplink__cta { color: var(--accent); font-weight: 600; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .95rem; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer__copy { margin: 0; }
.site-footer__links { display: flex; gap: 20px; }
.site-footer__links a { color: var(--muted); text-decoration: none; }
.site-footer__links a:hover { color: var(--accent); }
.site-footer__links a[href=""], .site-footer__links a[href="#"] { display: none; }

/* legal page (impressum.html) */
.legal { padding: 48px 0 80px; }
.legal__inner { max-width: 760px; }
.legal h1 { font-size: 2rem; margin-top: 1.4em; }
.legal h2 { font-size: 1.2rem; margin-top: 1.4em; }
.nav--static a { color: var(--muted); text-decoration: none; }

/* responsive */
@media (max-width: 860px) {
	.about__inner, .contact__inner, .bereich { grid-template-columns: 1fr; }
	.bereich:nth-child(even) img { order: 0; }
	.about__media { order: -1; }
	.nav-toggle { display: flex; }
	.nav { position: absolute; left: 0; right: 0; top: 70px; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); display: none; }
	.nav.is-open { display: flex; }
	.nav a { padding: 14px 20px; border-top: 1px solid var(--line); }
	.nav__cta { border-radius: 0; }
}
@media (max-width: 680px) {
	.wege { flex-direction: column; gap: 10px; max-width: 420px; }
	.weg a { flex-direction: row; gap: 14px; padding: 12px 14px; text-align: left; }
	.weg__icon { width: 46px; height: 46px; font-size: 22px; flex: none; }
	.weg small { display: none; }
	.topbar li:nth-child(n+3) { display: none; }
	.kopf__eyebrow i { display: none; }
}
@media (max-width: 480px) {
	body { font-size: 16px; }
	.btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.kopf__bild, .weg { animation: none; opacity: 1; transform: none; }
}
