/* =========================================================================
   LLeyendecker — Basis (allen drei Layout-Entwürfen gemeinsam)
   Marke aus dem Original: Orange #EE7203 auf Schwarz, Poppins + DM Sans.
   Layout-spezifisches steht in a.css / b.css / c.css.
   ========================================================================= */

:root {
  --black:     #000000;
  --surface:   #0b0b0b;
  --surface-2: #141414;
  --line:      rgba(255, 255, 255, .11);
  --line-2:    rgba(255, 255, 255, .2);
  --white:     #ffffff;
  --grey:      #a3a3a3;
  --grey-dim:  #737373;

  --orange:    #ee7203;
  --orange-hi: #ff8a24;

  --ff-display: "Poppins", "Segoe UI", Arial, sans-serif;
  --ff-body:    "DM Sans", "Segoe UI", Arial, sans-serif;

  --pad-x: clamp(1.25rem, 5vw, 5.5rem);
  --pad-y: clamp(4.5rem, 10vh, 8.5rem);
  --gap:   clamp(1rem, 2.2vw, 1.75rem);
  --maxw:  1520px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--ff-body);
  font-size: clamp(.98rem, .35vw + .9rem, 1.075rem);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ---------- Typo-Helfer ---------- */
.lbl {
  font-family: var(--ff-body); font-size: .7rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
}
.light { font-family: var(--ff-display); font-weight: 200; }
.pipe { color: var(--orange); margin-right: .55em; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--orange); color: #fff; padding: .75rem 1.25rem;
  z-index: 999; font-weight: 600;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.45rem;
  font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  border: 1px solid var(--line-2);
  transition: background .28s var(--ease), color .28s var(--ease),
              border-color .28s var(--ease), transform .28s var(--ease);
}
.btn:hover { border-color: var(--orange); color: var(--orange); }
.btn-solid { background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 600; }
.btn-solid:hover { background: var(--orange-hi); border-color: var(--orange-hi); color: #fff; transform: translateY(-2px); }
.btn-sm { padding: .62rem 1.05rem; }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem var(--pad-x);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.topbar.is-stuck { background: rgba(0,0,0,.88); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; flex: none; }
.brand img { height: 26px; width: auto; flex: none; }
.brand-sub { display: none; color: var(--grey-dim); }
@media (min-width: 1000px) { .brand-sub { display: block; } }
.topbar-right { display: flex; align-items: center; gap: .85rem; }
@media (max-width: 560px) { .topbar-right > .btn { display: none; } }

.menu-btn { display: inline-flex; align-items: center; gap: .55rem; padding: .6rem .35rem; }
.menu-btn .bars { display: grid; gap: 4px; }
.menu-btn .bars i { display: block; width: 20px; height: 1.5px; background: currentColor; }

/* ---------- Mobile-Menü ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.97); backdrop-filter: blur(18px);
  display: grid; align-content: center; padding: 5rem var(--pad-x) 3rem;
  opacity: 0; visibility: hidden;
  transition: opacity .34s var(--ease), visibility .34s;
}
.sheet.is-open { opacity: 1; visibility: visible; }
.sheet-close { position: absolute; top: 1.1rem; right: var(--pad-x); padding: .5rem; }
.sheet-list { display: grid; gap: .2rem; }
.sheet-link { display: block; padding: .55rem 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.sheet-link .label {
  font-family: var(--ff-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.5rem, 7vw, 2.25rem); line-height: 1.15; letter-spacing: -.02em;
}
.sheet-cta { margin-top: 2rem; justify-content: center; }

/* ---------- Entwurf-Umschalter ---------- */
.switch {
  /* Rechts unten statt mittig — mittig verdeckt es die Ablaufleiste in Entwurf F. */
  position: fixed; z-index: 150;
  right: 1rem; bottom: 1rem;
  display: flex; align-items: center; gap: .3rem;
  padding: .4rem .45rem .4rem .95rem;
  background: rgba(10,10,10,.9); backdrop-filter: blur(12px);
  border: 1px solid var(--line-2); border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
}
.switch-label { color: var(--grey-dim); margin-right: .45rem; }
.switch a {
  display: grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 .55rem;
  border-radius: 999px; text-decoration: none; color: var(--grey);
  font-size: .72rem; font-weight: 600; letter-spacing: .08em;
  transition: background .22s var(--ease), color .22s var(--ease);
}
.switch a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.switch a[aria-current="page"] { background: var(--orange); color: #fff; }
@media (max-width: 560px) { .switch-label { display: none; } .switch { padding: .4rem .45rem; } }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--surface); }
.foot-in {
  display: grid; gap: 2rem; padding: clamp(2.5rem,5vw,3.5rem) var(--pad-x);
  max-width: var(--maxw); margin-inline: auto;
}
@media (min-width: 860px) { .foot-in { grid-template-columns: 1fr auto; align-items: center; } }
.foot-brand { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.foot-brand img { height: 30px; }
.foot-claim { color: var(--grey-dim); max-width: 34ch; font-size: .89rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.foot-links a {
  color: var(--grey); text-decoration: none;
  font-size: .7rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  transition: color .25s var(--ease);
}
.foot-links a:hover { color: var(--orange); }
.foot-bar { border-top: 1px solid var(--line); }
.foot-bar-in {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  padding: 1.15rem var(--pad-x); color: var(--grey-dim);
  max-width: var(--maxw); margin-inline: auto;
}

/* ---------- Formular (in allen Varianten gleich) ---------- */
.form-card { border: 1px solid var(--line); background: var(--surface); padding: clamp(1.5rem,3vw,2.25rem); }
.form-card h3 {
  font-family: var(--ff-display); font-weight: 800; text-transform: uppercase;
  letter-spacing: -.02em; font-size: 1.4rem; line-height: 1.1; margin-bottom: .4rem;
}
.form-card .hint { color: var(--grey); font-size: .92rem; margin-bottom: 1.45rem; }
/* Ein <select> ist so breit wie seine längste Option und schrumpft ohne
   min-width:0 nicht — das allein hat die ganze Kontaktspalte aufgeweitet. */
.field { display: grid; gap: .4rem; margin-bottom: .95rem; min-width: 0; }
.field input, .field textarea, .field select { min-width: 0; width: 100%; }
.field label { color: var(--grey-dim); font-size: .7rem; font-weight: 500; letter-spacing: .17em; text-transform: uppercase; }
.field input, .field textarea, .field select {
  font: inherit; font-size: .93rem;
  background: var(--black); color: var(--white);
  border: 1px solid var(--line-2); padding: .72rem .85rem;
  transition: border-color .25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--orange); outline: none; }
.field textarea { resize: vertical; min-height: 120px; }
.row2 { display: grid; gap: .95rem; }
@media (min-width: 520px) { .row2 { grid-template-columns: 1fr 1fr; } .row2 .field { margin-bottom: 0; } }
.consent { display: flex; gap: .65rem; align-items: flex-start; margin: 1.15rem 0 1.4rem; font-size: .85rem; color: var(--grey); line-height: 1.5; }
.consent input { margin-top: .18rem; accent-color: var(--orange); width: 16px; height: 16px; flex: none; }
.consent a { color: var(--white); }
.form-note { margin-top: 1rem; font-size: .8rem; color: var(--grey-dim); line-height: 1.5; }

/* ---------- Kontaktbausteine ---------- */
.loc .kind { color: var(--orange); display: block; }
.loc h3 {
  font-family: var(--ff-display); font-weight: 800; text-transform: uppercase;
  letter-spacing: -.03em; font-size: 1.5rem; line-height: 1; margin-top: .45rem;
}
.loc address { font-style: normal; color: var(--grey); margin-top: 1rem; font-size: .93rem; line-height: 1.7; }
.loc .links { margin-top: 1rem; display: grid; gap: .35rem; }
.loc .links a {
  color: var(--white); text-decoration: none; font-size: .93rem;
  border-bottom: 1px solid var(--line-2); width: fit-content; padding-bottom: 1px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.loc .links a:hover { color: var(--orange); border-color: var(--orange); }

.person { display: flex; align-items: center; gap: .9rem; }
.person img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex: none; }
.person .n { font-size: .93rem; line-height: 1.3; }
.person .r { display: block; color: var(--grey-dim); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; margin-top: .32rem; }

/* ---------- Bausteine, die alle Varianten teilen (überschreibbar) ---------- */
.eyebrow { color: var(--white); margin-bottom: 1rem; }
.sec-title {
  font-family: var(--ff-display); font-weight: 800; text-transform: uppercase;
  letter-spacing: -.035em; line-height: .95;
  font-size: clamp(2rem, 6vw, 4.25rem);
}
.sec-intro {
  font-family: var(--ff-display); font-weight: 200;
  font-size: clamp(1.1rem, 1vw + .9rem, 1.6rem); line-height: 1.4;
  max-width: 30ch; margin-top: 1.3rem;
}
.lead {
  font-family: var(--ff-display); font-weight: 200;
  font-size: clamp(1.1rem, 1vw + .9rem, 1.55rem); line-height: 1.4; margin-bottom: 1.3rem;
}
.mt { margin-top: 1.75rem; }

.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.75rem; }
.filter {
  padding: .58rem 1rem; font-size: .7rem; font-weight: 500;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--grey); border: 1px solid var(--line);
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.filter:hover { color: var(--white); border-color: var(--line-2); }
.filter[aria-pressed="true"] { color: #fff; background: var(--orange); border-color: var(--orange); }
.filter .n { opacity: .5; margin-left: .5rem; }
.filter[aria-pressed="true"] .n { opacity: .75; }

.work { position: relative; overflow: hidden; }
.work.is-hidden { display: none; }
.work-img { overflow: hidden; aspect-ratio: 3 / 2; background: var(--surface); }
.work-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.85) brightness(.85);
  transition: transform .75s var(--ease), filter .5s var(--ease);
}
.work:hover .work-img img { transform: scale(1.06); filter: saturate(1) brightness(1); }
.work-cap h3 {
  font-family: var(--ff-display); font-weight: 600; text-transform: uppercase;
  font-size: 1rem; line-height: 1.2; letter-spacing: -.01em;
}
.work-cap .meta { display: block; margin-top: .4rem; color: var(--grey-dim); font-size: .84rem; line-height: 1.5; }

.news-card { display: flex; flex-direction: column; background: var(--surface); }
.news-card .img { aspect-ratio: 16 / 10; overflow: hidden; }
.news-card .img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.9); transition: transform .75s var(--ease); }
.news-card:hover .img img { transform: scale(1.05); }
.news-card .body { padding: 1.2rem 1.3rem 1.45rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.news-card h3 {
  font-family: var(--ff-display); font-weight: 600; text-transform: uppercase;
  font-size: 1.05rem; line-height: 1.2; letter-spacing: -.01em;
}
.news-card p {
  color: var(--grey); font-size: .89rem; line-height: 1.62;
  display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden;
}

.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0; }
@media (min-width: 560px) { .facts { grid-template-columns: 1fr 1fr; } }
.fact { background: var(--surface); padding: 1.4rem 1.35rem; }
.fact dt { color: var(--grey-dim); }
.fact dd { margin: .6rem 0 0; color: var(--grey); font-size: .92rem; line-height: 1.55; }
.fact dd b {
  display: block; font-family: var(--ff-display); font-weight: 800; letter-spacing: -.03em;
  color: var(--white); font-size: 1.7rem; line-height: 1; margin-bottom: .38rem;
}

.trades { margin-top: 1.3rem; display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.trades li { background: var(--surface); padding: .75rem 0; font-size: .92rem; }
.apprentice h3, .jobs-cols h3, .jobs-grid h3 {
  font-family: var(--ff-display); font-weight: 800; text-transform: uppercase;
  letter-spacing: -.02em; font-size: 1.3rem; line-height: 1.15; margin-bottom: .8rem;
}
.jobs p + p, .about-copy p + p, .jobs-cols p + p, .jobs-grid p + p { margin-top: 1.1rem; }
.about-copy p, .jobs p, .jobs-cols p, .jobs-grid p, .apprentice p { color: var(--grey); }

/* Grid-Items haben min-width:auto — ohne min-width:0 sprengen lange E-Mail-
   und Adresszeilen auf schmalen Displays die Spalte (320px: 32px Überlauf). */
.contact-grid > *, .locations, .people, .loc, .person, .form-card { min-width: 0; }
.loc address, .loc .links a, .person .n { overflow-wrap: anywhere; }

.locations { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 620px) { .locations { grid-template-columns: 1fr 1fr; } }
.loc { background: var(--surface); padding: 1.7rem 1.55rem; }
.people { margin-top: var(--gap); display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 560px) { .people { grid-template-columns: 1fr 1fr; } }
.person { background: var(--surface); padding: 1.15rem 1.2rem; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 780px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: rgba(0,0,0,.5); padding: 1.15rem 1.2rem; }
.stat .v {
  font-family: var(--ff-display); font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(1.4rem, 2.7vw, 2.1rem); line-height: 1;
}
.stat .k { color: var(--grey-dim); margin-top: .5rem; display: block; }

.rail-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--grey);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.rail-btn:hover:not(:disabled) { color: var(--orange); border-color: var(--orange); }
.rail-btn:disabled { opacity: .3; cursor: default; }
.hscroll-nav { display: flex; gap: .4rem; margin-top: 1.5rem; }

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .07s; }
.rv-d2 { transition-delay: .14s; }
.rv-d3 { transition-delay: .21s; }

/* ---------- Rechtsseiten ---------- */
.legal { padding: clamp(7rem,14vh,9.5rem) var(--pad-x) var(--pad-y); max-width: var(--maxw); margin-inline: auto; }
.legal h1 {
  font-family: var(--ff-display); font-weight: 800; text-transform: uppercase;
  letter-spacing: -.03em; font-size: clamp(2rem,6vw,4rem); line-height: .96; margin-bottom: 2.75rem;
}
.legal-doc { max-width: 74ch; }
.legal-doc h2 {
  font-family: var(--ff-display); font-weight: 800; text-transform: uppercase;
  letter-spacing: -.02em; font-size: clamp(1.2rem,2.3vw,1.55rem); line-height: 1.15;
  margin: 2.75rem 0 .9rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.legal-doc h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.legal-doc h3 { font-family: var(--ff-display); font-size: 1.02rem; font-weight: 600; margin: 1.75rem 0 .6rem; }
.legal-doc p, .legal-doc li { color: var(--grey); font-size: .93rem; line-height: 1.75; }
.legal-doc p + p { margin-top: .8rem; }
.legal-doc ul { margin: .8rem 0; display: grid; gap: .4rem; }
.legal-doc ul li { padding-left: 1.15rem; position: relative; }
.legal-doc ul li::before { content: ""; position: absolute; left: 0; top: .75em; width: 6px; height: 1px; background: var(--orange); }
.legal-doc a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.legal-doc a:hover { color: var(--orange); text-decoration-color: var(--orange); }
.legal-doc strong { color: var(--white); font-weight: 600; }

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