/* Architekturbüro Reich – Stylesheet
   Schrift: Jost (lokal eingebunden, keine Verbindung zu Google) */

@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #16150f;
  --paper: #fbfaf8;
  --panel: #f2efe9;
  --muted: #6d6a62;
  --rule: #ddd9d1;
  --accent: #a24e2a;
  --accent-soft: #f0e5de;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --gap: clamp(28px, 5vw, 64px);
  --block: clamp(56px, 9vw, 104px);

  --step-0: clamp(0.98rem, 0.94rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  --step-2: clamp(1.25rem, 1.1rem + 0.8vw, 1.7rem);
  --step-h: clamp(2.1rem, 1.1rem + 4.4vw, 4.6rem);
  --step-l: clamp(1.9rem, 1.2rem + 3vw, 3rem);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
::selection { background: var(--accent-soft); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: clamp(12px, 3vw, 40px); min-height: 68px; }
.brand { white-space: nowrap; display: inline-flex; align-items: baseline; gap: 9px; text-decoration: none; font-weight: 500; letter-spacing: 0.005em; }
.brand::before { content: ""; width: 9px; height: 9px; background: var(--accent); flex: none; transform: translateY(-1px); }
.nav { display: flex; gap: clamp(14px, 2.6vw, 34px); }
.nav a {
  position: relative; text-decoration: none; color: var(--muted);
  font-size: 0.95rem; padding-bottom: 3px; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

/* ---------- Einstieg ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 11vw, 132px) 0 0; border-bottom: 1px solid var(--rule); }
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 clamp(14px, 2vw, 24px); color: var(--muted);
  font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: clamp(24px, 4vw, 48px); height: 1px; background: var(--accent); flex: none; }
.hero h1 {
  font-weight: 400; font-size: var(--step-h); line-height: 1.04; letter-spacing: -0.025em;
  margin: 0 0 clamp(32px, 6vw, 60px); max-width: 17ch; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-meta {
  display: grid; grid-template-columns: minmax(0, 54ch) auto; gap: clamp(20px, 3vw, 40px);
  align-items: end; padding-top: clamp(18px, 2.4vw, 28px); border-top: 1px solid var(--ink);
}
.hero-meta p { margin: 0; color: var(--muted); font-size: var(--step-1); line-height: 1.55; }
.hero-meta .cta { color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 500; white-space: nowrap;
  padding-bottom: 4px; border-bottom: 1px solid var(--accent);
}
.link-arrow::after { content: "\2192"; color: var(--accent); transition: transform .25s; }
.link-arrow:hover::after { transform: translateX(5px); }

.hero-bg {
  margin-top: clamp(32px, 6vw, 72px);
  height: clamp(110px, 21vw, 300px);
  background: url("../img/haus.svg") center bottom / 100% auto no-repeat;
  opacity: 0.62;
}

/* ---------- Abschnitte ---------- */
.section { border-bottom: 1px solid var(--rule); }
.section.tinted { background: var(--panel); }
.section-head {
  display: grid; grid-template-columns: minmax(150px, 3fr) minmax(0, 8fr);
  gap: var(--gap); padding: var(--block) 0 clamp(28px, 4vw, 44px);
}
.section-head h2 {
  font-weight: 500; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  margin: 0; color: var(--muted);
}
.section-head p { margin: 0; max-width: 40ch; font-size: var(--step-2); line-height: 1.45; text-wrap: pretty; }

/* Leistungen */
.cards { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--rule); border-top: 1px solid var(--ink); margin-bottom: var(--block); }
.card { position: relative; background: var(--paper); padding: clamp(24px, 3vw, 36px) clamp(20px, 2.4vw, 32px) clamp(28px, 3vw, 40px); transition: background .25s; }
.card::before { content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); transition: width .3s; }
.card:hover { background: #fff; }
.card:hover::before { width: 100%; }
.card h3 { font-weight: 500; font-size: var(--step-1); margin: 0 0 12px; }
.card p { margin: 0; color: var(--muted); }

/* Ablauf */
.steps {
  list-style: none; counter-reset: s; margin: 0 0 var(--block); padding: 0;
  display: grid; grid-template-columns: 1fr;
  gap: 1px; background: var(--rule); border-top: 1px solid var(--ink);
}
.steps li { counter-increment: s; background: var(--panel); padding: clamp(24px, 3vw, 36px) clamp(20px, 2.4vw, 32px) clamp(28px, 3vw, 40px); }
.steps li::before {
  content: counter(s, decimal-leading-zero); display: block;
  color: var(--accent); font-size: 0.85rem; letter-spacing: 0.08em; margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.steps h3 { font-weight: 500; font-size: var(--step-1); margin: 0 0 10px; }
.steps p { margin: 0; color: var(--muted); }

/* Spalten nach Platz, immer ohne Lücken */
@media (min-width: 620px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 820px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Profil ---------- */
.profile { display: grid; grid-template-columns: minmax(150px, 3fr) minmax(0, 8fr); gap: var(--gap); padding-bottom: var(--block); }
.portrait { position: relative; aspect-ratio: 1; width: 100%; max-width: 260px; background: var(--panel); }
.portrait::after { content: ""; position: absolute; left: 0; bottom: -16px; width: 72px; height: 1px; background: var(--accent); }
.portrait img { position: relative; width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); }
.portrait.no-photo { background: var(--panel); }
.portrait.no-photo img { display: none; }
.portrait.no-photo::before { content: "MR"; position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--muted); letter-spacing: 0.04em; }
.person h3 { font-size: var(--step-2); font-weight: 500; margin: 0; line-height: 1.2; }
.person .role { margin: 4px 0 clamp(22px, 3vw, 34px); color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); max-width: 46rem; }
.timeline li { display: grid; grid-template-columns: clamp(64px, 9vw, 104px) 1fr; gap: clamp(12px, 2vw, 24px); padding: 13px 0; border-bottom: 1px solid var(--rule); }
.timeline time { color: var(--accent); font-variant-numeric: tabular-nums; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: minmax(150px, 3fr) minmax(0, 8fr); gap: var(--gap); padding-bottom: var(--block); }
.address { font-style: normal; line-height: 1.75; }
.address .name { font-weight: 500; }
.address a { text-decoration: none; border-bottom: 1px solid var(--rule); transition: border-color .2s; }
.address a:hover { border-bottom-color: var(--accent); }
.address dl { display: grid; grid-template-columns: minmax(64px, auto) 1fr; column-gap: 16px; margin: clamp(18px, 2.4vw, 26px) 0 0; row-gap: 2px; }
.address dt { color: var(--muted); }
.address dd { margin: 0; }

form {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(16px, 2vw, 22px) clamp(18px, 2.2vw, 26px);
  background: var(--panel); padding: clamp(22px, 3vw, 40px);
  border-top: 2px solid var(--accent);
}
.section.tinted form { background: var(--paper); }
.full { grid-column: 1 / -1; }
label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; letter-spacing: 0.02em; }
input, textarea {
  width: 100%; max-width: 100%; font: inherit; font-size: max(16px, var(--step-0));
  color: var(--ink); background: var(--paper);
  border: 1px solid #c6c1b7; border-radius: 0; padding: 12px 14px; transition: border-color .2s;
}
input:hover, textarea:hover { border-color: #a9a399; }
input:focus, textarea:focus { border-color: var(--accent); }
textarea { min-height: clamp(130px, 22vh, 190px); resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; }
.consent input { width: 18px; height: 18px; margin-top: 4px; flex: none; accent-color: var(--accent); }
.consent label { margin: 0; font-size: 0.85rem; }
.consent a { color: var(--ink); }
button {
  justify-self: start; font: inherit; font-weight: 500;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 0;
  padding: 13px clamp(24px, 4vw, 36px); cursor: pointer;
  transition: background .2s, border-color .2s;
}
button:hover { background: var(--accent); border-color: var(--accent); }
.notice { grid-column: 1 / -1; padding: 14px 16px; background: var(--paper); border-left: 3px solid var(--accent); }
.section.tinted .notice { background: var(--panel); }
.notice { display: none; }
.notice.show { display: block; }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--ink); color: #cfcbc2; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 26px; padding-bottom: 26px; font-size: 0.875rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }

/* ---------- Rechtstexte ---------- */
.legal { padding: clamp(48px, 8vw, 88px) 0 var(--block); }
.legal .wrap > * { max-width: 68ch; }
.legal h1 { font-size: var(--step-l); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 clamp(28px, 4vw, 48px); padding-bottom: clamp(18px, 3vw, 28px); border-bottom: 1px solid var(--accent); }
.legal h2 { font-size: var(--step-1); font-weight: 500; margin: clamp(30px, 4vw, 44px) 0 8px; }
.legal h3 { font-size: 1.02rem; font-weight: 500; margin: 26px 0 6px; }
.legal a { color: var(--ink); }

/* ---------- Schmale Ansichten ---------- */
@media (max-width: 860px) {
  .section-head, .profile, .contact { grid-template-columns: 1fr; gap: clamp(16px, 3vw, 24px); }
  .section-head p { max-width: 46ch; }
  .hero-meta { grid-template-columns: 1fr; gap: 20px; justify-items: start; }
  .portrait { max-width: 210px; }
}
@media (max-width: 560px) {
  .brand { font-size: 0.95rem; }
  .brand .long { display: none; }
  .nav a { font-size: 0.875rem; }
  .hero-bg { height: 30vw; }
  form { grid-template-columns: 1fr; }
  button { justify-self: stretch; text-align: center; }
}
@media (max-width: 440px) {
  html { scroll-padding-top: 106px; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 10px; padding-bottom: 12px; min-height: 0; }
  .nav { gap: 18px; }
  .eyebrow { letter-spacing: 0.06em; font-size: 0.78rem; }
  .eyebrow::before { width: 18px; }
}

/* ---------- Sehr breite Bildschirme ---------- */
@media (min-width: 1700px) {
  :root { --wrap: 1360px; }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .hero-bg, form, .skip { display: none; }
  body { background: #fff; font-size: 11pt; }
  .section, .site-footer { border: 0; background: #fff; color: #000; }
}
