/* Martin Braun Fotografie – Entwurf C */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --grund: #F4F3F0;
  --tinte: #161616;
  --grau: #555555;
  --text: #2E2E2E;
  --linie: #D6D3CC;
  --pill: #BDBAB3;
  --rand: clamp(20px, 4vw, 64px);
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--tinte); font-family: var(--sans); font-size: 17px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
/* Seitenbreite: bis ca. 2600 px Fensterbreite max. 1600 px, darüber mitwachsend (62 % der Fensterbreite) */
.wrap { padding-left: var(--rand); padding-right: var(--rand); max-width: max(1600px, 62vw); margin-left: auto; margin-right: auto; }
.label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grau); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--tinte); color: #fff; padding: 8px 12px; z-index: 100; }
:focus-visible { outline: 2px solid var(--tinte); outline-offset: 3px; }

/* Kopf */
.kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.marke { font-size: 22px; letter-spacing: -0.01em; }
.marke-name { font-weight: 600; }
.marke-zusatz { color: var(--grau); }
.marke-logo { display: block; color: var(--tinte); line-height: 0; }
.marke-logo .logo { height: 52px; width: auto; display: block; }
@media (max-width: 860px) { .marke-logo .logo { height: 32px; } }
.nav { display: flex; align-items: center; gap: 32px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.nav a, .nav button { padding: 10px 0; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.nav-kontakt { font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; background: none; border: 0; cursor: pointer; }

/* Intro */
.intro { padding-top: 64px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 40px; }
.claim { margin: 0; font-size: min(44px, 3.9vw); line-height: 1.05; font-weight: 500; letter-spacing: -0.02em; max-width: 1040px; }
.claim-zusatz { margin: 14px 0 0; font-family: var(--mono); font-size: 15px; line-height: 1.5; color: var(--grau); max-width: 640px; }
.filter { display: flex; flex-wrap: wrap; gap: 4px 28px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.pill { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--tinte); padding: 12px 0; min-height: 44px; border: 0; background: transparent; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: transparent; transition: text-decoration-color 0.15s; }
.pill:hover { text-decoration-color: var(--pill); }
.pill[aria-pressed="true"] { text-decoration-color: var(--tinte); }

/* Projektraster Startseite */
.board { padding-top: 8px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 72px; }
.modul { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 20px; align-items: start; }
.modul-0 .kachel { grid-column: 9 / span 4; }
.modul-0 .kachel.gross { grid-column: 1 / span 8; grid-row: 1 / span 2; }
.modul-1 .kachel { grid-column: 1 / span 4; }
.modul-1 .kachel.gross { grid-column: 5 / span 8; grid-row: 1 / span 2; }
.modul-2 .kachel { grid-column: span 4; }
.modul.spaeter { display: none; }
/* Großes Bild füllt die Höhe der beiden kleinen Kacheln daneben (keine Lücke darunter) */
.modul-0 .kachel.gross, .modul-1 .kachel.gross { align-self: stretch; }
.kachel.gross picture { flex: 1 1 auto; min-height: 0; }
.kachel.gross .kachelbild { height: 100%; aspect-ratio: auto !important; }
.kachel { display: flex; flex-direction: column; gap: 12px; }
.kachelbild { width: 100%; object-fit: cover; transition: filter 0.3s ease; }
.kachel:hover .kachelbild { filter: brightness(0.82); }
.kachel-text { display: flex; flex-direction: column; gap: 4px; }
.kachel-titel { line-height: 28px; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.kachel.gross .kachel-titel { font-size: 24px; }
.kachel-tags { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grau); }
.kachel:hover .kachel-tags { color: var(--tinte); }
.nachladen { margin: 0; display: flex; justify-content: center; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grau); }
.nachladen .punkt { width: 8px; height: 8px; border-radius: 999px; background: var(--tinte); animation: puls 1.2s ease-in-out infinite; }
@keyframes puls { 50% { opacity: 0.25; } }
.nachladen[hidden] { display: none; }

/* Gefiltert: einfaches Raster ohne Module */
.board.gefiltert { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; }
.board.gefiltert .modul { display: contents; }
.board.gefiltert .kachel { grid-column: auto; grid-row: auto; }
.board.gefiltert .kachelbild { aspect-ratio: 4 / 3 !important; height: auto; }
.board.gefiltert .kachel.gross picture { flex: none; }
.board.gefiltert .kachel.gross .kachel-titel { font-size: 19px; }
.board.gefiltert .nachladen { display: none; }
.kachel[hidden] { display: none; }

/* Leistungen */
.leistungen { padding-top: 96px; padding-bottom: 96px; border-top: 1px solid var(--linie); display: flex; flex-direction: column; gap: 48px; }
.leistungen-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.leistungen h2 { margin: 0 0 12px 0; font-size: 24px; font-weight: 500; }
.leistungen p { margin: 0; font-size: 16px; line-height: 1.55; color: #3A3A3A; }

/* Kontaktblock + Fuß */
.kontaktblock { box-shadow: 0 0 0 100vmax var(--tinte); clip-path: inset(0 -100vmax); padding-top: 96px; padding-bottom: 96px; background: var(--tinte); color: var(--grund); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.kontaktblock h2 { margin: 0; flex: 1 1 480px; font-size: 48px; line-height: 1.1; font-weight: 500; letter-spacing: -0.02em; }
.kontaktblock-links { flex: 0 1 360px; display: flex; flex-direction: column; gap: 14px; font-size: 18px; }
.kontaktblock-links a { color: #fff; border-bottom: 1px solid #6E6B65; padding: 10px 0; }
.fuss { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grau); }

/* Kontakt-Dialog */
.kontakt { border: 0; padding: 40px; width: 560px; max-width: calc(100% - 40px); background: var(--grund); color: var(--tinte); font-family: var(--sans); }
.kontakt::backdrop { background: rgba(22, 22, 22, 0.55); }
.kontakt-kopf { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 28px; }
.kontakt-kopf h2 { margin: 0; font-size: 40px; line-height: 1; font-weight: 500; letter-spacing: -0.02em; }
.kontakt-schliessen { width: 44px; height: 44px; border: 1px solid var(--pill); border-radius: 999px; background: transparent; color: var(--tinte); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.kontakt-links { display: flex; flex-direction: column; gap: 6px; font-size: 22px; font-weight: 500; margin-bottom: 28px; }
.kontakt-links a { padding: 6px 0; border-bottom: 1px solid var(--pill); }
.kontakt-daten { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 8px 16px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.kontakt-daten dt { color: var(--grau); }
.kontakt-daten dd { margin: 0; }

/* Projektseite */
.projektkopf { padding-top: 20px; padding-bottom: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.projektkopf-bild .reihenbild { flex: none !important; width: 100%; }
.projektkopf-info { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; height: 100%; padding: 0 0 0 24px; }
.projektkopf-text { display: flex; flex-direction: column; gap: 20px; }
.zurueck { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grau); padding: 10px 0; }
.projektkopf h1 { margin: 0; font-size: 64px; line-height: 1; font-weight: 500; letter-spacing: -0.03em; }
.projekttext { max-width: 640px; font-size: 19px; line-height: 1.55; font-weight: 300; }
.projekttext p { margin: 0 0 1em 0; }
.steckbrief { margin: 0; display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; border-top: 1px solid var(--linie); padding-top: 16px; }
.steckbrief dt { color: var(--grau); }
.steckbrief dd { margin: 0; }
.bildstrecke { padding-bottom: 96px; display: flex; flex-direction: column; gap: 20px; }
.reihe { display: flex; gap: 20px; align-items: flex-start; }
.reihenbild { margin: 0; min-width: 0; }
.reihenbild img { width: 100%; }
.reihe.einzeln { justify-content: center; }
.reihe.einzeln .reihenbild { flex: none !important; width: 100%; }
.reihe.einzeln .reihenbild.hoch { width: min(100%, calc(85vh * var(--r, 0.67))); }
.blaettern { padding-top: 32px; padding-bottom: 32px; border-top: 1px solid var(--linie); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 16px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.blaettern a { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; }
.blaettern-titel { font-family: var(--sans); font-size: 22px; text-transform: none; letter-spacing: 0; }
.blaettern-alle { justify-self: center; border-bottom: 1px solid var(--tinte); padding: 12px 0 !important; }
.blaettern-nach { justify-self: end; align-items: flex-end; text-align: right; }

/* Profil */
.profil { padding-top: 56px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 88px; }
.profil-oben { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 20px; align-items: start; }
.profil-bild { grid-column: 1 / span 5; }
.profil-fragen { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 48px; padding-top: 8px; }
.frage { display: flex; flex-direction: column; gap: 10px; }
.frage p { margin: 0; font-size: 24px; line-height: 1.35; letter-spacing: -0.01em; }
.frage-gross { max-width: 1200px; }
.frage-gross p { font-size: 34px; line-height: 1.3; font-weight: 500; letter-spacing: -0.02em; }
/* Collage Profilseite: locker gestreut. Reihenfolge zeilenweise (neueste oben): site.js verteilt die Bilder
   auf Spalten (--spalten), ohne JS greifen CSS-Spalten. Breite/Einrückung über v0–v6, Abstand über m-klein/m-gross. */
.collage { --spalten: 4; --spalt: clamp(16px, 2.6vw, 44px); columns: var(--spalten); column-gap: var(--spalt); }
.collage.js { columns: auto; display: flex; align-items: flex-start; gap: var(--spalt); }
.collage-spalte { flex: 1 1 0; min-width: 0; }
.collage-bild { margin: 0 0 clamp(20px, 3.4vw, 64px); break-inside: avoid; width: 100%; }
.collage-bild picture { display: block; }
.collage-bild img { display: block; width: 100%; height: auto; }
.collage-bild.v0 { width: 88%; }
.collage-bild.v1 { width: 70%; margin-left: 30%; }
.collage-bild.v2 { width: 100%; }
.collage-bild.v3 { width: 78%; margin-left: 12%; }
.collage-bild.v4 { width: 62%; margin-left: 8%; }
.collage-bild.v5 { width: 92%; margin-left: 8%; }
.collage-bild.v6 { width: 74%; margin-left: 20%; }
.collage-bild.m-klein { margin-bottom: clamp(12px, 1.6vw, 28px); }
.collage-bild.m-gross { margin-bottom: clamp(28px, 5vw, 96px); }
.warum { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.warum .label { grid-column: 1 / span 3; padding-top: 10px; }
.warum p { grid-column: 4 / span 8; margin: 0; font-size: 24px; line-height: 1.5; font-weight: 300; }

/* Rechtliches */
.rechtliches { padding-top: 64px; padding-bottom: 96px; }
.rechtliches > * { max-width: 900px; }
.rechtliches h2 { margin: 64px 0 16px 0; font-size: 32px; font-weight: 500; }
.rechtliches .label { margin: 24px 0 4px 0; }
.rechtliches p { margin: 0 0 8px 0; }
.rechtliches a { border-bottom: 1px solid var(--pill); }
.hinweis { background: #FFF3C4; padding: 12px 16px; }

@media (max-width: 1200px) and (min-width: 861px) { .collage { --spalten: 3; } }

/* Mobil */
@media (max-width: 860px) {
  :root { --rand: 20px; }
  .claim { font-size: clamp(28px, 8.8vw, 34px); }
  .claim .umbruch { display: none; }
  .claim-zusatz { font-size: 14px; }
  .nav { gap: 20px; }
  .modul, .board.gefiltert { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .modul .kachel, .modul .kachel.gross { grid-column: auto; grid-row: auto; }
  .modul .kachel.gross, .modul-2 .kachel:first-child { grid-column: 1 / -1; order: -1; }
  .kachel.gross picture { flex: none; }
  .kachel.gross .kachelbild { height: auto; aspect-ratio: 3 / 2 !important; }
  .modul-2 .kachel:first-child .kachelbild { aspect-ratio: 3 / 2 !important; }
  .filter { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(-1 * var(--rand)); margin-right: calc(-1 * var(--rand)); padding: 0 var(--rand) 4px; scrollbar-width: none; }
  .filter::-webkit-scrollbar { display: none; }
  .pill { flex: none; }
  .board { gap: 28px; }
  .leistungen-grid { grid-template-columns: 1fr; gap: 24px; }
  .kontaktblock h2 { font-size: 32px; }
  .projektkopf h1 { font-size: 40px; }
  .projektkopf { grid-template-columns: 1fr; }
  .projektkopf-info { order: -1; padding: 0; height: auto; }
  .reihe { flex-direction: column; }
  .reihenbild { flex: none !important; width: 100%; }
  .blaettern { grid-template-columns: 1fr 1fr; }
  .blaettern-alle { display: none !important; }
  .profil-oben, .warum { grid-template-columns: 1fr; }
  .profil-bild, .profil-fragen, .warum .label, .warum p { grid-column: auto; }
  .frage-gross p { font-size: 24px; }
  .profil .reihe { flex-direction: column; }
  .collage { --spalten: 2; --spalt: 14px; }
}
