/* ============================================================
   DJAMILA.b.ARTIST – Gestaltung
   Farben und Schrift sind hier oben an EINER Stelle definiert.
   Eine Änderung hier gilt für die ganze Website.
   ============================================================ */

:root {
  --papier: #FAF7F1;      /* hellster Ton, ersetzt Weiss */
  --creme: #F3EDE2;       /* Haupthintergrund */
  --sand: #E7DDCB;        /* Flächen, Bänder */
  --tinte: #1E1B18;       /* Text, warmes Schwarz */
  --tinte-weich: #4A443D; /* Nebentext */
  --gold: #B8975A;        /* Gold B – nur als Akzent */
  --linie: #D9CEBB;       /* feine Trennlinien */

  --schrift: "Montserrat", system-ui, sans-serif;
  --rand: clamp(20px, 5vw, 72px);
  --breite: 1240px;
}

@font-face { font-family: "Montserrat"; font-weight: 200; font-style: normal; font-display: swap; src: url("../fonts/montserrat-extralight.woff") format("woff"); }
@font-face { font-family: "Montserrat"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/montserrat-light.woff") format("woff"); }
@font-face { font-family: "Montserrat"; font-weight: 300; font-style: italic; font-display: swap; src: url("../fonts/montserrat-lightitalic.woff") format("woff"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/montserrat-regular.woff") format("woff"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/montserrat-medium.woff") format("woff"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--tinte);
  font-family: var(--schrift);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.innen { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }

/* ---------- Kopfzeile ---------- */
.kopf { padding: 26px 0; }
.kopf .innen { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.logo { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 4px; font-size: 22px; line-height: 1.1; padding: 8px 4px; }
.logo .zeichen { position: absolute; left: 50%; top: 50%; height: 100px; transform: translate(-50%, -50%); opacity: 0.6; pointer-events: none; }
.logo .zeile1, .logo .zeile2 { position: relative; }
.logo .zeile1 { font-weight: 400; letter-spacing: 0.1em; white-space: nowrap; }
.logo .zeile2 { letter-spacing: 0.56em; margin-right: -0.56em; }
.logo .art { font-weight: 500; color: var(--gold); }
.logo .ist { font-weight: 300; }
.menu { display: flex; gap: clamp(20px, 3vw, 40px); flex-wrap: wrap; }
.menu a { font-size: 13px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; padding: 10px 0; border-bottom: 1px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { border-bottom-color: var(--tinte); }

/* ---------- Typografie ---------- */
.label { font-size: 12px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--tinte-weich); margin: 0; }
h1, h2, h3 { font-weight: 300; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(40px, 6vw, 64px); }
h2.titel { font-size: clamp(18px, 2vw, 22px); letter-spacing: 0.24em; text-transform: uppercase; }
.goldlinie { width: 64px; height: 1px; background: var(--gold); border: 0; margin: 0; }
.textlink { display: inline-block; font-size: 13px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; border-bottom: 1px solid var(--tinte); padding-bottom: 6px; }
.textlink:hover { color: var(--tinte-weich); border-color: var(--tinte-weich); }
.motto { font-style: italic; font-weight: 300; }
.motto .punkt { font-style: normal; font-weight: 500; color: var(--gold); }

/* ---------- Startseite ---------- */
.held { padding: 40px 0 96px; }
.held .innen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 80px); align-items: center; }
.held .text { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.held p { margin: 0; max-width: 440px; }
.held img { width: 100%; height: auto; max-height: 680px; object-fit: contain; box-shadow: 0 30px 60px rgba(30, 27, 24, 0.18); }

.abschnitt { padding: 0 0 96px; }
.abschnitt-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 36px; flex-wrap: wrap; }

.band { background: var(--sand); padding: 72px 0; }
.band .innen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 72px); }
.band h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.3; }
.band p { margin: 0 0 22px; }

/* ---------- Werke-Raster ---------- */
.filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter button {
  font: inherit; font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  background: transparent; color: var(--tinte); border: 1px solid var(--linie); padding: 12px 18px; cursor: pointer; min-height: 44px;
}
.filter button[aria-pressed="true"] { background: var(--tinte); color: var(--creme); border-color: var(--tinte); }

.raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 36px; grid-auto-flow: dense; }
.werk { display: flex; flex-direction: column; gap: 14px; background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: zoom-in; }
.werk .rahmen { aspect-ratio: 1 / 1; position: relative; display: block; }
/* Mehrteilige Werke: doppelt breit, Teile mit Abstand nebeneinander */
.werk.mehrteilig { grid-column: span 2; }
.werk.mehrteilig .rahmen { aspect-ratio: 2.05 / 1; }
.werk.mehrteilig .teile { position: absolute; inset: 0; display: flex; gap: 3%; align-items: flex-end; }
.werk.mehrteilig .teile img { position: static; height: auto; width: auto; max-width: 48.5%; max-height: 100%; }
/* Auf der Startseite bleiben mehrteilige Werke einfach breit, damit keine Lücken entstehen */
.raster[data-auswahl="startseite"] .werk.mehrteilig { grid-column: auto; }
.raster[data-auswahl="startseite"] .werk.mehrteilig .rahmen { aspect-ratio: 1 / 1; }
.werk img { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; max-width: 100%; max-height: 100%; width: auto; height: auto; box-shadow: 0 14px 30px rgba(30, 27, 24, 0.16); transition: transform .3s ease; }
.werk:hover img { transform: translateY(-4px); }
.werk .name { font-size: 16px; font-weight: 400; letter-spacing: 0.01em; }
.werk .info { font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--tinte-weich); margin-top: -10px; }
.verkauft { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tinte-weich); }
.verkauft::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #9A4B3C; margin-right: 8px; vertical-align: 1px; }

/* ---------- Grossansicht ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(30, 27, 24, 0.96); color: var(--creme); display: none; z-index: 50; }
.lightbox.offen { display: grid; grid-template-rows: 1fr auto; }
.lightbox .bild { display: flex; align-items: center; justify-content: center; padding: 64px 72px 16px; min-height: 0; }
.lightbox .bild img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox .bild.mehrteilig { gap: 3%; }
.lightbox .bild.mehrteilig img { min-width: 0; flex: 0 1 auto; max-width: 48%; }
.lightbox .legende { text-align: center; padding: 8px 20px 32px; }
.lightbox .legende .name { font-size: 18px; font-weight: 400; letter-spacing: 0.01em; }
.lightbox .legende .info { font-size: 13px; color: var(--sand); }
.lightbox button { position: absolute; background: none; border: 0; color: var(--creme); cursor: pointer; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; }
.lightbox button:hover { color: var(--gold); }
.lb-zu { top: 8px; right: 8px; }
.lb-zurueck { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-weiter { right: 4px; top: 50%; transform: translateY(-50%); }

/* ---------- Textseiten ---------- */
.seite { padding: 40px 0 96px; }
.seite .spalte { max-width: 720px; display: flex; flex-direction: column; gap: 26px; }
.seite p { margin: 0; }
.zweispaltig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.zweispaltig img { width: 100%; height: auto; }
.liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.liste li { padding: 16px 0; border-bottom: 1px solid var(--linie); }
.englisch { background: var(--papier); padding: 32px; }
.knopf { display: inline-block; background: var(--tinte); color: var(--creme); padding: 16px 28px; font-size: 13px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; }
.knopf:hover { background: var(--tinte-weich); }

/* ---------- Fusszeile ---------- */
.fuss { background: var(--tinte); color: var(--creme); padding: 40px 0; }
.fuss .innen { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.fuss .motto { font-size: 16px; }
.fuss a { color: var(--gold); }
.fuss .klein { font-size: 12px; color: var(--sand); letter-spacing: 0.08em; }
.fuss .klein a { color: var(--sand); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Handy und Tablet ---------- */
@media (max-width: 900px) {
  .raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; }
  .held .innen, .band .innen, .zweispaltig { grid-template-columns: 1fr; }
  .held { padding-top: 16px; }
  .held img { max-height: 520px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .logo { font-size: 18px; }
  .logo .zeichen { height: 80px; }
  .menu { gap: 18px; }
  .menu a { letter-spacing: 0.16em; font-size: 12px; }
  .raster { grid-template-columns: 1fr; }
  .werk.mehrteilig { grid-column: auto; }
  .lightbox .bild { padding: 56px 12px 8px; }
  .lb-zurueck, .lb-weiter { top: auto; bottom: 12px; transform: none; }
}
