/* =====================================================================
   Evi's Kunst — Atelier-Stylesheet
   Zwei Themes über [data-theme="light"] / [data-theme="dark"] auf <html>.
   ===================================================================== */

/* ---------- Theme-Token: HELL (Atelier / Papier) ---------- */
:root,
:root[data-theme="light"] {
  --paper:      #FBF6EC;
  --paper-2:    #FFFFFF;
  --paper-edge: #ECE3D2;
  --ink:        #16293B;
  --ink-soft:   #51626F;
  --line:       #E4D9C4;

  --coral:   #EE4B2B;
  --sun:     #F5B11F;
  --magenta: #E2579A;
  --teal:    #16AE9C;
  --violet:  #8163C6;

  --card-shadow: 0 18px 40px -24px rgba(22,41,59,.45);
  --sticker-shadow: 0 6px 14px -6px rgba(22,41,59,.5);
  --tape: rgba(245,177,31,.42);
  --hero-wash: radial-gradient(120% 90% at 85% 0%, rgba(226,87,154,.12), transparent 55%),
               radial-gradient(90% 80% at 5% 30%, rgba(22,174,156,.12), transparent 60%);
}

/* ---------- Theme-Token: DUNKEL (Nachtblau) ---------- */
:root[data-theme="dark"] {
  --paper:      #081626;
  --paper-2:    #0F2740;
  --paper-edge: #1B3a59;
  --ink:        #F1ECE0;
  --ink-soft:   #A6BBCE;
  --line:       #1E3D5C;

  --coral:   #FF6A4D;
  --sun:     #FFC24A;
  --magenta: #FF77B0;
  --teal:    #36D8C6;
  --violet:  #AB8DEC;

  --card-shadow: 0 24px 48px -22px rgba(0,0,0,.7);
  --sticker-shadow: 0 8px 18px -6px rgba(0,0,0,.65);
  --tape: rgba(255,194,74,.28);
  --hero-wash: radial-gradient(120% 90% at 85% 0%, rgba(255,119,176,.16), transparent 55%),
               radial-gradient(90% 80% at 5% 30%, rgba(54,216,198,.14), transparent 60%);
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s ease, color .4s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Bricolage Grotesque", "Outfit", sans-serif; line-height: 1.05; margin: 0; }
.wrap { width: min(1180px, 92vw); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1rem;
  padding: .7rem 0; min-height: 64px;
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-mark path { stroke: var(--ink); }
.brand-name { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.18rem; letter-spacing: -.01em; }
.brand-name b { color: var(--coral); }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { text-decoration: none; font-weight: 500; color: var(--ink-soft); position: relative; padding: .2rem 0; }
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--coral); transition: right .25s ease;
}
.nav a:hover::after { right: 0; }

/* ---------- Theme-Schalter ---------- */
.theme-toggle {
  --w: 64px;
  position: relative; flex: none;
  width: var(--w); height: 32px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line);
  background: var(--paper-2);
  display: inline-flex; align-items: center; padding: 0 4px;
  transition: background-color .3s ease, border-color .3s ease;
}
.theme-toggle:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.theme-toggle .knob {
  position: absolute; top: 50%; left: 4px; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--sun); color: #10233a;
  display: grid; place-items: center;
  transition: left .3s cubic-bezier(.65,.05,.36,1), background-color .3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
:root[data-theme="dark"] .theme-toggle .knob { left: calc(var(--w) - 28px); background: var(--violet); color: #fff; }
.theme-toggle .knob svg { width: 15px; height: 15px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ---------- Störer (Aufkleber/Badges) ---------- */
.stoerer {
  font-family: "Caveat", cursive; font-weight: 700; font-size: 1.15rem; line-height: 1;
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .42rem .7rem; border-radius: 14px 13px 15px 12px;
  background: var(--sun); color: #1d1206;
  box-shadow: var(--sticker-shadow);
  transform: rotate(-7deg);
}
.stoerer--coral   { background: var(--coral);   color: #fff; }
.stoerer--magenta { background: var(--magenta); color: #fff; }
.stoerer--teal    { background: var(--teal);    color: #04201d; }
.stoerer--violet  { background: var(--violet);  color: #fff; }
.stoerer--sold    { background: var(--ink); color: var(--paper); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-wash); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.eyebrow {
  font-family: "Caveat", cursive; font-weight: 700; font-size: 1.5rem;
  color: var(--coral); display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .4rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--coral); display: inline-block; }
.hero h1 { font-size: clamp(2.7rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.02em; }
.hero h1 .accent { color: var(--magenta); }
.hero .tagline {
  font-family: "Caveat", cursive; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 600;
  color: var(--ink-soft); margin: 1rem 0 1.6rem; max-width: 24ch;
}
.hero-cta { display: inline-flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.btn {
  font-family: "Outfit", sans-serif; font-weight: 600; font-size: 1rem;
  border: none; cursor: pointer; text-decoration: none;
  padding: .85rem 1.4rem; border-radius: 13px;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn--primary { background: var(--coral); color: #fff; box-shadow: 0 10px 24px -12px var(--coral); }
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); }

/* Hero-Collage rechts */
.hero-collage { position: relative; min-height: 320px; }
.hero-collage figure { position: absolute; margin: 0; border-radius: 14px; overflow: hidden;
  background: var(--paper-2); box-shadow: var(--card-shadow); border: 5px solid var(--paper-2); }
.hero-collage img { width: 100%; height: 100%; object-fit: cover; }
.hc-1 { width: 56%; aspect-ratio: 3/4; top: 0; right: 4%; transform: rotate(4deg); z-index: 2; }
.hc-2 { width: 46%; aspect-ratio: 1/1; bottom: 2%; left: 0; transform: rotate(-6deg); z-index: 3; }
.hc-3 { width: 38%; aspect-ratio: 1/1; top: 30%; left: 34%; transform: rotate(8deg); z-index: 1; }
.hero-collage .stoerer { position: absolute; top: -14px; left: 6%; z-index: 5; }

/* Zwei-Bild-Variante (Hero) */
.hero-collage--duo { min-height: 380px; }
.hero-collage--duo .hd-1 { position: absolute; width: 52%; aspect-ratio: 3/4; top: 2%; right: 2%; transform: rotate(4deg); z-index: 2;
  margin: 0; border-radius: 14px; overflow: hidden; background: var(--paper-2); box-shadow: var(--card-shadow); border: 5px solid var(--paper-2); }
.hero-collage--duo .hd-2 { position: absolute; width: 50%; aspect-ratio: 5/7; bottom: 0; left: 2%; transform: rotate(-5deg); z-index: 3;
  margin: 0; border-radius: 14px; overflow: hidden; background: var(--paper-2); box-shadow: var(--card-shadow); border: 5px solid var(--paper-2); }
.hero-collage--duo .hd-1 img, .hero-collage--duo .hd-2 img { width: 100%; height: 100%; object-fit: cover; }
.hero-collage--duo .stoerer { left: auto; right: 8%; top: -10px; }
.tape {
  position: absolute; width: 74px; height: 26px; background: var(--tape);
  z-index: 6; backdrop-filter: blur(1px); border-radius: 2px;
}

/* Farbspritzer-Akzent */
.splat { position: absolute; pointer-events: none; opacity: .9; }

/* ---------- Sektionen ---------- */
section.block { padding: clamp(3rem, 6vw, 5rem) 0; position: relative; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head .kicker { font-family: "Caveat", cursive; font-weight: 700; color: var(--teal); font-size: 1.4rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
.section-head .count { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Galerie-Grid ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(1rem, 2.4vw, 1.8rem); }
.card {
  position: relative; text-align: left; cursor: pointer;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 18px;
  padding: 0; overflow: hidden; font: inherit; color: inherit;
  box-shadow: var(--card-shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--coral) 60%, var(--line)); }
.card:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.card-media { aspect-ratio: 4/5; overflow: hidden; background: var(--paper-edge); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: .95rem 1.05rem 1.15rem; }
.card-title { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.15rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: .35rem; }
.card-price { font-weight: 600; color: var(--ink); }
.card-hint { font-size: .85rem; color: var(--ink-soft); }
.card .stoerer { position: absolute; top: 10px; right: 10px; font-size: 1rem; padding: .3rem .55rem; z-index: 4; }
.card.is-sold .card-media img { opacity: .92; }

/* ---------- Modal ---------- */
.modal { border: none; padding: 0; background: transparent; max-width: min(920px, 94vw); }
.modal::backdrop { background: color-mix(in srgb, var(--ink) 60%, transparent); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .25s ease; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-inner {
  background: var(--paper-2); color: var(--ink); border-radius: 20px; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 1fr; box-shadow: var(--card-shadow);
  border: 1px solid var(--line);
}
.modal-media { background: var(--paper-edge); display: grid; place-items: center; }
.modal-media img { width: 100%; height: 100%; max-height: 80vh; object-fit: contain; }

/* Hauptbild als Zoom-Auslöser + Thumbnail-Leiste */
.modal-media { display: flex; flex-direction: column; }
.modal-main { position: relative; border: none; padding: 0; margin: 0; background: none; cursor: zoom-in; flex: 1; min-height: 0; display: grid; place-items: center; width: 100%; }
.modal-main img { max-height: 72vh; }
.zoom-hint {
  position: absolute; bottom: 10px; right: 10px; font-size: .78rem; font-weight: 600;
  background: color-mix(in srgb, var(--ink) 72%, transparent); color: var(--paper);
  padding: .3rem .6rem; border-radius: 999px; opacity: 0; transition: opacity .2s ease; pointer-events: none;
}
.modal-main:hover .zoom-hint, .modal-main:focus-visible .zoom-hint { opacity: 1; }
.modal-thumbs { display: flex; gap: .5rem; padding: .7rem; overflow-x: auto; background: var(--paper-2); border-top: 1px solid var(--line); }
.thumb { flex: none; width: 60px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 9px; overflow: hidden; cursor: pointer; background: var(--paper-edge); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--coral); }
.thumb:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }

/* Foto-Anzahl-Badge auf Galerie-Karten */
.photo-count {
  position: absolute; bottom: 10px; left: 10px; z-index: 4;
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .8rem; font-weight: 600;
  background: color-mix(in srgb, var(--ink) 68%, transparent); color: var(--paper);
  padding: .25rem .55rem; border-radius: 999px; backdrop-filter: blur(2px);
}
.card-media { position: relative; }

/* Lightbox (als dialog – liegt im Top-Layer über dem Modal) */
.lightbox { border: none; padding: 0; max-width: 100vw; max-height: 100vh; background: transparent; overflow: hidden; }
.lightbox[open] {
  position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 16, 26, .94); animation: pop .2s ease;
}
.lightbox::backdrop { background: rgba(8, 16, 26, .94); }
.lightbox-img { max-width: 94vw; max-height: 90vh; object-fit: contain; cursor: zoom-in; transition: transform .2s ease; border-radius: 4px; }
.lightbox-img.is-zoomed { transform: scale(2.4); cursor: zoom-out; }
.lightbox-close {
  position: fixed; top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.14); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 101;
}
.lightbox-close:hover { background: var(--coral); }
.modal-content { padding: 1.6rem 1.7rem 1.8rem; position: relative; overflow-y: auto; max-height: 80vh; }
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; font-size: 1.2rem; line-height: 1;
}
.modal-close:hover { background: var(--coral); color: #fff; border-color: var(--coral); }
.modal-content h3 { font-size: 1.9rem; font-weight: 800; padding-right: 2.5rem; }
.modal-price { font-size: 1.35rem; font-weight: 700; color: var(--coral); margin: .35rem 0 1rem; }
.modal-desc { color: var(--ink-soft); margin-bottom: 1.3rem; }
.spec { display: flex; gap: .8rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.spec dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); width: 120px; flex: none; padding-top: .15rem; }
.spec dd { margin: 0; font-weight: 500; }
.modal-actions { margin-top: 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.modal-actions .note { font-size: .82rem; color: var(--ink-soft); }

/* ---------- Über mich ---------- */
.about { background:
  linear-gradient(180deg, transparent, color-mix(in srgb, var(--teal) 7%, transparent)); }
.about-sub { font-family: "Caveat", cursive; font-weight: 700; font-size: 1.6rem; color: var(--violet); align-self: end; }

/* Polaroid-Fotorahmen */
.photo-frame {
  position: relative; margin: 0; background: #fff; padding: 10px 10px 0;
  border-radius: 6px; box-shadow: var(--card-shadow); width: 100%;
}
.photo-frame img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 2px; display: block; }
.photo-frame.portrait img { aspect-ratio: 3/4; }
.photo-frame figcaption {
  font-family: "Caveat", cursive; font-weight: 700; font-size: 1.3rem; color: #2a2a2a;
  text-align: center; padding: .5rem .3rem .7rem;
}
.photo-frame.rot-l { transform: rotate(-2.2deg); }
.photo-frame.rot-r { transform: rotate(2.2deg); }

/* Intro: Berg-Foto + Leitsatz */
.about-intro {
  display: grid; grid-template-columns: minmax(0, 1.1fr) 1fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center; margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.about-lead {
  font-family: "Caveat", cursive; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  color: var(--magenta); line-height: 1.12; margin: 0; max-width: 16ch;
}

/* Text-Block (Kunst am Werden) */
.about-text-block { max-width: 62ch; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.about-text-block h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: .8rem; }
.about-text-block .signoff { font-family: "Caveat", cursive; font-size: 1.5rem; color: var(--ink-soft); margin: .6rem 0 0; }
.about-text-block .sign-chip { margin-top: 1rem; }

/* Wechsel-Reihen Foto/Text */
.about-row {
  display: grid; grid-template-columns: minmax(0, .95fr) 1fr; gap: clamp(1.5rem, 4vw, 3.2rem);
  align-items: center; margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.about-row.reverse { grid-template-columns: 1fr minmax(0, .95fr); }
.about-row.reverse .photo-frame { order: 2; }
.about-row.reverse .about-text { order: 1; }
.about-text { position: relative; }
.about-text .stoerer { margin-bottom: 1rem; }
.about-text p { margin: 0 0 1rem; }
.about-text .signoff { font-family: "Caveat", cursive; font-size: 1.5rem; color: var(--teal); margin-top: -.2rem; }
.about-text a { color: var(--coral); font-weight: 600; text-decoration: none; border-bottom: 2px solid color-mix(in srgb, var(--coral) 40%, transparent); }
.about-text a:hover { border-bottom-color: var(--coral); }

/* Signatur-Chip */
.sign-chip {
  display: inline-block; background: #fff; padding: .6rem 1.1rem .4rem;
  border-radius: 10px; box-shadow: var(--sticker-shadow); transform: rotate(-3deg);
}
.sign-chip img { width: 150px; height: auto; }

/* Abschluss */
.about-outro {
  text-align: center; max-width: 56ch; margin: 0 auto;
  padding-top: clamp(1rem, 3vw, 2rem); border-top: 1px solid var(--line);
}
.about-outro p { font-size: 1.15rem; margin: 0 0 1.4rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; margin-top: 1rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--coral); font-weight: 600; text-decoration: none; }
.site-footer .muted { color: var(--ink-soft); font-size: .9rem; }
.footer-links { display: flex; gap: 1.3rem; align-items: center; flex-wrap: wrap; }

/* ---------- Impressum / Rechtstexte ---------- */
.legal { max-width: 760px; }
.legal-body { line-height: 1.7; color: var(--ink-soft); }
.legal-body { background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--card-shadow); }

/* ---------- Responsiv ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-collage { min-height: 360px; order: -1; max-width: 420px; }
  .modal-inner { grid-template-columns: 1fr; }
  .modal-media img { max-height: 46vh; }
  .about-intro, .about-row, .about-row.reverse { grid-template-columns: 1fr; }
  .about-row.reverse .photo-frame { order: 0; }
  .about-row.reverse .about-text { order: 0; }
  .photo-frame { max-width: 460px; margin-inline: auto; }
  .nav .nav-link { display: none; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .spec { flex-direction: column; gap: .15rem; }
  .spec dt { width: auto; }
}

/* ---------- A11y ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
a:focus-visible, button:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
