/* ═══════════════════════════════════════════════════════════════
   RenovaPro Website — page styles (v2: light + warm/terracotta)
   Layered on top of colors_and_type.css (kept for fonts + motion).
   Audit 2026-05-09: changed away from dark+blue (read as IT/Wi-Fi)
   to light cream + terracotta accent (reads as renovation/craft).
═══════════════════════════════════════════════════════════════ */

:root {
  /* surfaces — warm light mode */
  --bg:        #F7F3EC;     /* warm cream page bg */
  --surface:   #FFFFFF;     /* white cards */
  --elevated:  #F1EBDF;     /* subtle warm gray (hover, inputs) */
  --elevated2: #E5DCC8;     /* chips, inner cards */
  --border:    #DDD1BB;     /* warm tan dividers */
  --border-hi: #B9A989;     /* darker tan for hover */

  /* text */
  --text:      #2B201A;     /* warm near-black */
  --text-dim:  #4F4239;     /* warm dark brown */
  --text-mute: #897966;     /* warm medium */

  /* brand accent — terracotta / construction warmth */
  --accent:       #B7873A;
  --accent-deep:  #8E6624;
  --accent-bg:    rgba(183, 135, 58, 0.08);
  --accent-bg-hi: rgba(183, 135, 58, 0.16);
  --accent-line:  rgba(183, 135, 58, 0.30);

  /* status — earth tones */
  --green: #6F8E4F;         /* delivered (handed over) */
  --amber: #C99327;         /* survey / starting */
  --red:   #B5413A;

  /* override design-system tokens (colors_and_type.css) so focus, ::selection,
     scrollbars and any direct --rp-* refs match the warm palette */
  --rp-bg:         #F7F3EC;
  --rp-surface:    #FFFFFF;
  --rp-elevated:   #F1EBDF;
  --rp-elevated-2: #E5DCC8;
  --rp-border:     #DDD1BB;
  --rp-border-hi:  #B9A989;
  --rp-text:       #2B201A;
  --rp-text-dim:   #4F4239;
  --rp-text-mute:  #897966;
  --rp-accent:     #B7873A;
  --rp-accent-dim: #8E6624;
  --rp-accent-bg:    rgba(183, 135, 58, 0.10);
  --rp-accent-bg-hi: rgba(183, 135, 58, 0.18);
  --rp-glow-accent:  0 0 12px rgba(183, 135, 58, 0.5);
}

body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.55; }
*, *::before, *::after { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: transparent; cursor: pointer; color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ─────────── NAV ─────────── */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(247,243,236,0.85); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 30px; height: 30px; border-radius: 7px; background: var(--accent); display: grid; place-items: center; color: #FFFFFF; font-family: var(--rp-font-display); font-weight: 700; font-size: 16px; }
.logo-name { font-family: var(--rp-font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: var(--text); }
.logo-name .accent { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--text-dim); }
.nav-links a { transition: color 0.15s; }
.nav-links a:hover { color: var(--accent); }
.lang { display: inline-flex; gap: 2px; font-family: var(--rp-font-mono); font-size: 11px; color: var(--text-mute); border: 1px solid var(--border); border-radius: 4px; padding: 2px; }
.lang button { padding: 3px 7px; border-radius: 3px; transition: all 0.15s; }
.lang button.on { background: var(--accent-bg); color: var(--accent); }
.lang button:hover:not(.on) { color: var(--text-dim); }
.nav-cta { padding: 7px 14px; font-size: 13px; }

/* ─────────── BUTTONS ─────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 6px; font-weight: 500; font-size: 14px; transition: all 0.18s var(--rp-ease); cursor: pointer; }
.btn-primary { background: var(--accent); color: #FFFFFF; border: 1px solid var(--accent); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-hi); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ─────────── HERO ─────────── */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero-bg-glow { position: absolute; top: -200px; left: 50%; transform: translateX(-50%); width: 900px; height: 600px; background: radial-gradient(ellipse at center, rgba(183,135,58,0.10), transparent 60%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; position: relative; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--accent-bg); border: 1px solid var(--accent-line); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); font-family: var(--rp-font-mono); }
.eyebrow-pill .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); animation: rp-pulse 2s infinite; }
h1.hero-title { font-family: var(--rp-font-display); font-size: 56px; line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; margin: 22px 0 18px; color: var(--text); }
h1.hero-title .accent { color: var(--accent); }
.hero-sub { font-size: 17px; line-height: 1.55; color: var(--text-dim); max-width: 520px; }
.cta-row { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 32px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); }
.stat .num { font-family: var(--rp-font-display); font-size: 26px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.stat .num .accent { color: var(--accent); }
.stat .lbl { font-size: 11px; color: var(--text-mute); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }

.hero-visual { position: relative; aspect-ratio: 4/5; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(180deg, #FFFFFF 0%, #F1EBDF 100%); overflow: hidden; box-shadow: 0 8px 24px rgba(43,32,26,0.06); }
.hv-card { position: absolute; bottom: 22px; left: 22px; right: 22px; background: rgba(255,255,255,0.96); border: 1px solid var(--border); border-radius: 8px; padding: 14px; backdrop-filter: blur(8px); box-shadow: 0 4px 12px rgba(43,32,26,0.06); }
.hv-row { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; font-size: 12px; }
.hv-row + .hv-row { border-top: 1px solid var(--border); }
.hv-l { color: var(--text-mute); font-family: var(--rp-font-mono); font-size: 11px; letter-spacing: 0.04em; }
.hv-v { color: var(--text); font-weight: 500; }
.hv-status { color: var(--accent); font-family: var(--rp-font-mono); font-size: 11px; }
.hv-mono { font-family: var(--rp-font-mono); font-size: 11px; color: var(--text-dim); }
.hv-progress { display: flex; align-items: center; gap: 8px; }
.hv-track { width: 60px; height: 3px; background: var(--elevated2); border-radius: 2px; overflow: hidden; display: block; }
.hv-fill { display: block; width: 68%; height: 100%; background: var(--accent); }
.hv-pct { font-family: var(--rp-font-mono); font-size: 11px; color: var(--text-dim); }

/* ─────────── SECTIONS / HEADS ─────────── */
section { padding: 96px 0; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { display: inline-block; font-family: var(--rp-font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--accent); text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-family: var(--rp-font-display); font-size: 40px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 14px; color: var(--text); }
.section-head h2 .accent { color: var(--accent); }
.section-head p { color: var(--text-dim); font-size: 16px; line-height: 1.6; }

/* ─────────── PILLARS (4 service tiles) ─────────── */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pillar { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; transition: all 0.2s var(--rp-ease); cursor: pointer; position: relative; box-shadow: 0 1px 3px rgba(43,32,26,0.04); }
.pillar:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(43,32,26,0.08); }
.pillar.locked { background: linear-gradient(160deg, rgba(183,135,58,0.04), var(--surface) 70%); }
.pillar.open { border-color: var(--accent-line); }
.pillar-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; gap: 12px; }
.pillar-icon { width: 38px; height: 38px; border-radius: 8px; background: var(--accent-bg); border: 1px solid var(--accent-line); color: var(--accent); display: grid; place-items: center; flex: 0 0 38px; }
.chev-toggle { width: 28px; height: 28px; border-radius: 6px; background: var(--elevated); display: grid; place-items: center; color: var(--text-dim); transition: transform 0.25s var(--rp-ease); }
.pillar.open .chev-toggle { transform: rotate(180deg); color: var(--accent); }
.lock-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; background: var(--accent-bg); border: 1px solid var(--accent-line); color: var(--accent); border-radius: 999px; font-size: 10px; font-family: var(--rp-font-mono); letter-spacing: 0.04em; line-height: 1.3; }
.pillar h3 { font-family: var(--rp-font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 4px; color: var(--text); }
.pillar-de { font-size: 11px; color: var(--text-mute); font-family: var(--rp-font-mono); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.pillar p { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; margin: 0; }

/* before/after photo strip per pillar (added in audit 2026-05-09) */
.pillar-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.ph { position: relative; aspect-ratio: 4/3; background: var(--elevated); border: 1px dashed var(--border-hi); border-radius: 6px; overflow: hidden; margin: 0; }
.ph::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(137,121,102,0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(137,121,102,0.18) 1px, transparent 1px); background-size: 14px 14px; }
.ph.after { background: linear-gradient(160deg, rgba(111,142,79,0.10), var(--surface) 70%); border-color: rgba(111,142,79,0.40); border-style: solid; }
.ph.after::before { background-image: linear-gradient(rgba(111,142,79,0.15) 1px, transparent 1px), linear-gradient(90deg, rgba(111,142,79,0.15) 1px, transparent 1px); background-size: 18px 18px; }
.ph figcaption { position: absolute; left: 0; bottom: 0; font-family: var(--rp-font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); padding: 4px 8px; background: var(--surface); border-top: 1px solid var(--border); border-right: 1px solid var(--border); border-radius: 0 6px 0 4px; }
.ph.after figcaption { color: var(--green); }
.ph .ph-tbd { position: absolute; top: 6px; right: 6px; font-family: var(--rp-font-mono); font-size: 9px; letter-spacing: 0.08em; color: var(--text-mute); background: var(--surface); padding: 2px 6px; border-radius: 999px; border: 1px solid var(--border); }

/* image-mode tiles (real photos): no dashed border, no grid pattern, no caption */
.pillar-photos.has-img { gap: 10px; }
.ph.img { aspect-ratio: 3/2; border-style: solid; border-color: var(--border); background: var(--elevated); transition: border-color 0.2s, transform 0.25s var(--rp-ease), box-shadow 0.25s; box-shadow: 0 1px 3px rgba(43,32,26,0.06); }
.ph.img::before { display: none; }
.ph.img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--rp-ease); will-change: transform; }
.pillar:hover .ph.img { border-color: var(--accent-line); box-shadow: 0 6px 14px rgba(43,32,26,0.10); }
.pillar:hover .ph.img img { transform: scale(1.04); }

/* construction-doc style label on each photo (top-left): "01 · LABEL" mono uppercase */
.ph-tag { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 6px; background: rgba(255,255,255,0.94); backdrop-filter: blur(6px); border: 1px solid var(--border); border-radius: 4px; font-family: var(--rp-font-mono); font-size: 9.5px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--text); box-shadow: 0 2px 6px rgba(43,32,26,0.08); line-height: 1; }
.ph-tag-n { color: var(--accent); font-weight: 700; }
.ph-tag-sep { width: 1px; height: 9px; background: var(--border-hi); display: inline-block; }
.ph-tag-l { color: var(--text-dim); }

/* subtle "BIM registration" corner tick — top-right of image tile */
.ph.img::after { content: ""; position: absolute; top: 0; right: 0; width: 14px; height: 14px; border-top: 1.5px solid var(--accent-line); border-right: 1.5px solid var(--accent-line); border-top-right-radius: 6px; opacity: 0.7; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .ph.img, .ph.img img { transition: none !important; }
  .pillar:hover .ph.img img { transform: none; }
}

.pillar-items { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.35s var(--rp-ease), opacity 0.25s, margin-top 0.25s; }
.pillar-items.open { max-height: 400px; opacity: 1; margin-top: 14px; }
.pillar-items ul { list-style: none; padding: 14px 0 0; margin: 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.pillar-items li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text); }
.pillar-items li::before { content: ""; width: 5px; height: 5px; border-radius: 999px; background: var(--accent); flex: 0 0 5px; }

/* ─────────── DETAILS / 9 GEWERKE ─────────── */
.details-cta { text-align: center; margin-top: 36px; }
.details-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--border-hi); border-radius: 6px; color: var(--text-dim); font-size: 13px; font-family: var(--rp-font-mono); letter-spacing: 0.04em; transition: all 0.18s; background: var(--surface); }
.details-toggle:hover { border-color: var(--accent); color: var(--accent); }
.details-toggle svg { transition: transform 0.25s var(--rp-ease); }
.details-toggle.open svg { transform: rotate(180deg); }
.details-body { overflow: hidden; transition: max-height 0.4s var(--rp-ease), opacity 0.3s; }
.details-body.closed { max-height: 0; opacity: 0; }
.details-body.open { max-height: 1800px; opacity: 1; padding-top: 36px; }
.gewerke-table { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(43,32,26,0.04); }
.gw-row { display: grid; grid-template-columns: 60px 1fr 1.4fr; gap: 18px; padding: 16px 20px; align-items: center; cursor: pointer; transition: background 0.15s; }
.gw-row + .gw-row { border-top: 1px solid var(--border); }
.gw-row:hover { background: var(--elevated); }
.gw-row .code { font-family: var(--rp-font-mono); font-size: 13px; color: var(--accent); font-weight: 600; letter-spacing: 0.06em; }
.gw-row .name { font-family: var(--rp-font-display); font-size: 15px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.gw-row .name small { display: block; font-family: var(--rp-font-sans); font-size: 12px; color: var(--text-mute); margin-top: 2px; font-weight: 400; letter-spacing: 0; }
.gw-row .desc { font-size: 13px; color: var(--text-dim); line-height: 1.5; }

/* ─────────── PROCESS ─────────── */
.process { background: linear-gradient(180deg, transparent, rgba(183,135,58,0.04), transparent); }
.process-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.process-track::before { content:""; position: absolute; top: 22px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--border-hi) 8%, var(--border-hi) 92%, transparent); }
.step { text-align: center; position: relative; cursor: pointer; padding: 0 8px; }
.step-dot { width: 44px; height: 44px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-hi); display: grid; place-items: center; margin: 0 auto; font-family: var(--rp-font-mono); font-size: 13px; color: var(--text-dim); position: relative; z-index: 1; transition: all 0.2s; }
.step:hover .step-dot, .step.on .step-dot { background: var(--accent); color: #FFFFFF; border-color: var(--accent); }
.step-title { font-family: var(--rp-font-display); font-weight: 600; font-size: 15px; margin-top: 14px; letter-spacing: -0.01em; color: var(--text); }
.step-de { font-size: 11px; color: var(--text-mute); font-family: var(--rp-font-mono); letter-spacing: 0.05em; margin-top: 2px; }
.step-desc { font-size: 12px; color: var(--text-dim); margin-top: 8px; line-height: 1.5; }

/* ─────────── TRUST + MAP ─────────── */
.trust-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px; }
.trust-stats-card { padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 1px 3px rgba(43,32,26,0.04); }
.trust-stats-card .heading { font-family: var(--rp-font-display); font-size: 22px; letter-spacing: -0.02em; margin-bottom: 4px; color: var(--text); }
.trust-stats-card .heading .accent { color: var(--accent); }
.trust-stats-card .sub { font-size: 13px; color: var(--text-dim); margin-bottom: 22px; }
.ts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ts { padding: 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; }
.ts .num { font-family: var(--rp-font-display); font-size: 28px; font-weight: 700; letter-spacing: -0.03em; color: var(--text); }
.ts .num .accent { color: var(--accent); }
.ts .lbl { font-size: 11px; color: var(--text-dim); margin-top: 2px; letter-spacing: 0.04em; }

.map-card { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; position: relative; box-shadow: 0 1px 3px rgba(43,32,26,0.04); }
.map-card .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.map-card h4 { font-family: var(--rp-font-display); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); margin: 0; }
.map-card .live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--rp-font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--accent); }
.live-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); animation: rp-pulse 2s infinite; }
.map-svg { width: 100%; aspect-ratio: 16/11; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; position: relative; overflow: hidden; }
.map-pin { position: absolute; transform: translate(-50%, -50%); cursor: pointer; width: 14px; height: 14px; }
.map-pin .pulse { position: absolute; inset: 0; border-radius: 999px; background: var(--accent); opacity: 0.30; animation: rp-pulse 2.4s infinite; }
.map-pin .core { position: relative; width: 14px; height: 14px; border-radius: 999px; background: var(--accent); border: 2px solid var(--surface); }
.map-pin.green .core { background: var(--green); }
.map-pin.amber .core { background: var(--amber); }
.map-pin.green .pulse { background: var(--green); }
.map-pin.amber .pulse { background: var(--amber); }
.map-pin .label { position: absolute; left: 18px; top: -2px; white-space: nowrap; background: var(--surface); border: 1px solid var(--border); padding: 4px 8px; border-radius: 4px; font-size: 11px; color: var(--text); font-family: var(--rp-font-mono); letter-spacing: 0.04em; opacity: 0; pointer-events: none; transition: opacity 0.15s; box-shadow: 0 2px 8px rgba(43,32,26,0.10); }
.map-pin:hover .label { opacity: 1; }
.map-legend { display: flex; gap: 16px; margin-top: 12px; font-size: 11px; color: var(--text-dim); font-family: var(--rp-font-mono); letter-spacing: 0.04em; flex-wrap: wrap; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 8px; height: 8px; border-radius: 999px; }

/* active-sites list with progress bars (added in audit 2026-05-09) */
.active-sites { margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--border); }
.active-sites .as-head { font-family: var(--rp-font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 10px; }
.active-sites .as-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.as-row { display: grid; grid-template-columns: 1fr 1.4fr 44px; gap: 12px; align-items: center; font-size: 12px; }
.as-region { font-family: var(--rp-font-mono); color: var(--text); letter-spacing: 0.04em; }
.as-bar { height: 5px; background: var(--elevated2); border-radius: 3px; overflow: hidden; position: relative; }
.as-bar > span { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.6s var(--rp-ease); }
.as-row.amber .as-bar > span { background: var(--amber); }
.as-pct { font-family: var(--rp-font-mono); color: var(--text); text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }

/* ─────────── REFERENCES TABLE ─────────── */
.ref-table { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(43,32,26,0.04); }
.ref-head, .ref-row { display: grid; grid-template-columns: 1.4fr 0.7fr 1fr 0.6fr 1fr; gap: 14px; padding: 14px 20px; align-items: center; }
.ref-head { background: var(--elevated); font-family: var(--rp-font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); border-bottom: 1px solid var(--border); }
.ref-row + .ref-row { border-top: 1px solid var(--border); }
.ref-row:hover { background: var(--elevated); }
.ref-typ { font-family: var(--rp-font-display); font-weight: 600; font-size: 14px; color: var(--text); letter-spacing: -0.01em; }
.ref-mono { font-family: var(--rp-font-mono); font-size: 12px; color: var(--text-dim); }
.ref-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-dim); font-family: var(--rp-font-mono); letter-spacing: 0.04em; }
.ref-status .d { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); }
.ref-status.done { color: var(--green); }
.ref-status.done .d { background: var(--green); }
.ref-note { margin-top: 18px; text-align: center; font-size: 12px; color: var(--text-mute); font-style: italic; max-width: 640px; margin-left: auto; margin-right: auto; line-height: 1.55; }

/* ─────────── ABOUT ─────────── */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.about-text h2 { font-family: var(--rp-font-display); font-size: 36px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 14px; color: var(--text); }
.about-text h2 .accent { color: var(--accent); }
.about-text p { color: var(--text-dim); font-size: 15px; line-height: 1.65; margin: 0; }
.about-text p + p { margin-top: 12px; }
.about-eyebrow { display: inline-block; font-family: var(--rp-font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--accent); text-transform: uppercase; margin-bottom: 12px; }
.about-quote { margin-top: 22px; padding: 18px 22px; background: var(--surface); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; box-shadow: 0 1px 3px rgba(43,32,26,0.04); }
.about-quote p { font-family: var(--rp-font-display); font-size: 17px; font-style: italic; color: var(--text); margin: 0 0 8px; line-height: 1.45; }
.about-quote .sig { font-family: var(--rp-font-mono); font-size: 11px; color: var(--text-mute); letter-spacing: 0.08em; text-transform: uppercase; }
.about-side { display: flex; flex-direction: column; gap: 10px; }
.value-card { display: flex; gap: 16px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; transition: border-color 0.18s; box-shadow: 0 1px 3px rgba(43,32,26,0.04); }
.value-card:hover { border-color: var(--accent-line); }
.vc-num { font-family: var(--rp-font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.08em; padding-top: 2px; min-width: 28px; }
.vc-t { font-family: var(--rp-font-display); font-weight: 600; font-size: 15px; color: var(--text); letter-spacing: -0.01em; margin-bottom: 4px; }
.vc-d { font-size: 13px; color: var(--text-dim); line-height: 1.55; }

/* ─────────── CONTACT ─────────── */
.contact { background: linear-gradient(180deg, transparent, rgba(183,135,58,0.04)); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 4px 12px rgba(43,32,26,0.06); }
.contact-info { padding: 36px; background: linear-gradient(160deg, rgba(183,135,58,0.06), transparent 60%); border-right: 1px solid var(--border); }
.contact-info h3 { font-family: var(--rp-font-display); font-size: 26px; letter-spacing: -0.02em; margin: 0 0 10px; color: var(--text); }
.contact-info > p { color: var(--text-dim); font-size: 14px; line-height: 1.6; margin: 0; }
.contact-channels { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.ch { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; transition: border-color 0.15s; }
.ch:hover { border-color: var(--accent-line); }
.ch-static { cursor: default; }
.ch-static:hover { border-color: var(--border); }
.ch-icon { width: 32px; height: 32px; border-radius: 6px; background: var(--accent-bg); color: var(--accent); display: grid; place-items: center; flex: 0 0 32px; }
.ch-body { font-size: 13px; }
.ch-body b { display: block; color: var(--text); font-weight: 500; margin-bottom: 1px; }
.ch-body span { color: var(--text-dim); font-family: var(--rp-font-mono); font-size: 12px; }

.form-card { padding: 36px; }
.form-title-lbl { font-family: var(--rp-font-mono); font-size: 11px; color: var(--text-mute); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.form-title { font-family: var(--rp-font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 22px; color: var(--text); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 6px; font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; background: var(--surface); border: 1px solid var(--border-hi); color: var(--text); padding: 10px 12px; border-radius: 6px; font: inherit; font-size: 14px; transition: border-color 0.15s; font-family: inherit; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(183,135,58,0.16); }
.field textarea { resize: vertical; min-height: 96px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.form-consent { font-size: 11px; color: var(--text-mute); max-width: 60%; line-height: 1.4; margin: 0; }
.form-success { text-align: center; padding: 36px 10px; }
.form-success .check { width: 56px; height: 56px; border-radius: 999px; background: var(--accent-bg); border: 1px solid var(--accent-line); color: var(--accent); display: grid; place-items: center; margin: 0 auto 16px; }
.form-success h4 { font-family: var(--rp-font-display); font-size: 22px; margin: 0 0 8px; color: var(--text); }
.form-success p { color: var(--text-dim); font-size: 14px; margin: 0; }
.ticket { font-family: var(--rp-font-mono); font-size: 12px; color: var(--accent); margin-top: 14px; padding: 8px 12px; background: var(--accent-bg); border-radius: 4px; display: inline-block; border: 1px solid var(--accent-line); }

/* ─────────── FOOTER ─────────── */
footer { padding: 52px 0 28px; border-top: 1px solid var(--border); margin-top: 30px; background: var(--elevated); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h5 { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); margin: 0 0 14px; font-family: var(--rp-font-mono); font-weight: 600; }
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.foot a { color: var(--text-dim); font-size: 13px; transition: color 0.15s; }
.foot a:hover { color: var(--accent); }
.foot-blurb { color: var(--text-dim); font-size: 13px; line-height: 1.6; margin-top: 14px; max-width: 320px; }
.foot-langs { display: flex; gap: 6px; margin-top: 14px; font-family: var(--rp-font-mono); font-size: 10px; color: var(--text-mute); letter-spacing: 0.1em; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; margin-top: 36px; border-top: 1px solid var(--border); font-size: 11px; color: var(--text-mute); font-family: var(--rp-font-mono); letter-spacing: 0.04em; flex-wrap: wrap; gap: 12px; }
.portal-link { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--border-hi); border-radius: 4px; color: var(--text-mute); transition: all 0.15s; font-family: var(--rp-font-mono); font-size: 11px; letter-spacing: 0.04em; background: var(--surface); }
.portal-link:hover { border-color: var(--accent); color: var(--accent); }
.portal-link svg { opacity: 0.6; }

/* ─────────── GALLERY (Übergaben) ─────────── */
.gallery-section { padding-top: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gx-tile { display: flex; flex-direction: column; gap: 10px; padding: 0; background: transparent; border: 0; text-align: left; cursor: pointer; }
.gx-tile:focus-visible { outline: 0; }
.gx-tile:focus-visible .gx-img-wrap { box-shadow: 0 0 0 3px rgba(183,135,58,0.32); border-color: var(--accent); }
.gx-img-wrap { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: 10px; border: 1px solid var(--border); background: var(--elevated); box-shadow: 0 1px 3px rgba(43,32,26,0.06); transition: transform 0.25s var(--rp-ease), box-shadow 0.25s, border-color 0.25s; }
.gx-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--rp-ease), filter 0.3s; will-change: transform; }
.gx-tile:hover .gx-img-wrap { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(43,32,26,0.14); border-color: var(--accent-line); }
.gx-tile:hover .gx-img-wrap img { transform: scale(1.06); }
.gx-badge { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: rgba(255,255,255,0.94); backdrop-filter: blur(6px); border: 1px solid var(--border); border-radius: 999px; font-family: var(--rp-font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); box-shadow: 0 2px 6px rgba(43,32,26,0.08); }
.gx-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--green); }
.gx-zoom { position: absolute; bottom: 10px; right: 10px; width: 32px; height: 32px; border-radius: 999px; background: rgba(255,255,255,0.94); backdrop-filter: blur(6px); border: 1px solid var(--border); display: grid; place-items: center; color: var(--accent); opacity: 0; transform: translateY(4px); transition: opacity 0.2s, transform 0.2s; box-shadow: 0 2px 8px rgba(43,32,26,0.10); }
.gx-tile:hover .gx-zoom, .gx-tile:focus-visible .gx-zoom { opacity: 1; transform: translateY(0); }
.gx-meta { display: flex; flex-direction: column; gap: 2px; padding: 0 2px; }
.gx-title { font-family: var(--rp-font-display); font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); line-height: 1.35; }
.gx-region { font-family: var(--rp-font-mono); font-size: 11px; color: var(--text-mute); letter-spacing: 0.06em; }

/* ─────────── LIGHTBOX ─────────── */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(20,14,10,0.0); transition: background 0.22s ease; padding: 24px; }
.lightbox.on { background: rgba(20,14,10,0.82); }
.lightbox[hidden] { display: none; }
.lb-figure { position: relative; max-width: min(1100px, 96vw); max-height: 90vh; margin: 0; opacity: 0; transform: scale(0.97); transition: opacity 0.22s ease, transform 0.22s var(--rp-ease); display: flex; flex-direction: column; gap: 14px; }
.lightbox.on .lb-figure { opacity: 1; transform: scale(1); }
.lb-figure img { max-width: 100%; max-height: calc(90vh - 80px); width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 24px 60px rgba(0,0,0,0.50); background: var(--surface); }
.lb-figure figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; padding: 12px 16px; background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 13px; line-height: 1.5; }
.lb-figure figcaption b { font-family: var(--rp-font-display); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.lb-figure figcaption span { font-family: var(--rp-font-mono); font-size: 11px; color: var(--text-mute); letter-spacing: 0.06em; text-transform: uppercase; }
.lb-figure figcaption em { font-style: normal; color: var(--text-dim); flex-basis: 100%; }
.lb-close, .lb-prev, .lb-next { position: fixed; width: 44px; height: 44px; border-radius: 999px; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.30); color: #FFFFFF; display: grid; place-items: center; cursor: pointer; transition: background 0.18s, border-color 0.18s, transform 0.18s; backdrop-filter: blur(8px); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.20); border-color: rgba(255,255,255,0.60); transform: scale(1.06); }
.lb-close:focus-visible, .lb-prev:focus-visible, .lb-next:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(183,135,58,0.5); }
.lb-close { top: 24px; right: 24px; }
.lb-prev  { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.06); }
.lb-next:hover { transform: translateY(-50%) scale(1.06); }
@media (prefers-reduced-motion: reduce) {
  .gx-img-wrap, .gx-img-wrap img, .lb-figure, .lightbox { transition: none !important; }
  .gx-tile:hover .gx-img-wrap img { transform: none; }
}

/* ─────────── RESPONSIVE ─────────── */
@media (max-width: 980px) {
  .hero-grid, .contact-grid, .trust-grid, .foot-grid, .about { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ref-head { display: none; }
  .ref-row { grid-template-columns: 1fr 1fr; gap: 6px 14px; }
  .process-track { grid-template-columns: 1fr; gap: 18px; }
  .process-track::before { display: none; }
  h1.hero-title { font-size: 38px; }
  .nav-links { gap: 12px; }
  .nav-links a:not(.portal-link) { display: none; }
  .nav-links .lang, .nav-links .nav-cta { display: inline-flex; }
  section { padding: 56px 0; }
  .section-head h2 { font-size: 30px; }
  .wrap { padding: 0 20px; }
  .nav-inner { height: 56px; }
  .as-row { grid-template-columns: 1fr 1.2fr 40px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .lb-close { top: 16px; right: 16px; }
  .lb-prev { left: 12px; }
  .lb-next { right: 12px; }
}
@media (max-width: 640px) {
  .pillars { grid-template-columns: 1fr; }
  h1.hero-title { font-size: 32px; }
  .hero { padding: 48px 0 36px; }
  .hero-stats { gap: 18px; flex-wrap: wrap; }
  .stat .num { font-size: 22px; }
  .form-card, .contact-info { padding: 24px; }
  .row2 { grid-template-columns: 1fr; }
  .pillar { padding: 20px; }
  .lock-badge { font-size: 9px; padding: 4px 8px; }
  .form-foot { flex-direction: column; align-items: stretch; gap: 14px; }
  .form-consent { max-width: 100%; }
  .nav-cta { display: none; }
  .lang { font-size: 10px; }
  footer .foot-grid { gap: 28px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .pillar-photos { gap: 6px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gx-title { font-size: 13px; }
  .gx-region { font-size: 10px; }
  .lb-figure figcaption { font-size: 12px; padding: 10px 12px; }
  .lb-close, .lb-prev, .lb-next { width: 38px; height: 38px; }
}
