/* eva-maria-gebhardt.de – Gestaltung nach dem Vorbild der bisherigen Squarespace-Seite
   (Schrift Bakbak One, Schwarz/Weiß/Hellgrau, große Bildflächen). */

@font-face {
  font-family: "Bakbak One";
  src: url("fonts/bakbak-one-latin.woff2") format("woff2");
  font-weight: 400; 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: "Bakbak One";
  src: url("fonts/bakbak-one-latin-ext.woff2") format("woff2");
  font-weight: 400; 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: #000;
  --text: rgba(0, 0, 0, .84);
  --grau: #ddd;
  --weiss: #fff;
  --rand: clamp(16px, 3vw, 43px);
  --kopf: 89px;
  --schrift: "Bakbak One", "Arial Black", system-ui, sans-serif;
  --knopfschrift: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf) + 12px); }
body {
  margin: 0; background: var(--weiss); color: var(--schwarz);
  font-family: var(--schrift); font-size: 15px; line-height: 1.45;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 400; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.sprung { position: absolute; left: -9999px; }
.sprung:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* ---------- Kopfzeile ---------- */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--kopf);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--rand);
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 12px rgba(0, 0, 0, .12);
  transition: background .3s, box-shadow .3s, color .3s;
}
.marke { font-size: clamp(22px, 3.7vw, 53px); text-decoration: none; color: var(--text); white-space: nowrap; line-height: 1; letter-spacing: .01em; }
.hauptnav { margin-left: auto; display: flex; gap: 14px; }
.hauptnav a { font-size: 17.5px; text-decoration: none; color: var(--text); padding: 4px 0; border-bottom: 1px solid transparent; }
.hauptnav a:hover, .hauptnav a[aria-current] { border-bottom-color: currentColor; }
.sozial { display: flex; gap: 6px; margin-left: 74px; }
.sozial a { width: 36px; height: 36px; border-radius: 4px; background: var(--schwarz); display: grid; place-items: center; }
.sozial svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 2; }
.sozial svg .voll, .sozial svg path { fill: #fff; stroke: none; }
.menue-knopf { display: none; }

/* Startseite: Kopf durchsichtig über dem Titelbild, bis gescrollt wird */
body.kopf-hell .kopf:not(.gescrollt) { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.kopf-hell .kopf:not(.gescrollt) .marke,
body.kopf-hell .kopf:not(.gescrollt) .hauptnav a { color: #fff; }
body.kopf-hell .kopf:not(.gescrollt) .menue-knopf span { background: #fff; }

/* ---------- Abschnitte ---------- */
main { padding-top: var(--kopf); }
body.kopf-hell main { padding-top: 0; }
.abschnitt { position: relative; }
.abschnitt > .innen { padding: clamp(40px, 6vw, 96px) var(--rand); }
.farbe-grau { background: var(--grau); }
.farbe-dunkel { background: #111; color: #fafafa; }
.hintergrund { position: absolute; inset: 0; overflow: hidden; }
.hintergrund img { width: 100%; height: 100%; object-fit: cover; }

/* Titelbild mit Spitze unten (Projektseiten) */
.a-titel { min-height: clamp(320px, 52vw, 760px); display: grid; align-items: center; color: #fafafa; }
.a-titel .hintergrund::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .12); }
.a-titel > .innen { position: relative; z-index: 1; width: 100%; text-align: center; }
.a-titel .b-text { max-width: none; }
.a-titel h1 { font-size: clamp(40px, 12vw, 175px); line-height: 1; margin: 0; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); overflow-wrap: anywhere; }
.a-titel h1:has(+ *), .a-titel .b-text:only-child h1 { margin: 0; }
.mit-spitze { clip-path: polygon(0 0, 100% 0, 100% 84%, 50% 100%, 0 84%); }
.a-titel.mit-spitze { padding-bottom: 6vw; }

/* Großes Bild ohne Text zwischen Galerien */
.a-bildband { height: clamp(320px, 70vw, 900px); }

/* Startseite */
.a-start { min-height: 100svh; display: flex; align-items: flex-end; color: #fff; }
.a-start .hintergrund::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.05) 35%, rgba(0,0,0,.55) 100%); }
.a-start > .innen { position: relative; z-index: 1; padding-bottom: clamp(80px, 12vw, 160px); }
.a-start h1 { font-size: clamp(44px, 9vw, 150px); line-height: .95; margin: 0 0 .2em; }
.a-start p { font-size: clamp(18px, 2vw, 26px); }
.a-start .knopf { border-color: #fff; color: #fff; }
.a-start .knopf:hover { background: #fff; color: #000; }

/* ---------- Blöcke ---------- */
.b-text { max-width: 1100px; }
.b-text + .b-text { margin-top: 1em; }
.b-text h1 { font-size: clamp(32px, 5vw, 78px); }
.b-text h2 { font-size: clamp(24px, 2.6vw, 36px); }
.b-text h3 { font-size: 23px; }
.b-text ul { padding-left: 1.2em; }
.b-text a { text-underline-offset: 3px; }
.a-normal .b-text:has(h1:only-child) { text-align: center; max-width: none; }

.knopf {
  display: inline-block; font-family: var(--knopfschrift); font-weight: 500; font-size: 13px; letter-spacing: .04em;
  color: inherit; text-decoration: none; border: 1px solid currentColor; padding: 18px 48px; text-align: center;
  transition: background .2s, color .2s;
}
.knopf:hover { background: var(--schwarz); color: #fff; }
.farbe-dunkel .knopf:hover { background: #fff; color: #000; }
.knopf.klein { padding: 10px 22px; font-size: 12px; }
.b-button { margin: 2em 0; }
.a-normal .b-text + .b-button, .a-normal .b-button:first-child { text-align: left; }
.b-button:first-child:last-child, .b-text + .b-button:last-child { margin-bottom: 0; }

.b-bild { margin: 0; }
.b-bild figcaption, .g-item figcaption {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .02em; margin-top: 14px; line-height: 1.35;
}

/* Galerie „Strips“: Reihen mit gleicher Höhe, Breite nach Seitenverhältnis */
.b-galerie { margin: 0; }
.b-galerie + .b-galerie, .b-text + .b-galerie, .b-button + .b-galerie { margin-top: clamp(30px, 4vw, 60px); }
.g-strips { --zeile: 280px; --abstand: 35px; --zeilenabstand: 35px; display: flex; flex-wrap: wrap; gap: var(--zeilenabstand) var(--abstand); }
.g-strips.abstand-weit { --zeile: 400px; --abstand: 7.3vw; --zeilenabstand: 6vw; }
.g-strips.abstand-eng { --zeile: 360px; --abstand: 4px; --zeilenabstand: 28px; }
.g-strips::after { content: ""; flex: 1e6 1 0; }
.g-strips .g-item { margin: 0; flex: var(--r) 1 calc(var(--r) * var(--zeile)); min-width: 0; }
.g-strips .g-item img { width: 100%; aspect-ratio: var(--r); object-fit: cover; }

/* Galerie „Masonry“: Spalten */
.g-masonry { --abstand: 78px; columns: var(--spalten, 2); column-gap: var(--abstand); }
.g-masonry .g-item { margin: 0 0 var(--abstand); break-inside: avoid; }
.g-masonry .g-item img { width: 100%; }
.g-masonry.abstand-weit { --abstand: 7.3vw; }
.g-masonry.abstand-eng { --abstand: 6px; }

.g-item a { display: block; }
.lupe { cursor: zoom-in; }

/* Karten (Ausstellungen) als Band mit Pfeilen */
.b-karten { position: relative; margin: 0 calc(var(--rand) * -1); }
.karten-band {
  list-style: none; margin: 0; padding: 0 var(--rand); display: grid; grid-auto-flow: column;
  grid-auto-columns: clamp(260px, 30vw, 460px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--rand);
  scrollbar-width: none;
}
.karten-band::-webkit-scrollbar { display: none; }
.karte { scroll-snap-align: start; }
.karte-bild { display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin-bottom: 18px; }
.karte-bild img { width: 100%; height: 100%; object-fit: cover; }
.karte h2 { font-size: clamp(22px, 2vw, 30px); margin: 0 0 8px; }
.karte-text { font-size: 12.5px; line-height: 1.4; margin-bottom: 14px; }
.karten-pfeil {
  position: absolute; top: calc((clamp(260px, 30vw, 460px)) / 2); transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 20px; cursor: pointer;
}
.karten-pfeil.zurueck { left: var(--rand); }
.karten-pfeil.vor { right: var(--rand); }
.karten-pfeil[disabled] { opacity: 0; pointer-events: none; }

/* Kacheln (Startseite) */
.b-kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kachel { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; color: #fff; text-decoration: none; }
.kachel img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.kachel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .55)); }
.kachel span { position: absolute; left: 28px; bottom: 24px; z-index: 1; font-size: clamp(22px, 2.4vw, 36px); line-height: 1.1; }
.kachel:hover img { transform: scale(1.03); }

/* About: Porträt links, Kontakt rechts */
.layout-portrait > .innen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 6vw; align-items: start; }
.layout-portrait .b-bild { grid-column: 1; grid-row: 1; max-width: 270px; }
.layout-portrait .b-text:first-child { grid-column: 2; grid-row: 1; font-size: 19px; }
.layout-portrait .b-text:first-child p:empty { display: none; }
.layout-portrait > .innen > :not(.b-bild):not(:first-child) { grid-column: 1 / -1; }
.layout-portrait .b-text:not(:first-child) { margin-top: 2em; }

/* Fußzeile */
.fuss { padding: 40px var(--rand) 56px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; font-size: 12px; }
.fuss nav { display: flex; gap: 10px; }
.fuss p { margin: 0; color: #555; }

/* Lightbox */
.lupe-ebene { position: fixed; inset: 0; z-index: 90; background: rgba(255, 255, 255, .97); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lupe-ebene[hidden] { display: none; }
.lupe-ebene figure { margin: 0; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 0 24px; min-width: 0; }
.lupe-ebene img { max-height: calc(100svh - 120px); max-width: 100%; object-fit: contain; }
.lupe-ebene figcaption { font-size: 12px; text-transform: uppercase; margin-top: 14px; }
.lupe-pfeil, .lupe-zu { background: none; border: 0; font-size: 28px; cursor: pointer; color: #000; width: 64px; height: 64px; }
.lupe-zu { position: absolute; top: 8px; right: 8px; font-size: 38px; }

/* ---------- Mobil ---------- */
@media (max-width: 1100px) {
  .sozial { margin-left: 24px; }
}
@media (max-width: 900px) {
  :root { --kopf: 64px; }
  .hauptnav, .sozial { display: none; }
  .menue-knopf { display: grid; gap: 7px; margin-left: auto; background: none; border: 0; padding: 12px 0 12px 12px; cursor: pointer; }
  .menue-knopf span { display: block; width: 34px; height: 2px; background: var(--schwarz); transition: transform .25s; }
  .menue-knopf[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menue-knopf[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .menue { position: fixed; inset: var(--kopf) 0 0 0; z-index: 49; background: #fff; padding: 40px var(--rand); }
  .menue nav { display: grid; gap: 22px; }
  .menue a { font-size: 32px; text-decoration: none; }
  body.menue-offen .kopf { background: #fff !important; box-shadow: none; }
  body.menue-offen .kopf .marke { color: var(--text) !important; }
  body.menue-offen .menue-knopf span { background: #000 !important; }

  .g-strips, .g-strips.abstand-weit { --zeile: 220px; --abstand: 16px; --zeilenabstand: 28px; }
  .g-strips.abstand-eng { --zeile: 200px; --abstand: 4px; --zeilenabstand: 20px; }
  .g-masonry, .g-masonry.abstand-weit { --abstand: 20px; columns: 1; }
  .g-masonry.abstand-eng { --abstand: 6px; }
  .b-kacheln { grid-template-columns: 1fr; }
  .kachel { aspect-ratio: 3 / 2; }
  .layout-portrait > .innen { grid-template-columns: 1fr; }
  .layout-portrait .b-bild, .layout-portrait .b-text:first-child { grid-column: 1; grid-row: auto; }
  .layout-portrait .b-text:first-child { margin-top: 24px; }
  .knopf { padding: 14px 28px; }
  .lupe-ebene { grid-template-columns: 1fr; }
  .lupe-pfeil { position: absolute; bottom: 8px; }
  .lupe-pfeil.zurueck { left: 8px; } .lupe-pfeil.vor { right: 8px; }
}
@media (max-width: 560px) {
  .g-strips .g-item { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
