/* KOPF Innenausbau – Haupt-Stylesheet
   Keine externen Schriften (DSGVO): Systemschriften. */

:root {
	--ink: #14212b;
	--ink-soft: #4a5866;
	--line: #d7dee5;
	--bg: #fbfcfd;
	--tint: #eaf1f7;
	--brand: #1f6db5;        /* KOPF-Blau, kontraststark für Text und Knöpfe */
	--brand-dark: #17558f;
	--brand-light: #439ffa;  /* Akzentblau der bisherigen Website */
	--deep: #0e2a3f;
	--deep-soft: #c5d3df;
	--white: #fff;
	--radius: 4px;
	--max: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--font-head: "Segoe UI Semibold", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.65;
}

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

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
	outline: 3px solid var(--brand-light);
	outline-offset: 2px;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 960px; }

.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; z-index: 1000; top: 8px; left: 8px;
	background: var(--white); padding: 10px 14px; border-radius: var(--radius);
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 46px; padding: 10px 20px; border-radius: var(--radius);
	font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.2;
	border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--brand); color: var(--white); }
.btn--primary:hover { background: var(--brand-dark); color: var(--white); }
.btn--outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn--outline:hover { background: var(--brand); color: var(--white); }
.btn--light { background: var(--white); color: var(--deep); }
.btn--light:hover { background: var(--tint); color: var(--deep); }
.btn--ghost { border-color: rgba(255, 255, 255, .6); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; }
.link-arrow::after { content: " →"; }

/* ---------- Topbar & Header ---------- */
.topbar { background: var(--tint); color: var(--ink-soft); font-size: .875rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar p { margin: 0; }
.topbar__contact { display: flex; gap: 20px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--brand); }

.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__logo { width: auto; height: 50px; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; letter-spacing: .02em; }
.brand__name span { font-weight: 400; color: var(--ink-soft); letter-spacing: 0; }

.main-nav { display: flex; align-items: center; gap: 20px; }
.main-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav .menu > li { position: relative; }
.main-nav .menu a {
	display: block; padding: 10px 10px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem;
}
.main-nav .menu a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a, .main-nav .current_page_item > a { color: var(--brand); }
.main-nav .sub-menu, .main-nav .children {
	list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 220px;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(14, 42, 63, .12);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu,
.main-nav li:hover > .children, .main-nav li:focus-within > .children { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a, .main-nav .children a { padding: 8px 16px; }
.submenu-toggle { display: none; }

.nav-toggle { display: none; }

@media (max-width: 1080px) {
	.topbar__note { display: none; }
	.topbar__inner { justify-content: flex-end; }
	.nav-toggle {
		display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
		background: transparent; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
	}
	.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
		display: block; width: 20px; height: 2px; background: var(--ink); position: relative; content: ""; transition: transform .2s;
	}
	.nav-toggle__bar::before { position: absolute; top: -6px; }
	.nav-toggle__bar::after { position: absolute; top: 6px; }
	.nav-open .nav-toggle__bar { background: transparent; }
	.nav-open .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
	.nav-open .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

	.main-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px;
		background: var(--bg); border-bottom: 1px solid var(--line); max-height: calc(100vh - 76px); overflow-y: auto;
	}
	.nav-open .main-nav { display: flex; }
	.main-nav .menu { flex-direction: column; }
	.main-nav .menu > li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
	.main-nav .menu > li > a { flex: 1; padding: 14px 0; }
	.main-nav .sub-menu, .main-nav .children {
		position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
		display: none; width: 100%; padding: 0 0 8px 12px; background: transparent;
	}
	.main-nav .is-open > .sub-menu, .main-nav .is-open > .children { display: block; }
	.submenu-toggle {
		display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
		background: transparent; border: 0; cursor: pointer;
	}
	.submenu-toggle::before { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s; }
	.is-open > .submenu-toggle::before { transform: rotate(-135deg); }
	.main-nav__cta { margin-top: 16px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0; }
.hero__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--brand); margin: 0 0 14px; }
.hero__title { font-size: clamp(2.3rem, 5.2vw, 3.6rem); line-height: 1.07; margin-bottom: 20px; }
.hero__lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); margin: 0 0 28px; max-width: 34em; }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius); }

.facts { margin: 32px 0 0; border-top: 2px solid var(--deep); }
.facts__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-soft); font-size: .92rem; }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.facts dd a { color: inherit; text-decoration: none; }
.facts--compact { margin-top: 20px; }

@media (max-width: 860px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__media { order: -1; }
	.hero__media img { aspect-ratio: 16 / 10; }
}

/* ---------- Abschnitte ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--tint { background: var(--tint); }
.section--page { padding-top: clamp(32px, 4vw, 48px); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section__title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 10px; }
.section__lead { color: var(--ink-soft); font-size: 1.15rem; margin: 0; max-width: 40em; }

/* Kacheln */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { display: flex; flex-direction: column; }
.card__media { display: block; overflow: hidden; border-radius: var(--radius); margin-bottom: 18px; }
.card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__title { font-size: 1.4rem; margin-bottom: 8px; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--brand); }
.card__text { color: var(--ink-soft); margin: 0 0 16px; flex: 1; }
.card__foot { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); text-align: right; font-size: .95rem; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* Zitat */
.quote { text-align: center; }
.quote__inner { max-width: 900px; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-family: var(--font-head); font-size: clamp(1.5rem, 3.2vw, 2.25rem); line-height: 1.3; font-weight: 600; margin: 0 0 18px; }
.quote blockquote p::before { content: "„"; color: var(--brand-light); }
.quote blockquote p::after { content: "“"; color: var(--brand-light); }
.quote__by { color: var(--ink-soft); margin: 0; }

/* Ablauf */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--deep); }
.step { padding: 24px 24px 8px 0; border-right: 1px solid var(--line); }
.step + .step { padding-left: 24px; }
.step:last-child { border-right: 0; }
.step__num {
	display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center;
	background: var(--brand); color: var(--white); border-radius: 50%; font-weight: 700; margin-bottom: 14px;
}
.step__title { font-size: 1.25rem; }
.step p { color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) {
	.steps { grid-template-columns: repeat(2, 1fr); }
	.step { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 16px 24px 0; }
	.step + .step { padding-left: 0; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Referenz-Liste */
.ref-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.ref-list__item { display: flex; flex-direction: column; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ref-list__name { font-weight: 600; }
.ref-list__scope { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 720px) { .ref-list { grid-template-columns: 1fr; } }

/* Dunkles Band */
.band { background: var(--deep); color: var(--deep-soft); }
.band__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.band__title { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.band p { margin: 0; max-width: 36em; }

/* Anfahrt */
.visit { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.visit__address { font-size: 1.25rem; margin: 0 0 24px; }
.visit__media { margin: 0; }
.visit__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 800px) { .visit { grid-template-columns: 1fr; } }

/* ---------- Unterseiten ---------- */
.page-head { background: var(--tint); padding: clamp(28px, 4vw, 48px) 0 clamp(24px, 3vw, 36px); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--ink-soft); margin-bottom: 12px; }
.breadcrumb a { color: inherit; }
.page-head__title { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0; }
.page-head__lead { font-size: 1.2rem; color: var(--ink-soft); margin: 12px 0 0; max-width: 44em; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.subnav a {
	padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white);
	text-decoration: none; color: var(--ink); font-size: .95rem;
}
.subnav a:hover { border-color: var(--brand); color: var(--brand); }
.subnav a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: var(--white); }

.entry__content > *:first-child { margin-top: 0; }
.entry__content h2 { font-size: 1.75rem; margin-top: 1.8em; }
.entry__content h3 { font-size: 1.35rem; margin-top: 1.6em; }
.entry__content h4 { font-size: 1.1rem; margin-top: 1.5em; }
.entry__content p, .entry__content ul, .entry__content ol { margin: 0 0 1.1em; }
.entry__content .lead { font-size: 1.15rem; color: var(--ink-soft); }
.entry__content .alignright { float: right; margin: 0 0 16px 24px; max-width: 45%; }
.entry__content .alignleft { float: left; margin: 0 24px 16px 0; max-width: 45%; }
.entry__content .aligncenter { margin-left: auto; margin-right: auto; }
.entry__content::after { content: ""; display: table; clear: both; }
.entry__content table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; }
.entry__content th, .entry__content td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry__content th { color: var(--brand); font-weight: 600; width: 45%; }
.entry__content td { color: var(--ink-soft); }
@media (max-width: 600px) {
	.entry__content .alignright, .entry__content .alignleft { float: none; max-width: 100%; margin: 0 0 16px; }
	.entry__content table, .entry__content tbody, .entry__content tr, .entry__content th, .entry__content td { display: block; width: 100%; }
	.entry__content th { border-bottom: 0; padding-bottom: 0; }
	.entry__content td { padding-top: 2px; }
}

.media-row { display: flex; gap: 32px; align-items: flex-start; margin: 0 0 1.5em; }
.media-row > div { flex: 1; }
.media-row figure { flex: 0 0 38%; margin: 0; }
.media-row img { border-radius: var(--radius); width: 100%; }
@media (max-width: 700px) { .media-row { flex-direction: column; } .media-row figure { flex-basis: auto; width: 100%; } }

/* Galerie */
.kopf-galerie {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 0 0 2em; padding: 0; list-style: none;
}
.kopf-galerie a { display: block; overflow: hidden; border-radius: var(--radius); background: var(--tint); }
.kopf-galerie img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .3s; }
.kopf-galerie a:hover img { transform: scale(1.05); }
.kopf-galerie--hoch img { aspect-ratio: 3 / 5; object-fit: contain; }

.downloads { list-style: none; margin: 0 0 1.5em; padding: 0; }
.downloads li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }

/* Leuchtkasten */
.lightbox {
	position: fixed; inset: 0; z-index: 200; background: rgba(8, 20, 30, .92);
	display: flex; align-items: center; justify-content: center; padding: 56px 16px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1100px, 100%); max-height: 100%; width: auto; border-radius: var(--radius); }
.lightbox button {
	position: absolute; background: rgba(255, 255, 255, .12); color: var(--white); border: 0; border-radius: 50%;
	width: 48px; height: 48px; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 5vw, 64px); }
.contact__info h2, .contact__form h2 { font-size: 1.5rem; }
.contact__info address { font-style: normal; font-size: 1.15rem; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.form__row { margin: 0 0 16px; }
.form label { display: block; font-weight: 600; margin-bottom: 6px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid #b9c4ce; border-radius: var(--radius);
	font: inherit; background: var(--white); color: var(--ink);
}
.form textarea { resize: vertical; }
.form__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form__cols { grid-template-columns: 1fr; } }
.form__check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 20px; }
.form__check input { margin-top: 6px; width: 18px; height: 18px; flex: 0 0 auto; }
.form__check label { font-weight: 400; font-size: .95rem; }
.form__hp { position: absolute; left: -9999px; }
.form__hint { color: var(--ink-soft); font-size: .9rem; }
.notice { padding: 14px 16px; border-radius: var(--radius); border-left: 4px solid; }
.notice--ok { background: #e7f5ec; border-color: #2e8b57; }
.notice--error { background: #fdecec; border-color: #c0392b; }

.link-list { columns: 2; padding-left: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--deep-soft); padding-top: clamp(48px, 6vw, 72px); font-size: .97rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.site-footer__name { color: var(--white); font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; margin: 0 0 10px; }
.site-footer__title { color: var(--white); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer__list { list-style: none; margin: 0; padding: 0; }
.site-footer__list li { margin-bottom: 8px; }
.site-footer__address { font-style: normal; line-height: 1.9; }
.site-footer__bottom {
	display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 18px; padding-bottom: 24px; font-size: .9rem;
}
.site-footer__bottom p { margin: 0; display: flex; gap: 20px; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

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