/* KFZ Friede – Stylesheet */
:root {
  --navy: #1a2744;
  --navy-deep: #111b33;
  --navy-soft: #243459;
  --red: #d62b2b;
  --red-dark: #b32020;
  --ink: #1c2230;
  --muted: #5a6478;
  --line: #e2e6ee;
  --bg: #ffffff;
  --bg-alt: #f3f5f9;
  --on-navy: #c3cde2;
  --radius: 10px;
  --radius-sm: 6px;
  --max: 1180px;
  --head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.1; margin: 0 0 .5em; color: var(--navy); letter-spacing: .2px; }
h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 700; }
h3 { font-size: 24px; font-weight: 700; }
p { margin: 0 0 1em; }
.accent { color: var(--red); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -.2em; }

/* ---------- Topbar & Navigation ---------- */
.topbar { background: var(--navy-deep); color: var(--on-navy); font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-info { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.site-header { background: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); box-shadow: 0 2px 14px rgba(17,27,51,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 84px; }
.logo { display: block; text-decoration: none; line-height: 0; flex-shrink: 0; }
.logo img { height: 62px; width: auto; }
.nav { display: flex; align-items: center; gap: .1rem; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 11px; border-radius: var(--radius-sm); }
.nav a:hover { color: var(--red); background: var(--bg-alt); }
.nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.nav .btn-call { margin-left: .6rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--navy); border-radius: var(--radius-sm); padding: 8px 10px; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; display: block; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--body); font-weight: 600; font-size: 16px; padding: 12px 22px; border-radius: var(--radius-sm); text-decoration: none; border: 1px solid transparent; transition: background .15s, border-color .15s; white-space: nowrap; }
.btn-red { background: var(--red); color: #fff !important; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); }
.btn-call { background: var(--red); color: #fff !important; padding: 9px 16px; font-size: 15px; }
.btn-call:hover { background: var(--red-dark) !important; color: #fff !important; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--navy); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .slides { position: absolute; inset: 0; }
.hero .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.2s ease, transform 0s linear 1.2s; }
.hero .slide.is-active { opacity: 1; transform: scale(1); transition: opacity 1.2s ease, transform 6s ease-out; }
.slider-ctrl { position: absolute; z-index: 2; right: max(20px, calc((100% - var(--max)) / 2 + 20px)); bottom: 22px; display: flex; align-items: center; gap: 10px; }
.slider-ctrl > button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); background: rgba(17,27,51,.35); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; transition: background .15s, border-color .15s; }
.slider-ctrl > button:hover { background: var(--red); border-color: var(--red); }
.slider-ctrl svg { width: 20px; height: 20px; }
.sl-dots { display: flex; gap: 2px; }
.sl-dots button { width: 22px; height: 22px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.sl-dots button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.5); transition: background .2s, transform .2s; }
.sl-dots button:hover::before { background: #fff; }
.sl-dots button[aria-current="true"]::before { background: var(--red); transform: scale(1.25); }
@media (prefers-reduced-motion: reduce) { .hero .slide, .hero .slide.is-active { transform: none; transition: opacity .3s; } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,27,51,.94) 0%, rgba(17,27,51,.78) 45%, rgba(17,27,51,.15) 100%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-top: 4rem; padding-bottom: 4rem; }
.hero-content { max-width: 620px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p.lead { font-size: 19px; color: #d5ddee; max-width: 520px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #ff8d8d; background: rgba(214,43,43,.18); border: 1px solid rgba(214,43,43,.4); padding: 4px 12px; border-radius: var(--radius-sm); margin-bottom: 1.1rem; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.18); }
.hero-stats b { display: block; font-family: var(--head); font-size: 34px; font-weight: 800; line-height: 1; }
.hero-stats span { font-size: 14px; color: var(--on-navy); }

/* Unterseiten-Hero */
.page-hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,27,51,.92) 0%, rgba(17,27,51,.7) 55%, rgba(17,27,51,.3) 100%); }
.page-hero .wrap { position: relative; z-index: 1; padding-top: 5rem; padding-bottom: 4rem; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: #d5ddee; font-size: 19px; max-width: 620px; margin: 0; }
.page-hero.plain { background: var(--navy); }
.page-hero.plain::after { display: none; }
.page-hero.plain .wrap { padding-top: 3.5rem; padding-bottom: 3rem; }

/* ---------- Streifen ---------- */
.strip { background: var(--red); color: #fff; }
.strip .wrap { display: flex; justify-content: center; gap: .75rem 2.5rem; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.strip span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; }
.strip .wrap { align-items: center; }
.strip-meister img, .footer-meister img { border: 2px solid #fff; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.strip-meister img { height: 58px; width: auto; }
.strip:has(.strip-meister) .wrap { padding-top: 8px; padding-bottom: 8px; }
.footer-meister { margin-top: 1.2rem; }
.footer-meister img { height: 66px; width: auto; border-color: rgba(255,255,255,.85); }
.footer-phone a { color: #fff !important; font-weight: 600; font-size: 17px; }

/* ---------- Sektionen ---------- */
.section { padding: 5rem 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--navy); color: #d5ddee; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.section.dark .section-head p { color: var(--on-navy); }
.kicker { display: block; font-family: var(--head); font-weight: 700; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: .4rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split.wide-img { grid-template-columns: 1.15fr 1fr; }
.split + .split { margin-top: 5rem; }
.split.reverse > :first-child { order: 2; }
.split-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 10px 30px rgba(17,27,51,.14); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-img.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; box-shadow: none; border-radius: 0; }
.split-img.duo img { border-radius: var(--radius); box-shadow: 0 10px 30px rgba(17,27,51,.14); }

/* Schmied / Wurzeln */
.split.heritage { grid-template-columns: minmax(0, .8fr) 1fr; }
.mural { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.35); max-width: 440px; justify-self: center; }
.mural img { width: 100%; height: auto; }
.section.dark .split p { color: var(--on-navy); }
.heritage blockquote { margin: 1.6rem 0; padding: .3rem 0 .3rem 1.3rem; border-left: 4px solid var(--red); font-family: var(--head); font-size: clamp(24px, 2.8vw, 31px); font-weight: 600; line-height: 1.2; color: #fff; }
.heritage cite { display: block; margin-top: .6rem; font-family: var(--body); font-style: normal; font-size: 15px; font-weight: 400; color: var(--on-navy); }
.split p { color: var(--muted); }

.check-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .55rem; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list li::before { content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat; }

/* Karten */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); border-top: 4px solid var(--red); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(17,27,51,.12); }
.card-img { aspect-ratio: 3/2; overflow: hidden; background: var(--bg-alt); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.25rem 1.35rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 22px; margin-bottom: .35em; }
.card-body p { color: var(--muted); font-size: 16px; margin: 0; }
.card-more { margin-top: auto; padding-top: 1rem; font-weight: 600; color: var(--red); font-size: 15px; }

/* Vorteile */
.usps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.usp { display: flex; gap: 14px; align-items: flex-start; }
.usp-icon { width: 46px; height: 46px; border-radius: var(--radius-sm); background: rgba(214,43,43,.1); color: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.section.dark .usp-icon { background: rgba(214,43,43,.22); color: #ff8d8d; }
.usp-icon .icon { width: 24px; height: 24px; }
.usp h3 { font-size: 20px; margin-bottom: .2em; }
.usp p { margin: 0; font-size: 16px; color: var(--muted); }
.section.dark .usp p { color: var(--on-navy); }

/* Bildband / Galerie */
.band { position: relative; }
.band img { width: 100%; height: clamp(220px, 34vw, 460px); object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.gallery figure.tall { grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.03); }

/* Zitat / Hinweisbox */
.callout { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 2.25rem 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; }
.callout h2 { color: #fff; margin: 0 0 .2em; font-size: clamp(26px, 3.4vw, 36px); }
.callout p { margin: 0; color: var(--on-navy); }
.note { border-left: 4px solid var(--red); background: var(--bg-alt); padding: 1.1rem 1.4rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); }

/* Timeline */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 100px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 0; padding-bottom: 2rem; }
.timeline li::before { content: ""; position: absolute; left: 94px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--red); }
.timeline li.new::before { background: var(--red); }
.tl-year { font-family: var(--head); font-weight: 800; font-size: 24px; color: var(--navy); text-align: right; padding-right: 26px; line-height: 1.2; }
.tl-body { padding-left: 1.4rem; }
.tl-body h3 { font-size: 21px; margin-bottom: .25em; }
.tl-body p { margin: 0; color: var(--muted); }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.member { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.member-img { aspect-ratio: 4/3.4; overflow: hidden; }
.member-img img { width: 100%; height: 100%; object-fit: cover; }
.member-body { padding: 1.3rem 1.4rem 1.5rem; }
.member-body h3 { margin-bottom: .1em; }
.role { color: var(--red); font-weight: 600; font-size: 15px; margin-bottom: .7rem; display: block; }
.member-body p { color: var(--muted); font-size: 16px; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .9rem; }
.tags span { font-size: 13px; font-weight: 600; background: var(--bg-alt); color: var(--navy); padding: 3px 10px; border-radius: 20px; }
.todo { background: #fff4c2; color: #6b5200; padding: 0 4px; border-radius: 3px; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: flex; gap: 14px; align-items: flex-start; }
.contact-card .icon { width: 26px; height: 26px; color: var(--navy); margin-top: 2px; }
.contact-card.urgent { border-color: var(--red); background: #fff6f6; }
.contact-card.urgent .icon { color: var(--red); }
.contact-card h3 { font-family: var(--body); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin: 0 0 4px; }
.contact-card p { margin: 0; font-size: 18px; font-weight: 600; }
.contact-card a { color: var(--ink); text-decoration: none; }
.contact-card.urgent a { color: var(--red); }
.route { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.route-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.route-box h3 { font-size: 22px; }
.route-box ol { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.route-box li { margin-bottom: .35rem; }

/* Rechtstexte */
.legal { max-width: 820px; }
.legal h2 { font-size: 28px; margin-top: 2.2rem; }
.legal h3 { font-size: 21px; margin-top: 1.6rem; }
.legal p, .legal li { color: #3a4254; }
.legal dl { display: grid; grid-template-columns: 220px 1fr; gap: .4rem 1.5rem; margin: 0; }
.legal dt { font-weight: 600; color: var(--navy); }
.legal dd { margin: 0; color: #3a4254; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 2.5rem; }
.site-footer .logo img { height: 64px; }
.site-footer h4 { font-family: var(--head); color: #fff; font-size: 19px; letter-spacing: .5px; margin-bottom: .8rem; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.site-footer p { margin: 0 0 .4rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.1rem; padding-bottom: 1.1rem; font-size: 14px; }
.footer-bottom nav { display: flex; gap: 1.2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: .5rem 20px 1.2rem; border-top: 1px solid var(--line); box-shadow: 0 12px 24px rgba(17,27,51,.12); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 17px; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); padding-left: 14px; }
  .nav .btn-call { margin: .6rem 0 0; justify-content: center; }
  .split.heritage { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cards, .usps, .contact-grid { grid-template-columns: 1fr 1fr; }
  .split, .split.wide-img { grid-template-columns: 1fr; gap: 2rem; }
  .split.reverse > :first-child { order: 0; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 3.5rem 0; }
  .topbar-info .hide-sm { display: none; }
  .hero::after { background: linear-gradient(180deg, rgba(17,27,51,.5) 0%, rgba(17,27,51,.42) 45%, rgba(17,27,51,.78) 100%); }
  .hero h1, .hero p.lead, .hero-stats { text-shadow: 0 1px 12px rgba(0,0,0,.55); }
  .hero-stats { gap: 1.5rem 2rem; }
  .hero .wrap { padding-bottom: 5.5rem; }
  .slider-ctrl { right: 50%; transform: translateX(50%); bottom: 16px; }
  .site-header .wrap { min-height: 70px; }
  .logo img { height: 48px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure.tall { grid-row: auto; aspect-ratio: 4/3; }
  .route { grid-template-columns: 1fr; }
  .cards, .usps, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .timeline::before { left: 7px; }
  .timeline li { grid-template-columns: 1fr; padding-left: 2rem; }
  .timeline li::before { left: 1px; }
  .tl-year { text-align: left; padding-right: 0; }
  .tl-body { padding-left: 0; }
  .legal dl { grid-template-columns: 1fr; }
  .legal dd { margin-bottom: .6rem; }
  .callout { padding: 1.8rem 1.5rem; }
}
