/* ==========================================================================
   Herzstück3D Studio — Architekturmodelle (B2B)
   Bewusst reduzierte, monochrome Farbwelt mit einem gedeckten Akzent —
   orientiert an gängigen Architekturbüro-Websites (neutrale Töne,
   großformatige Fotografie, viel Weißraum, klare Sans-Typografie).
   Selbst gehostete Systemschriften — keine Google-Fonts-Einbindung.
   ========================================================================== */

:root {
  color-scheme: light;

  --bg: #F4F2EE;
  --bg-card: #FFFFFF;
  --ink: #1E1C19;
  --muted: #6E6A63;
  --line: #DBD6CC;

  --dark: #171512;
  --dark-2: #26221D;

  --accent: #9C7A4E;      /* gedecktes Bronze/Messing — sehr sparsam eingesetzt */
  --accent-ink: #7C6039;

  --radius-s: 3px;
  --radius-m: 6px;
  --radius-l: 10px;

  --font-display: -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1240px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 600; line-height: 1.1;
  margin: 0; letter-spacing: -.01em; text-wrap: balance;
}
p { margin: 0 0 1em; max-width: 62ch; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -3rem; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-s); transition: top .15s ease; z-index: 200; }
.skip-link:focus { top: 1rem; }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3.5rem); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); scroll-margin-top: 76px; }
#top { scroll-margin-top: 0; }
.section-head { max-width: 42rem; margin-bottom: clamp(2.25rem, 5vw, 3.75rem); }
.eyebrow { font-size: .88rem; color: var(--accent-ink); margin: 0 0 .7rem; font-weight: 600; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: .9rem; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 40rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.7rem; border: 1px solid transparent;
  font-weight: 600; font-size: .96rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--dark); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.note-legal { font-size: .85rem; color: var(--muted); margin-top: .9rem; max-width: 42ch; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(244,242,238,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-word { height: 14px; width: auto; }
.brand-suffix {
  font-family: var(--font-body); font-size: .78rem; font-weight: 600; color: var(--accent-ink);
  padding-left: .7rem; margin-left: .55rem; border-left: 1px solid var(--line);
}

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: 2.25rem; align-items: center; }
.nav-desktop a { text-decoration: none; font-size: .93rem; font-weight: 500; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav-desktop a:hover { border-color: var(--accent); }
.nav-desktop .btn { padding: .6rem 1.3rem; font-size: .88rem; }

.nav-toggle { background: none; border: 1px solid var(--line); border-radius: var(--radius-s); width: 42px; height: 38px; display: inline-flex; align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-mobile { display: none; border-bottom: 1px solid var(--line); background: var(--bg); }
.nav-mobile.is-open { display: block; }
.nav-mobile ul { padding: .5rem clamp(1.25rem, 4vw, 3.5rem) 1.25rem; display: flex; flex-direction: column; gap: .2rem; }
.nav-mobile a { display: block; padding: .7rem 0; text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 500; }
.nav-mobile li:last-child a { border-bottom: none; }

@media (min-width: 860px) {
  .nav-desktop { display: flex; align-items: center; }
  .nav-toggle { display: none; }
}

/* ---------- Hero: full-bleed, dunkel ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff;
  min-height: min(78vh, 640px);
  display: flex; align-items: flex-end;
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,13,11,.35) 0%, rgba(15,13,11,.35) 30%, rgba(15,13,11,.9) 100%);
}
.hero .container { padding-block: clamp(3rem, 8vw, 5rem); }
.hero-copy { max-width: 40rem; }
.hero-copy .eyebrow { color: #E7D9BF; }
.hero-copy h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin-bottom: 1.15rem; color: #fff; }
.hero-copy .lead { font-size: 1.18rem; color: rgba(255,255,255,.86); max-width: 36rem; margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- USP-Grid ---------- */
.usp-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
@media (min-width: 720px) {
  .usp-grid { grid-template-columns: repeat(3, 1fr); }
  .usp-grid li:not(:last-child) { border-right: 1px solid var(--line); padding-right: 2.25rem; }
}
.usp-grid li h4 { font-size: 1.08rem; margin-bottom: .5rem; }
.usp-grid li p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- Process: großformatige Nummern ---------- */
.process { display: grid; grid-template-columns: 1fr; gap: 2.25rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
@media (min-width: 720px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process li { display: flex; flex-direction: column; }
.process .num-line { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .5rem; }
.process .num { font-family: var(--font-display); font-size: 2.75rem; font-weight: 700; color: var(--accent); line-height: 1; letter-spacing: -.02em; }
.process h4 { font-size: 1.12rem; font-weight: 600; }
.process p { font-size: .94rem; color: var(--muted); margin: 0; padding-top: .6rem; border-top: 1px solid var(--line); }

/* ---------- Gallery ----------
   Mobil: alle Bilder einfach untereinander, jedes im eigenen Seiten-
   verhältnis (kein Crop). Ab 720px: Titelbild links (etwas kleiner als
   die Spalte daneben), Bild 5+6 als Stapel rechts davon, darunter Bild
   2/3/4 als einheitlich formatierte Dreierreihe. */
.gallery { display: grid; grid-template-columns: 1fr; gap: .9rem; margin-bottom: .9rem; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius-m); line-height: 0; }
.gallery img { display: block; width: 100%; height: auto; border-radius: var(--radius-m); cursor: pointer; transition: opacity .2s ease; }
.gallery img:hover { opacity: .82; }
.g-stack, .g-row2 { display: contents; }

@media (min-width: 720px) {
  .gallery {
    grid-template-columns: 3fr 2fr;
    grid-template-areas: "hero stack" "row2 row2";
  }
  /* Titelbild: streckt sich auf die Höhe des Stapels daneben (kein Grid-
     Rest darunter) und wird dafür links/rechts beschnitten. */
  .g-hero { grid-area: hero; }
  .g-hero img { height: 100%; object-fit: cover; }
  .g-stack {
    display: flex; flex-direction: column; gap: .9rem;
    grid-area: stack;
  }
  .g-row2 {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem;
    grid-area: row2;
  }
  .g-row2 figure { aspect-ratio: 1 / 1; }
  .g-row2 img { height: 100%; object-fit: cover; }
  .g-row2 .g-crop-plan { object-position: 50% 42%; }
}
.figcap { font-size: .82rem; color: var(--muted); margin: 0 0 2.75rem; }

/* ---------- Über uns / Studio-Absatz ---------- */
.section-about { background: var(--dark); color: #fff; }
.section-about .container { max-width: 46rem; }
.section-about .eyebrow { color: #E7D9BF; }
.section-about h2 { color: #fff; }
.section-about .lead { color: rgba(255,255,255,.82); }
.section-about blockquote {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  margin: 1.5rem 0; padding-left: 1.25rem; border-left: 2px solid var(--accent);
  color: rgba(255,255,255,.92);
}
.section-about p { color: rgba(255,255,255,.78); }
.values { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.values li { font-size: .85rem; padding: .4rem .9rem; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: rgba(255,255,255,.85); }

/* ---------- Kontakt ---------- */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1.15rem; max-width: 44rem; }
@media (min-width: 640px) { .form-grid.two-col { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .89rem; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; padding: .78rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: #fff; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.note-inline { font-size: .88rem; color: var(--accent-ink); font-weight: 600; margin: -.5rem 0 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Lightbox (Bilder vergrößern) ---------- */
body.lightbox-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: clamp(.75rem, 3vw, 2rem); }
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(15,13,11,.9); backdrop-filter: blur(2px); }
.lightbox-panel {
  position: relative; z-index: 1;
  max-width: 94vw;
  max-height: 92vh;
  display: flex; flex-direction: column; align-items: center;
}
.lightbox-media {
  position: relative; display: inline-block; line-height: 0;
  border-radius: var(--radius-l); overflow: hidden; flex: none;
}
.lightbox-img { display: block; width: auto; height: auto; max-width: min(90vw, 1200px); max-height: min(70vh, 820px); }
.lightbox-caption { width: 100%; max-width: 46ch; margin-inline: auto; padding: 1.1rem .25rem 0; max-height: 20vh; overflow-y: auto; }
.lightbox-caption p { color: rgba(255,255,255,.75); margin: 0; max-width: none; font-size: .93rem; }
.lightbox-caption:empty { display: none; }
.lightbox-close {
  position: absolute; top: .7rem; right: .7rem; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(20,17,14,.55); color: #fff; backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.lightbox-close svg { width: 18px; height: 18px; }
.lightbox-close:hover { background: rgba(20,17,14,.8); }

.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: rgba(20,17,14,.55); color: #fff; backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
  transition: background-color .15s ease;
}
.lightbox-nav[hidden] { display: none; }
.lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-nav:hover { background: rgba(20,17,14,.8); }
.lightbox-prev { left: .7rem; }
.lightbox-next { right: .7rem; }
.lightbox-dots {
  position: absolute; bottom: .7rem; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; align-items: center; gap: .45rem;
  background: rgba(20,17,14,.45); backdrop-filter: blur(3px);
  padding: .5rem .65rem; border-radius: 999px;
}
.lightbox-dots[hidden] { display: none; }
.lightbox-dot {
  width: .45rem; height: .45rem; padding: 0; border: none; border-radius: 50%;
  background: rgba(255,255,255,.45); cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.lightbox-dot:hover { background: rgba(255,255,255,.8); }
.lightbox-dot.is-active { background: #fff; transform: scale(1.35); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem 2.5rem; font-size: .89rem; color: var(--muted); }
.footer-top { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding-bottom: 1.25rem; }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: .5rem; }
.footer-brand img { width: 18px; height: 18px; opacity: .6; }
.footer-cross { padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .87rem; }
.footer-cross a { color: var(--accent-ink); text-decoration: none; font-weight: 600; }
.footer-cross a:hover { text-decoration: underline; }

/* ---------- Simple pages ---------- */
.legal-page .container { max-width: 46rem; padding-block: clamp(3rem, 6vw, 5rem); }
.legal-page h1 { font-size: clamp(1.8rem, 3.5vw, 2.3rem); margin-bottom: 1.5rem; }
.legal-page h2 { font-size: 1.15rem; margin: 2rem 0 .6rem; }
.legal-page p, .legal-page li { color: var(--ink); }
.draft-flag { background: #FDF2F2; border: 1px solid #E7C6C6; color: #7B241C; padding: 1rem 1.25rem; border-radius: var(--radius-s); font-size: .92rem; margin-bottom: 2rem; }
.scope-note { background: var(--bg-card); border: 1px solid var(--line); color: var(--muted); padding: 1rem 1.25rem; border-radius: var(--radius-s); font-size: .92rem; margin-bottom: 2.25rem; max-width: none; }
.legal-page .stand { color: var(--muted); font-size: .92rem; margin: -1rem 0 1.75rem; }
.legal-page h3 { font-size: 1.02rem; margin: 1.5rem 0 .5rem; color: var(--ink); }
.legal-page ul, .legal-page ol { margin: 0 0 1em; padding-left: 1.4rem; list-style: disc; }
.legal-page ol { list-style: decimal; }
.legal-page li { margin-bottom: .35rem; max-width: 62ch; }
.back-link { display: inline-block; margin-top: 2rem; font-weight: 600; }
.thanks-page .container { max-width: 36rem; text-align: center; padding-block: clamp(4rem, 10vw, 7rem); }
.thanks-page h1 { margin-bottom: 1rem; }
