/* A.S.E.A. GmbH – modernes Stylesheet
   Ersetzt das alte FrontPage-Theme (kopie-von-radial). */

:root {
  --navy: #0e2f57;
  --navy-600: #164a86;
  --navy-100: #eaf1fa;
  --accent: #f5a623;
  --accent-600: #d98a00;
  --ink: #1b2430;
  --muted: #5a6a7d;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f6f9fc;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(14, 47, 87, .10);
  --shadow-sm: 0 2px 10px rgba(14, 47, 87, .08);
  --maxw: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Corporate Identity – grauer Rahmen */
  --ci-gray: #c0c0c0;
  --ci-rail-w: 30px;   /* Breite des vertikalen Balkens */
  --ci-gap: 22px;      /* weißer Rand links vom Balken (damit die Balken sich kreuzen) */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 170px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; color: var(--navy); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .4em; }
h3 { font-size: 1.2rem; margin: 0 0 .4em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section__lead { max-width: 720px; color: var(--muted); font-size: 1.08rem; margin: 0 auto 48px; text-align: center; }
.section__head { text-align: center; margin-bottom: 40px; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
  font-weight: 700; color: var(--accent-600); margin-bottom: 10px; }

/* ---------- Corporate-Identity-Rahmen (grauer Balken links + unter Logo) ---------- */
.page { display: flex; align-items: stretch; background: var(--bg); }
.page__rail { flex: 0 0 var(--ci-rail-w); background: var(--ci-gray); margin-left: var(--ci-gap); }
.page__content { flex: 1 1 auto; min-width: 0; }

.masthead { background: var(--bg); }
.masthead__logo { padding: 24px 28px 16px; transition: padding .25s ease; }
.masthead__logo img { height: clamp(60px, 12vw, 104px); width: auto; display: block; transition: height .25s ease; }
/* Querbalken kreuzt die linke Leiste und ragt über den weißen Rand bis zum Seitenrand */
.masthead__bar {
  background: var(--ci-gray); color: var(--navy);
  margin-left: calc(-1 * (var(--ci-rail-w) + var(--ci-gap)));
  padding: 9px 28px 9px calc(var(--ci-rail-w) + var(--ci-gap) + 28px);
  font-weight: 700; font-size: clamp(.78rem, 1.9vw, 1.1rem);
  letter-spacing: .01em; line-height: 1.25; display: flex; align-items: center;
  transition: padding .25s ease;
}

/* ---------- Header / Nav ---------- */
/* Der gesamte Kopf (Logo + Querbalken + Navigation) bleibt beim Scrollen oben stehen */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--bg); box-shadow: var(--shadow-sm); }
/* Kompakter Zustand: beim Scrollen schrumpft der Kopf */
.topbar.is-scrolled .masthead__logo { padding: 9px 28px 7px; }
.topbar.is-scrolled .masthead__logo img { height: 72px; }
.topbar.is-scrolled .masthead__bar { padding-top: 5px; padding-bottom: 5px; }
.topbar.is-scrolled .nav { height: 58px; }
@media (prefers-reduced-motion: reduce) {
  .masthead__logo, .masthead__logo img, .masthead__bar, .nav { transition: none; }
  html { scroll-behavior: auto; }
}
.site-header {
  position: relative; z-index: 1;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; transition: height .25s ease; }
.nav__brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ink);
  font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.nav__brand svg { width: 18px; height: 18px; }
.nav__brand:hover { background: var(--navy-100); color: var(--navy); text-decoration: none; }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--ink); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.nav__links a:hover { background: var(--navy-100); text-decoration: none; color: var(--navy); }
.nav__cta { background: var(--navy); color: #fff !important; padding: 9px 16px !important; border-radius: 999px; }
.nav__cta:hover { background: var(--navy-600); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(135deg, rgba(14,47,87,.92), rgba(22,74,134,.82)),
              url("../images/Schrank_Jaguar.jpg") center/cover no-repeat;
}
.hero__inner { padding: 96px 0 104px; max-width: 760px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 18px; }
.hero p { font-size: 1.18rem; color: #dce7f4; margin: 0 0 32px; }
.hero .partner { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0 0 30px; padding: 0; list-style: none; font-weight: 700; }
.hero .partner li::before { content: "▸ "; color: var(--accent); }
.btn { display: inline-block; font-weight: 700; padding: 13px 26px; border-radius: 999px; cursor: pointer; border: 0; font-size: 1rem; }
.btn--accent { background: var(--accent); color: #26333f; }
.btn--accent:hover { background: var(--accent-600); text-decoration: none; }
.btn--ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); margin-left: 12px; }
.btn--ghost:hover { border-color: #fff; text-decoration: none; }

/* ---------- Feature / cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px;
  background: var(--navy-100); color: var(--navy); margin-bottom: 14px; }
.card__icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); margin: 0; }

/* ---------- Two-column media ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split .prose p { color: var(--muted); }
.prose h2 { text-align: left; }

/* ---------- Services list ---------- */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 12px 34px; }
.services li { position: relative; padding-left: 30px; color: var(--ink); }
.services li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 16px; height: 16px;
  background: var(--accent); border-radius: 4px; transform: rotate(45deg);
}

/* ---------- Badges / qualifications ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.badge { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px;
  font-weight: 600; font-size: .92rem; color: var(--navy); box-shadow: var(--shadow-sm); }

/* ---------- References ---------- */
.refcol h3 { display: flex; align-items: center; gap: 10px; }
.reflist { list-style: none; margin: 0; padding: 0; }
.reflist li { padding: 8px 0 8px 26px; position: relative; border-bottom: 1px dashed var(--line); color: var(--ink); }
.reflist li::before { content: "→"; position: absolute; left: 0; color: var(--accent-600); font-weight: 700; }
.reflist ul { list-style: none; margin: 8px 0 2px; padding: 0; }
.reflist ul li { padding: 5px 0 5px 24px; border-bottom: 0; color: var(--muted); font-size: .95rem; }
.reflist ul li::before { content: "–"; color: var(--muted); font-weight: 700; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); cursor: pointer; background: #0e2f57; }
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .4s, opacity .3s; }
.gallery figure:hover img { transform: scale(1.06); opacity: .85; }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 22px 12px 10px; color: #fff; font-size: .82rem; font-weight: 600;
  background: linear-gradient(transparent, rgba(6,20,38,.88)); opacity: 0; transition: opacity .25s;
}
.gallery figure:hover figcaption, .gallery figure:focus figcaption { opacity: 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(6,16,30,.92); display: none;
  align-items: center; justify-content: center; z-index: 100; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 80vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__cap { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: #eaf1fa; font-weight: 600; }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
.lightbox button:hover { background: rgba(255,255,255,.28); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.contact__box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); }
.contact__row { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact__row:last-child { border-bottom: 0; }
.contact__row .ic { flex: 0 0 40px; height: 40px; border-radius: 10px; background: var(--navy-100);
  display: grid; place-items: center; color: var(--navy); }
.contact__row .ic svg { width: 20px; height: 20px; }
.contact__row b { display: block; color: var(--navy); }
.contact__row a { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c9d8ec; padding: 46px 0 26px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-grid h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { padding: 4px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; font-size: .86rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Legal page ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h1 { margin-top: 0; }
.legal h2 { text-align: left; font-size: 1.35rem; margin-top: 2em; }
.legal p, .legal li { color: var(--ink); }
.legal .back { display: inline-block; margin-bottom: 20px; font-weight: 600; }
.legal dl { display: grid; grid-template-columns: 200px 1fr; gap: 6px 20px; }
.legal dt { font-weight: 700; color: var(--navy); }
.legal dd { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  html { scroll-padding-top: 165px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact { grid-template-columns: 1fr; gap: 28px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal dl { grid-template-columns: 1fr; }
  .legal dt { margin-top: 10px; }
}
@media (max-width: 640px) {
  :root { --ci-rail-w: 14px; --ci-gap: 12px; }
  html { scroll-padding-top: 150px; }
  .section { padding: 60px 0; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px; gap: 4px;
    box-shadow: var(--shadow); display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px; }
  .nav__toggle { display: block; }
  .grid--3, .grid--4, .services, .grid--2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .btn--ghost { margin-left: 0; margin-top: 10px; }
}
