/* ============================================================
   BR Immo Group GmbH — Corporate Website
   Design tokens per Brand Style Guide 2026
   Poppins (headlines, lowercase) · Inter (body)
   ============================================================ */

:root {
  /* Brand palette */
  --navy:        #0F4B6B;   /* Primärblau */
  --steel-dark:  #2C5D7A;   /* Stahlblau dunkel */
  --steel-mid:   #49768F;   /* Blau mittel */
  --steel-light: #6C91A5;   /* Stahlblau hell */
  --black:       #000000;
  --white:       #FFFFFF;

  /* Neutrals / surfaces */
  --canvas:      #FFFFFF;
  --canvas-soft: #F6F8FA;
  --ink:         #10161C;   /* near-black text */
  --ink-soft:    #5B6B78;   /* muted text */
  --line:        #E4E9ED;   /* hairlines */
  --line-strong: #CBD5DC;

  /* Type */
  --font-head: "Poppins", "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --radius-sm: 4px;
  --radius:    12px;
  --radius-lg: 16px;
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);

  --shadow-card: 0 1px 2px rgba(15,75,107,.05), 0 12px 30px -18px rgba(15,75,107,.25);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.1; text-wrap: balance; letter-spacing: -0.01em; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.lower { text-transform: lowercase; }
.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ============================================================
   HEADER (from page 2)
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 84px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 46px; width: auto; }
.brand__name {
  font-family: var(--font-head); font-weight: 500; line-height: 1.05;
  font-size: .98rem; color: var(--ink); text-transform: lowercase; letter-spacing: 0;
}
.main-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.main-nav a {
  font-family: var(--font-head); font-weight: 500; font-size: 1rem;
  color: var(--navy); text-transform: lowercase; position: relative; padding-block: 6px;
  transition: color .2s var(--ease);
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--navy); transition: width .28s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { width: 100%; }
.main-nav .sep { color: var(--line-strong); font-size: .9rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--navy); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 30px;
  margin-top: auto;
}
.site-footer .wrap {
  display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap;
  color: var(--ink-soft); font-size: .9rem;
}
.site-footer a {
  font-family: var(--font-head); font-weight: 500; color: var(--navy); text-transform: lowercase;
}
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 500; text-transform: lowercase;
  padding: 15px 30px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  transition: transform .15s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: #0c3d58; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--block { width: 100%; }
.btn--lg { padding: 17px 46px; font-size: 1.05rem; }

/* ============================================================
   1 · STARTSEITE (index)
   ============================================================ */
.intro {
  position: relative; height: 100svh; overflow: hidden;
  background: var(--intro-bg, #FDFBFC); text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(28px, 5vh, 56px);
}
/* Smaller, centred intro animation on a background that matches the clip exactly */
.intro__video {
  width: min(560px, 74vw); height: auto; object-fit: contain;
  background: var(--intro-bg, #FDFBFC);
}
.intro__overlay {
  position: static; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 26px;
  padding-inline: var(--gutter);
}
.intro__start { min-width: 240px; }
.intro__footer {
  position: absolute; left: 0; right: 0; bottom: 30px; z-index: 2; text-align: center;
}
.intro__footer a {
  font-family: var(--font-head); font-weight: 500; color: var(--navy);
  text-transform: lowercase; font-size: 1rem;
}
.intro__footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.fade-up { opacity: 0; transform: translateY(16px); animation: fadeUp .9s var(--ease) forwards; }
.fade-up.d1 { animation-delay: .15s; }
.fade-up.d2 { animation-delay: .4s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ============================================================
   2 · PROJEKTÜBERSICHT (page 2)
   ============================================================ */
.page { display: flex; flex-direction: column; min-height: 100svh; }
.section { padding-block: clamp(48px, 7vw, 88px); }
.page-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem); color: var(--navy); text-transform: lowercase;
  font-weight: 600; margin-bottom: clamp(28px, 4vw, 48px); letter-spacing: -.02em;
}
.projects-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 34px);
}
.project-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.project-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; }
.project-card__body { padding: 20px 24px 24px; }
.project-card__title {
  font-family: var(--font-head); font-weight: 600; font-size: 1.28rem;
  text-transform: lowercase; color: var(--ink); letter-spacing: -.01em;
}
.project-card__link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  font-family: var(--font-head); font-weight: 500; color: var(--navy); text-transform: lowercase;
}
.project-card__link svg { width: 20px; height: 20px; transition: transform .25s var(--ease); }

/* unlocked / clickable card */
.project-card--open { cursor: pointer; }
.project-card--open:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(15,75,107,.06), 0 26px 44px -22px rgba(15,75,107,.4); }
.project-card--open:hover .project-card__link svg { transform: translateX(5px); }

/* confidential card */
.project-card--locked .project-card__media img { filter: saturate(1.05); }
.project-card--locked .project-card__body { display: flex; align-items: center; gap: 10px; }
.project-card--locked .lock-label {
  font-family: var(--font-head); font-weight: 500; color: var(--navy); text-transform: lowercase; font-size: 1.05rem;
}
.project-card--locked .lock-icon { width: 18px; height: 18px; color: var(--navy); }
.confidential-badge {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.confidential-badge span {
  font-family: var(--font-head); font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  font-size: .78rem; color: #fff; background: rgba(15,75,107,.42); backdrop-filter: blur(1px);
  padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28);
}

/* ============================================================
   3 · LOGIN OVERLAY (split, page "Login 2")
   ============================================================ */
.overlay {
  position: fixed; inset: 0; z-index: 90; display: none;
  align-items: stretch; justify-content: stretch;
}
.overlay.is-open { display: flex; }
.overlay__scrim {
  position: absolute; inset: 0; background: rgba(9,26,40,.55); backdrop-filter: blur(3px);
  animation: fadeIn .3s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.login-split {
  position: relative; margin: auto; width: min(1080px, 94vw); height: min(680px, 92svh);
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  display: grid; grid-template-columns: 1.05fr 1fr;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.6);
  animation: popIn .35s var(--ease);
}
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.login-split__media { position: relative; background: var(--navy); }
.login-split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .95; }
.login-split__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,75,107,.25), rgba(15,75,107,.55));
}
.login-split__caption {
  position: absolute; left: 28px; bottom: 26px; z-index: 2; color: #fff;
  font-family: var(--font-head); font-weight: 500; letter-spacing: .02em;
}
.login-split__form {
  padding: clamp(30px, 5vw, 60px); display: flex; flex-direction: column; justify-content: center;
  position: relative;
}
.login-split__logo { height: 52px; width: auto; align-self: flex-start; object-fit: contain; margin-bottom: 30px; }
.login-split h2 { font-size: clamp(2.2rem, 4vw, 3.1rem); color: var(--navy); font-weight: 600; }
.login-split .sub { color: var(--ink-soft); margin-top: 4px; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field input {
  width: 100%; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: #fff; color: var(--ink); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input::placeholder { color: #9AA7B1; }
.field input:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15,75,107,.14);
}
.login-split .btn { margin-top: 8px; }
.forgot {
  display: block; text-align: center; margin-top: 18px; color: var(--ink-soft);
  font-family: var(--font-head); font-weight: 500;
}
.forgot:hover { color: var(--navy); }
.overlay__close {
  position: absolute; top: 16px; right: 16px; z-index: 3; width: 42px; height: 42px;
  border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.9);
  display: grid; place-items: center; color: var(--navy);
}
.overlay__close:hover { background: var(--navy); color: #fff; }
.overlay__close svg { width: 20px; height: 20px; }
.form-hint { font-size: .82rem; color: var(--ink-soft); margin-top: 14px; text-align: center; }

/* Login als eigenständige Seite (login.php) */
.login-page {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(28px, 6vw, 72px) var(--gutter);
  background: var(--canvas-soft); min-height: 70vh;
}
.login-page .login-split { animation: none; }
.form-error {
  background: #FDECEF; border: 1px solid #F3C2CC; color: #A11228;
  padding: 11px 14px; border-radius: 8px; margin-bottom: 18px;
  font-size: .9rem; line-height: 1.4;
}

/* ============================================================
   4 · PROJEKTDETAIL (page 3 · long scroll)
   ============================================================ */
.detail-hero {
  position: relative; height: 100svh; min-height: 560px; overflow: hidden;
  display: grid; place-items: center; text-align: center; color: #fff;
}
.detail-hero__bg { position: absolute; inset: 0; overflow: hidden; }
.detail-hero__bg img, .detail-hero__bg video {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06); will-change: transform;
}
.detail-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,42,63,.35) 0%, rgba(11,42,63,.28) 45%, rgba(11,42,63,.66) 100%);
}
.detail-hero__inner { position: relative; z-index: 2; padding: 0 var(--gutter); }
.detail-hero h1 {
  font-size: clamp(2.6rem, 8vw, 6.2rem); font-weight: 700; letter-spacing: -.02em;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.detail-hero .subline {
  font-family: var(--font-head); font-weight: 400; margin-top: 14px;
  font-size: clamp(1rem, 2.2vw, 1.5rem); letter-spacing: .02em; opacity: .96;
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 3;
  color: #fff; opacity: .9; animation: bob 1.8s var(--ease) infinite;
}
.scroll-cue svg { width: 40px; height: 40px; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* ---- Scrollytelling: scroll-scrubbed video with staged info ---- */
.scrolly { position: relative; background: #0b2a3f; }
.scrolly--tall { height: 720vh; }
.scrolly__sticky {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; place-items: center;
}
.scrolly__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  background: #0b2a3f;
}
.scrolly__sticky::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9,26,40,.5) 0%, rgba(9,26,40,.12) 22%, rgba(9,26,40,.12) 55%, rgba(9,26,40,.78) 100%);
}
.scrolly__progress {
  position: absolute; left: 0; top: 0; height: 3px; width: 0%;
  background: var(--steel-light); z-index: 6; transition: width .1s linear;
}
.stage {
  position: absolute; inset: 0; z-index: 5;
  display: grid; align-items: end; justify-items: start;
  padding: clamp(28px, 8vh, 96px) var(--gutter) clamp(80px, 14vh, 150px);
  opacity: 0; transform: translateY(24px); pointer-events: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.stage.is-active { opacity: 1; transform: none; }
.stage.is-active .stage__inner { pointer-events: auto; }
/* alternate left / right placement for info stages */
.stage--left  { justify-items: start; }
.stage--right { justify-items: end; }
.stage__inner {
  max-width: 640px; color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 18px;
  padding: clamp(20px, 2.6vw, 30px) clamp(24px, 3.4vw, 38px);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.stage--title { align-items: center; justify-items: center; text-align: center; }
.stage--title .stage__inner {
  width: min(860px, 64vw); max-width: none; text-align: center; margin-inline: auto;
  padding: clamp(46px, 8vh, 106px) clamp(38px, 6vw, 100px);
}
.stage--title h1 { text-align: center; }
.stage--title .subline { display: block; text-align: center; margin-inline: auto; }
.stage__eyebrow {
  font-family: var(--font-head); font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; font-size: .78rem; color: var(--steel-light); margin-bottom: 14px;
}
.stage__inner h1 {
  font-size: clamp(1.7rem, 5.3vw, 4.1rem); font-weight: 700; letter-spacing: -.02em;
  text-shadow: 0 2px 34px rgba(0,0,0,.4);
}
.stage__inner h2 {
  font-size: clamp(1.7rem, 4.4vw, 3rem); font-weight: 600; letter-spacing: -.01em;
  text-shadow: 0 2px 24px rgba(0,0,0,.45); margin-bottom: 12px;
}
.stage__inner p {
  font-size: clamp(1rem, 2vw, 1.28rem); line-height: 1.55; color: rgba(255,255,255,.94);
  text-shadow: 0 1px 18px rgba(0,0,0,.5); max-width: 34ch;
}
.stage--title .subline {
  font-family: var(--font-head); font-weight: 400; margin-top: 12px;
  font-size: clamp(0.85rem, 1.5vw, 1rem); letter-spacing: .02em; opacity: .96;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.stage__meta { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 22px; }
.stage__meta div { border-top: 2px solid rgba(255,255,255,.4); padding-top: 8px; }
.stage__meta b { font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; display: block; }
.stage__meta span { font-size: .82rem; color: rgba(255,255,255,.8); }
.stage__cta { margin-top: 26px; }

/* Fallback when JS/scroll-scrub is unavailable */
.no-js .scrolly--tall { height: auto; }
.no-js .scrolly__sticky { position: relative; height: 100svh; }
.no-js .stage { position: relative; opacity: 1; transform: none; }

.claims {
  background: var(--navy); color: #fff; padding-block: clamp(40px, 6vw, 72px);
}
.claims__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 54px); }
.claim { border-top: 2px solid rgba(255,255,255,.35); padding-top: 20px; }
.claim h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.claim p { color: rgba(255,255,255,.82); font-size: .98rem; line-height: 1.55; }

.facts { background: var(--canvas); }
.facts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.fact {
  padding: 26px 4px 26px 0; border-bottom: 1px solid var(--line);
}
.fact__label {
  font-family: var(--font-head); font-weight: 500; text-transform: uppercase;
  letter-spacing: .1em; font-size: .72rem; color: var(--steel-mid); margin-bottom: 6px;
}
.fact__value { font-family: var(--font-head); font-weight: 600; font-size: 1.5rem; color: var(--ink); letter-spacing: -.01em; }
.fact__value small { display: block; font-size: .82rem; font-weight: 400; color: var(--ink-soft); letter-spacing: 0; margin-top: 3px; }

.gallery-band { position: relative; height: clamp(320px, 46vw, 560px); overflow: hidden; }
.gallery-band img, .gallery-band video { width: 100%; height: 100%; object-fit: cover; }
.gallery-band--video::after { display: none; }   /* pure video, no overlay */

/* Banner stays pinned while its video scrubs through, then releases */
.band-scrolly { position: relative; height: 240vh; background: var(--canvas); }
.band-sticky {
  position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden;
}
.band-sticky .gallery-band { width: 100%; }
.gallery-band__cap {
  position: absolute; left: var(--gutter); bottom: 24px; color: #fff; z-index: 2;
  font-family: var(--font-head); font-weight: 500; text-shadow: 0 2px 14px rgba(0,0,0,.5);
}
.gallery-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11,42,63,.5)); }

.downloads .dl-list { display: flex; flex-direction: column; gap: 14px; max-width: 780px; }
.dl-item {
  display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 18px 24px; border: 1.5px solid var(--navy); border-radius: 10px;
  background: #fff; color: var(--navy); font-family: var(--font-head); font-weight: 500; font-size: 1.05rem;
  transition: background .2s var(--ease), color .2s var(--ease);
  text-align: left;
}
.dl-item .dl-ico { width: 22px; height: 22px; flex: none; }
.dl-item .dl-name { flex: 1; }
.dl-item .dl-meta { font-size: .82rem; color: var(--ink-soft); font-weight: 400; }
.dl-item:hover { background: var(--navy); color: #fff; }
.dl-item:hover .dl-meta { color: rgba(255,255,255,.75); }

/* Featured download (Bilder-Exposé) */
.dl-feature {
  display: flex; align-items: center; gap: 18px; max-width: 860px; margin-bottom: 16px;
  padding: 18px 22px; border-radius: 14px; background: var(--navy); color: #fff;
  transition: background .2s var(--ease), transform .15s var(--ease);
}
.dl-feature:hover { background: #0c3d58; transform: translateY(-2px); }
.dl-feature__ico { flex: none; width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.3); border-radius: 10px; }
.dl-feature__ico svg { width: 24px; height: 24px; }
.dl-feature__txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.dl-feature__txt strong { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; }
.dl-feature__txt > span { color: rgba(255,255,255,.8); font-size: .9rem; }
.dl-feature__badge {
  align-self: flex-start; font-family: var(--font-head); font-weight: 600; font-size: .66rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--navy);
  background: #fff; padding: 3px 9px; border-radius: 999px; margin-bottom: 3px;
}
/* secondary feature: lighter, outlined */
.dl-feature--sub { background: #fff; color: var(--ink); border: 1.5px solid var(--navy); }
.dl-feature--sub:hover { background: var(--canvas-soft); transform: translateY(-2px); }
.dl-feature--sub .dl-feature__ico { color: var(--navy); border-color: rgba(15,75,107,.25); }
.dl-feature--sub .dl-feature__txt strong { color: var(--ink); }
.dl-feature--sub .dl-feature__txt > span { color: var(--ink-soft); }
.dl-feature--sub .dl-feature__btn { background: var(--navy); color: #fff; }
.dl-feature__btn { flex: none; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 500; background: #fff; color: var(--navy);
  padding: 10px 18px; border-radius: 8px; white-space: nowrap; }
.dl-feature__btn svg { width: 18px; height: 18px; }
@media (max-width: 560px) {
  .dl-feature { flex-wrap: wrap; }
  .dl-feature__btn { width: 100%; justify-content: center; }
}

/* Download categories (native <details> accordion) */
.dl-cats { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.dl-cat {
  border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.dl-cat[open] { border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.dl-cat__head {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 22px; user-select: none;
}
.dl-cat__head::-webkit-details-marker { display: none; }
.dl-cat__title { font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; color: var(--ink); }
.dl-cat__meta { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: .88rem; white-space: nowrap; }
.dl-chev { width: 20px; height: 20px; color: var(--navy); transition: transform .25s var(--ease); }
.dl-cat[open] .dl-chev { transform: rotate(180deg); }
.dl-cat__body { padding: 4px 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.dl-file {
  display: flex; align-items: center; gap: 14px; padding: 12px 12px; border-radius: 8px;
  color: var(--ink); transition: background .18s var(--ease), color .18s var(--ease);
}
.dl-file .dl-ico { width: 20px; height: 20px; flex: none; color: var(--navy); }
.dl-file__name { flex: 1; font-size: .98rem; }
.dl-file__tag { font-size: .78rem; color: var(--ink-soft); white-space: nowrap; font-family: var(--font-head); }
.dl-file:hover { background: var(--canvas-soft); }
.dl-file:hover .dl-ico { color: var(--navy); }
.dl-file--all {
  margin-top: 6px; background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 500;
}
.dl-file--all .dl-ico, .dl-file--all .dl-file__tag { color: rgba(255,255,255,.85); }
.dl-file--all .dl-file__name { font-weight: 500; }
.dl-file--all:hover { background: #0c3d58; color: #fff; }
.dl-file--all:hover .dl-ico { color: #fff; }

.contact { background: var(--canvas-soft); }
.contact-form { max-width: 780px; }
.contact-form .field-line { margin-bottom: 6px; border-bottom: 1px solid var(--line-strong); }
.contact-form .field-line input,
.contact-form .field-line textarea {
  width: 100%; border: 0; background: transparent; padding: 16px 2px; resize: vertical;
}
.contact-form .field-line input:focus,
.contact-form .field-line textarea:focus { outline: none; }
.contact-form .field-line:focus-within { border-color: var(--navy); }
.contact-form textarea { min-height: 120px; }
.contact-form .btn { margin-top: 22px; }
.contact-aside { color: var(--ink-soft); font-size: .95rem; line-height: 1.7; }
.contact-aside strong { color: var(--ink); font-family: var(--font-head); }
.contact-aside a { color: var(--navy); }

.section-head { margin-bottom: clamp(24px, 3vw, 40px); }
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--ink); text-transform: uppercase;
  letter-spacing: .12em; font-weight: 600; font-size: .95rem;
}
.section-head h2 { font-size: .95rem; color: var(--steel-mid); }

.detail-grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }

.msg-ok { color: var(--navy); font-family: var(--font-head); font-weight: 500; margin-top: 16px; display: none; }
.msg-ok.show { display: block; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.nav-open .main-nav {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--line); padding: 18px var(--gutter); gap: 14px; align-items: flex-start;
  }
  .site-header.nav-open .main-nav .sep { display: none; }
  .projects-grid { grid-template-columns: 1fr; }
  .login-split { grid-template-columns: 1fr; height: min(760px, 94svh); }
  .login-split__media { display: none; }
  .claims__grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid-2 { grid-template-columns: 1fr; }
  .brand__name { display: none; }
}
@media (max-width: 480px) {
  .facts-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   LEGAL PAGES (Impressum / Datenschutz)
   ============================================================ */
.legal { padding-block: clamp(40px, 6vw, 84px); }
.legal .wrap { max-width: 880px; }
.legal .eyebrow { display: block; margin-bottom: 12px; }
.legal h1 {
  font-size: clamp(2rem, 5vw, 3.1rem); color: var(--navy); text-transform: lowercase;
  letter-spacing: -.02em; margin-bottom: 10px;
}
.legal .lead { color: var(--ink-soft); margin-bottom: 30px; max-width: 62ch; }
.legal h2 {
  font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; color: var(--ink);
  margin-top: 38px; margin-bottom: 10px; letter-spacing: -.01em;
}
.legal h3 {
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--navy);
  margin-top: 24px; margin-bottom: 6px;
}
.legal p, .legal li { color: var(--ink); line-height: 1.72; }
.legal p { margin-bottom: 12px; }
.legal ul { margin: 0 0 16px 1.15rem; padding: 0; }
.legal li { margin-bottom: 6px; }
.legal address { font-style: normal; line-height: 1.7; }
.legal a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: #0c3d58; }
.legal .divider { height: 1px; background: var(--line); margin: 30px 0; border: 0; }
.legal .muted { color: var(--ink-soft); font-size: .9rem; }
.legal .note {
  background: var(--canvas-soft); border: 1px solid var(--line); border-left: 3px solid var(--steel-light);
  border-radius: 8px; padding: 16px 20px; color: var(--ink-soft); font-size: .92rem; margin: 22px 0;
}
.legal .factsheet {
  background: var(--canvas-soft); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 24px; margin: 10px 0 6px;
}
.legal .factsheet p { margin-bottom: 4px; }

/* ============================================================
   ÜBER UNS
   ============================================================ */
.about-hero { background: var(--navy); color: #fff; padding-block: clamp(52px, 8vw, 104px); }
.about-hero .eyebrow { color: var(--steel-light); display: block; margin-bottom: 12px; }
.about-hero h1 {
  color: #fff; font-size: clamp(2.4rem, 6vw, 4rem); text-transform: lowercase;
  letter-spacing: -.02em;
}
.about-hero p {
  color: rgba(255,255,255,.85); max-width: 58ch; margin-top: 16px;
  font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.6;
}
.about-body { padding-block: clamp(44px, 6vw, 84px); }
.about-body .wrap { max-width: 820px; }
.about-body p {
  font-size: clamp(1.05rem, 1.8vw, 1.18rem); line-height: 1.8; color: var(--ink); margin-bottom: 22px;
}
.about-body p:first-of-type {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.6; color: var(--ink);
  font-weight: 400; padding-left: 22px; border-left: 3px solid var(--navy);
}
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; }
.value { border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: #fff; }
.value__no {
  font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .1em;
  color: var(--steel-light); text-transform: uppercase; margin-bottom: 10px;
}
.value h3 { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1.08rem; margin-bottom: 6px; }
.value p { font-size: .96rem; color: var(--ink-soft); line-height: 1.6; margin: 0; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .detail-hero__bg img, .detail-hero__bg video { transform: none; }
}
