/* Schraubfeld — Stahlholm, Hebebucht, Rechnungsbrett. */
:root {
  --stahl: #6d7278;
  --oel: #1a1c1e;
  --sahne: #f3efe4;
  --rost: #b4532a;
  --lift: #d4a017;
  --graphit: #2b2e32;
  --carbon: #c8c2b4;
  --fehl: #a3261c;
  --gut: #3d5c3a;
}

*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

.hallenboden {
  margin: 0;
  min-height: 100vh;
  color: var(--oel);
  background:
    radial-gradient(circle at 12% 20%, rgba(212, 160, 23, 0.08), transparent 28%),
    repeating-linear-gradient(90deg, #d8d4cb 0 2px, #e4e0d6 2px 28px);
  font-family: Chivo, "Arial Narrow", sans-serif;
  font-size: 1.03rem;
  line-height: 1.58;
}

.hallenboden.halle-stop { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rost); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--lift);
  outline-offset: 2px;
}

.hallsprung {
  position: absolute;
  left: 0.9rem;
  top: -3.2rem;
  background: var(--graphit);
  color: var(--sahne);
  padding: 0.4rem 0.7rem;
  z-index: 90;
}
.hallsprung:focus { top: 0.6rem; }

/* Riveted steel header */
.stahlholm {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 4vw;
  background:
    radial-gradient(circle at 1.1rem 50%, #8a9096 0 0.22rem, transparent 0.24rem),
    radial-gradient(circle at calc(100% - 1.1rem) 50%, #8a9096 0 0.22rem, transparent 0.24rem),
    linear-gradient(180deg, #4d5258 0%, #2b2e32 55%, #23262a 100%);
  color: var(--sahne);
  border-bottom: 5px solid var(--lift);
}

.werkmarke {
  text-decoration: none;
  color: var(--sahne);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.05rem;
}
.werkmarke small {
  display: block;
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--lift);
  margin-top: 0.2rem;
}

.heinzahn {
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--lift);
  background: transparent;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 0.45rem;
  cursor: pointer;
}
.heinzahn span {
  display: block;
  background: var(--lift);
}
.heinzahn[aria-expanded="true"] span:nth-child(2),
.heinzahn[aria-expanded="true"] span:nth-child(3) { opacity: 0.35; }

.boxenplan {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}
.boxenplan a {
  text-decoration: none;
  color: var(--sahne);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.boxenplan a[aria-current="page"] { color: var(--lift); }
.boxenplan .klingel {
  color: var(--carbon);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 860px) {
  .boxenplan {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 80;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--oel);
  }
  .boxenplan a { font-size: 1.08rem; }
  .boxenplan.bucht-offen { display: flex; }
  .heinzahn { position: relative; z-index: 90; }
}

@media (min-width: 861px) {
  .heinzahn { display: none; }
}

.werkflur {
  padding: 1.3rem 4vw 2.4rem;
}

/* Lift bay: posts left/right, photo, invoice desk */
.hebebucht {
  display: grid;
  grid-template-columns: 14px 1fr 14px;
  grid-template-areas:
    "lp foto rp"
    "lp tisch rp";
  gap: 0.7rem 0.55rem;
  background: #cfc9bb;
  padding: 0.7rem;
  box-shadow: inset 0 0 0 2px #8a8578;
}

.liftpfeiler {
  background:
    repeating-linear-gradient(180deg, var(--lift) 0 10px, #b38610 10px 12px);
  box-shadow: inset 0 0 0 2px #8a6a0c;
}
.liftpfeiler--links { grid-area: lp; }
.liftpfeiler--rechts { grid-area: rp; }

.buchtfoto {
  grid-area: foto;
  margin: 0;
  background: var(--graphit);
}
.buchtfoto img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background:
    linear-gradient(180deg, #3a3e44, #1a1c1e);
}
.buchtfoto figcaption {
  padding: 0.4rem 0.55rem 0.5rem;
  color: var(--lift);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.buchtfoto--blatt {
  grid-area: auto;
  max-width: 38rem;
}

.rechnungsbrett {
  grid-area: tisch;
  background: var(--sahne);
  padding: 1.2rem 1.1rem 1.3rem;
  background-image: linear-gradient(180deg, transparent 0 1.4rem, rgba(180, 83, 42, 0.08) 1.4rem 1.45rem, transparent 1.45rem);
}

.stempelkopf {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rost);
}

.rechnungsbrett h1,
.auftragsschein h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.85rem, 4.2vw, 2.8rem);
  line-height: 1.12;
  margin: 0 0 0.7rem;
}

@media (min-width: 920px) {
  .hebebucht {
    grid-template-columns: 18px 1.15fr 0.95fr 18px;
    grid-template-areas: "lp foto tisch rp";
    align-items: stretch;
    min-height: 28rem;
  }
  .rechnungsbrett { padding: 1.8rem 1.6rem; }
}

.positionsliste {
  margin-top: 1rem;
  background: var(--sahne);
  border: 1px solid #b8b2a4;
}

.zeilepos {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  gap: 0.8rem;
  align-items: baseline;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #d5cfc0;
  font-size: 0.95rem;
}
.zeilepos:last-child { border-bottom: 0; }
.zeilepos span {
  font-variant-numeric: tabular-nums;
  color: var(--rost);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.zeilepos b { font-weight: 500; }
.zeilepos em { font-style: normal; color: var(--graphit); }

.auftragsschein {
  max-width: 44rem;
  margin: 0.4rem auto 0;
  background: var(--sahne);
  padding: 1.4rem 1.2rem 1.7rem;
  box-shadow: 0 0 0 1px #b8b2a4, 8px 10px 0 rgba(43, 46, 50, 0.12);
}
.auftragsschein h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
}

.positionsheft {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  counter-reset: pos;
}
.positionsheft li {
  counter-increment: pos;
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.7rem;
  padding: 0.85rem 0;
  border-top: 1px solid #d5cfc0;
}
.positionsheft li::before {
  content: counter(pos, decimal-leading-zero);
  color: var(--rost);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding-top: 0.25rem;
}
.positionsheft strong {
  display: block;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.18rem;
}

.stempelbtn {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.7rem 1.1rem;
  background: var(--graphit);
  color: var(--sahne);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scheinzeile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.8rem;
}
.scheinzeile span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rost);
}
.scheinzeile input,
.scheinzeile textarea {
  border: 1px solid #b8b2a4;
  background: #faf7ef;
  padding: 0.5rem 0.45rem;
  font: inherit;
  color: inherit;
}
.scheinzeile textarea { min-height: 7.5rem; resize: vertical; }
.position-fehl { border-color: var(--fehl) !important; box-shadow: inset 0 0 0 1px var(--fehl); }

.stempelkreuz {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.7rem 0 1rem;
  font-size: 0.92rem;
}
.stempelkreuz.position-fehl { outline: 1px solid var(--fehl); padding: 0.3rem; }

.abschlusszeile {
  padding: 0.9rem 0;
  color: var(--gut);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.28rem;
}

.stempelkante {
  padding: 2rem 4vw 5.8rem;
  background: var(--graphit);
  color: var(--sahne);
  display: grid;
  gap: 1.3rem;
}
.stempelkante a { color: var(--lift); }
.stempelkante nav { display: flex; flex-direction: column; gap: 0.35rem; }
.stempeljahr { opacity: 0.7; font-size: 0.78rem; letter-spacing: 0.04em; }

@media (min-width: 760px) {
  .stempelkante {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  .stempeljahr { grid-column: 1 / -1; }
}

.oelhinweis {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: var(--sahne);
  color: var(--oel);
  border-top: 6px solid var(--lift);
  padding: 1rem 4vw;
}
.oelwahl { display: flex; gap: 0.55rem; margin-top: 0.65rem; }
.oelwahl button {
  font: inherit;
  border: 0;
  padding: 0.48rem 0.85rem;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
}
.oelwahl [data-cookie-accept] { background: var(--graphit); color: var(--sahne); }
.oelwahl [data-cookie-reject] { background: transparent; color: var(--graphit); border: 1px solid var(--graphit); }
