/* ==========================================================================
   LUMA Shell — Tokens, Grundlagen, Kopf, Fuss, Bedienelemente.
   Wird von jeder Seite geladen und ist damit ab dem zweiten Seitenaufruf
   im Cache. Seitenspezifisches steht in luma-home.css bzw. luma-static.css.
   ========================================================================== */

/* --- Schriften: lokal ausgeliefert, keine Anfrage an Dritte ---------------- */

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/barlow-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/barlow-400-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/barlow-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/barlow-600-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/barlow-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/barlow-700-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/barlow-condensed-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/barlow-condensed-700-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/barlow-condensed-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/barlow-condensed-800-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/assets/fonts/barlow-condensed-900.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/assets/fonts/barlow-condensed-900-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Tokens ---------------------------------------------------------------
   Die Orangetoene sind nach Einsatzort getrennt, weil ein einziges Orange
   nicht gleichzeitig als Flaeche und als kleiner Text kontrastsicher ist:
     --orange        Flaeche und grosse Displaytypografie (Markenton)
     --orange-cta    Flaeche unter weissem Text            4,55:1
     --orange-ink    kleiner Text auf hellem Grund         4,50:1
     --orange auf --ink als Text                           5,34:1
   -------------------------------------------------------------------------- */

:root {
  --ink: #17130e;
  --ink-2: #211c15;
  --ink-3: #2c261d;
  --ink-deep: #0d0b08;
  --paper: #faf8f5;
  --paper-2: #f1ebe2;
  --paper-3: #e9e1d5;
  --text: #2a2318;
  --muted: #6f6353;
  --orange: #e8621a;
  --orange-cta: #c94f13;
  --orange-ink: #b34b14;
  --line-dark: rgba(255, 255, 255, .1);
  --line-light: #ded4c7;

  --on-ink: rgba(255, 255, 255, .82);
  --on-ink-soft: rgba(255, 255, 255, .62);
  --on-ink-label: rgba(255, 255, 255, .62);

  --max: 1280px;
  --side: clamp(20px, 4vw, 48px);
  --header-h: 68px;

  --heading: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  --ease: cubic-bezier(.2, .7, .3, 1);
  --dur: .42s;
}

/* --- Grundlagen ----------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

::selection { background: var(--orange); color: #fff; }

/* Ein Sprungziel darf nicht unter dem klebenden Kopf landen. */
:target,
[id] { scroll-margin-top: calc(var(--header-h) + 22px); }

/* Sichtbarer Fokus ueberall — die Farbwechsel allein reichen nicht. */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 1px;
}
.on-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible { outline-color: #fff; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--orange-cta);
  color: #fff;
  font-family: var(--heading);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

.shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-left: var(--side);
  padding-right: var(--side);
}

/* --- Typografie ----------------------------------------------------------- */

.section-title,
.display {
  margin: 0;
  font-family: var(--heading);
  font-weight: 900;
  letter-spacing: -.5px;
  line-height: .95;
  text-transform: uppercase;
  text-wrap: balance;
}

.section-title {
  color: var(--ink);
  font-size: clamp(40px, 5vw, 66px);
}

.on-dark .section-title { color: #fff; }

.section-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--orange-ink);
  font-family: var(--heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2.6px;
  text-transform: uppercase;
}
.section-line::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}
.on-dark .section-line { color: var(--orange); }

.lead {
  margin: 20px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}
.on-dark .lead,
.on-dark p { color: var(--on-ink-soft); }

/* --- Bedienelemente ------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 26px;
  border: 0;
  background: var(--orange-cta);
  color: #fff;
  font-family: var(--heading);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1.4px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.button:hover { background: #a94010; transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button .arrow { transition: transform .2s var(--ease); }
.button:hover .arrow { transform: translateX(4px); }

.button.light {
  background: #fff;
  color: var(--orange-ink);
}
.button.light:hover { background: var(--paper-2); }

.button.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .4);
  color: #fff;
}
.button.ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  color: var(--orange-ink);
  font-family: var(--heading);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-decoration: none;
  text-transform: uppercase;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link .arrow { transition: transform .2s var(--ease); }
.text-link:hover .arrow { transform: translateX(4px); }
.on-dark .text-link { color: var(--orange); }

/* --- Kopfbereich ---------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(23, 19, 14, .92);
  border-bottom: 1px solid transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: rgba(23, 19, 14, .78); backdrop-filter: blur(16px) saturate(1.4); }
}
.site-header[data-scrolled="true"] {
  background: rgba(23, 19, 14, .97);
  border-bottom-color: var(--line-dark);
}

/* Lesefortschritt als Haarlinie an der Unterkante des Kopfs. */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--orange);
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}
.brand img { width: 92px; height: 38px; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 2px;
  color: rgba(255, 255, 255, .74);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2px;
  text-decoration: none;
  transition: color .2s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .22s var(--ease);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after,
.nav-links a[aria-current="true"]::after { transform: scaleX(1); }
.nav-links a[aria-current="true"] { color: #fff; }

/* Der Knopf traegt eine eigene Regel, weil `.nav-links a` sonst seine
   Textfarbe ueberschreibt und ihn ausgegraut aussehen laesst. */
/* `.nav-links a` (0-1-1) schlaegt `.button` und `.nav-phone` (0-1-0). Ohne
   diese Regel erben beide Farbe UND Schriftschnitt der Navigationslinks: der
   Knopf sieht ausgegraut aus, und der Schnitt 600 zwingt den Browser, eine
   zusaetzliche Schriftdatei zu laden, die sonst niemand braucht. */
.nav-links a.button,
.nav-links a.nav-phone {
  color: #fff;
  min-height: 44px;
  font-weight: 800;
}
.nav-links a.button { font-size: 14px; padding: 12px 20px; }
.nav-links a.button::after,
.nav-links a.nav-phone::after { content: none; }

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--heading);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .6px;
  white-space: nowrap;
}
.nav-phone:hover { color: var(--orange); }
.nav-phone svg { width: 15px; height: 15px; flex: 0 0 auto; fill: var(--orange); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-right: -8px;
  padding: 0;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.nav-toggle:hover { border-color: rgba(255, 255, 255, .34); }
.nav-toggle .bar {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform .24s var(--ease), background-color .1s linear;
}
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform .24s var(--ease);
}
.nav-toggle .bar::before { top: -6px; }
.nav-toggle .bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar::after { transform: translateY(-6px) rotate(-45deg); }

/* --- Fussbereich ---------------------------------------------------------- */

.site-footer {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, .62);
  padding: 68px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(32px, 4vw, 54px);
  margin-bottom: 48px;
}

.footer-logo { width: 92px; height: 38px; object-fit: contain; margin-bottom: 20px; }

.footer-about {
  max-width: 30ch;
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.7;
}

.social { display: flex; flex-wrap: wrap; gap: 10px; }

.social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.social a:hover {
  color: #fff;
  border-color: var(--orange);
  background: var(--orange-cta);
}
.social svg { width: 17px; height: 17px; fill: currentColor; }

.footer-col h2 {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, .64);
  font-family: var(--heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.footer-col a,
.footer-col p {
  display: block;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, .7);
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
}
.footer-col a {
  min-height: 24px;
  transition: color .2s var(--ease);
}
.footer-col a:hover { color: var(--orange); }

.footer-contact address {
  margin: 0 0 14px;
  font-style: normal;
  color: rgba(255, 255, 255, .7);
  font-size: 15px;
  line-height: 1.6;
}
.footer-contact .strong-link {
  font-family: var(--heading);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .6px;
  color: #fff;
}
.footer-contact .strong-link:hover { color: var(--orange); }
.footer-hours {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, .6);
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .58);
  font-size: 14px;
}

.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: rgba(255, 255, 255, .68);
  text-decoration: none;
}
.footer-bottom a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* --- Bewegung -------------------------------------------------------------
   Der Ruhezustand ist sichtbar. Erst wenn JavaScript laeuft UND das System
   keine Bewegungsreduktion verlangt, wird `motion` gesetzt und die Elemente
   starten versetzt. Ohne JavaScript ist alles sofort lesbar.
   -------------------------------------------------------------------------- */

.reveal { opacity: 1; transform: none; }

html.motion .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
html.motion .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  html.motion .reveal { opacity: 1; transform: none; }
}

/* --- Umbrueche ------------------------------------------------------------ */

@media (max-width: 900px) {
  :root { --header-h: 60px; }

  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--side) 22px;
    background: rgba(23, 19, 14, .99);
    border-bottom: 1px solid var(--line-dark);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .45);
  }
  .site-header[data-menu="open"] .nav-links { display: flex; }

  .nav-links a {
    min-height: 52px;
    padding: 0 2px;
    font-size: 17px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .nav-links a::after { content: none; }
  .nav-links a[aria-current="true"] { color: var(--orange); }

  .nav-links a.nav-phone {
    margin-top: 14px;
    border-bottom: 0;
    font-size: 22px;
  }
  .nav-links a.button {
    margin-top: 12px;
    width: 100%;
    min-height: 52px;
    font-size: 16px;
    border-bottom: 0;
  }

  /* Ohne JavaScript kann der Umschalter nicht wirken — dann bleibt die
     Navigation dauerhaft ausgeklappt und erreichbar. */
  html.no-js .nav-links { display: flex; position: static; padding: 0 0 18px; box-shadow: none; }
  html.no-js .nav-toggle { display: none; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 14px; }
}
