/* ==========================================================================
   Herzstück3D — Zuhause (B2C)
   Selbst gehostete Systemschriften — keine Google-Fonts-Einbindung,
   damit keine Nutzer-IP an Drittserver geht und kein Cookie-Banner nötig ist.
   ========================================================================== */

:root {
  color-scheme: light;

  --bg: #FBF8F2;
  --bg-card: #FFFFFF;
  --ink: #2B2723;
  --muted: #7A7168;
  --line: #E8E1D3;

  --accent: #C98A83;      /* Altrosa — primäre Akzentfarbe */
  --accent-ink: #A14F45;
  --sage: #7C9473;        /* Salbeigrün — zweiter Akzent */
  --sage-ink: #5C7053;

  --radius-s: 6px;
  --radius-m: 16px;
  --radius-l: 22px;

  --font-display: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; max-width: 62ch; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--ink); color: var(--bg);
  padding: .6rem 1rem; border-radius: var(--radius-s);
  transition: top .15s ease; z-index: 200;
}
.skip-link:focus { top: 1rem; }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); scroll-margin-top: 76px; }
#top { scroll-margin-top: 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.eyebrow { font-family: var(--font-body); font-size: .9rem; color: var(--accent-ink); margin: 0 0 .6rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: .75rem; }
.lead { font-size: 1.12rem; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
/* Hauptaktion „Bild gestalten“: kräftiger, größer, mit Stift-Symbol */
.btn-gestalten { background: var(--accent-ink); color: #fff; padding: 1rem 1.9rem; font-size: 1.05rem;
  box-shadow: 0 10px 24px -10px rgba(161,79,69,.75); }
.btn-gestalten::before { content: "✎"; font-size: 1.15em; line-height: 1; }
.btn-gestalten::after { content: "→"; transition: transform .15s ease; }
.btn-gestalten:hover { background: #8C4239; box-shadow: 0 14px 28px -10px rgba(161,79,69,.85); }
.btn-gestalten:hover::after { transform: translateX(3px); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.6); backdrop-filter: blur(2px); }
.btn-ghost:hover { background: rgba(255,255,255,.28); }
.btn svg { flex-shrink: 0; }
.btn-instagram svg { color: #c1366f; }
.note-legal { font-size: .85rem; color: var(--muted); margin-top: .75rem; max-width: 40ch; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251,248,242,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; flex: none; }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: 2rem; align-items: center; }
.nav-desktop a { text-decoration: none; font-size: .95rem; font-weight: 500; padding: .3rem 0; border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease; }
.nav-desktop a:hover { border-color: var(--accent); }
.nav-desktop a.active { color: var(--accent-ink); border-color: var(--accent-ink); }
.nav-desktop .btn { padding: .55rem 1.2rem; font-size: .9rem; }

.nav-toggle { background: none; border: 1px solid var(--line); border-radius: var(--radius-s); width: 42px; height: 38px; display: inline-flex; align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-mobile { display: none; border-bottom: 1px solid var(--line); background: var(--bg); }
.nav-mobile.is-open { display: block; }
.nav-mobile ul { padding: .5rem clamp(1.25rem, 4vw, 3rem) 1.25rem; display: flex; flex-direction: column; gap: .2rem; }
.nav-mobile a { display: block; padding: .7rem 0; text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 500; }
.nav-mobile li:last-child a { border-bottom: none; }

@media (min-width: 860px) {
  .nav-desktop { display: block; }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero .container { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 900px) {
  .hero .container { grid-template-columns: 1fr 1fr; }
}
.hero-copy h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); margin-bottom: 1.1rem; }
.hero-copy .lead { font-size: 1.2rem; color: var(--muted); margin-bottom: 1.75rem; max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; }


/* ---------- Hero: Acrylkunst im Mittelpunkt ---------- */
.hero-art {
  background:
    radial-gradient(70% 90% at 85% 30%, rgba(255, 92, 140, .10), transparent 60%),
    radial-gradient(60% 80% at 70% 90%, rgba(255, 170, 60, .10), transparent 60%),
    var(--bg);
}
/* Zweispaltig ab 900 px — und auf breiten Querformat-Bildschirmen (aufgeklapptes iPhone Duo, Tablet quer) */
@media (min-width: 900px), (orientation: landscape) and (min-width: 640px) {
  .hero-art .container { grid-template-columns: 1fr 1.05fr; align-items: start; }
  /* auf flachen Bildschirmen ganz sichtbar bleiben */
  .hero-art .hero-gallery { width: min(100%, calc((100vh - 12rem) * .8)); justify-self: end; }
}
/* Handy/Tablet hochkant: Acrylbild zuerst, damit es sofort sichtbar ist */
@media (max-width: 899px) and (orientation: portrait), (max-width: 639px) {
  .hero-art { padding-top: 1.25rem; }
  .hero-art .hero-gallery { order: -1; max-height: 62vh; aspect-ratio: auto; height: min(62vh, 125vw); }
}
.hero-more { margin: 1.4rem 0 0; font-size: .92rem; color: var(--muted); }
.hero-more a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.hero-more a:hover { text-decoration: underline; }

.hero-gallery {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-l); overflow: hidden;
  background: #EDE5D8; isolation: isolate;
  box-shadow: 0 30px 70px -34px rgba(43,39,35,.5);
}
.hero-gallery img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity 1.2s ease, transform 6s ease-out;
}
.hero-gallery img.is-active { opacity: 1; transform: scale(1); }
.hero-gallery .hero-tag {
  position: absolute; left: 1.25rem; bottom: 1.25rem; z-index: 2;
  background: rgba(255,255,255,.92); color: var(--ink);
  padding: .55rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
}
.hero-dots {
  position: absolute; right: 1.25rem; bottom: 1.45rem; z-index: 2;
  display: flex; gap: .45rem; padding: .45rem .6rem; border-radius: 999px;
  background: rgba(20,17,14,.35); backdrop-filter: blur(3px);
}
.hero-dots button {
  width: .5rem; height: .5rem; padding: 0; border: none; border-radius: 50%;
  background: rgba(255,255,255,.5); cursor: pointer; transition: background-color .2s ease, transform .2s ease;
}
.hero-dots button[aria-current="true"] { background: #fff; transform: scale(1.3); }
/* schmale Handys: Punkte oben rechts, damit sie nicht mit „Handgemalt in Herzogenaurach“ kollidieren */
@media (max-width: 480px) {
  .hero-dots { bottom: auto; top: 1rem; right: 1rem; }
  .hero-gallery .hero-tag { left: 1rem; bottom: 1rem; font-size: .8rem; padding: .5rem .9rem; }
}

/* Vertrauensleiste: Teil der Hero-Fläche, als zarte, durchscheinende Karte statt eigener Streifen */
.hero .container.hero-trust { display: block; }
.trust-bar {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem;
  margin-top: clamp(2rem, 4vw, 3rem); padding: .6rem;
  background: rgba(255,255,255,.55); border: 1px solid rgba(232,225,211,.9);
  border-radius: var(--radius-l); backdrop-filter: blur(4px);
}
.trust-bar li {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem .8rem; font-size: .85rem; color: var(--muted); line-height: 1.35;
  min-width: 0;
}
@media (max-width: 480px) {
  .trust-bar li { padding: .6rem .4rem; gap: .5rem; font-size: .78rem; }
  .trust-icon { width: 2rem; height: 2rem; }
  .trust-bar strong { font-size: .92rem; }
}
.trust-bar strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1rem; }
.trust-icon {
  width: 2.4rem; height: 2.4rem; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: #F6E9E4; color: var(--accent-ink);
}
.trust-icon svg { width: 1.15rem; height: 1.15rem; }
@media (min-width: 860px) {
  .trust-bar { grid-template-columns: repeat(4, 1fr); }
  .trust-bar li + li { border-left: 1px solid var(--line); }
}

/* ---------- Tiefgang-Sektion ---------- */
.section-art { background: #F5EEE3; scroll-margin-top: 68px; }
.art-feature { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .art-feature { grid-template-columns: .85fr 1.15fr; } }
.art-video { margin: 0; }
.art-video video {
  display: block; width: 100%; max-height: 78vh; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: var(--radius-l); background: #ddd;
  box-shadow: 0 30px 70px -34px rgba(43,39,35,.55);
}
@media (max-width: 899px) { .art-video video { aspect-ratio: 4 / 5; } }
.art-video figcaption { font-size: .85rem; color: var(--muted); margin-top: .8rem; }
.art-copy h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.art-copy .lead { color: var(--ink); }
.art-points { display: grid; gap: 1.3rem; margin: 2rem 0; }
.art-points li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; align-items: center; }
/* Nummern als gleich große Kreise, mittig zum Text */
.art-points .num {
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid #E3C4BE; background: #FBF3EF;
  font-family: var(--font-body); font-variant-numeric: tabular-nums; font-weight: 600;
  font-size: .9rem; color: var(--accent-ink); letter-spacing: .02em;
}
.art-points h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.art-points p { color: var(--muted); font-size: .95rem; margin: 0; }
.art-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; }
.art-price { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.art-price-note { font-size: .82rem; color: var(--muted); margin: 1rem 0 0; }

/* Entstehung in vier Schritten */
.unikate { margin-top: clamp(3rem, 7vw, 5rem); }
.unikate[hidden] { display: none; }
.unikate-lead { color: var(--muted); margin: -.8rem 0 1.5rem; max-width: 40rem; }
.unikate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1.25rem; }
.unikat { display: block; text-decoration: none; color: var(--ink); }
.unikat-img { position: relative; display: block; border-radius: var(--radius-m); overflow: hidden; margin-bottom: .8rem; }
.unikat-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; transition: transform .4s ease; }
.unikat:hover .unikat-img img { transform: scale(1.04); }
.unikat-badge { position: absolute; top: 12px; left: 12px; background: #D9502E; color: #fff; font-weight: 700; font-size: .78rem; padding: .3rem .7rem; border-radius: 999px; }
.unikat h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.unikat-meta { font-size: .88rem; color: var(--muted); margin: 0 0 .3rem; }
.unikat-preis { font-family: var(--font-display); font-size: 1.3rem; margin: 0; }
.unikat-preis small { font-family: var(--font-body); font-size: .8rem; color: var(--muted); }
.unikat-one { font-size: .8rem; color: var(--sage-ink); font-weight: 600; margin: 0 0 .35rem; }
.unikat.is-sold .unikat-one { color: var(--muted); font-weight: 400; }
.unikat.is-sold { pointer-events: none; }
.unikat.is-sold img { filter: grayscale(.8) opacity(.6); }
.unikat.is-sold .unikat-badge { background: #6E6760; }
.making { margin-top: clamp(3rem, 7vw, 5rem); }
.making-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 1.5rem; }
.making-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (min-width: 860px) { .making-steps { grid-template-columns: repeat(4, 1fr); } }
.making-steps li { position: relative; }
.making-steps img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-m); margin-bottom: .8rem; }
.making-steps .num {
  position: absolute; top: .6rem; left: .6rem;
  width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--accent-ink); font-family: var(--font-display); font-weight: 600;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.35);
}
.making-steps h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.making-steps p { font-size: .9rem; color: var(--muted); margin: 0; }

/* Bildleiste: wischen bzw. Pfeile, ohne sichtbaren Scrollbalken */
.art-strip-wrap { position: relative; margin-top: clamp(2.5rem, 6vw, 4rem); }
.art-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
  /* weich ausblenden an den Rändern */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.art-strip::-webkit-scrollbar { display: none; }
.strip-btn {
  position: absolute; top: calc(50% - 1rem); transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--ink);
  box-shadow: 0 8px 20px -8px rgba(43,39,35,.45);
  transition: opacity .2s ease, transform .2s ease;
}
.strip-btn:hover { transform: translateY(-50%) scale(1.06); }
.strip-btn[hidden] { display: none; }
.strip-btn svg { width: 20px; height: 20px; }
.strip-prev { left: -.6rem; }
.strip-next { right: -.6rem; }
@media (hover: none) { .strip-btn { display: none; } }
.art-strip figure { margin: 0; }
.art-strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-m); }
.art-strip figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
.section-art .figcap { margin: 1rem 0 0; }

/* ---------- Editorial mosaic: category tiles ---------- */
.mosaic {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
  grid-template-areas: "nsr" "event" "pax" "fliegen" "anh";
  margin-bottom: 1.25rem;
}
@media (min-width: 860px) {
  .mosaic {
    grid-template-columns: repeat(12, 1fr);
    grid-template-areas:
      "nsr nsr nsr nsr nsr nsr nsr event event event event event"
      "pax pax pax pax fliegen fliegen fliegen fliegen anh anh anh anh";
    gap: 1.1rem;
  }
}
.tile {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--bg-card);
  min-height: 300px;
  color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  cursor: pointer;
}
.tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(185deg, rgba(30,25,20,0) 38%, rgba(30,25,20,.86) 100%);
  transition: opacity .35s ease;
}
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); }
.tile:hover::after, .tile:focus-visible::after { opacity: .45; }
.tile-body { position: relative; z-index: 1; padding: 1.6rem; transition: opacity .35s ease; }
.tile:hover .tile-body, .tile:focus-visible .tile-body { opacity: .28; }
.tile:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; }
.tile-badge {
  display: inline-block; font-size: .78rem; font-weight: 600;
  background: rgba(255,255,255,.22); backdrop-filter: blur(3px);
  padding: .3rem .7rem; border-radius: 999px; margin-bottom: .8rem;
}
.tile h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); color: #fff; margin-bottom: .45rem; }
.tile p { color: rgba(255,255,255,.88); font-size: .95rem; margin: 0; max-width: 32rem; }

.tile-nsr { grid-area: nsr; min-height: 340px; }
/* Mitwachsender Griff: eigener Abschnitt vor dem Sortiment (ausgeblendet, solange builder/griff.js "online": false) */
.js-griff-online[hidden] { display: none !important; }
.section-griff { background: var(--bg-card); border-block: 1px solid var(--line); }
.griff-feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
@media (min-width: 860px) { .griff-feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 3.5rem; } }
.griff-bild { position: relative; display: block; border-radius: var(--radius-l); overflow: hidden; }
.griff-bild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 57%; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.griff-bild:hover img { transform: scale(1.03); }
@media (max-width: 859px) { .griff-bild img { aspect-ratio: 4 / 3; } }
.griff-neu { position: absolute; top: 14px; left: 14px; background: #D9502E; color: #fff; font-weight: 700; font-size: .8rem; padding: .35rem .8rem; border-radius: 999px; }
.griff-vorteile { list-style: none; margin: 1.4rem 0 1rem; padding: 1rem 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; text-align: center; border-block: 1px solid var(--line); }
.griff-vorteile li { display: flex; flex-direction: column; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 700; line-height: 1.3; }
.griff-vorteile svg { width: 26px; height: 26px; fill: none; stroke: var(--accent-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.griff-fakten { font-size: .92rem; color: var(--muted); margin: 0 0 1.2rem; }
.btn-griff { background: var(--accent-ink); }
.btn-griff::after { content: " →"; }
.tile-shop { margin-top: 1rem; background: #fff; color: var(--ink); font-size: .92rem; padding: .7rem 1.2rem; white-space: nowrap; }
.tile-shop:hover { background: var(--accent-ink); color: #fff; }
.tile:has(.tile-shop:not([hidden])):hover .tile-body { opacity: 1; }   /* Kachel mit Shop-Knopf: Text beim Überfahren nicht ausblenden */
.lightbox-shop { margin-top: 1rem; }
.lightbox-shop[hidden] { display: none; }
.tile-pax { grid-area: pax; }
.tile-fliegen { grid-area: fliegen; }
.tile-event { grid-area: event; }
.tile-anh { grid-area: anh; }
.tile-event img { object-position: 50% 15%; }
.tile-pax img { object-position: 50% 50%; }
.tile-pax img[src*="pax-griff-1"] { object-position: 50% 57%; }
.tile-pax img[src*="pax-griff-2"] { object-position: 50% 44%; }
.tile-pax img[src*="pax-griff-5"] { object-position: 50% 53%; }
.tile-fliegen img { object-position: 50% 38%; }
/* Ausschnitt je Foto: Produkt im oberen Teil der Kachel, damit es nicht hinter dem Text verschwindet
   (gilt für das Titelbild und die Karussell-Folien, erkannt am Dateinamen) */
.tile img[src*="ring-familie-nagel"]       { object-position: 50% 40%; }
.tile img[src*="ring-familie-reuter"]      { object-position: 50% 38%; }
.tile img[src*="herz-alina-mario"]         { object-position: 50% 48%; }
.tile img[src*="ring-olivia"]              { object-position: 50% 12%; }
.tile img[src*="schild-halloween-kuerbis"] { object-position: 50% 40%; }
.tile img[src*="schild-halloween-booo"]    { object-position: 50% 38%; }
.tile img[src*="schild-willkommen-haus"]   { object-position: 50% 50%; }
.tile img[src*="flaschenanhaenger-flasche"]{ object-position: 50% 42%; }
.tile img[src*="flaschenanhaenger-farben"] { object-position: 50% 56%; }
.tile img[src*="anhaenger-happy-birthday"] { object-position: 50% 70%; }

/* ---------- Hintergrund-Karussell (Kacheln mit mehreren Fotos) ---------- */
.tile-bg { position: absolute; inset: 0; overflow: hidden; }
.tile-bg-track {
  display: flex; height: 100%;
  transition: transform .7s cubic-bezier(.4,0,.2,1);
}
/* Jede Folie ist ein <picture> (WebP + JPG); das Bild darin füllt die Folie */
.tile-bg-track picture, .tile-bg-track > img {
  flex: 0 0 100%; width: 100%; height: 100%; display: block; position: relative;
}
.tile-bg-track img {
  position: static; inset: auto;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
/* <picture> verhält sich wie ein direktes <img> (Layouts bleiben wie vorher). <source> ausdrücklich ausblenden,
   sonst wird es in Rastern zu einem leeren Element und verschiebt alles (z. B. „Über mich“). */
picture { display: contents; }
picture > source { display: none; }
.tile-bg-track picture, .tief-thumb picture, .unikat-img picture, .fx-main picture { display: block; width: 100%; height: 100%; }
/* Der normale Hover-Zoom einzelner Kachelbilder passt nicht zum Karussell:
   er lässt das aktive Bild über seine eigene Spur-Breite hinauswachsen und
   das Nachbarbild am Rand durchscheinen. Für Kacheln mit Karussell daher aus. */
.tile:hover .tile-bg-track img,
.tile:focus-visible .tile-bg-track img {
  transform: none;
}

/* ---------- Mehrere Beispielfotos innerhalb einer Mosaik-Kachel ---------- */
.tief-strip { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.tief-thumb {
  width: 3rem; height: 3rem; padding: 0; flex: 0 0 auto;
  border: 2px solid rgba(255,255,255,.75); border-radius: 8px;
  overflow: hidden; cursor: pointer; background: none;
  transition: border-color .2s ease, transform .2s ease;
}
.tief-thumb img {
  position: static; inset: auto; width: 100%; height: 100%;
  object-fit: cover; display: block; transition: none;
}
.tile:hover .tief-thumb img,
.tile:focus-visible .tief-thumb img {
  transform: none;
}
.tief-thumb:hover, .tief-thumb:focus-visible {
  border-color: #fff; transform: scale(1.08);
  outline: none;
}

.figcap { font-size: .82rem; color: var(--muted); margin: 0 0 3rem; max-width: none; width: 100%; text-align: center; }

/* ---------- Mini process (So entsteht dein Unikat) ---------- */
.mini-process {
  display: grid; grid-template-columns: 1fr; gap: 1.75rem;
  margin: clamp(2.5rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) {
  .mini-process { grid-template-columns: repeat(3, 1fr); }
}
/* Abschluss „Mehr Herzstücke“: gilt für die Etsy-Produkte, nicht für die Acrylkunst */
.shop-head { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); text-align: center; }
.shop-head h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: .5rem; }
.shop-head p { color: var(--muted); margin: 0 auto; }
.shop-head + .mini-process { border-top: none; padding-top: 0; margin-top: 2rem; }
.mini-process li { display: flex; flex-direction: column; gap: .4rem; }
.mini-process .num-line { display: flex; align-items: baseline; gap: .6rem; }
.mini-process .num { font-family: var(--font-display); font-size: 1.7rem; color: var(--sage); line-height: 1; }
.mini-process h4 { font-size: 1.05rem; color: var(--ink); }
.mini-process p { font-size: .93rem; color: var(--muted); margin: 0; }

.b2c-cta { text-align: center; margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.b2c-cta-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .9rem; margin-top: 1.25rem; }
.b2c-cta p.note-legal { margin: .75rem auto 0; text-align: center; }

/* ---------- Kundenstimmen ---------- */
.section-stimmen { background: #F5EEE3; }
.section-stimmen[hidden] { display: none; }
.stimmen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.25rem; }
.stimme { margin: 0; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.4rem; display: flex; flex-direction: column; gap: .8rem; }
.stimme img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-m); }
.stimme blockquote { margin: 0; font-family: var(--font-display); font-size: 1.08rem; line-height: 1.45; color: var(--ink); }
.stimme figcaption { font-size: .85rem; color: var(--muted); }

/* ---------- Handy-Leiste „Bild gestalten“ (Startseite) ---------- */
.home-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .55rem clamp(1rem, 4vw, 2rem) calc(.55rem + env(safe-area-inset-bottom));
  background: rgba(251,248,242,.96); border-top: 1px solid var(--line); backdrop-filter: blur(6px);
  box-shadow: 0 -8px 24px -12px rgba(43,39,35,.35);
  transition: transform .3s ease;
}
.home-bar[hidden] { display: flex; transform: translateY(110%); pointer-events: none; }
.home-bar-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.home-bar-text strong { font-family: var(--font-display); font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 400px) { .home-bar-text strong { font-size: .85rem; } }
.home-bar-text small { font-size: .75rem; color: var(--muted); }
.home-bar .btn { padding: .65rem 1.1rem; font-size: .9rem; white-space: nowrap; flex: none; }
@media (min-width: 860px) { .home-bar { display: none !important; } }
/* Platz für die Leiste fest reservieren (wechselnder Abstand würde am Seitenende flackern) */
@media (max-width: 859px) { body { padding-bottom: 4.5rem; } }
@media (prefers-reduced-motion: reduce) { .home-bar { transition: none; } }

/* ---------- Über uns ---------- */
.section-about .container { max-width: 46rem; }
.section-about .about-grid { max-width: 64rem; display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 760px) { .section-about .about-grid { grid-template-columns: .8fr 1.2fr; } }
.about-photo { width: 100%; max-width: 380px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-l); box-shadow: 0 24px 60px -30px rgba(43,39,35,.45); }
.section-about blockquote {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  margin: 1.5rem 0; padding-left: 1.25rem; border-left: 3px solid var(--accent);
  color: var(--ink);
}
.values { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
/* Instagram im „Über mich“-Bereich */
.insta-link {
  display: inline-flex; align-items: center; gap: .9rem; margin-top: 1.6rem;
  padding: .8rem 1.2rem .8rem .8rem; border-radius: var(--radius-m);
  background: var(--bg-card); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.insta-link:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(43,39,35,.4); }
.insta-icon {
  width: 2.8rem; height: 2.8rem; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.insta-link strong { display: block; font-family: var(--font-display); font-size: 1.02rem; }
.insta-link small { display: block; color: var(--muted); font-size: .82rem; }
.values li { font-size: .88rem; padding: .4rem .85rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

/* ---------- Kontakt ---------- */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; max-width: 42rem; }
@media (min-width: 640px) { .form-grid.two-col { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: #fff; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem 2.5rem; font-size: .9rem; color: var(--muted); }
.footer-top { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding-bottom: 1.25rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: .5rem; }
.footer-brand svg, .footer-brand img { width: 20px; height: 20px; opacity: .7; }
.footer-cross { padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .87rem; }
.footer-cross a { color: var(--accent-ink); text-decoration: none; font-weight: 600; }
.footer-cross a:hover { text-decoration: underline; }

/* ---------- Lightbox (Bilder vergrößern) ---------- */
body.lightbox-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: clamp(.75rem, 3vw, 2rem); }
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(20,17,14,.9); backdrop-filter: blur(2px); }
.lightbox-panel {
  position: relative; z-index: 1;
  max-width: 94vw;
  max-height: 92vh;
  display: flex; flex-direction: column; align-items: center;
}
.lightbox-media {
  position: relative; display: inline-block; line-height: 0;
  border-radius: var(--radius-l); overflow: hidden; flex: none;
}
.lightbox-img { display: block; width: auto; height: auto; max-width: min(90vw, 1200px); max-height: min(70vh, 820px); }
.lightbox-caption { width: 100%; max-width: 46ch; margin-inline: auto; padding: 1.1rem .25rem 0; max-height: 20vh; overflow-y: auto; }
.lightbox-caption h3 { font-size: 1.1rem; margin-bottom: .4rem; color: #fff; }
.lightbox-caption p { color: rgba(255,255,255,.72); margin: 0; max-width: none; font-size: .93rem; }
.lightbox-close {
  position: absolute; top: .7rem; right: .7rem; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(20,17,14,.55); color: #fff; backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.lightbox-close svg { width: 18px; height: 18px; }
.lightbox-close:hover { background: rgba(20,17,14,.8); }

.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: rgba(20,17,14,.55); color: #fff; backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
  transition: background-color .15s ease;
}
.lightbox-nav[hidden] { display: none; }
.lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-nav:hover { background: rgba(20,17,14,.8); }
.lightbox-prev { left: .7rem; }
.lightbox-next { right: .7rem; }
.lightbox-dots {
  position: absolute; bottom: .7rem; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; align-items: center; gap: .45rem;
  background: rgba(20,17,14,.45); backdrop-filter: blur(3px);
  padding: .5rem .65rem; border-radius: 999px;
}
.lightbox-dots[hidden] { display: none; }
.lightbox-dot {
  width: .45rem; height: .45rem; padding: 0; border: none; border-radius: 50%;
  background: rgba(255,255,255,.45); cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.lightbox-dot:hover { background: rgba(255,255,255,.8); }
.lightbox-dot.is-active { background: #fff; transform: scale(1.35); }

/* ---------- Simple pages ---------- */
.legal-page .container { max-width: 46rem; padding-block: clamp(3rem, 6vw, 5rem); }
.legal-page h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 1.5rem; }
.legal-page h2 { font-size: 1.2rem; margin: 2rem 0 .6rem; }
.matomo-optout { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1rem 1.2rem; margin: .6rem 0 1rem; font-size: .95rem; }
.matomo-optout:empty::before { content: "Der Widerspruch ist gerade nicht erreichbar – schreib uns einfach an hallo@herzstueck3d.de."; color: var(--muted); }
.legal-page p, .legal-page li { color: var(--ink); }
.draft-flag { background: #FDF2F2; border: 1px solid #E7C6C6; color: #7B241C; padding: 1rem 1.25rem; border-radius: var(--radius-s); font-size: .92rem; margin-bottom: 2rem; }
.scope-note { background: var(--bg-card); border: 1px solid var(--line); color: var(--muted); padding: 1rem 1.25rem; border-radius: var(--radius-s); font-size: .92rem; margin-bottom: 2.25rem; max-width: none; }
.legal-page .stand { color: var(--muted); font-size: .92rem; margin: -1rem 0 1.75rem; }
.legal-page h3 { font-size: 1.05rem; margin: 1.5rem 0 .5rem; color: var(--ink); }
.legal-page ul, .legal-page ol { margin: 0 0 1em; padding-left: 1.4rem; list-style: disc; }
.legal-page ol { list-style: decimal; }
.legal-page li { margin-bottom: .35rem; max-width: 62ch; }
.form-fields { list-style: none; padding: 0; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--bg-card); }
.form-fields li { margin: 0; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); max-width: none; }
.form-fields li:last-child { border-bottom: none; }
.back-link { display: inline-block; margin-top: 2rem; font-weight: 600; }
.thanks-page .container { max-width: 36rem; text-align: center; padding-block: clamp(4rem, 10vw, 7rem); }
.thanks-page h1 { margin-bottom: 1rem; }
