/* Farben – Pastelltöne passend zur Puppenstube. Hier zentral anpassen. */
:root {
  --bg: #fdf7f4;          /* Rahmweiss */
  --flaeche: #ffffff;
  --text: #4a3b42;        /* warmes Pflaumengrau */
  --leise: #8c7680;
  --rosa: #f6d6de;        /* Puderrosa */
  --rosa-mittel: #e8aebd;
  --akzent: #b25f78;      /* Altrosa (Knöpfe, Preise) */
  --akzent-dunkel: #96485f;
  --lavendel: #e7def3;
  --mint: #d7ede3;
  --himmel: #dbe9f5;
  --vanille: #fbf0d4;
  --linie: #efe2e6;
  --schatten: 0 10px 30px rgba(178, 95, 120, .14);
  --radius: 16px;
  --titel: "Playfair Display", Georgia, "Times New Roman", serif;
  --schrift: "Nunito", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--schrift); }
h1, h2, h3, .logo { font-family: var(--titel); font-weight: 400; }
h2 { font-size: 2rem; margin: 0 0 4px; }
h2::after { content: ""; display: block; width: 56px; height: 3px; border-radius: 3px; margin-top: 8px;
  background: linear-gradient(90deg, var(--rosa-mittel), var(--lavendel), var(--mint)); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
section.wrap { padding-top: 56px; }
.hinweis, .treffer { color: var(--leise); }
button { font: inherit; color: inherit; }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 10; background: rgba(253, 247, 244, .92);
  border-bottom: 1px solid var(--linie); backdrop-filter: blur(8px); }
.kopf-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; }
.logo { font-size: 1.6rem; color: var(--akzent); text-decoration: none; margin-right: auto; }
.logo-herz { color: var(--rosa-mittel); }
nav a { margin-left: 18px; color: var(--text); text-decoration: none; font-weight: 600; }
nav a:hover { color: var(--akzent); }
.kopf-aktionen { display: flex; gap: 8px; }
.fav-zaehler, .sprache { border: 1px solid var(--linie); background: var(--flaeche); border-radius: 999px;
  padding: 6px 14px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.fav-zaehler span:first-child { color: var(--rosa-mittel); }
.fav-zaehler.hat span:first-child { color: var(--akzent); }
.fav-zaehler .zahl { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--rosa); color: var(--akzent-dunkel); text-align: center; }
.sprache { background: var(--lavendel); border-color: var(--lavendel); }
.fav-zaehler:hover, .sprache:hover { border-color: var(--rosa-mittel); }

/* Hero */
.hero { padding: 88px 0 96px; text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, var(--vanille) 0 120px, transparent 121px),
    radial-gradient(circle at 88% 75%, var(--mint) 0 150px, transparent 151px),
    radial-gradient(circle at 80% 10%, var(--himmel) 0 70px, transparent 71px),
    linear-gradient(135deg, var(--rosa) 0%, var(--lavendel) 100%); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 14px; font-style: italic; }
.hero p { max-width: 620px; margin: 0 auto 28px; font-size: 1.1rem; }

.btn { display: inline-block; background: var(--akzent); color: #fff; border: 0; border-radius: 999px;
  padding: 12px 28px; font-weight: 700; text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 14px rgba(178, 95, 120, .25); transition: background .15s, transform .15s; }
.btn:hover { background: var(--akzent-dunkel); transform: translateY(-1px); }
.btn:disabled { background: #cbbcc2; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-zweit { background: var(--flaeche); color: var(--akzent); border: 2px solid var(--rosa-mittel); box-shadow: none; }
.btn-zweit:hover { background: var(--rosa); }
.btn-zweit.an { background: var(--rosa); border-color: var(--akzent); }
.btn-klein { padding: 8px 18px; font-size: .9rem; }

/* Showcase */
.showcase { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 300px); gap: 22px;
  overflow-x: auto; padding: 8px 2px 16px; scroll-snap-type: x mandatory; }
.showcase .karte { scroll-snap-align: start; }

/* Filter */
.filterleiste { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 14px; }
.filterleiste input { flex: 1 1 260px; }
.filterleiste input, .filterleiste select, .formular input, .formular textarea {
  padding: 11px 14px; border: 1px solid var(--linie); border-radius: 12px; font: inherit;
  background: var(--flaeche); color: inherit; }
.filterleiste input:focus, .filterleiste select:focus, .formular input:focus, .formular textarea:focus {
  outline: 2px solid var(--rosa-mittel); outline-offset: 1px; }
.kategorien { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.kategorien button { border: 1px solid var(--linie); background: var(--flaeche); border-radius: 999px;
  padding: 7px 16px; cursor: pointer; }
.kategorien button:nth-child(5n+2) { background: var(--rosa); border-color: var(--rosa); }
.kategorien button:nth-child(5n+3) { background: var(--lavendel); border-color: var(--lavendel); }
.kategorien button:nth-child(5n+4) { background: var(--mint); border-color: var(--mint); }
.kategorien button:nth-child(5n+5) { background: var(--himmel); border-color: var(--himmel); }
.kategorien button:nth-child(5n+6) { background: var(--vanille); border-color: var(--vanille); }
.kategorien button.chip-fav { background: var(--flaeche); border: 1px dashed var(--rosa-mittel); color: var(--akzent); }
.kategorien button.aktiv { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.treffer-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.treffer { margin: 0; }
.leer { background: var(--rosa); border-radius: var(--radius); padding: 18px 20px; }

/* Karten */
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.karte { background: var(--flaeche); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--linie);
  cursor: pointer; transition: transform .2s, box-shadow .2s; }
.karte:hover, .karte:focus-visible { transform: translateY(-4px); box-shadow: var(--schatten); outline: none; }
.karte-bild { position: relative; aspect-ratio: 4 / 3; background: var(--rosa); }
.karte-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge { position: absolute; top: 10px; left: 10px; background: rgba(255, 255, 255, .92); color: var(--akzent-dunkel);
  font-size: .8rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.status-verkauft .karte-bild img { filter: grayscale(1) opacity(.55); }
.herz { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .9); cursor: pointer; display: grid; place-items: center;
  font-size: 1.3rem; line-height: 1; color: var(--akzent); box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  transition: transform .15s; }
.herz:hover { transform: scale(1.1); }
.herz span::before { content: "♡"; }
.herz.an { background: var(--akzent); color: #fff; }
.herz.an span::before { content: "♥"; }
.karte-text { padding: 12px 16px 18px; }
.karte-text h3 { margin: 2px 0 6px; font-size: 1.15rem; }
.nr { margin: 0; font-size: .8rem; color: var(--leise); letter-spacing: .02em; }
.preis { margin: 0; font-weight: 700; color: var(--akzent); }

/* Kontakt */
#kontakt { padding-bottom: 8px; }
.formular { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 780px; margin-top: 18px;
  background: var(--flaeche); padding: 24px; border-radius: var(--radius); border: 1px solid var(--linie); }
.formular label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; color: var(--leise); font-weight: 600; }
.formular .breit { grid-column: 1 / -1; }
.formular .btn { justify-self: start; }
.formstatus { grid-column: 1 / -1; margin: 0; }

.fuss { margin-top: 72px; padding: 30px 0; color: var(--leise); font-size: .9rem;
  background: linear-gradient(90deg, var(--rosa), var(--lavendel), var(--mint)); }

/* Detailansicht */
dialog { border: 0; border-radius: 20px; padding: 0; max-width: 1000px; width: calc(100% - 32px); max-height: 92vh;
  background: var(--flaeche); color: var(--text); box-shadow: 0 20px 60px rgba(74, 59, 66, .25); }
dialog::backdrop { background: rgba(74, 59, 66, .55); backdrop-filter: blur(2px); }
.schliessen { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--rosa); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--akzent-dunkel); z-index: 1; }
.detail-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; padding: 28px; }
.hauptbild-knopf { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--rosa);
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
#detail-hauptbild { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; display: block; }
.lupe-icon { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); display: grid; place-items: center; font-size: 1.2rem; color: var(--akzent);
  transition: transform .15s; }
.hauptbild-knopf:hover .lupe-icon { transform: scale(1.12); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs img { width: 72px; height: 56px; object-fit: cover; border-radius: 10px; cursor: pointer;
  border: 2px solid transparent; opacity: .8; }
.thumbs img.aktiv, .thumbs img:hover { border-color: var(--akzent); opacity: 1; }
.detail-text h3 { font-size: 1.8rem; margin: 4px 0 8px; }
.detail-text .preis { font-size: 1.2rem; }
.detail-text dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: .95rem;
  background: var(--bg); padding: 12px 16px; border-radius: 12px; }
.detail-text dl:empty { display: none; }
.detail-text dt { color: var(--leise); }
.detail-text dd { margin: 0; }
.detail-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Grossansicht / Zoom */
dialog.lupe { max-width: none; max-height: none; width: 100vw; height: 100vh; margin: 0; border-radius: 0;
  background: #2f2529; color: #fff; overflow: hidden; }
dialog.lupe::backdrop { background: #2f2529; }
.lupe-buehne { position: absolute; inset: 0 0 72px; display: grid; place-items: center; overflow: hidden;
  touch-action: none; cursor: zoom-in; user-select: none; }
.lupe-buehne.gezoomt { cursor: grab; }
.lupe-buehne.gezoomt:active { cursor: grabbing; }
#lupe-bild { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center center;
  transition: transform .08s ease-out; will-change: transform; }
.lupe-pfeil { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%;
  border: 0; background: rgba(246, 214, 222, .9); color: var(--akzent-dunkel); font-size: 2rem; line-height: 1; cursor: pointer; }
.lupe-pfeil.links { left: 16px; }
.lupe-pfeil.rechts { right: 16px; }
.lupe-pfeil:hover { background: #fff; }
.lupe-leiste { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center;
  gap: 6px; background: rgba(255, 255, 255, .12); padding: 6px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.lupe-leiste button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--rosa);
  color: var(--akzent-dunkel); font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.lupe-leiste button:hover { background: #fff; }
#lupe-reset { font-size: .8rem; }
.lupe-zaehler, .lupe-prozent { min-width: 56px; text-align: center; font-size: .9rem; opacity: .9; }
.lupe-hinweis { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); margin: 0; font-size: .8rem;
  opacity: .7; white-space: nowrap; }

@media (max-width: 760px) {
  nav { order: 3; width: 100%; }
  nav a { margin: 0 14px 8px 0; font-size: .95rem; }
  .formular, .detail-inner { grid-template-columns: 1fr; }
  .detail-inner { padding: 20px 16px; }
  .hero { padding: 56px 0 64px; }
  .lupe-pfeil { width: 42px; height: 42px; }
  .lupe-hinweis { display: none; }
}
