/* site.css — gemeinsame Basis-Styles (Header, Mega-Menü, Footer, Reset). Media-Queries bleiben seitenlokal. */
:root {
      --content-w: min(2100px, 70%);   /* Content-Breite 70% des Viewports, gedeckelt */
      --o:  #f15a24;
      --ac: #c99a3d;
      --dk: #111;
      --gr: #2a2a2a;
      --md: #444;
      --lt: #f6f5f3;
      --bd: #e6e4e0;
      --wh: #fff;
    }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
      font-family: 'Arial Unicode MS', 'Arial Unicode', Arial, sans-serif;
      font-size: clamp(16px, 1.11vw, 19.5px); font-weight: 400; line-height: 1.65;
      color: var(--dk); background: var(--wh);
      -webkit-font-smoothing: antialiased; overflow-x: hidden;
    }
a { color: inherit; text-decoration: none; transition: color .15s; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
.w { max-width: var(--content-w); margin: 0 auto; padding: 0 48px; }
header {
      position: fixed; top: 0; left: 0; right: 0; z-index: 900;
      background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
      border-bottom: 1px solid transparent; transition: border-color .2s;
    }
header.s { border-color: var(--bd); }
.hd-in {
      max-width: var(--content-w); margin: 0 auto; padding: 0 48px;
      height: clamp(58px, 4.03vw, 74px); display: flex; align-items: center; gap: 0;
    }
.logo { flex-shrink: 0; }
.logo img { height: clamp(40px, 2.82vw, 52px); width: auto; transition: height .25s cubic-bezier(.22,1,.36,1); }
header.s .logo img { height: clamp(32px, 2.25vw, 41px); }
.hd-nav { display: flex; gap: 0; align-items: center; margin-left: auto; }
.hd-nav > li { position: relative; }
.hd-nav a, .ndrop {
      display: inline-flex; align-items: center; gap: 4px;
      padding: 5px 12px; font-family: inherit; font-size: clamp(13px, 0.9vw, 15.9px);
      font-weight: 400; color: var(--md); background: none; border: none;
      cursor: pointer; border-radius: 3px; transition: color .15s, background .15s;
    }
.hd-nav a:hover, .ndrop:hover { color: var(--o); background: rgba(241,90,36,.06); text-decoration: none; }
.ndrop .ic { font-size: 8px; opacity: .35; transition: transform .15s; }
.hd-nav > li:hover .ndrop .ic { transform: rotate(180deg); }
.ndm {
      position: absolute; top: 100%; padding-top: 4px; left: 0; min-width: 210px;
      background: var(--wh); border: 1px solid var(--bd); border-radius: 4px;
      box-shadow: 0 8px 24px rgba(0,0,0,.08);
      opacity: 0; pointer-events: none; transform: translateY(-4px);
      transition: opacity .15s, transform .15s;
    }
.hd-nav > li:hover .ndm { opacity: 1; pointer-events: all; transform: none; }
.ndm a { display: block; padding: 8px 14px; font-size: clamp(12.5px, 0.87vw, 15.2px); color: var(--md); }
.ndm a:hover { color: var(--o); background: rgba(241,90,36,.04); text-decoration: none; }
.ndm-sep { height: 1px; background: var(--bd); margin: 3px 0; }
.hcta {
      background: transparent !important; color: var(--o) !important; border: 1.5px solid var(--o) !important;
      margin-left: 8px; padding: 7px 18px !important;
      border-radius: 3px !important; font-weight: 600 !important;
    }
.hcta, .hcta * { color: var(--o) !important; }
.hcta:hover { background: rgba(241,90,36,.06) !important; text-decoration: none !important; }
.burger {
      display: flex; flex-direction: column; justify-content: center;
      gap: 5.5px; background: none; border: none; cursor: pointer;
      width: 38px; height: 38px; padding: 7px; border-radius: 4px;
      margin-left: 8px; flex-shrink: 0; transition: background .15s;
    }
.burger:hover { background: rgba(241,90,36,.06); }
.burger:hover span { background: var(--o); }
.burger span {
      display: block; width: 20px; height: 1.5px;
      background: var(--dk); border-radius: 2px; transform-origin: center;
      transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .2s ease, width .3s cubic-bezier(.22,1,.36,1);
    }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; width: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mega {
      position: fixed; top: clamp(58px, 4.03vw, 74px); left: 0; right: 0; bottom: 0; z-index: 199;
      background: var(--wh); border-top: 1px solid var(--bd);
      box-shadow: 0 12px 40px rgba(0,0,0,.08);
      transform: translateY(-12px); opacity: 0; pointer-events: none;
      transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .25s ease;
      overflow-y: auto;
    }
.mega.open { transform: translateY(0); opacity: 1; pointer-events: all; }
.mega-in {
      max-width: var(--content-w); margin: 0 auto; padding: 48px 48px 40px;
      display: grid; grid-template-columns: 2fr 1px max-content 1px 1fr; gap: 0 40px;
    }
.mega-divider { background: var(--bd); width: 1px; align-self: stretch; }
.mega-col { min-width: 0; }
.mega-col-lbl { font-size: clamp(9.5px, 0.66vw, 11.6px); font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--o); margin-bottom: 16px; }
.mega-dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mega-link {
      display: flex; align-items: center; gap: 10px; padding: 8px 10px;
      border-radius: 4px; font-size: clamp(13px, 0.9vw, 15.9px); color: var(--md);
      transition: background .12s, color .12s; text-decoration: none;
    }
.mega-link:hover { background: rgba(241,90,36,.06); color: var(--o); text-decoration: none; }
.mega-link .mi { width: 15px; text-align: center; font-size: clamp(11px, 0.76vw, 13.4px); color: var(--ac); flex-shrink: 0; transition: color .12s; }
.mega-link:hover .mi { color: var(--o); }
.mega-link-name { font-weight: 500; color: var(--dk); font-size: clamp(13px, 0.9vw, 15.9px); line-height: 1.3; transition: color .12s; }
.mega-link:hover .mega-link-name { color: var(--o); }
.mega-sep { height: 1px; background: var(--bd); margin: 10px 0; }
.mega-cta {
      max-width: var(--content-w); margin: 0 auto; padding: 20px 48px 32px;
      border-top: 1px solid var(--bd);
      display: flex; align-items: center; justify-content: space-between; gap: 24px;
    }
.mega-cta-txt { font-size: clamp(13px, 0.9vw, 15.9px); color: var(--md); }
.mega-cta-btn {
      display: inline-flex; align-items: center; gap: 8px; padding: 9px 22px;
      border-radius: 3px; background: transparent; color: var(--o);
      font-size: clamp(13px, 0.9vw, 15.9px); font-weight: 600; font-family: inherit; border: 1.5px solid var(--o);
      cursor: pointer; transition: filter .15s; text-decoration: none; white-space: nowrap;
    }
.mega-cta-btn:hover { background: rgba(241,90,36,.06); text-decoration: none; }
footer { background: var(--lt); border-top: 1px solid var(--bd); color: #494540; --fc1: #a8d8e8; --fc2: #9ecfcd; --fc3: #b3c9d8; --fc4: #b8c9b8; }
.ft2-in {
  max-width: var(--content-w); margin: 0 auto; padding: 56px 48px 48px;
  display: grid; grid-template-columns: 1.2fr 1.45fr 1fr 1.1fr; gap: 10px;
}
.ft2-in > div { padding: 36px 28px 40px; transition: background-color 1.6s ease; position: relative; }
.ft2-ghost { position: absolute; top: 18px; right: 18px; font-size: clamp(28px, 1.94vw, 34px); width: 1em; height: 1em; color: rgba(20,20,20,.10); pointer-events: none; }
.ft2-ghost-chain { position: absolute; top: 18px; right: 18px; display: flex; align-items: center; gap: 8px; pointer-events: none; color: rgba(20,20,20,.10); }
.ft2-ghost-chain .svgi { width: clamp(26px, 1.81vw, 32px); height: clamp(26px, 1.81vw, 32px); }
.ft2-ghost-chain .gc-arrow { width: clamp(14px, 0.97vw, 17px); height: clamp(14px, 0.97vw, 17px); }
.ft2-in > div:nth-child(3) .ft2-links a { white-space: nowrap; }
.ft2-in > div:nth-child(1) { background: var(--fc1); }
.ft2-in > div:nth-child(2) { background: var(--fc2); }
.ft2-in > div:nth-child(3) { background: var(--fc3); }
.ft2-in > div:nth-child(4) { background: var(--fc4); }
.ft2-brand img { height: 40px; width: auto; display: block; margin: -14px 0 5px; }
.ft2-claim { font-size: clamp(14px, 0.97vw, 17.1px); line-height: 1.65; color: #1d1c1a; max-width: 300px; margin: clamp(9px, calc(9px + (100vw - 1440px) * 0.0027), 12px) 0 14px; }
.ft2-since { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(10px, 0.69vw, 12.2px); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(20,20,20,.55); }
.ft2-since::before { content: ''; width: 22px; height: 2px; border-radius: 1px; background: var(--o); }
.ft2-lbl { font-size: clamp(10px, 0.69vw, 12.2px); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--o); margin-bottom: 18px; }
.ft2-links { display: flex; flex-direction: column; gap: 10px; }
.ft2-links.ft2-2col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 10px; }
.ft2-links a { font-size: clamp(13.5px, 0.94vw, 16.5px); color: #2b2a28; padding: 4px 10px; margin: -4px -10px; border-radius: 4px; transition: background .12s, color .12s; }
.ft2-links a:hover { color: var(--o); background: rgba(241,90,36,.06); text-decoration: none; }
.ft2-adr { font-style: normal; font-size: clamp(13.5px, 0.94vw, 16.5px); line-height: 1.7; color: #2b2a28; margin-bottom: clamp(2px, calc(2px + (100vw - 1440px) * 0.018), 22px); }
.ft2-kontakt a { display: inline-block; font-size: clamp(13.5px, 0.94vw, 16.5px); color: var(--o); margin-bottom: 4px; padding: 3px 10px; margin-left: -10px; border-radius: 4px; transition: background .12s, color .12s; }
.ft2-kontakt a:hover { color: var(--o); background: rgba(241,90,36,.06); text-decoration: none !important; }
footer .ft2-kontakt a { color: var(--o); }
footer .ft2-kontakt a:hover { color: var(--o); text-decoration: none; }
.ft2-kontakt a.ft2-cta, .ft2-kontakt a.ft2-cta:hover, footer .ft2-kontakt a.ft2-cta { color: var(--o); text-decoration: none; }
.ft2-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 20px;
  border: 1.5px solid var(--o); border-radius: 3px; color: var(--o);
  font-size: clamp(13px, 0.9vw, 15.9px); font-weight: 600; white-space: nowrap; transition: background .15s;
}
.ft2-cta:hover { background: rgba(241,90,36,.07); text-decoration: none; color: var(--o); }
.ft2-bar { border-top: 1px solid var(--bd); }
.ft2-bar-in {
  max-width: var(--content-w); margin: 0 auto; padding: 20px 48px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.ft2-bar-in, .ft2-bar-in a { font-size: clamp(12px, 0.83vw, 14.6px); color: #7d7871; }
.ft2-bar-in a { padding: 4px 10px; margin: -4px -10px; border-radius: 4px; transition: background .12s, color .12s; }
.ft2-bar-in a:hover { color: var(--o); background: rgba(241,90,36,.06); text-decoration: none; }
.ft2-o { color: var(--o); }
@media (max-width: 1000px) { .ft2-in { grid-template-columns: 1fr 1fr; gap: 10px; } }
@media (max-width: 720px) {
  .ft2-in { grid-template-columns: 1fr; padding: 44px 28px 40px; gap: 10px; }
  .ft2-in > div { padding: 32px 28px; }
  .ft2-bar-in { padding: 18px 28px; }
}

/* ── Inline-SVG-Icons (ersetzt Font Awesome) ── */
img { height: auto; }
.svgi { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; flex-shrink: 0; }

/* ── Tastatur-Bedienbarkeit ── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--o, #f15a24); outline-offset: 2px; border-radius: 3px;
}
.hd-nav > li:focus-within .ndm { opacity: 1; pointer-events: all; transform: none; }
.hd-nav > li:focus-within .ndrop .ic { transform: rotate(180deg); }
.mega { visibility: hidden; transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .25s ease, visibility 0s .35s; }
.mega.open { visibility: visible; transition-delay: 0s; }

/* ── Reduzierte Bewegung respektieren ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto !important; }
}

/* Gruppenlabels in Navigation und Mega-Menü */
.ndm-grp { display: flex; align-items: center; gap: 6px; padding: 9px 14px 3px; font-size: clamp(9px, 0.62vw, 11px); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--md); opacity: .75; }
.mega-grp { grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; margin-top: 6px; padding: 6px 10px 2px; font-size: clamp(9.5px, 0.66vw, 11.6px); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--md); opacity: .8; }

/* Markierungsfarbe + Fokus-Details */
::selection { background: rgba(241,90,36,.85); color: #fff; }
/* Scroll-Reveals (nur ohne reduced-motion; Elemente werden per JS unterhalb des Folds markiert) */
@media (prefers-reduced-motion: no-preference) {
  .rvl { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
  .rvl.in { opacity: 1; transform: none; }
}

/* ── Projekt-Overlay (Referenzen als Projekte, analog Anfrage-Modal) ── */
.pj-ov { position: fixed; inset: 0; z-index: 9000; background: rgba(17,17,17,.5); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 32px 20px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.pj-ov.open { opacity: 1; pointer-events: all; }
.pj-card { background: var(--wh, #fff); border-radius: 12px; width: min(640px, 100%); max-height: 85vh; overflow: auto; box-shadow: 0 24px 64px rgba(0,0,0,.22); transform: translateY(16px); transition: transform .25s cubic-bezier(.22,1,.36,1); padding: 34px 38px; }
.pj-ov.open .pj-card { transform: none; }
.pj-kick { display: flex; align-items: center; gap: 10px; font-size: clamp(10px, 0.69vw, 12.2px); font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--md, #444); margin-bottom: 12px; }
.pj-kick::before { content: ''; width: 24px; height: 2px; border-radius: 1px; background: var(--pjc, var(--o, #f15a24)); }
.pj-title { font-size: clamp(1.4rem, 1.56vw, 1.7rem); font-weight: 700; letter-spacing: -.02em; color: var(--dk, #111); line-height: 1.25; margin-bottom: 14px; }
.pj-body { font-size: clamp(14.5px, 1.01vw, 17.7px); line-height: 1.75; color: var(--md, #444); white-space: pre-line; }
.pj-close { float: right; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--bd, #e6e4e0); background: var(--wh, #fff); cursor: pointer; color: var(--md, #444); font-size: clamp(15px, 1.04vw, 18.3px); line-height: 1; margin-left: 12px; }
.pj-close:hover { border-color: var(--o, #f15a24); color: var(--o, #f15a24); }

/* ── Mobile: Footer-Spalten als Akkordeon ── */
@media (max-width: 720px) {
  .ft2-ghost, .ft2-ghost-chain { display: none; }
  .ft2-col > .ft2-lbl { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0; cursor: pointer; }
  .ft2-col > .ft2-lbl::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s; margin-right: 2px; }
  .ft2-col.open > .ft2-lbl::after { transform: rotate(225deg); }
  .ft2-col .ft2-links, .ft2-col .ft2-adr, .ft2-kontakt > a { display: none; }
  .ft2-col.open .ft2-links { display: flex; margin-top: 16px; }
  .ft2-col.open .ft2-links.ft2-2col { display: grid; }
  .ft2-col.open .ft2-adr { display: block; margin-top: 16px; }
  .ft2-kontakt.open > a { display: inline-block; }
  .ft2-in > div { padding: 26px 28px; }
}

/* ── Vor/Zurück für scrollbare DL-Leisten ── */
.strip-nav { display: none; justify-content: flex-end; gap: 8px; margin-top: 4px; padding: 0 4px 6px; }
.strip-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--bd); background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--dk); transition: border-color .15s, color .15s;
}
.strip-btn:hover { border-color: var(--o); color: var(--o); }
