/*
Theme Name: KoSch Bayern
Description: Persönliche Website Korbinian Schrödel (kosch.bayern). Schrift lokal (Instrument Sans – SIL OFL), keine externen Ressourcen.
Author: KoSch Holding GmbH
Version: 1.1.0
Requires PHP: 8.1
Text Domain: kosch-bayern
*/

@font-face { font-family: "Instrument Sans"; src: url("assets/fonts/instrument-sans-var.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("assets/fonts/instrument-sans-italic-var.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-style: italic; font-display: swap; }

/* Farben aus dem KoSch-Design (oh-design kosch.css): Blau #194D85, Orange #F5A623 */
:root {
	--k-blue-950: #08213D; --k-blue-900: #0B2B4F; --k-blue-700: #194D85; --k-blue-600: #2463A6;
	--k-blue-100: #E8EEF6; --k-blue-50: #F3F7FC;
	--k-orange-500: #F5A623; --k-orange-400: #F7B847; --k-orange-700: #A86400; --k-orange-50: #FFF8EA;
	--bg: #FFFFFF; --bg-soft: var(--k-blue-50); --card: #FFFFFF; --text: #13263D; --muted: #4A5D75;
	--heading: var(--k-blue-700); --link: var(--k-blue-700); --accent: var(--k-orange-500);
	--accent-text: var(--k-orange-700); --line: #D9E2EE; --shadow: 0 8px 30px rgba(11, 43, 79, .07);
	--radius: 16px; --maxw: 1120px;
	--serif: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: var(--k-blue-950); --bg-soft: #0A2645; --card: var(--k-blue-900); --text: #E9EFF7; --muted: #B7C6DA;
		--heading: #FFFFFF; --link: #9FC2EC; --accent: var(--k-orange-400); --accent-text: var(--k-orange-400);
		--line: #1F3D62; --shadow: 0 8px 30px rgba(0, 0, 0, .25);
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); color: var(--heading); line-height: 1.2; font-weight: 600; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .6em; }
h3 { font-size: 1.25rem; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 16px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 760px; }

/* Kopf */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; color: var(--heading); letter-spacing: -.005em; }
.wordmark::after { content: ""; display: block; width: 36px; height: 3px; border-radius: 2px; background: var(--accent); margin-top: 6px; }
.nav-list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav-list a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 500; font-size: .975rem; }
.nav-list a:hover { background: var(--bg-soft); color: var(--heading); }
.nav-list a[aria-current="page"] { background: var(--k-blue-700); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--text); }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 20px; height: 2px; background: currentColor; margin: 0 auto; position: relative; border-radius: 2px; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; } .nav-toggle .bars::after { top: 6px; }
@media (max-width: 760px) {
	.wordmark { font-size: 1.25rem; }
	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
	.main-nav.open { display: block; }
	.nav-list { flex-direction: column; }
	.nav-list a { padding: 12px 14px; border-radius: 12px; }
}

/* Seitenkopf */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 56px 0 40px; }
.page-head h1 { margin-bottom: .25em; }
.page-head h1::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--accent); margin-top: 18px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46rem; margin: 0; }
.content > section { padding: 48px 0; }
.content > section + section { border-top: 1px solid var(--line); }

/* Start */
.hero { background: linear-gradient(160deg, var(--bg-soft) 0%, var(--bg) 70%); padding: 72px 0 56px !important; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.4fr 1fr; } }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); font-weight: 600; margin-bottom: 12px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); }
.hero .lead { font-size: 1.25rem; }
.hero-mark { justify-self: center; width: min(280px, 70%); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: var(--k-blue-700); color: #fff; text-decoration: none; font-weight: 600; }
.btn:hover { background: var(--k-blue-600); color: #fff; }
.btn.ghost { background: transparent; color: var(--heading); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--heading); }

/* Karten */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card .role { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); font-weight: 600; margin-bottom: 8px; }
.card h3 { margin-bottom: .5em; }
.card p { color: var(--muted); font-size: 1rem; }
.card .meta { font-size: .875rem; color: var(--muted); margin-top: auto; padding-top: 8px; }
.card a.more { font-weight: 600; text-decoration: none; }
.card a.more::after { content: " →"; }
.card.past { background: var(--bg-soft); box-shadow: none; }

/* Werdegang */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 3px solid var(--line); }
.timeline li { position: relative; padding: 0 0 32px 8px; }
.timeline li::before { content: ""; position: absolute; left: -38px; top: 6px; width: 16px; height: 16px; background: var(--k-blue-700); transform: rotate(45deg); border: 3px solid var(--bg); }
.timeline .zeit { display: block; font-size: .85rem; font-weight: 600; color: var(--accent-text); letter-spacing: .04em; }
.timeline h3 { margin: 4px 0 4px; }
.timeline p { color: var(--muted); margin: 0; }
.platzhalter { display: block; margin-top: 8px; padding: 10px 14px; border: 2px dashed var(--k-orange-500); border-radius: 10px; background: var(--k-orange-50); color: #5C3600; font-size: .95rem; }
@media (prefers-color-scheme: dark) { .platzhalter { background: #2A2108; color: #FAD08A; } }

/* Kontakt + Rechtliches */
.contact-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-box .mail { font-family: var(--serif); font-size: clamp(1.35rem, 4vw, 1.8rem); font-weight: 600; text-decoration: none; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal h2:first-child { margin-top: 0; }
.legal dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 24px; margin: 0 0 1em; }
@media (min-width: 640px) { .legal dl { grid-template-columns: 220px minmax(0, 1fr); } }
.legal dt { font-weight: 600; } .legal dd { margin: 0 0 8px; }
.legal ul { padding-left: 1.2em; }

/* Fuß */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 32px 0; margin-top: 0; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: flex-start; }
.footer-inner nav { display: flex; gap: 20px; }
.fine { width: 100%; color: var(--muted); font-size: .85rem; margin: 8px 0 0; }

/* Schutzzeichen © / ® hochgestellt, ohne den Zeilenabstand zu verändern */
sup.kb-mark { font-size: .58em; line-height: 0; vertical-align: baseline; position: relative; top: -.62em; margin-left: .06em; font-weight: 500; }

/* 14.11.2026 Logofamilie 2026-11: Logo statt Schriftzug im Kopf */
.brand-logo { display: block; line-height: 0; }
.header-inner { padding-top: 12px; padding-bottom: 12px; }
.brand { align-self: center; }
.brand-logo img { display: block; height: 68px; width: auto; max-width: min(46vw, 380px); object-fit: contain; }
/* Handy: Zusatzzeile „Geschäftsführer · Gesellschafter · Projektleiter“ ca. 9 px – Logo nimmt die volle Breite neben dem Menüknopf */
@media (max-width: 640px) {
	.header-inner { gap: 8px; min-height: 76px; }
	.brand { flex: 1 1 auto; min-width: 0; }
	.brand-logo img { height: auto; width: 100%; max-width: 330px; max-height: 66px; }
	.nav-toggle { flex: 0 0 auto; }
}

/* ===== 14.11.2026: Startseite mit Foto, Personenlogo, Unternehmen, Kontakt ===== */
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; } }
.portrait { margin: 0; justify-self: center; width: min(100%, 380px); padding: 5px; border-radius: 26px;
	background: linear-gradient(135deg, var(--k-orange-500) 0%, var(--k-orange-500) 30%, var(--k-blue-700) 75%, var(--k-blue-700) 100%);
	box-shadow: var(--shadow); }
.portrait picture, .portrait img { display: block; width: 100%; height: auto; border-radius: 21px; }
@media (max-width: 899px) { .portrait { width: min(86vw, 360px); } }
.ueber-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .ueber-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; } }
.person-logo { display: flex; justify-content: center; }
.person-logo img { display: block; width: min(100%, 420px); height: auto; }
.firmen { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); grid-auto-rows: 1fr; align-items: stretch; }
.firma { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 12px 24px; box-shadow: var(--shadow);
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
/* Gemeinsamer Maßstab: 0,48 px je SVG-Einheit (Slogan ≈ 12 px); schmaler nur, wenn die breiteste Fassung (800) nicht passt */
.firma { --k: min(0.48px, calc((100vw - 64px) / 800)); }
.firma-logo { display: block; }
.firma-logo img { display: block; width: calc(var(--lw) * var(--k)); height: auto; max-width: none; }
.firma-rolle { margin: 0; font-weight: 600; color: var(--heading); }
.firma-link { margin-top: auto; }
.firmen-breit { max-width: 1360px; }
@media (max-width: 640px) { .firmen-breit { padding: 0 12px; } .firma { padding: 22px 6px 20px; --k: min(0.48px, calc((100vw - 40px) / 800)); } }
.kontakt-liste { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.kontakt-liste li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.kontakt-liste .k-label { min-width: 4.5rem; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); font-weight: 600; }
.kontakt-liste a { font-size: 1.2rem; font-weight: 600; text-decoration: none; }
.btn .sr { position: absolute; }
