/* Bressem Bodenbau und Montagetechnik – style.css */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --blue: #0051a2;
  --blue-dark: #0a2f5c;
  --blue-soft: #e8f0f9;
  --orange: #e2731f;
  --orange-dark: #b9570e;
  --ink: #1b2430;
  --muted: #5a6573;
  --line: #e2e6eb;
  --bg: #ffffff;
  --bg-alt: #f5f3ef;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 32, 56, .06), 0 8px 24px rgba(16, 32, 56, .08);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.brand img { height: 64px; width: auto; }
.mainnav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.mainnav li { position: relative; }
.mainnav a { display: block; text-decoration: none; color: var(--ink); font-weight: 650; padding: 10px 14px; border-radius: 10px; }
.mainnav > ul > li > a:hover, .mainnav > ul > li.is-active > a { color: var(--blue); background: var(--blue-soft); }
.mainnav [aria-current="page"] { color: var(--blue); }
.sub-toggle { display: none; }
.subnav {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
}
.subnav a { font-weight: 550; padding: 9px 12px; }
.subnav a:hover { background: var(--bg-alt); color: var(--blue); }
@media (min-width: 961px) {
  /* nur Desktop: backdrop-filter würde das fixierte Mobilmenü am Header festklemmen */
  .site-header { background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px); }
  .mainnav li[data-sub]:hover > .subnav, .mainnav li[data-sub]:focus-within > .subnav { opacity: 1; visibility: visible; transform: none; }
}
.nav-toggle { display: none; }

@media (max-width: 960px) {
  :root { --header-h: 70px; }
  .brand img { height: 50px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer;
  }
  .bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .2s; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -6px; } .bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }
  .mainnav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; overflow-y: auto;
    padding: 12px var(--gutter) 40px; display: none;
  }
  .mainnav.is-open { display: block; }
  .mainnav > ul { flex-direction: column; gap: 0; }
  .mainnav > ul > li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
  .mainnav > ul > li > a { flex: 1; padding: 15px 4px; font-size: 1.1rem; background: none !important; }
  .sub-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 0; background: var(--bg-alt); border-radius: 10px; cursor: pointer; color: var(--ink);
  }
  .sub-toggle svg { transition: transform .2s; }
  .sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .subnav { position: static; flex-basis: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px 12px; display: none; min-width: 0; }
  .sub-toggle[aria-expanded="true"] + .subnav { display: block; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--orange); color: #fff; text-decoration: none; font-weight: 700;
  padding: .85em 1.35em; border-radius: 999px; border: 2px solid var(--orange);
  transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; transform: translateY(-1px); }
.btn svg { transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--blue); border-color: currentColor; }
.btn--ghost:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--blue-dark); }
.btn--light:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.center .actions, .actions.center { justify-content: center; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tight { padding: 40px 0; }
.section--alt { background: var(--bg-alt); }
.section--flush-top { padding-top: 0; }
.section--blue { background: var(--blue-dark); color: #fff; }
.section-title { margin-bottom: .8em; }
.section--blue .section-title { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 750; color: var(--orange); margin-bottom: .9em; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: #2c3643; }
.prose p { max-width: 70ch; }
.prose.center p { margin-left: auto; margin-right: auto; }
.small { font-size: .9rem; color: var(--muted); }
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); }
.page-head h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: clamp(340px, 52vh, 520px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; }
.hero--tall { min-height: clamp(400px, 68vh, 680px); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 30, 60, .15) 0%, rgba(10, 30, 60, .35) 45%, rgba(8, 24, 48, .82) 100%); }
.hero-content { padding-top: 80px; padding-bottom: clamp(40px, 7vw, 72px); }
.hero h1 { max-width: 16ch; margin-bottom: .3em; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.hero .eyebrow { color: #ffb57d; }
.hero-text { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 40ch; margin-bottom: 1.4em; }

/* ---------- Home ---------- */
.intro { padding: clamp(40px, 6vw, 80px) 0; background: linear-gradient(180deg, var(--blue-soft), #fff); }
.intro-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.intro h1 { color: var(--blue); }
.slideshow { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--line); }
.slideshow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.slideshow img.is-active { opacity: 1; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } .slideshow { order: -1; } }

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.service img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; transition: transform .5s; }
.service:hover { transform: translateY(-4px); color: var(--ink); }
.service:hover img { transform: scale(1.04); }
.service-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 4px; position: relative; background: #fff; }
.service-title { font-weight: 800; font-size: 1.2rem; color: var(--blue); }
.service-text { color: var(--muted); font-size: .96rem; }
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .services { grid-template-columns: 1fr; } }

.addresses { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.addr { display: flex; gap: 14px; align-items: flex-start; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); padding: 22px 28px; border-radius: var(--radius); font-size: 1.12rem; min-width: min(100%, 300px); }
.addr svg { color: #ffb57d; width: 1.6em; height: 1.6em; margin-top: .1em; }

/* ---------- Karten / Features ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 44px; }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.card img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 1.25rem; font-weight: 800; color: var(--blue); }
.card-text { color: var(--muted); font-size: .97rem; flex: 1; }
.card-more { font-weight: 700; color: var(--orange-dark); }
.card-more::after { content: " →"; }
.more-line { margin-top: 28px; font-weight: 700; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.features--2 { grid-template-columns: repeat(2, 1fr); max-width: 960px; }
.feature { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); padding-bottom: 8px; }
.feature img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 20px; }
.feature h3, .feature p { padding: 0 22px; }
.feature p { color: var(--muted); }
@media (max-width: 900px) { .features, .features--2 { grid-template-columns: 1fr; max-width: 560px; } }

.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.step { margin: 0; }
.step img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.step figcaption { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 800; color: var(--blue); margin-top: 16px; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 280px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.partner { background: var(--bg-alt); border-radius: var(--radius); padding: 28px; text-align: center; }
.partner img { margin: 0 auto; }
.partner-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .partner { max-width: 320px; } }

.wide-figure { margin: 0 0 36px; }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.gallery figure { margin: 0; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(16, 32, 56, .06); }
.gallery a { display: block; overflow: hidden; cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .45s ease; }
.gallery a:hover img { transform: scale(1.05); }
.gallery figcaption { padding: 12px 16px 14px; font-size: .95rem; font-weight: 650; }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr 1fr; gap: 12px; } .gallery figcaption { font-size: .85rem; padding: 10px 12px; } }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(6, 14, 26, .92); }
.lightbox-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 56px 16px 24px; color: #fff; }
.lightbox img { max-width: min(92vw, 1000px); max-height: calc(100vh - 150px); width: auto; object-fit: contain; border-radius: 8px; }
.lightbox p { margin: 14px 0 0; text-align: center; font-weight: 650; }
.lb-btn { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } }

/* ---------- CTA-Band ---------- */
.band { position: relative; color: #fff; padding: clamp(72px, 12vw, 140px) 0; overflow: hidden; isolation: isolate; text-align: center; }
.band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10, 34, 66, .72); }
.band p { font-size: 1.15rem; }

.more { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.more-title { margin: 0; font-weight: 800; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: block; text-decoration: none; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 650; color: var(--ink); }
.chips a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 1.1rem; overflow-wrap: anywhere; }
.contact-list svg { width: 1.5em; height: 1.5em; color: var(--orange); }
.contact-list a { text-decoration: none; font-weight: 650; }
.map-card { background: var(--blue-dark); color: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); }
.map-card address { font-size: 1.2rem; line-height: 1.5; }
.map-title { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 750; color: #ffb57d; }
.map-card .btn--ghost { color: #fff; }
.map-card .btn--ghost:hover { background: #fff; color: var(--blue-dark); border-color: #fff; }
.map-card .small { color: rgba(255, 255, 255, .7); margin: 14px 0 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.legal h2 { font-size: 1.35rem; margin-top: 1.6em; }
.legal h3 { font-size: 1.05rem; margin: 1.4em 0 .3em; }
.legal h2:first-child { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #0d1b2e; color: #c7d0dc; padding-top: 56px; font-size: .97rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ffb57d; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-brand { font-weight: 800; color: #fff; font-size: 1.25rem; letter-spacing: .02em; }
.footer-head { font-weight: 800; color: #fff; text-transform: uppercase; font-size: .8rem; letter-spacing: .14em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; padding-bottom: 28px; font-size: .88rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

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