/* Meltem Kaya – Stylesheet
   Farben und Schriften zentral hier ändern.
   Schriften: Bodoni Moda (Titel) + Manrope (Text), beide SIL Open Font License.
   Sie liegen im Ordner fonts/ – es wird nichts von Google geladen (Datenschutz). */

@font-face {
  font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/bodoni-moda-latin.woff2") format("woff2");
  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: "Bodoni Moda"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/bodoni-moda-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  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: "Manrope"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --papier: #f5f4f2;   /* = Wandfarbe der Mockup-Fotos, damit sie nahtlos übergehen */
  --papier-2: #ecebe8;
  --tinte: #1d1c1a;
  --grau: #6f6a63;
  --linie: #ddd7cd;
  --preussisch: #0e3350;   /* Preußischblau – Meltems Lieblingsfarbe */
  --alizarin: #9e1c2e;     /* Alizarinrot – Meltems Lieblingsfarbe */
  --akzent: var(--preussisch);

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --breite: 1240px;
  --rand: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--akzent); }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }

.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.label { text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; color: var(--grau); margin: 0 0 1.2rem; }
.lead { font-size: 1.15rem; color: var(--grau); max-width: 34em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--tinte); color: var(--papier); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

/* ---------- Kopfzeile ---------- */
.kopf {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--papier) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.kopf.gescrollt { border-bottom-color: var(--linie); }
.kopf-innen { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-family: var(--serif); font-size: 1.35rem; text-decoration: none; letter-spacing: .01em; }
.nav { display: flex; gap: 2rem; }
.nav a { text-decoration: none; font-size: .95rem; color: var(--grau); }
.nav a:hover, .nav a.aktiv { color: var(--tinte); }

.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; height: 1.5px; background: var(--tinte); margin: 6px 0; transition: transform .25s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 720px) {
  .menu-btn { display: block; margin-right: -10px; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--papier); border-bottom: 1px solid var(--linie);
    padding: .5rem var(--rand) 1.25rem;
    display: none;
  }
  .nav.offen { display: flex; }
  .nav a { padding: .75rem 0; font-size: 1.1rem; color: var(--tinte); }
}

/* ---------- Start ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 6rem);
  align-items: center; min-height: calc(100vh - 68px); min-height: calc(100svh - 68px);
  padding-top: 3rem; padding-bottom: 4rem;
}
.hero-text .lead { margin: 1.6rem 0 2rem; }
.hero-bild { margin: 0; }
.hero-bild > img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 140px); max-height: calc(100svh - 140px); margin: 0 auto; }
.hero-bild .werk-flaeche { max-height: 78vh; }
.link-pfeil { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-pfeil span { display: inline-block; transition: transform .2s; }
.link-pfeil:hover span { transform: translateX(4px); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 2rem; }
  .hero-bild { order: -1; }
}

/* ---------- Abschnitte ---------- */
.abschnitt { padding-top: clamp(4rem, 9vw, 8rem); padding-bottom: 1rem; }
.abschnitt-kopf {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--linie); padding-bottom: 1.2rem; margin-bottom: 2.5rem;
}

/* ---------- Filter ---------- */
.filter { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter button {
  font: inherit; font-size: .88rem; background: none; border: 1px solid transparent; color: var(--grau);
  padding: .3rem .8rem; border-radius: 999px; cursor: pointer;
}
.filter button:hover { color: var(--tinte); }
.filter button[aria-pressed="true"] { border-color: var(--tinte); color: var(--tinte); }

/* ---------- Galerie ---------- */
.galerie { columns: 3 300px; column-gap: clamp(1.25rem, 3vw, 2.5rem); }
.werk { break-inside: avoid; margin: 0 0 clamp(2rem, 4vw, 3rem); }
.werk button { all: unset; display: block; width: 100%; cursor: zoom-in; }
.werk button:focus-visible { outline: 2px solid var(--akzent); outline-offset: 4px; }
.werk-flaeche {
  width: 100%; object-fit: cover; background: var(--papier-2);
  /* Schatten wie in den Mockup-Fotos (Checkmate): weich nach rechts unten */
  box-shadow: 1px 1px 3px rgba(0,0,0,.10), 8px 11px 24px rgba(0,0,0,.24);
  transition: transform .4s ease, box-shadow .4s ease;
}
.werk button:hover .werk-flaeche { transform: translateY(-3px); box-shadow: 1px 1px 3px rgba(0,0,0,.10), 10px 14px 28px rgba(0,0,0,.27); }
/* Fotos mit eigenem Hintergrund/Schatten (Mockups) bekommen keinen zusätzlichen Schatten */
.werk-flaeche.mockup, .werk button:hover .werk-flaeche.mockup, .lb-bild img.mockup { box-shadow: none; background: none; }
.werk-flaeche.mockup {
  /* Ränder der Wand weich ausblenden, damit keine Kante zum Seitenhintergrund sichtbar ist */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
  mask-composite: intersect;
}
.werk figcaption, .hero-bild figcaption { margin-top: .9rem; font-size: .9rem; color: var(--grau); line-height: 1.45; }
.werk figcaption strong, .hero-bild figcaption strong { font-family: var(--serif); font-weight: 400; font-size: 1.08rem; color: var(--tinte); display: block; }

/* Platzhalter-"Gemälde", solange noch keine Fotos da sind */
.platzhalter { position: relative; overflow: hidden; }
.platzhalter::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0,0,0,.05) 1px, transparent 1px);
  background-size: 3px 3px; mix-blend-mode: multiply;
}

/* ---------- Über mich ---------- */
.ueber { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.portrait { margin: 0; }
.portrait img { width: 100%; height: auto; }
.portrait-platzhalter { aspect-ratio: 4 / 5; width: 100%; }
/* Zwei Fotos nebeneinander in gleicher Höhe (flex-Werte = Seitenverhältnis) */
.foto-reihe { display: flex; gap: clamp(.75rem, 2vw, 1.25rem); margin-top: 2.5rem; align-items: flex-start; }
.foto-reihe figure { margin: 0; min-width: 0; }
.foto-reihe img { width: 100%; height: auto; }
.foto-credit { margin: .9rem 0 0; font-size: .8rem; color: var(--grau); letter-spacing: .02em; }
.portrait-platzhalter { background: var(--papier-2); display: grid; place-items: center; color: var(--grau); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.ueber-text h2 { margin-bottom: 1.6rem; }
.ueber-text p { max-width: 36em; }
.fakten { margin: 2rem 0 0; border-top: 1px solid var(--linie); }
.fakten div { display: grid; grid-template-columns: 12rem 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--linie); }
.fakten dt { color: var(--grau); font-size: .9rem; }
.fakten dd { margin: 0; }
@media (max-width: 860px) {
  .ueber { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
  .fakten div { grid-template-columns: 1fr; gap: .1rem; }
}

/* ---------- Ausstellungen ---------- */
/* Jahr als Überschrift, darunter die Ausstellungen dieses Jahres */
.ausstellungen, .ausstellungen ul { list-style: none; margin: 0; padding: 0; }
.a-gruppe + .a-gruppe { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.a-jahr { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin: 0 0 .4rem; }
.a-gruppe ul li {
  display: grid; grid-template-columns: 1fr auto; gap: .3rem 2rem; align-items: baseline;
  padding: 1.1rem 0; border-bottom: 1px solid var(--linie);
}
.a-gruppe ul li:first-child { border-top: 1px solid var(--linie); }
.a-titel { font-family: var(--serif); font-size: 1.2rem; }
.a-titel a { text-decoration: none; }
.a-titel a span { font-size: .85em; color: var(--grau); }
.a-ort { color: var(--grau); font-size: .95rem; }
.a-art { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--grau); white-space: nowrap; }
@media (max-width: 640px) {
  .a-gruppe ul li { grid-template-columns: 1fr; }
}

/* ---------- Kontakt ---------- */
.kontakt { padding-bottom: clamp(4rem, 9vw, 8rem); }
.kontakt h2 { margin-bottom: 1.2rem; }
.kontakt-liste { list-style: none; padding: 0; margin: 2.5rem 0 0; max-width: 40rem; border-top: 1px solid var(--linie); }
.kontakt-liste li { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--linie); }
.kontakt-liste span { color: var(--grau); font-size: .9rem; }
.kontakt-liste a { font-family: var(--serif); font-size: 1.25rem; text-decoration: none; overflow-wrap: anywhere; }
@media (max-width: 500px) { .kontakt-liste li { grid-template-columns: 1fr; gap: .1rem; } }

/* ---------- Kontaktformular ---------- */
.formular { max-width: 40rem; margin-top: 2.5rem; display: grid; gap: 1.1rem; }
/* E-Mail + Instagram als Symbole in Alizarinrot */
.kontakt-symbole { display: flex; gap: .9rem; margin-top: 1.6rem; }
.kontakt-symbole a {
  display: grid; place-items: center; width: 46px; height: 46px;
  color: var(--alizarin); border: 1px solid currentColor; border-radius: 50%;
  transition: color .2s, background-color .2s;
}
.kontakt-symbole a:hover { color: var(--papier); background: var(--alizarin); }
.kontakt-symbole svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.kontakt-symbole svg .voll { fill: currentColor; stroke: none; }
.formular h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--alizarin); margin: 0 0 .2rem; }
.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .feld-reihe { grid-template-columns: 1fr; } }
.formular label { display: grid; gap: .35rem; font-size: .85rem; color: var(--grau); }
.formular input, .formular textarea {
  font: inherit; font-size: 1rem; color: var(--tinte);
  background: transparent; border: 0; border-bottom: 1px solid var(--linie);
  padding: .55rem 0; border-radius: 0; width: 100%;
}
.formular textarea { resize: vertical; min-height: 8rem; border: 1px solid var(--linie); padding: .7rem .8rem; }
.formular input:focus, .formular textarea:focus { outline: none; border-color: var(--preussisch); }
.formular-hinweis { font-size: .8rem; color: var(--grau); margin: 0; }
.formular button {
  justify-self: start; font: 500 .95rem var(--sans); letter-spacing: .03em; cursor: pointer;
  color: var(--papier); background: var(--alizarin); border: 0; border-radius: 999px; padding: .8rem 1.6rem;
}
.formular button:hover { background: var(--preussisch); }
.honig { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formular-status { margin: 0; padding: .8rem 1rem; font-size: .92rem; border-left: 3px solid; }
.formular-status.ok { border-color: var(--preussisch); background: rgba(14, 51, 80, .06); }
.formular-status.fehler { border-color: var(--alizarin); background: rgba(158, 28, 46, .06); }

/* ---------- Fußzeile ---------- */
.fuss { border-top: 1px solid var(--linie); font-size: .85rem; color: var(--grau); }
.fuss-innen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.6rem; padding-bottom: 1.6rem; }
.fuss p { margin: 0; }

/* ---------- Großansicht ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: var(--papier);
  display: grid; grid-template-columns: 64px 1fr 64px; align-items: center;
  animation: einblenden .25s ease;
}
.lightbox[hidden] { display: none; }
@keyframes einblenden { from { opacity: 0; } }
.lb-figur { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; height: 100svh; padding: 4rem 0 2rem; min-width: 0; }
.lb-bild { display: flex; align-items: center; justify-content: center; flex: 1; min-height: 0; width: 100%; }
.lb-bild img, .lb-bild .werk-flaeche { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 1px 1px 4px rgba(0,0,0,.10), 14px 18px 40px rgba(0,0,0,.24); }
.lb-bild { container-type: size; }
.lb-bild img { max-height: 100cqh; }
.lb-bild .platzhalter { width: min(100cqw, 100cqh * var(--ar)); height: auto; max-height: none; }
.lightbox figcaption { margin-top: 1.2rem; text-align: center; color: var(--grau); font-size: .9rem; }
.lightbox figcaption strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.2rem; color: var(--tinte); }
.lb-btn { background: none; border: 0; color: var(--tinte); cursor: pointer; width: 64px; height: 64px; display: grid; place-items: center; padding: 0; }
.lb-btn svg { width: 30px; height: 30px; }
.lb-btn[hidden] { display: none; }
.lightbox svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lb-btn:hover, .lb-zu:hover { color: var(--akzent); }
/* Gut sichtbarer Schließen-Knopf oben rechts */
.lb-zu {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: .55rem;
  font: 500 .9rem var(--sans); letter-spacing: .04em; color: var(--tinte);
  background: var(--papier); border: 1px solid var(--linie); border-radius: 999px;
  padding: .55rem .8rem .55rem 1.05rem; cursor: pointer;
}
.lb-zu svg { width: 18px; height: 18px; stroke-width: 1.8; }
@media (max-width: 640px) {
  .lightbox { grid-template-columns: 1fr; }
  .lb-zurueck, .lb-weiter { position: absolute; bottom: .5rem; }
  .lb-zurueck { left: .5rem; } .lb-weiter { right: .5rem; }
  .lb-figur { padding: 4rem 16px 5rem; }
}

/* ---------- Meltems Farben ----------
   Alizarinrot für Name, Überschriften und Jahreszahlen,
   Preußischblau dezent für Interaktion (Hover, aktiver Menüpunkt, Fokus). */
h1, h2, .logo, .a-jahr { color: var(--alizarin); }
.nav a.aktiv { color: var(--alizarin); text-decoration: underline; text-decoration-color: var(--preussisch); text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.link-pfeil { color: var(--alizarin); border-bottom-color: var(--preussisch); }
.filter button[aria-pressed="true"] { border-color: var(--alizarin); color: var(--alizarin); }
::selection { background: var(--preussisch); color: #fff; }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.textseite { max-width: 46rem; padding-top: 3rem; padding-bottom: 6rem; }
.textseite h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 2rem; }
.textseite h2 { font-size: 1.4rem; margin: 2.4rem 0 .6rem; }
.textseite .hinweis { background: #fff6e0; border-left: 3px solid #d9a441; padding: .8rem 1rem; font-size: .92rem; }
