/* =========================================================
   LumaRaum – globale Einstellungen
   Farben, Schriften und Abstände für die ganze Website.
   Seitenspezifisches steht im <style>-Tag der jeweiligen Seite.
   ========================================================= */

@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  /* Farben */
  --color-bg: #F4F3F1;
  --color-bg-alt: #EAE8E4;
  --color-ink: #161616;
  --color-text: #3A3936;
  --color-text-soft: #4A4945;
  --color-muted: #5C5A56;
  --color-line: #D9D6D1;
  --color-line-strong: #C9C6C0;
  --color-dark: #161616;
  --color-dark-line: #2E2D2B;
  --color-on-dark: #F4F3F1;
  --color-on-dark-soft: #C9C6C0;
  --color-on-dark-muted: #A9A69F;
  --color-placeholder: #2A2826;

  /* Akzentfarbe: wird auf jeder Stilwelt-Seite überschrieben */
  --accent: var(--color-muted);

  /* Schriften */
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  /* Schriftgrößen */
  --size-display: clamp(52px, 8vw, 112px);
  --size-h2: clamp(36px, 4vw, 52px);
  --size-h2-large: clamp(40px, 5vw, 68px);
  --size-lead: 18px;
  --size-body: 17px;
  --size-text: 15px;
  --size-small: 13px;

  /* Layout */
  --container: 1360px;
  --container-wide: 1600px;
  --gutter: clamp(20px, 4vw, 40px);
  --gutter-wide: clamp(16px, 2vw, 24px);
  --section: clamp(96px, 11vw, 160px);
  --section-small: clamp(64px, 8vw, 120px);
  --gap: 24px;
  --radius: 4px;
  --header-height: 81px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--size-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

img { display: block; max-width: 100%; height: auto; }

a { color: var(--color-ink); }
a:hover { color: #555; }

h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
h1, h2, h3 { font-weight: 400; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Container ---------- */

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--gutter-wide); }

/* ---------- Typografie ---------- */

.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--size-display);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--size-h2);
  line-height: 1.05;
}

.heading-large {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--size-h2-large);
  line-height: 1;
}

.display em, .heading em, .heading-large em { font-style: italic; }

.eyebrow {
  font-size: var(--size-small);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.eyebrow-accent { color: var(--accent); font-weight: 600; }

.lead { font-size: var(--size-lead); line-height: 1.6; color: var(--color-text); max-width: 520px; }
.body-text { font-size: var(--size-body); line-height: 1.65; color: var(--color-text); max-width: 560px; }
.soft-text { font-size: var(--size-text); line-height: 1.55; color: var(--color-text-soft); }
.caption { margin-top: 14px; font-size: var(--size-small); color: var(--color-muted); }

.text-link { font-size: var(--size-text); }

/* ---------- Bilder ---------- */

.media { width: 100%; object-fit: cover; border-radius: var(--radius); background: var(--color-bg-alt); }
.ratio-21-9 { aspect-ratio: 21 / 9; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-16-10 { aspect-ratio: 16 / 10; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-1-1 { aspect-ratio: 1 / 1; }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.6);
  color: var(--color-on-dark);
  font-size: var(--size-small);
}

.media-wrap { position: relative; }

/* ---------- Raster ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 32px 80px;
  align-items: end;
}

.split-narrow { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--gap); }

.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-small { display: flex; flex-direction: column; gap: 14px; }

/* ---------- Abstände ---------- */

.section { padding-block: var(--section); }
.section-top { padding-top: var(--section); }
.section-bottom { padding-bottom: var(--section); }
.page-intro { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(40px, 5vw, 72px); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 500 15px/1.2 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-dark { background: var(--color-dark); color: var(--color-on-dark); }
.btn-dark:hover { background: #2E2D2B; color: var(--color-on-dark); }

.btn-outline { border-color: var(--color-line-strong); color: var(--color-ink); font-weight: 400; }
.btn-outline:hover { border-color: var(--color-ink); color: var(--color-ink); }

.btn-light { background: var(--color-on-dark); color: var(--color-ink); }
.btn-light:hover { background: #FFFFFF; color: var(--color-ink); }

.btn svg { width: 18px; height: 18px; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Kopfzeile ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 243, 241, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #E2E0DC;
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 16px;
}

.logo { font-size: 15px; font-weight: 400; letter-spacing: 0.32em; text-transform: uppercase; color: var(--color-ink); text-decoration: none; padding-block: 12px; margin-right: -0.32em; }
.logo:hover { color: var(--color-ink); }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px clamp(16px, 3vw, 32px); font-size: 14px; }
.nav a { color: #555; text-decoration: none; padding-block: 12px; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--color-ink); }
.nav a[aria-current="page"] { color: var(--color-ink); border-bottom-color: var(--color-ink); }
.nav .btn { min-height: 44px; padding: 10px 20px; font-size: 14px; font-weight: 400; border-bottom: 0; color: var(--color-on-dark); }

/* ---------- Seitenkopf ---------- */

.breadcrumb { display: flex; align-items: center; gap: 12px; }
.breadcrumb a { color: var(--color-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-ink); }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-line);
  font-size: 14px;
}
.facts dt { color: var(--color-muted); margin-bottom: 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--size-small); }
.chip { padding: 6px 12px; border: 1px solid var(--color-line-strong); border-radius: 999px; }
.chip-dark { background: var(--color-dark); border-color: var(--color-dark); color: var(--color-on-dark); }

.list-lines { list-style: none; padding: 0; border-top: 1px solid var(--color-line); font-size: var(--size-text); }
.list-lines li { padding: 12px 0; border-bottom: 1px solid var(--color-line); }

/* ---------- Kontakt ---------- */

.contact { background: var(--color-dark); color: var(--color-on-dark); }
.contact .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px 80px; align-items: end; padding-block: var(--section-small); }
.contact p { font-size: var(--size-body); line-height: 1.6; color: var(--color-on-dark-soft); max-width: 480px; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.copy-status { font-size: 14px; color: var(--color-on-dark-soft); }

/* ---------- Fußzeile ---------- */

.site-footer { background: var(--color-dark); color: var(--color-on-dark-muted); border-top: 1px solid var(--color-dark-line); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 32px; font-size: var(--size-small); }
.site-footer .brand-name { color: var(--color-on-dark); letter-spacing: 0.24em; text-transform: uppercase; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--color-on-dark-muted); }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--color-on-dark); }

/* ---------- Nächstes Projekt ---------- */

.next-project { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; padding-top: 48px; border-top: 1px solid var(--color-line); color: var(--color-ink); text-decoration: none; }
.next-project:hover { color: var(--color-ink); }
.next-project img { flex: 1 1 320px; max-width: 520px; min-width: 0; }
.next-project .stack-small { flex: 1 1 280px; }
.next-project .name { font-family: var(--font-serif); font-size: clamp(40px, 5vw, 64px); line-height: 1; }

/* ---------- Kleine Bildschirme ---------- */

@media (max-width: 560px) {
  .nav { gap: 4px 16px; }
  .facts { grid-template-columns: 1fr; }
}

/* ---------- Bildausschnitte ---------- */

.pos-20-85 { object-position: 20% 85%; }
.pos-30-20 { object-position: 30% 20%; }
.pos-40-68 { object-position: 40% 68%; }
.pos-45-88 { object-position: 45% 88%; }
.pos-50-55 { object-position: 50% 55%; }
.pos-50-60 { object-position: 50% 60%; }
.pos-50-62 { object-position: 50% 62%; }
.pos-55-25 { object-position: 55% 25%; }
.pos-75-10 { object-position: 75% 10%; }
.pos-75-50 { object-position: 75% 50%; }
.pos-80-70 { object-position: 80% 70%; }
