/* ---------- Schriften (selbst gehostet, keine Drittanbieter) ---------- */
@font-face { font-family: "Caprasimo"; src: url("../fonts/caprasimo.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* ---------- Designs (Presets) ----------------------------------------
   Jede Farbe hier kann frei angepasst werden.                            */
:root, [data-theme="punk-nacht"] {
  --hero: #2b4470;  --hero-ink: #eef3fb;  --name: #9cc35a;  --name-edge: #f4f7fb;
  --star-a: #4f7fd6; --star-b: #9ec4ec;  --star-c: #16223a;
  --stage: #172033; --stage-ink: #e9edf5; --muted: #a8b3c7;
  --cv: #f09a2e;    --cv-ink: #1a2236;
  --contact: #5b3e9a; --contact-ink: #ffffff;
  --accent: #9cc35a; --line: #f4f7fb;
}
[data-theme="frosch-rot"] {
  --hero: #b3263a;  --hero-ink: #fff4f2; --name: #8fc06b; --name-edge: #fff4f2;
  --star-a: #e0677a; --star-b: #f2c5cb; --star-c: #6e1020;
  --stage: #22271f; --stage-ink: #eeeede; --muted: #b9bca5;
  --cv: #e9dcbc;    --cv-ink: #3b2a1a;
  --contact: #3e6b33; --contact-ink: #ffffff;
  --accent: #8fc06b; --line: #fbf6ea;
}
[data-theme="clown-pastell"] {
  --hero: #a9c4de;  --hero-ink: #2c2127; --name: #b8453c; --name-edge: #ffffff;
  --star-a: #e6b25a; --star-b: #d9a9bd; --star-c: #ffffff;
  --stage: #3a3236; --stage-ink: #f3ece8; --muted: #c9bcb6;
  --cv: #e6b25a;    --cv-ink: #2c2127;
  --contact: #b8453c; --contact-ink: #ffffff;
  --accent: #e6b25a; --line: #fbf7f4;
}
[data-theme="blinde-dame"] {
  --hero: #f08a24;  --hero-ink: #231740; --name: #4a34a0; --name-edge: #fff7ea;
  --star-a: #f7e04a; --star-b: #e7508a; --star-c: #4a34a0;
  --stage: #2a1f45; --stage-ink: #f4effc; --muted: #bdb2d8;
  --cv: #e7508a;    --cv-ink: #ffffff;
  --contact: #4a34a0; --contact-ink: #ffffff;
  --accent: #f7e04a; --line: #fff7ea;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: "Figtree", system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.55;
  color: var(--stage-ink); background: var(--stage); -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

.h2 {
  font-family: "Caprasimo", Georgia, serif; font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1; margin: 0 0 2rem; letter-spacing: -.01em;
}

/* Handgezogene weisse Kontur – das Markenzeichen aus Emmas Bildern */
.contour { position: relative; }
.contour::after {
  content: ""; position: absolute; inset: -9px; pointer-events: none;
  border: 6px solid var(--line); border-radius: 4px; filter: url(#wobble);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--hero); color: var(--hero-ink);
  min-height: 100svh; display: flex; flex-direction: column;
}
.stars { position: absolute; inset: 0; width: 100%; height: 100%; filter: url(#wobble); }
.nav {
  position: relative; z-index: 2; display: flex; gap: clamp(1rem, 3vw, 2.5rem); justify-content: flex-end;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem); font-weight: 600; font-size: 1.05rem;
}
.nav a { text-decoration: none; padding: .2rem 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-color: var(--name); }

.hero-inner {
  position: relative; z-index: 2; flex: 1; display: grid; align-items: center;
  grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem);
  width: min(1280px, 100% - 2.5rem); margin-inline: auto; padding-bottom: 4rem;
}
.name {
  font-family: "Caprasimo", Georgia, serif; font-weight: 400; margin: 0;
  font-size: clamp(3.6rem, 11vw, 9.5rem); line-height: .88; letter-spacing: -.02em;
  color: var(--name);
  -webkit-text-stroke: .09em var(--name-edge); paint-order: stroke fill;
  text-shadow: .04em .05em 0 rgba(0,0,0,.28);
}
.sub { font-weight: 800; font-size: clamp(1.1rem, 2vw, 1.4rem); margin: 1.4rem 0 .6rem; letter-spacing: .02em; }
.statement { max-width: 34ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); margin: 0; opacity: .95; }

.hero-art {
  all: unset; cursor: zoom-in; position: relative; justify-self: center;
  width: min(100%, 520px); transform: rotate(2.5deg);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55);
  animation: hang 1.1s cubic-bezier(.2,.8,.2,1.15) both .15s;
}
.hero-art img { width: 100%; height: auto; }
.hero-art:focus-visible { outline: 3px solid var(--name); outline-offset: 14px; }
@keyframes hang { from { transform: translateY(-40px) rotate(-6deg); opacity: 0; } to { transform: rotate(2.5deg); opacity: 1; } }

/* ---------- Werke ---------- */
.stage { background: var(--stage); color: var(--stage-ink); padding: clamp(4rem, 9vw, 7rem) 0; }
.stage-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filters button {
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  background: transparent; color: var(--stage-ink); border: 2px solid var(--muted);
  padding: .35rem .95rem; border-radius: 999px;
}
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--stage); }

.wall { list-style: none; margin: 2.5rem 0 0; padding: 0; columns: 3 300px; column-gap: 3.5rem; }
.wall li { break-inside: avoid; margin: 0 0 3.5rem; }
.wall li[hidden] { display: none; }
.work { all: unset; cursor: zoom-in; display: block; width: 100%; }
.work .frame { margin: 9px; background: #000; }
.work img { width: 100%; height: auto; transition: transform .35s ease; }
.work:hover img { transform: scale(1.015); }
.work:focus-visible .frame { outline: 3px solid var(--accent); outline-offset: 16px; }
.cap { margin-top: 1.1rem; }
.cap strong { display: block; font-family: "Caprasimo", Georgia, serif; font-weight: 400; font-size: 1.45rem; line-height: 1.15; }
.cap span { color: var(--muted); font-size: .95rem; }

/* ---------- Lebenslauf ---------- */
.cv { background: var(--cv); color: var(--cv-ink); padding: clamp(4rem, 9vw, 7rem) 0; }
.cv-grid { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 2rem 4rem; }
.cv-group + .cv-group { margin-top: 2.75rem; }
.cv-group h3 { font-size: 1.1rem; font-weight: 800; margin: 0 0 1rem; padding-bottom: .5rem; border-bottom: 3px solid currentColor; }
.cv-item { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .7rem 0; }
.cv-item .when { font-weight: 600; font-variant-numeric: tabular-nums; }
.cv-item .what strong { display: block; font-weight: 800; }
.cv-item .what p { margin: .25rem 0 0; max-width: 60ch; }
.btn {
  display: inline-block; font-weight: 800; text-decoration: none; margin-top: .5rem;
  background: var(--cv-ink); color: var(--cv); padding: .8rem 1.3rem; border-radius: 3px;
}

/* ---------- Kontakt ---------- */
.contact { background: var(--contact); color: var(--contact-ink); padding: clamp(4rem, 9vw, 7rem) 0; }
.mail { margin: 0; }
.mail a, .insta a {
  font-family: "Caprasimo", Georgia, serif; font-size: clamp(1.6rem, 5vw, 3.4rem);
  text-decoration: none; overflow-wrap: anywhere;
  background-image: linear-gradient(currentColor, currentColor); background-size: 100% 4px;
  background-repeat: no-repeat; background-position: 0 100%;
}
.insta { margin: 1.2rem 0 0; }
.insta a { font-size: clamp(1.2rem, 3vw, 1.8rem); }

.foot { background: var(--stage); color: var(--muted); font-size: .9rem; padding: 2rem 0 3rem; }
.foot p { margin: .3rem 0; }

/* ---------- Grossansicht ---------- */
.viewer {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; padding: 0;
  background: var(--work-bg, #111); color: #f5f5f5;
  display: none; grid-template-columns: 4rem 1fr 4rem; align-items: center;
}
.viewer[open] { display: grid; }
.viewer::backdrop { background: rgba(0,0,0,.85); }
.viewer figure { margin: 0; height: 100dvh; display: grid; grid-template-rows: 1fr auto; padding: 2.5rem 0 1.5rem; min-width: 0; }
.viewer img { max-height: 100%; max-width: 100%; object-fit: contain; margin: auto; min-height: 0; box-shadow: 0 25px 60px rgba(0,0,0,.5); }
.viewer figcaption { text-align: center; padding-top: 1.2rem; }
.v-title { font-family: "Caprasimo", Georgia, serif; font-weight: 400; font-size: 1.8rem; margin: 0; }
.v-meta { margin: .2rem 0 0; opacity: .8; }
.v-text { margin: .6rem auto 0; max-width: 60ch; }
.v-text:empty, .v-title:empty, .v-meta:empty { display: none; }
.viewer button {
  font: inherit; background: none; border: 0; color: inherit; cursor: pointer;
  font-size: 2.6rem; line-height: 1; width: 3.5rem; height: 3.5rem; justify-self: center; border-radius: 50%;
}
.viewer button:hover { background: rgba(255,255,255,.12); }
.v-close { position: absolute; top: .8rem; right: .8rem; font-size: 1.6rem !important; }

/* ---------- Design-Vorschau (nur mit ?vorschau) ---------- */
.themebar {
  position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 40;
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .5rem .7rem;
  background: #fff; color: #222; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.35); font-size: .9rem;
}
.themebar[hidden] { display: none; }
.themebar span { font-weight: 800; padding: 0 .4rem; }
.themebar button { font: inherit; border: 2px solid #ddd; background: #fff; padding: .3rem .8rem; border-radius: 999px; cursor: pointer; }
.themebar button[aria-pressed="true"] { border-color: #222; background: #222; color: #fff; }

/* ---------- Mobil ---------- */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 1rem; }
  .hero-art { width: min(88%, 420px); }
  .cv-grid { grid-template-columns: 1fr; }
  .cv-item { grid-template-columns: 1fr; gap: .1rem; }
  .viewer { grid-template-columns: 2.5rem 1fr 2.5rem; }
  .viewer button { width: 2.5rem; font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art { animation: none; }
  .work img { transition: none; }
}
