/* ==========================================================================
   lehnen.eu – Stylesheet
   Architekturbüro Lehnen, Köln
   Aufbau: 1 Schrift · 2 Farben & Maße · 3 Grundlagen · 4 Kopf & Navigation
           5 Bausteine · 6 Startseite · 7 Projekte · 8 Projektseite
           9 Textseiten · 10 Fuß · 11 Bewegung
   ========================================================================== */

/* 1 Schrift – Hanken Grotesk, lokal (SIL Open Font License, siehe fonts/OFL.txt) */
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); }

/* 2 Farben & Maße – hier zentral ändern */
:root {
  --kalkweiss: #F5F4F1;   /* Grund */
  --lichtgrau: #E4E2DD;   /* Flächen, Bild-Platzhalter */
  --fuge:      #CFCCC5;   /* Linien */
  --beton:     #8A8780;   /* nur große Schrift / Dekor */
  --grauwacke: #5E5B55;   /* Nebentext */
  --anthrazit: #22221F;   /* Text */

  --schrift: "Hanken Grotesk", Frutiger, "Helvetica Neue", Arial, sans-serif;
  --rand: clamp(22px, 6vw, 96px);      /* Außenrand */
  --spalte: 24px;                       /* Spaltenabstand */
  --breite: 1440px;                     /* max. Inhaltsbreite */
  --abstand-gross: clamp(72px, 10vw, 160px);
  --abstand-mittel: clamp(48px, 6vw, 96px);
}

/* 3 Grundlagen */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--kalkweiss); color: var(--anthrazit);
  font-family: var(--schrift); font-size: 17px; line-height: 1.7; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--grauwacke); }
:focus-visible { outline: 1px solid var(--anthrazit); outline-offset: 4px; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--anthrazit); color: var(--kalkweiss); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; color: var(--kalkweiss); }

.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--spalte); }

/* 4 Kopf & Navigation */
.kopf { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px 0; }
.marke { display: flex; align-items: center; gap: 14px; font-size: 16px; letter-spacing: .02em; }
.marke img { width: 34px; height: auto; }
.marke span span { color: var(--grauwacke); }
.nav { display: flex; gap: 36px; font-size: 15px; }
.nav a[aria-current="page"] { border-bottom: 1px solid var(--anthrazit); }
.menu-knopf { display: none; }

@media (max-width: 760px) {
  .kopf { padding: 18px 0; }
  .marke { font-size: 15px; }
  .marke img { width: 28px; }
  .marke span span { display: none; }
  .menu-knopf {
    display: flex; align-items: center; gap: 8px; min-width: 44px; min-height: 44px;
    background: none; border: 0; padding: 0; font: inherit; font-size: 15px; color: var(--anthrazit); cursor: pointer;
  }
  .menu-knopf svg { width: 20px; height: 10px; }
  .nav {
    display: none; position: fixed; inset: 0; z-index: 50; background: var(--kalkweiss);
    flex-direction: column; justify-content: center; gap: 8px; padding: 0 var(--rand); font-size: 32px; font-weight: 300;
  }
  .nav a { padding: 8px 0; }
  .nav a[aria-current="page"] { border: 0; color: var(--grauwacke); }
  .nav-offen .nav { display: flex; }
  .nav-offen .menu-knopf { position: fixed; top: 18px; right: var(--rand); z-index: 60; }
}

/* 5 Bausteine */
.label { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--grauwacke); }
.unter { font-size: 14px; color: var(--grauwacke); line-height: 1.5; }
.mehr { font-size: 15px; display: inline-flex; align-items: center; min-height: 44px; }
.linie { border-top: 1px solid var(--fuge); }
.bild { background: var(--lichtgrau); overflow: hidden; }
.bild img { width: 100%; height: 100%; object-fit: cover; }
.bildnachweis { font-size: 12px; color: var(--grauwacke); margin-top: 8px; }

/* 6 Startseite */
.titelbild { height: min(78vh, 820px); }
.leitsatz { padding: var(--abstand-gross) 0; align-items: start; }
.leitsatz .label { grid-column: span 3; padding-top: .9em; }
.leitsatz h1 { grid-column: 4 / span 9; font-size: clamp(30px, 3.6vw, 54px); line-height: 1.15; font-weight: 300; }

.abschnitt-kopf { display: flex; justify-content: space-between; align-items: baseline; padding-top: 24px; margin-bottom: 28px; }
.auswahl { row-gap: 56px; align-items: start; }
.auswahl .gross { grid-column: span 7; }
.auswahl .gross .bild { aspect-ratio: 4 / 5; }
.auswahl .klein-spalte { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 56px; padding-top: 120px; }
.auswahl .klein-spalte .bild { aspect-ratio: 4 / 3; }
.karte { display: flex; flex-direction: column; gap: 14px; }
.karte-titel { font-size: 20px; line-height: 1.35; }

.textblock { padding-top: var(--abstand-gross); align-items: start; }
.textblock .label { grid-column: span 3; padding-top: .5em; }
.textblock .inhalt { grid-column: 4 / span 6; display: flex; flex-direction: column; gap: 24px; font-size: 18px; }

.buero-teaser { padding-top: var(--abstand-gross); align-items: end; row-gap: 32px; }
.buero-teaser .bild { grid-column: span 5; aspect-ratio: 4 / 5; }
.buero-teaser .inhalt { grid-column: 7 / span 5; display: flex; flex-direction: column; gap: 20px; font-size: 16px; }

/* 7 Projekte (Übersicht) */
.seitenkopf { padding: var(--abstand-mittel) 0; align-items: end; row-gap: 24px; }
.seitenkopf h1 { grid-column: span 6; font-size: clamp(40px, 4.4vw, 64px); font-weight: 300; line-height: 1; }
.seitenkopf p { grid-column: 8 / span 5; font-size: 16px; color: var(--grauwacke); }
.projektliste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 64px); row-gap: 96px; align-items: start; }
.projektliste .karte:nth-child(4n+1) .bild, .projektliste .karte:nth-child(4n) .bild { aspect-ratio: 4 / 5; }
.projektliste .karte:nth-child(4n+2) .bild, .projektliste .karte:nth-child(4n+3) .bild { aspect-ratio: 4 / 3; }
.projektliste .karte:nth-child(2) { margin-top: 160px; }
.karte-zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }

/* 8 Projektseite */
.projekt-titelbild { height: min(80vh, 860px); }
.projekt-kopf { padding: var(--abstand-mittel) 0 var(--abstand-gross); row-gap: 48px; align-items: start; }
.projekt-kopf .haupt { grid-column: span 7; display: flex; flex-direction: column; gap: 32px; }
.projekt-kopf h1 { font-size: clamp(34px, 4vw, 58px); font-weight: 300; line-height: 1.08; }
.projekt-kopf .einleitung { display: flex; flex-direction: column; gap: 20px; font-size: 18px; max-width: 640px; }
.daten { grid-column: 9 / span 4; border-top: 1px solid var(--fuge); padding-top: 24px; }
.daten dt { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--grauwacke); margin-bottom: 4px; }
.daten dd { margin: 0 0 22px; font-size: 15px; line-height: 1.6; }

.galerie { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--spalte); row-gap: 56px; align-items: start; }
.galerie figure { grid-column: span 12; }
.galerie figure.hoch { grid-column: span 5; }
.galerie figure.quer { grid-column: span 7; }
.galerie figure.voll { grid-column: span 12; }
.galerie figure.halb { grid-column: span 6; }
.galerie figure.hoch.mitte { grid-column: 4 / span 6; }
.galerie figure.hoch.rechts { grid-column: 8 / span 5; }
.galerie figure.quer.rechts { grid-column: 6 / span 7; }
.galerie figcaption { font-size: 14px; color: var(--grauwacke); margin-top: 12px; line-height: 1.5; max-width: 560px; }
.galerie figcaption strong { color: var(--anthrazit); font-weight: 400; display: block; }

.aufklapp { grid-column: 4 / span 7; border-top: 1px solid var(--fuge); }
.aufklapp:last-child { border-bottom: 1px solid var(--fuge); }
.aufklapp summary { cursor: pointer; list-style: none; font-size: 18px; padding: 24px 0; display: flex; justify-content: space-between; gap: 16px; min-height: 44px; }
.aufklapp summary::-webkit-details-marker { display: none; }
.aufklapp summary::after { content: "+"; color: var(--grauwacke); font-weight: 300; }
.aufklapp[open] summary::after { content: "–"; }
.aufklapp .aufklapp-inhalt { padding-bottom: 40px; display: flex; flex-direction: column; gap: 32px; font-size: 15px; }
.entstehung-schritt { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--spalte); align-items: start; }
.entstehung-schritt h3 { font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.entstehung-schritt p + p { margin-top: 10px; }
.entstehung-bilder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.entstehung-bilder .bild:only-child { grid-column: span 2; }
.beteiligte { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--spalte); row-gap: 14px; font-size: 14px; line-height: 1.5; }
.beteiligte dt { color: var(--grauwacke); }
.beteiligte dd { margin: 0; }
.mehrteil { padding-top: var(--abstand-gross); }

.projekt-nav { display: flex; justify-content: space-between; gap: 24px; padding-top: var(--abstand-mittel); font-size: 15px; }

/* 9 Textseiten (Haltung, Büro, Impressum, Datenschutz) */
.text { padding-bottom: var(--abstand-mittel); row-gap: 32px; }
.text .spalte-links { grid-column: span 3; }
.text .spalte-text { grid-column: 4 / span 7; display: flex; flex-direction: column; gap: 20px; }
.text h2 { font-size: 22px; font-weight: 400; line-height: 1.35; margin-top: 28px; }
.text h2:first-child { margin-top: 0; }
.text h3 { font-size: 16px; font-weight: 500; margin-top: 12px; }
.text ul { padding-left: 1.1em; }
.text .klein { font-size: 15px; }
.cv { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); column-gap: var(--spalte); row-gap: 18px; font-size: 16px; }
.cv dt { color: var(--grauwacke); }
.cv dd { margin: 0; }
.portrait { grid-column: span 3; aspect-ratio: 3 / 4; align-self: start; }
.hinweis { background: #FFF3C4; padding: 2px 6px; }

/* 10 Fuß */
.fuss { margin-top: var(--abstand-gross); padding: 40px 0 56px; border-top: 1px solid var(--fuge); font-size: 14px; line-height: 1.7; row-gap: 20px; }
.fuss > div { grid-column: span 4; }
.fuss .rechts { display: flex; gap: 24px; justify-content: flex-end; color: var(--grauwacke); }
.fuss .rechts a { color: var(--grauwacke); }

/* Tablet */
@media (max-width: 1024px) {
  .auswahl .gross { grid-column: span 12; }
  .auswahl .klein-spalte { grid-column: span 12; flex-direction: row; padding-top: 0; }
  .auswahl .klein-spalte .karte { flex: 1; }
  .textblock .inhalt, .text .spalte-text { grid-column: 4 / span 9; }
  .projekt-kopf .haupt { grid-column: span 12; }
  .daten { grid-column: span 12; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--spalte); }
  .aufklapp { grid-column: span 12; }
}

/* Smartphone */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .grid > * { grid-column: 1 / -1 !important; }
  .titelbild, .projekt-titelbild { height: 68vh; margin: 0 calc(-1 * var(--rand)); }
  .leitsatz .label, .textblock .label { padding-top: 0; margin-bottom: 14px; }
  .leitsatz h1 { font-size: 28px; line-height: 1.22; }
  .auswahl .klein-spalte { flex-direction: column; gap: 44px; }
  .auswahl .gross .bild { aspect-ratio: 4 / 5; }
  .projektliste { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
  .projektliste .karte:nth-child(2) { margin-top: 0; }
  .projektliste .karte .bild { aspect-ratio: 4 / 3 !important; }
  .projektliste .karte:first-child .bild { aspect-ratio: 4 / 5 !important; }
  .karte-titel { font-size: 18px; }
  .daten { display: block; }
  .galerie { row-gap: 32px; margin: 0 calc(-1 * var(--rand)); }
  .galerie figure, .galerie figure.halb, .galerie figure.hoch, .galerie figure.quer, .galerie figure.hoch.rechts, .galerie figure.quer.rechts, .galerie figure.hoch.mitte { grid-column: 1 / -1; }
  .galerie figcaption { padding: 0 var(--rand); }
  .entstehung-schritt { grid-template-columns: minmax(0, 1fr); }
  .beteiligte { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .beteiligte dd { margin-bottom: 12px; }
  .cv { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .cv dd { margin-bottom: 14px; }
  .portrait { max-width: 280px; }
  .projekt-nav { flex-direction: column; gap: 0; }
  .projekt-nav a { min-height: 44px; display: flex; align-items: center; }
  .fuss .rechts { justify-content: flex-start; }
}

/* 11 Bewegung – Bilder blenden beim Scrollen ein (nur mit JavaScript) */
.js .einblenden { opacity: 0; transition: opacity .4s ease; }
.js .einblenden.sichtbar { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .einblenden { opacity: 1; transition: none; }
}

/* Druck */
@media print {
  .kopf .nav, .menu-knopf, .projekt-nav, .skip { display: none !important; }
  body { background: #fff; }
}

/* Platzhalter (nur während des Aufbaus, verschwindet mit den Bildern) */
.platzhalter { display: flex; align-items: flex-end; padding: 14px; min-height: 160px; }
.platzhalter-text { font-size: 12px; color: var(--grauwacke); letter-spacing: .04em; }
.galerie .platzhalter, .karte .platzhalter { aspect-ratio: 3 / 2; }
.galerie figure.hoch .platzhalter { aspect-ratio: 4 / 5; }
.entstehung-bilder .platzhalter { min-height: 0; aspect-ratio: 3 / 2; }
.bildnachweis { text-align: right; }
.entstehung-bilder .bild { aspect-ratio: 4 / 3; }
.entstehung-bilder .bild picture { display: block; height: 100%; }
.buero-teaser .bild img, .portrait img { object-position: 36% 40%; }
