/* architekturstudio andreas mezey – Stylesheet */

@font-face {
  font-family: "Jost";
  src: url("fonts/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  src: url("fonts/jost-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --schwarz: #000000;
  --grafit: #2e2e2e;
  --stein: #7e7e7e;
  --beton: #e6e7e6;
  --weiss: #fbfbfa;
  --rot: #b3261c;
  --text: #1c1c1c;
  --text-leise: #5a5a5a;

  --font: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --kopf: 68px;
  --rand: clamp(1.25rem, 4vw, 3rem);
  --breite: 1280px;
  --quadrat: 0.42em;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-padding-top: var(--kopf);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--rot); }
:focus-visible { outline: 2px solid var(--rot); outline-offset: 3px; }
body.menu-offen { overflow: hidden; }

.wrap {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--rand);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--weiss); color: var(--text); padding: 0.75rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Das rote Quadrat aus dem Logo */
.quadrat {
  display: inline-block;
  width: var(--quadrat); height: var(--quadrat);
  background: var(--rot);
  vertical-align: 0.05em;
}

/* ---------- Kopfzeile ---------- */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--kopf);
  background: var(--schwarz);
  color: #fff;
}
.kopf .wrap {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo { display: block; flex-shrink: 1; min-width: 0; }
.logo img { width: 225px; height: auto; }
.kopf-rechts { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.75rem); }

.sprache { display: flex; gap: 0.35rem; font-size: 0.9375rem; letter-spacing: 0.02em; }
.sprache a, .sprache span { color: var(--stein); text-decoration: none; padding: 0.25rem 0.2rem; }
.sprache [aria-current] { color: #fff; }
.sprache a:hover { color: #fff; }

.burger {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: none; border: 0; padding: 0; cursor: pointer; color: #fff;
}
.burger span {
  display: block; width: 26px; height: 1.5px; background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
  grid-area: 1 / 1;
}
.burger span:nth-child(1) { transform: translateY(-8px); }
.burger span:nth-child(3) { transform: translateY(8px); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

/* ---------- Burger-Menü ---------- */
.menue {
  position: fixed; inset: var(--kopf) 0 0 0; z-index: 49;
  background: var(--schwarz); color: #fff;
  overflow-y: auto;
  visibility: hidden; opacity: 0;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.menue.offen { visibility: visible; opacity: 1; transition: opacity 0.25s ease; }
.menue .wrap {
  min-height: 100%;
  display: flex; flex-direction: column; justify-content: space-between; gap: 3rem;
  padding-top: clamp(2rem, 6vh, 4rem); padding-bottom: 2rem;
}
.menue ul { list-style: none; margin: 0; padding: 0; }
.menue li a {
  display: flex; align-items: center; gap: 0.9rem;
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 300; line-height: 1.25;
  text-decoration: none; color: #d8d8d8;
  padding: 0.2rem 0;
}
.menue li a::before {
  content: ""; width: 0.28em; height: 0.28em; flex-shrink: 0;
  background: transparent; transition: background 0.15s ease;
}
.menue li a:hover, .menue li a[aria-current="true"] { color: #fff; }
.menue li a:hover::before, .menue li a[aria-current="true"]::before { background: var(--rot); }
.menue-adresse { color: var(--stein); font-size: 0.9375rem; line-height: 1.6; }
.menue-adresse a { color: var(--stein); }

main { padding-top: var(--kopf); }

/* ---------- Überschriften ---------- */
.titel {
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
}
h2.titel { font-size: clamp(2rem, 4.2vw, 3.25rem); }

/* ---------- Einstieg ---------- */
.einstieg {
  background: var(--schwarz); color: #fff;
  padding: clamp(3rem, 9vh, 6rem) 0 clamp(4rem, 10vh, 7rem);
}
.einstieg .wrap {
  display: grid; gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 900px) {
  .einstieg .wrap { grid-template-columns: 6fr 6fr; }
}
.einstieg h1 {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  max-width: 14ch;
  text-transform: none;
}
.einstieg h1 .quadrat { margin-left: 0.12em; }
.einstieg-listen {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  max-width: 34rem;
}
.einstieg-listen ul {
  list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--grafit);
}
.einstieg-listen li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--grafit);
  color: #cfcfcf;
}
.einstieg-bild { margin: 0; }
.einstieg-bild img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.einstieg-bild figcaption { margin-top: 0.75rem; font-size: 0.875rem; color: var(--stein); }
.einstieg-bild figcaption a { color: var(--stein); }
.einstieg-bild figcaption a:hover { color: #fff; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(4.5rem, 11vw, 8.5rem) 0; }
.abschnitt--beton { background: var(--beton); }
.plan {
  display: grid; gap: 2rem 4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .plan { grid-template-columns: 4fr 8fr; }
  .plan-kopf { position: sticky; top: calc(var(--kopf) + 2.5rem); align-self: start; }
}
.plan-kopf .bild { margin-top: 2.5rem; max-width: 300px; }

.text { max-width: 62ch; }
.text p { margin: 0 0 1.1em; }
.text p:last-child { margin-bottom: 0; }
.text h2 {
  font-size: 1.25rem; font-weight: 500;
  margin: 2.25rem 0 0.75rem;
}
.text ul { list-style: none; padding: 0; margin: 0 0 1.25em; }
.text li { position: relative; padding-left: 1.3rem; margin-bottom: 0.35em; }
.text li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 0.4rem; height: 0.4rem; background: var(--rot);
}
.einleitung { font-size: 1.1875rem; }

.links-zeile { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.75rem !important; }
.links-zeile a {
  font-weight: 500; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 0.1rem;
}

/* Partner */
.partner-liste {
  list-style: none; padding: 0; margin: 2rem 0 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  border-top: 1px solid #c9cac9;
}
.partner-liste li {
  padding: 1.1rem 1.5rem 1.1rem 0;
  border-bottom: 1px solid #c9cac9;
  line-height: 1.45;
}
.partner-liste strong { display: block; font-weight: 500; }
.partner-liste a { color: var(--text-leise); font-size: 0.9375rem; }
.partner-liste a:hover { color: var(--rot); }

/* ---------- Referenzen ---------- */
.referenzen-kopf { margin-bottom: clamp(2.5rem, 6vw, 4rem); max-width: 46rem; }
.raster {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 2.75rem 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}
.kachel a { display: block; text-decoration: none; }
.kachel .rahmen { overflow: hidden; background: var(--beton); }
.kachel img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.kachel h3 {
  display: flex; gap: 0.7rem; align-items: baseline;
  font-size: 1.0625rem; font-weight: 400; line-height: 1.4;
  margin: 0.9rem 0 0;
}
.kachel h3::before {
  content: ""; flex-shrink: 0; width: 0.45rem; height: 0.45rem;
  background: var(--stein); transform: translateY(-0.1rem);
}
.kachel a:hover h3, .kachel a:focus-visible h3 { color: var(--rot); }
.kachel a:hover h3::before, .kachel a:focus-visible h3::before { background: var(--rot); }

/* ---------- Impressum ---------- */
.impressum .text { font-size: 0.9375rem; color: var(--text-leise); }
.impressum .text strong { color: var(--text); font-weight: 500; display: inline-block; margin-bottom: 0.15rem; }
.impressum .adresse { font-size: 1.0625rem; color: var(--text); }
.impressum .k { display: inline-block; min-width: 6.5rem; color: var(--text-leise); }

/* ---------- Fußzeile ---------- */
.fuss {
  background: var(--schwarz); color: var(--stein);
  padding: 3rem 0 2.5rem; font-size: 0.9375rem;
}
.fuss .wrap {
  display: flex; flex-wrap: wrap; gap: 1.5rem 3rem;
  justify-content: space-between; align-items: flex-end;
}
.fuss img { width: 225px; }
.fuss a { color: var(--stein); }
.fuss a:hover { color: #fff; }
.fuss p { margin: 0; }

/* ---------- Projektseite ---------- */
.projekt-bild { background: var(--schwarz); }
.projekt-bild img {
  width: 100%; max-height: min(74vh, 820px); object-fit: cover;
  margin: 0 auto;
}
.projekt-bild--hoch img { max-width: 900px; object-fit: contain; background: var(--schwarz); }
.zurueck {
  display: inline-flex; gap: 0.6rem; align-items: baseline;
  font-size: 0.9375rem; text-decoration: none; color: var(--text-leise);
  margin-bottom: 1.5rem;
}
.zurueck::before { content: ""; width: 0.4rem; height: 0.4rem; background: var(--rot); }
.projekt h1.titel { font-size: clamp(2rem, 4vw, 3rem); }

.kennzahlen {
  margin: 1.75rem 0; padding: 0;
  border-top: 1px solid #cfd0cf;
}
.kennzahlen div {
  display: grid; grid-template-columns: minmax(9rem, 2fr) 3fr; gap: 1rem;
  padding: 0.6rem 0; border-bottom: 1px solid #cfd0cf;
}
.kennzahlen dt { color: var(--text-leise); }
.kennzahlen dd { margin: 0; font-weight: 500; }
.hinweis { font-size: 0.9375rem; color: var(--text-leise); font-style: italic; }

.galerie-bereich { padding-top: 0; }
.galerie {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}
.galerie button {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: var(--beton);
}
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.galerie button:hover img { opacity: 0.88; }

.blaettern {
  border-top: 1px solid #cfd0cf;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  padding-top: 2rem; margin-top: clamp(3.5rem, 8vw, 6rem);
}
.blaettern a { text-decoration: none; display: block; }
.blaettern small { display: block; color: var(--text-leise); font-size: 0.875rem; margin-bottom: 0.25rem; }
.blaettern span { font-size: 1.125rem; line-height: 1.35; }
.blaettern .weiter { text-align: right; }
.blaettern a:hover span { color: var(--rot); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(0, 0, 0, 0.96); color: #fff;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.96); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-leiste {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem var(--rand); font-size: 0.9375rem; color: var(--stein);
}
.lb-buehne {
  position: relative; min-height: 0;
  display: grid; place-items: center; padding: 0 clamp(0.5rem, 6vw, 5rem);
}
.lb-buehne img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-knopf {
  background: none; border: 0; color: #fff; cursor: pointer;
  width: 48px; height: 48px; display: grid; place-items: center;
  font: inherit; font-size: 2.25rem; line-height: 1; font-weight: 300;
}
.lb-knopf:hover { color: var(--rot); }
.lb-nav {
  display: flex; justify-content: center; gap: 2rem; padding: 0.75rem;
}

@media (max-width: 520px) {
  .logo img { width: 180px; }
  .einstieg-listen { grid-template-columns: 1fr; gap: 0; }
  .einstieg-listen ul + ul { border-top: 0; }
  .blaettern { grid-template-columns: 1fr; }
  .blaettern .weiter { text-align: left; }
  .kennzahlen div { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Partnerliste ohne Aufzählungsquadrat */
.text .partner-liste li { padding-left: 0; margin: 0; }
.text .partner-liste li::before { content: none; }
.galerie-bereich { padding-bottom: 0; }
