/* InSign Raummiete — Graphit + InSign-Grün, angelehnt an den Raum selbst
   (dunkle Türen, Filzpaneele, Holzbalken). Systemschriften, keine externen
   Ressourcen (DSGVO, CSP default-src 'self'). */
:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #22282b;
  --muted: #5d6468;
  --line: #e2e0d8;
  --lime: #b1ca00;
  --lime-ink: #5f6d00;
  --lime-soft: #f1f5d6;
  --wood: #c99a5b;
  --danger: #a33a32;
  --radius: 10px;
  --display: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-color: var(--lime); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; text-wrap: balance; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--lime-ink); margin: 0 0 10px; }
:focus-visible { outline: 2px solid var(--lime-ink); outline-offset: 2px; }

/* Kopf / Fuß */
.kopf { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 10; }
.kopf__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.marke { color: #fff; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.marke__punkt { width: 12px; height: 12px; border-radius: 50%; background: var(--lime); }
.marke__zusatz { font-weight: 400; opacity: .7; }
.kopf__cta { background: var(--lime); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: 999px; border: 0; cursor: pointer; font-family: inherit; }
.kopf__cta--leise { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.fuss { background: var(--ink); color: rgba(255,255,255,.75); margin-top: 72px; font-size: 14px; }
.fuss__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; }
.fuss nav { display: flex; gap: 18px; }
.fuss a { color: #fff; }

/* Einstieg */
.intro { padding-block: 48px 28px; max-width: 760px; }
.intro h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; margin-bottom: 14px; }
.lead { font-size: 18px; color: var(--muted); margin: 0; }

/* Fotos: erstes Bild groß, bis zu vier weitere als 2×2 */
.fotos { display: grid; gap: 10px; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 210px; }
.fotos__item { display: block; border-radius: var(--radius); overflow: hidden; background: var(--line); min-width: 0; cursor: zoom-in; }
.fotos__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.fotos__item:hover img { transform: scale(1.03); }
.fotos__item:first-child { grid-row: span 2; }
.fotos--1 { grid-template-columns: 1fr; grid-auto-rows: 440px; }
.fotos--2 { grid-template-columns: 2fr 1fr; grid-auto-rows: 320px; }
.fotos--2 .fotos__item:first-child { grid-row: auto; }
.fotos--3 { grid-template-columns: 2fr 1fr; }

.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.facts li { font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.facts li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); margin-right: 8px; vertical-align: 1px; }

/* Rechner */
.rechner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 56px; }
.form { display: flex; flex-direction: column; gap: 32px; }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
legend { font-family: var(--display); font-size: 20px; font-weight: 700; padding: 0; margin-bottom: 12px; }
.dauer { display: flex; align-items: center; gap: 16px; }
.dauer input[type="range"] { flex: 1; accent-color: var(--lime-ink); }
.dauer output { font-family: var(--display); font-size: 24px; font-weight: 700; min-width: 5.5ch; text-align: right; font-variant-numeric: tabular-nums; }
.opt { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.opt input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--lime-ink); }
.opt label { font-weight: 600; cursor: pointer; }
.opt__preis { font-size: 14px; color: var(--muted); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.opt__desc { grid-column: 2 / 4; font-size: 13px; color: var(--muted); }
.anzahl { width: 4.5em; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; text-align: right; background: var(--bg); color: var(--ink); }
.anzahl:disabled { opacity: .5; }

.beleg { position: sticky; top: 80px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; box-shadow: 0 12px 32px -20px rgba(34, 40, 43, .35); }
.beleg h2 { font-size: 18px; margin-bottom: 12px; }
.beleg table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.beleg td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.beleg td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.beleg td span { display: block; font-size: 13px; color: var(--muted); }
.chip { display: inline-block !important; font-size: 11px !important; font-weight: 600; padding: 1px 8px; margin-left: 4px; border-radius: 999px; background: var(--lime-soft); color: var(--lime-ink) !important; }
.beleg__total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 6px; font-weight: 600; }
.beleg__total strong { font-family: var(--display); font-size: 34px; font-variant-numeric: tabular-nums; }
.beleg__kaution { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.btn { display: block; text-align: center; margin-top: 18px; padding: 13px 20px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; }
.btn:hover { background: #000; }

/* Preisliste / Anfrage */
.preise, .anfrage { margin-top: 64px; }
.preise h2, .anfrage h2 { font-size: 26px; margin-bottom: 14px; }
.preise__scroll { overflow-x: auto; margin-bottom: 12px; }
.preise table { width: 100%; min-width: 480px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.preise th, .preise td { text-align: left; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); }
.preise th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.anfrage { background: var(--ink); color: #fff; border-radius: 16px; padding: 36px; }
.anfrage p { margin: 0 0 14px; max-width: 62ch; color: rgba(255,255,255,.8); }
.anfrage .hint { color: rgba(255,255,255,.6); }
.anfrage__kontakt { display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: 18px; color: #fff !important; }
.anfrage__kontakt a, .anfrage__kontakt strong { color: var(--lime); font-weight: 600; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(15, 18, 20, .92); display: flex; align-items: center; justify-content: center; padding: 24px 64px; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox img { max-height: calc(100vh - 110px); width: auto; border-radius: 6px; }
.lightbox figcaption { color: #fff; font-size: 14px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 46px; height: 46px; font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox__zu { top: 16px; right: 16px; }
.lightbox__nav--zurueck { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--weiter { right: 12px; top: 50%; transform: translateY(-50%); }

@media (max-width: 860px) {
  .rechner { grid-template-columns: 1fr; }
  .beleg { position: static; }
}
@media (max-width: 600px) {
  .fotos, .fotos--2, .fotos--3 { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; }
  .fotos__item:first-child { grid-column: 1 / -1; grid-row: span 2; }
  .fotos--1 { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .intro { padding-top: 32px; }
  .anfrage { padding: 24px; }
  .lightbox { padding: 16px; }
  .kopf__cta:not(.kopf__cta--leise) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fotos__item img { transition: none; }
}
