/* mylastminutegifts.eu – mobil zuerst, Desktop ist Zugabe. */
/* Nunito – selbst gehostet (SIL Open Font License, siehe schrift/nunito-OFL.txt).
   Eine eigene Schrift statt der Systemschrift: so sehen Logo und Seite auf
   iPhone, Android und Windows gleich aus. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("/schrift/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("/schrift/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("/schrift/nunito-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 900; font-display: swap; src: url("/schrift/nunito-latin-900-normal.woff2") format("woff2"); }

/* Nunito für Osteuropa (Ł, Ő, Č …) und Bulgarisch – der Browser lädt sie nur, wenn solche Zeichen vorkommen. Griechisch hat Nunito nicht: dort springt die Systemschrift ein. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("/schrift/nunito-latin-ext-400-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("/schrift/nunito-latin-ext-700-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("/schrift/nunito-latin-ext-800-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 900; font-display: swap; src: url("/schrift/nunito-latin-ext-900-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("/schrift/nunito-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("/schrift/nunito-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("/schrift/nunito-cyrillic-800-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 900; font-display: swap; src: url("/schrift/nunito-cyrillic-900-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("/schrift/nunito-cyrillic-ext-400-normal.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("/schrift/nunito-cyrillic-ext-700-normal.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("/schrift/nunito-cyrillic-ext-800-normal.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 900; font-display: swap; src: url("/schrift/nunito-cyrillic-ext-900-normal.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
:root {
  --tinte: #1f1d45;
  --tinte-2: #4a4870;
  --tinte-3: #8a88a3;
  --koralle: #ff5a36;
  --koralle-dunkel: #e0431f;
  --koralle-hell: #ffe3da;
  --sonne: #ffc93c;
  --sonne-hell: #fff1c7;
  --creme: #fff6ec;
  --papier: #ffffff;
  --linie: #ece3d6;
  --gruen: #1f9d74;
  --rot: #c62828;
  --rund: 18px;
  --rund-klein: 12px;
  --schatten: 0 1px 2px rgba(31, 29, 69, .06), 0 8px 24px rgba(31, 29, 69, .08);
  --schrift: "Nunito", ui-rounded, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
/* hidden gilt immer – auch gegen eigene display-Regeln. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Sprungziele (Motive, So geht's, Fragen) nicht unter den festen Kopf schieben */
section[id] { scroll-margin-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--creme);
  color: var(--tinte);
  font: 16px/1.5 var(--schrift);
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; }
.huelle { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* --- Kopf ---------------------------------------------------------------- */
.lm-kopf {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 246, 236, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}
.lm-kopf.gescrollt { border-bottom-color: var(--linie); }
.lm-kopf .huelle { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.lm-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -.03em; white-space: nowrap; }
.lm-logo img { width: 44px; height: 44px; }
.lm-logo b { color: var(--koralle); font-weight: 800; }
.lm-kopf nav { display: flex; align-items: center; gap: 4px; }
.lm-kopf nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.lm-kopf nav a:hover { background: var(--papier); }
.lm-kopf nav .nur-breit { display: none; }

/* --- Knöpfe -------------------------------------------------------------- */
.lm-knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px;
  background: var(--koralle); color: #fff;
  font-weight: 750; font-size: 17px; text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 var(--koralle-dunkel);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.lm-knopf:hover { background: #ff6a49; }
.lm-knopf:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--koralle-dunkel); }
.lm-knopf:disabled { opacity: .55; cursor: default; transform: none; }
.lm-knopf.leise { background: var(--papier); color: var(--tinte); box-shadow: 0 0 0 2px var(--tinte) inset; }
.lm-knopf.leise:hover { background: var(--sonne-hell); }
.lm-knopf.voll { width: 100%; }
:focus-visible { outline: 3px solid var(--sonne); outline-offset: 2px; }

/* --- Startseite: Held ------------------------------------------------------ */
.lm-held { padding: 4px 0 12px; overflow: hidden; }
.lm-held .huelle { display: grid; gap: 8px; }
.lm-held-bild { position: relative; width: 120px; margin: 0 auto -4px; isolation: isolate; }
.lm-held-bild::before {
  content: ""; position: absolute; left: 12%; top: 16%; width: 80%; aspect-ratio: 1;
  background: var(--sonne); border-radius: 50%; z-index: -1;
}
.lm-held-bild img { width: 100%; height: auto; animation: lm-wackeln 2.4s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes lm-wackeln {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) { .lm-held-bild img { animation: none; } }
.lm-marke {
  justify-self: center;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--tinte); color: #fff;
  font-weight: 700; font-size: 13px; letter-spacing: .02em;
  padding: 6px 12px; border-radius: 999px;
}
.lm-marke-teil { white-space: nowrap; }
.lm-marke i { width: 8px; height: 8px; border-radius: 50%; background: var(--koralle); animation: lm-puls 1s ease-in-out infinite; }
@keyframes lm-puls { 50% { opacity: .3; } }
.lm-held h1 { font-size: clamp(34px, 10vw, 64px); font-weight: 850; text-align: center; margin-top: 6px; }
.lm-held h1 em { font-style: normal; color: var(--koralle); position: relative; white-space: nowrap; z-index: 0; }
.lm-held h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .16em;
  background: var(--sonne); z-index: -1; border-radius: 4px;
}
.lm-held p.unter { font-size: 17px; color: var(--tinte-2); text-align: center; margin: 10px auto 16px; max-width: 34ch; }
.lm-held .lm-knopf { justify-self: center; }
.lm-held .klein { text-align: center; font-size: 14px; color: var(--tinte-3); margin: 10px 0 0; }
/* Handy: kompakt – Tick links neben Hinweis und Überschrift, damit die Bestseller früh ins Bild kommen */
@media (max-width: 640px) {
  .lm-held { padding: 6px 0 4px; }
  .lm-held .huelle {
    grid-template-columns: 92px 1fr; column-gap: 12px; row-gap: 6px; align-items: center;
    grid-template-areas: "bild marke" "bild titel" "unter unter" "klein klein";
  }
  .lm-held-bild { grid-area: bild; width: 92px; margin: 0; align-self: center; }
  .lm-held .lm-marke { grid-area: marke; justify-self: start; align-self: end; font-size: 12px; padding: 5px 10px; }
  .lm-held h1 { grid-area: titel; font-size: clamp(26px, 7.6vw, 34px); text-align: left; margin: 0; align-self: start; line-height: 1.08; }
  .lm-held p.unter { grid-area: unter; font-size: 15px; margin: 6px auto 4px; }
  /* Das Karussell steht direkt darunter – der Knopf dorthin wäre doppelt */
  .lm-held-knoepfe { display: none !important; }
  .lm-chip { display: none; }
  .lm-held .klein { grid-area: klein; font-size: 13px; margin: 2px 0 0; }
}

/* --- Held: moderner Auftritt ---------------------------------------------- */
/* Weicher Farbschein im Hintergrund statt flacher Fläche */
.lm-held { position: relative; isolation: isolate; }
.lm-held::before {
  content: ""; position: absolute; inset: -20% -10% 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 55% at 78% 45%, rgba(255, 201, 60, .38), transparent 70%),
    radial-gradient(35% 45% at 12% 20%, rgba(255, 90, 54, .12), transparent 70%),
    radial-gradient(30% 40% at 55% 95%, rgba(124, 116, 255, .10), transparent 70%);
  /* unten weich auslaufen – keine Kante zum nächsten Abschnitt */
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
/* Startseite: warmer Farbschein und interaktive Leinwand (hintergrund.js)
   liegen fest hinter der ganzen Seite, die Inhalte scrollen darüber. */
.lm-startseite::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38% 45% at 82% 30%, rgba(255, 201, 60, .32), transparent 70%),
    radial-gradient(32% 40% at 8% 12%, rgba(255, 90, 54, .10), transparent 70%),
    radial-gradient(40% 40% at 30% 90%, rgba(124, 116, 255, .08), transparent 70%);
}
.lm-seiten-leinwand { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }
/* Der Held bringt keinen eigenen Schein mehr mit – der liegt jetzt hinter der Seite */
.lm-startseite .lm-held::before { display: none; }
/* Tick: leuchtender Schein statt flachem gelbem Kreis */
.lm-held-bild::before {
  background: radial-gradient(circle at 40% 35%, #ffe07a, var(--sonne) 45%, #ffae2b 100%);
  box-shadow: 0 30px 60px -20px rgba(255, 150, 30, .55), inset 0 -10px 30px rgba(255, 120, 20, .25);
}
.lm-held-bild::after {
  content: ""; position: absolute; left: 4%; top: 8%; width: 96%; aspect-ratio: 1; z-index: -2;
  border-radius: 50%; border: 2px dashed rgba(255, 90, 54, .28);
  animation: lm-drehen 40s linear infinite;
}
@keyframes lm-drehen { to { transform: rotate(360deg); } }
/* Hinweis-Pille: glasig */
.lm-marke {
  background: rgba(31, 29, 69, .92); backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(31, 29, 69, .18);
}
/* Überschrift: „Kein Drama.“ im Farbverlauf, Unterstrich als weicher Pinselstrich */
.lm-held h1 { letter-spacing: -.025em; line-height: 1.02; }
.lm-held h1 em {
  background: linear-gradient(95deg, #ff5a36 10%, #ff8a3d 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lm-held h1 em::after {
  height: .2em; bottom: -.02em; border-radius: 999px; opacity: .85;
  background: linear-gradient(90deg, var(--sonne), #ffdd7a);
}
/* Knöpfe: Hauptknopf mit Pfeil, daneben ein zarter zweiter */
.lm-held-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; justify-self: center; }
.lm-held .lm-knopf {
  background: linear-gradient(135deg, #ff6b3d, #ff4f36);
  box-shadow: 0 10px 24px -8px rgba(255, 79, 54, .65), inset 0 1px 0 rgba(255, 255, 255, .25);
  padding: 0 24px 0 28px;
}
.lm-held .lm-knopf svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.lm-held .lm-knopf:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(255, 79, 54, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.lm-held .lm-knopf:hover svg { transform: translateX(3px); }
.lm-held .lm-knopf:active { transform: translateY(0); }
.lm-knopf-zart {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; border-radius: 999px;
  font-weight: 750; font-size: 16px; color: var(--tinte); text-decoration: none;
  background: rgba(255, 255, 255, .7); backdrop-filter: blur(6px);
  box-shadow: 0 0 0 1.5px rgba(31, 29, 69, .12) inset;
  transition: background .15s ease, box-shadow .15s ease;
}
.lm-knopf-zart:hover { background: #fff; box-shadow: 0 0 0 1.5px rgba(31, 29, 69, .25) inset; }
/* Kleinzeile als Häkchen-Liste */
.lm-held .lm-vorteile { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.lm-vorteile span { display: inline-flex; align-items: center; gap: 6px; color: var(--tinte-2); font-weight: 600; }
.lm-vorteile svg {
  width: 18px; height: 18px; padding: 3px; border-radius: 50%; flex: none;
  background: #dff3ec; stroke: var(--gruen, #1f9d6b); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}
/* Schwebende Kärtchen um Tick */
.lm-chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 14px; font-weight: 800; font-size: 14px; color: var(--tinte);
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px -10px rgba(31, 29, 69, .35), 0 0 0 1px rgba(255, 255, 255, .6) inset;
  animation: lm-schweben 5s ease-in-out infinite;
}
.lm-chip svg { width: 18px; height: 18px; fill: none; stroke: var(--koralle); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lm-chip.c1 { left: -6%; top: 22%; }
.lm-chip.c2 { right: -4%; top: 8%; animation-delay: -1.6s; }
.lm-chip.c3 { right: 0; bottom: 14%; animation-delay: -3.2s; }
@keyframes lm-schweben { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .lm-chip, .lm-held-bild::after { animation: none; } }
@media (max-width: 719px) { .lm-chip { display: none; } }
/* Handy: alles bündig links, Vorteile als kleine Pillen – ruhiger und aufgeräumter */
@media (max-width: 640px) {
  .lm-held { padding: 10px 0 6px; }
  .lm-held .huelle { grid-template-columns: 100px 1fr; column-gap: 14px; row-gap: 8px; }
  .lm-held-bild { width: 100px; }
  .lm-held-bild::after { display: none; }
  .lm-held .lm-marke { font-size: 11.5px; padding: 5px 10px; }
  .lm-held h1 { font-size: clamp(28px, 8.2vw, 36px); letter-spacing: -.03em; line-height: 1.02; }
  .lm-held p.unter { text-align: left; margin: 8px 0 2px; max-width: none; font-size: 15px; line-height: 1.5; }
  .lm-held .klein { text-align: left; margin: 4px 0 0; }
  /* Farbschein am Handy hinter Tick (links oben) */
  .lm-held::before {
    inset: -10% -10% -30%;
    background:
      radial-gradient(38% 30% at 18% 22%, rgba(255, 201, 60, .45), transparent 70%),
      radial-gradient(45% 30% at 85% 30%, rgba(255, 90, 54, .10), transparent 70%);
  }
  .lm-held .lm-vorteile { justify-content: flex-start; gap: 4px; font-size: 11.5px; }
  .lm-held .lm-vorteile span {
    padding: 4px 8px 4px 4px; gap: 3px; white-space: nowrap; border-radius: 999px; font-weight: 700;
    background: rgba(255, 255, 255, .75); box-shadow: 0 0 0 1px rgba(31, 29, 69, .07) inset, 0 4px 12px -6px rgba(31, 29, 69, .2);
  }
  .lm-held .lm-vorteile svg { width: 15px; height: 15px; }
}

/* --- Schritte ------------------------------------------------------------ */
/* „So geht's“: vier Schritte als helle Karten, verbunden durch eine gestrichelte Linie */
.lm-schritte { padding: 36px 0 30px; }
.lm-schritte h2 { font-size: 26px; margin-bottom: 20px; text-align: center; }
.lm-schritte ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
/* Handy: senkrechte Linie links durch alle Symbole */
.lm-schritte ol::before {
  content: ""; position: absolute; left: 39px; top: 30px; bottom: 30px;
  border-left: 2px dashed var(--linie); z-index: 0;
}
.lm-schritte li {
  position: relative; z-index: 1; display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: center;
  background: var(--papier); border-radius: var(--rund); padding: 14px 16px; box-shadow: var(--schatten);
}
.lm-s-symbol {
  grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sonne-hell); color: var(--tinte);
}
.lm-s-symbol svg { width: 24px; height: 24px; }
.lm-schritte li:nth-child(2) .lm-s-symbol { background: var(--koralle-hell); color: var(--koralle-dunkel); }
.lm-schritte li:nth-child(3) .lm-s-symbol { background: #dff3ec; color: var(--gruen); }
.lm-schritte li:nth-child(4) .lm-s-symbol { background: #e6e5f3; color: var(--tinte); }
.lm-s-nr {
  position: absolute; left: 50px; top: 10px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 900;
  background: var(--tinte); color: #fff; box-shadow: 0 0 0 2px var(--papier);
}
.lm-schritte b { display: block; font-size: 16px; align-self: end; }
.lm-s-text { font-size: 14px; color: var(--tinte-2); align-self: start; line-height: 1.35; }

/* --- Motive --------------------------------------------------------------- */
.lm-motive { padding: 36px 0 20px; }
.lm-motive h2 { font-size: 28px; }
.lm-motive .lead { color: var(--tinte-2); margin: 6px 0 16px; }
.lm-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 12px; margin: 0 -16px; scrollbar-width: none; }
.lm-chips::-webkit-scrollbar { display: none; }
.lm-chips button {
  flex: none; border: 2px solid var(--tinte); background: transparent; border-radius: 999px;
  padding: 7px 14px; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.lm-chips button[aria-pressed="true"] { background: var(--tinte); color: #fff; }
.lm-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lm-karte {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--papier); border-radius: var(--rund); padding: 10px; box-shadow: var(--schatten);
  transition: transform .15s ease;
}
.lm-karte:hover { transform: translateY(-3px); }
.lm-karte .rahmen {
  aspect-ratio: 3 / 4; display: grid; place-items: center;
  background: #efe6da; border-radius: 10px; padding: 6%;
}
.lm-karte .rahmen img { display: block; width: 100%; height: auto; }
/* Der Rahmen wie in 3D: Leiste 15 mm auf 210 mm (hoch) bzw. 297 mm (quer). */
.bilderrahmen {
  box-shadow: 0 8px 18px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.bilderrahmen.hoch { width: 96%; padding: 3%; }
.bilderrahmen.quer { width: 100%; padding: 2.5%; }
@media (max-width: 719px) { .lm-karte { padding: 8px; } }
.bilderrahmen img { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), 0 0 0 1px rgba(0, 0, 0, .25); }
.bilderrahmen.art-schwarz { background: linear-gradient(145deg, #2d2c35, #17161c); }
.bilderrahmen.art-weiss { background: linear-gradient(145deg, #ffffff, #e8e2d6); }
.bilderrahmen.art-silber { background: linear-gradient(135deg, #f4f6f8 0%, #b9c0ca 35%, #eef1f4 55%, #8e97a4 100%); }
.bilderrahmen.art-gold { background: linear-gradient(135deg, #fbe39a 0%, #d9a441 38%, #f6d77f 58%, #a8761c 100%); }
.bilderrahmen.art-ohne { padding: 0; background: none; box-shadow: 0 6px 14px rgba(0, 0, 0, .18); }
.lm-karte h3 { font-size: 15px; font-weight: 750; margin: 10px 2px 2px; letter-spacing: -.01em; }
.lm-karte .fuss { display: flex; justify-content: space-between; align-items: baseline; margin: 0 2px; font-size: 13px; color: var(--tinte-3); }
.lm-karte .preis { font-weight: 800; color: var(--koralle); font-size: 15px; }
.lm-leer { text-align: center; color: var(--tinte-3); padding: 24px 0; }

/* --- Häufige Fragen ------------------------------------------------------- */
.lm-fragen { padding: 28px 0 40px; }
.lm-fragen h2 { font-size: 26px; margin-bottom: 12px; }
.lm-fragen details { background: var(--papier); border-radius: var(--rund-klein); margin-bottom: 8px; }
.lm-fragen summary { cursor: pointer; font-weight: 700; padding: 14px 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lm-fragen summary::-webkit-details-marker { display: none; }
.lm-fragen summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--koralle); }
.lm-fragen details[open] summary::after { content: "–"; }
.lm-fragen details p { margin: 0; padding: 0 16px 14px; color: var(--tinte-2); }

/* --- Fuß ------------------------------------------------------------------ */
.lm-fuss { background: var(--tinte); color: #c9c7e0; padding: 28px 0 32px; font-size: 14px; }
.lm-fuss .huelle { display: grid; gap: 14px; }
.lm-fuss .lm-logo { color: #fff; }
.lm-fuss nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.lm-fuss a { color: #fff; text-decoration: none; }
.lm-fuss a:hover { text-decoration: underline; }

/* --- Motivseite (Editor) -------------------------------------------------- */
.lm-editor { padding: 8px 0 40px; }
.lm-zurueck { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--tinte-2); padding: 6px 0; }
.lm-editor-raster { display: grid; gap: 18px; }
.lm-buehne-huelle { position: sticky; top: 60px; z-index: 5; background: var(--creme); padding: 8px 0 10px; margin: 0 -16px; }
.lm-buehne {
  margin: 0 auto; background: #e9dfd2; border-radius: var(--rund); padding: 16px;
  display: grid; place-items: center;
}
.lm-buehne canvas {
  width: auto; height: auto; max-width: 100%;
  border: 8px solid var(--tinte); border-radius: 2px;
  box-shadow: 0 12px 28px rgba(31, 29, 69, .25);
  background: #fff;
}
.lm-buehne-huelle.klein .lm-buehne canvas { max-height: 34vh; }
.lm-buehne canvas.hoch { max-height: 44vh; }
.lm-buehne canvas.quer { max-height: 34vh; }
.lm-buehne-info { text-align: center; font-size: 12px; color: var(--tinte-3); margin-top: 6px; }
.lm-titel h1 { font-size: 28px; font-weight: 850; }
.lm-titel .preis { font-size: 20px; font-weight: 800; color: var(--koralle); margin-top: 4px; }
.lm-titel .preis small { font-size: 13px; color: var(--tinte-3); font-weight: 500; }
.lm-titel p { color: var(--tinte-2); margin: 8px 0 0; }
.lm-block { background: var(--papier); border-radius: var(--rund); padding: 18px 16px; box-shadow: var(--schatten); }
.lm-block h2 { font-size: 19px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.lm-block h2 .nr { width: 28px; height: 28px; border-radius: 50%; background: var(--sonne); display: grid; place-items: center; font-size: 15px; flex: none; }
.lm-feld { display: grid; gap: 6px; margin-bottom: 14px; }
.lm-feld:last-child { margin-bottom: 0; }
.lm-feld label { font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; gap: 8px; }
.lm-feld label .zaehler { font-weight: 500; font-size: 12px; color: var(--tinte-3); }
.lm-feld input[type="text"], .lm-feld input[type="email"], .lm-feld input[type="search"], .lm-feld textarea {
  width: 100%; border: 2px solid var(--linie); border-radius: var(--rund-klein);
  background: #fffdf9; padding: 12px 14px; font-size: 16px; /* 16px: iOS zoomt sonst */
  transition: border-color .15s ease;
}
/* Monat der Plakette: Auswahl im Look der Eingabefelder, eigener Pfeil */
.lm-feld select.lm-monat {
  width: 100%; border: 2px solid var(--linie); border-radius: var(--rund-klein); background-color: #fffdf9;
  padding: 12px 42px 12px 14px; font: inherit; font-size: 16px; color: var(--tinte); cursor: pointer;
  appearance: none; -webkit-appearance: none; transition: border-color .15s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff5a36' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
/* Handy: Rad zum Hochkant-Scrollen statt Aufklapp-Menü – drei Zeilen sichtbar, die Mitte gilt */
.lm-monat-rad { display: none; position: relative; border: 2px solid var(--linie); border-radius: var(--rund-klein); background: #fffdf9; }
.lm-monat-rad::before {
  content: ''; position: absolute; left: 6px; right: 6px; top: 40px; height: 40px; border-radius: 10px; pointer-events: none;
  background: linear-gradient(135deg, #ffe9e1, #ffd6c8); box-shadow: 0 0 0 1.5px rgba(255, 90, 54, .35) inset;
}
.lm-monat-liste {
  position: relative; height: 120px; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory;
  padding: 40px 0; box-sizing: border-box; scrollbar-width: none; touch-action: pan-y;
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
}
.lm-monat-liste::-webkit-scrollbar { display: none; }
.lm-monat-liste button {
  display: block; width: 100%; height: 40px; border: 0; background: none; scroll-snap-align: center;
  font: inherit; font-size: 16px; font-weight: 600; color: var(--tinte-3); cursor: pointer; transition: color .15s, font-size .15s;
}
.lm-monat-liste button.gewaehlt { color: var(--koralle-dunkel); font-size: 18px; font-weight: 850; }
@media (max-width: 900px) {
  .lm-feld select.lm-monat { display: none; }
  .lm-monat-rad { display: block; }
}
.lm-feld select.lm-monat:focus { outline: 0; border-color: var(--tinte); background-color: #fff; }
.lm-feld textarea { min-height: 96px; resize: vertical; line-height: 1.4; }
.lm-feld input[type="search"] { -webkit-appearance: none; appearance: none; }
/* Karte: +/- neben dem Adressfeld in dessen Look und Höhe */
.lm-karte-feld .lm-karte-zoom { gap: 6px; }
.lm-karte-feld .lm-karte-zoom button { width: 52px; height: 52px; border: 2px solid var(--linie); border-radius: var(--rund-klein); background: #fffdf9; color: var(--tinte); }
.lm-karte-feld .lm-karte-zoom button:hover { border-color: var(--tinte); background: #fff; }
.lm-feld input:focus, .lm-feld textarea:focus { outline: 0; border-color: var(--tinte); background: #fff; }
.lm-feld .hinweis { font-size: 13px; color: var(--tinte-3); }
.lm-feld .warnung { font-size: 13px; color: var(--rot); }
.lm-haken { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 14px; color: var(--tinte-2); margin: 14px 0; cursor: pointer; }
.lm-haken input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--koralle); }
.lm-summe { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px dashed var(--linie); padding-top: 12px; margin-top: 4px; }
.lm-summe b { font-size: 22px; }
.lm-summe small { color: var(--tinte-3); }
.lm-meldung { min-height: 1.2em; color: var(--rot); font-weight: 600; font-size: 14px; margin: 10px 0 0; }
.lm-stand { font-size: 13px; color: var(--tinte-3); margin: 8px 0 0; text-align: center; }
#paypalKnopf { margin-top: 14px; min-height: 52px; }
.lm-vorteile { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; font-size: 14px; color: var(--tinte-2); }
.lm-vorteile li { display: flex; gap: 8px; align-items: center; }
.lm-vorteile li::before { content: "✓"; color: var(--gruen); font-weight: 900; }

/* --- Fertig-Seite ---------------------------------------------------------- */
.lm-fertig { padding: 24px 0 48px; text-align: center; }
/* Download-Seite: Fuß immer ganz unten, der Inhalt steht mittig im Platz darüber */
body:has(> main.lm-fertig) { min-height: 100svh; display: flex; flex-direction: column; }
body:has(> main.lm-fertig) > main.lm-fertig { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; }
.lm-fertig .tick { width: 150px; margin: 0 auto; animation: lm-hopsen 1s ease-in-out infinite; }
@keyframes lm-hopsen { 50% { transform: translateY(-8px) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .lm-fertig .tick { animation: none; } }
.lm-fertig h1 { font-size: 34px; font-weight: 850; margin: 10px 0 8px; }
.lm-fertig .lead { color: var(--tinte-2); margin: 0 auto 20px; max-width: 34ch; }
.lm-fertig .lm-block { text-align: left; max-width: 520px; margin: 18px auto 0; }
.lm-fertig .knoepfe { display: grid; gap: 10px; max-width: 360px; margin: 0 auto; }
.lm-fertig ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--tinte-2); }
.lm-konfetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; }

/* --- Rechtstexte ----------------------------------------------------------- */
.lm-text { padding: 24px 0 48px; max-width: 760px; }
.lm-text h1 { font-size: 32px; margin-bottom: 18px; }
.lm-text h2 { font-size: 20px; margin: 26px 0 8px; }
.lm-text p, .lm-text li { color: var(--tinte-2); }
.lm-text .kasten { background: var(--papier); border-radius: var(--rund-klein); padding: 14px 16px; }

/* --- Desktop -------------------------------------------------------------- */
@media (min-width: 720px) {
  .lm-kopf nav .nur-breit { display: inline-block; }
  .lm-held { padding: 40px 0 64px; }
  .lm-held .huelle { grid-template-columns: 1.2fr .8fr; align-items: center; gap: 24px; }
  .lm-held-bild { width: 340px; grid-column: 2; grid-row: 1 / span 5; margin: 0; }
  .lm-held .lm-marke, .lm-held-knoepfe { justify-self: start; }
  .lm-held h1, .lm-held p.unter, .lm-held .klein { text-align: left; margin-left: 0; }
  .lm-held h1 { font-size: clamp(44px, 4.9vw, 66px); }
  .lm-held p.unter { font-size: 18px; line-height: 1.55; max-width: 38ch; margin-bottom: 22px; }
  .lm-held .lm-vorteile { justify-content: flex-start; margin-top: 14px; font-size: 14.5px; }
  .lm-held-bild { width: clamp(320px, 38vw, 520px); justify-self: center; }
  .lm-schritte { padding: 48px 0 40px; }
  .lm-schritte h2 { font-size: 30px; margin-bottom: 28px; }
  .lm-schritte ol { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  /* Breit: waagerechte Linie durch die Symbole */
  .lm-schritte ol::before { left: 12%; right: 12%; top: 54px; bottom: auto; border-left: 0; border-top: 2px dashed var(--linie); }
  .lm-schritte li { grid-template-columns: 1fr; justify-items: center; text-align: center; align-items: start; row-gap: 6px; padding: 24px 18px 22px; }
  .lm-s-symbol { grid-row: auto; width: 60px; height: 60px; margin-bottom: 6px; }
  .lm-s-symbol svg { width: 28px; height: 28px; }
  .lm-s-nr { left: calc(50% + 16px); top: 18px; }
  .lm-schritte li { transition: transform .2s ease, box-shadow .2s ease; }
  .lm-schritte li:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(31,29,69,.06), 0 14px 30px rgba(31,29,69,.12); }
  .lm-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .lm-editor-raster { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; gap: 32px; }
  .lm-buehne-huelle { top: 76px; margin: 0; padding: 0; }
  .lm-buehne { padding: 32px; }
  .lm-buehne canvas.hoch, .lm-buehne canvas.quer, .lm-buehne-huelle.klein .lm-buehne canvas { max-height: calc(100vh - 170px); }
  .lm-rechts { display: grid; gap: 16px; }
  .lm-fuss .huelle { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 1000px) {
  .lm-raster { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --- Motivseite im Vollbild (motiv.html) ------------------------------------ */
/* Wie beim Grußkartenheld: die Seite füllt den ganzen Bildschirm, links die
   Bühne, rechts die Angaben. Keine Kopfzeile – der Rahmen soll wirken. */
body.lm-vollbild { overflow: hidden; }
.lm-ms {
  position: fixed; inset: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 30vw, 460px);
  background: var(--creme);
}
.lm-ms-buehne {
  position: relative; min-height: 0; overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 38%, #fffaf2 0%, rgba(255, 250, 242, 0) 70%),
    linear-gradient(180deg, #f3e9dc 0%, #e8dac6 62%, #dccab2 100%);
  transition: bottom .3s ease;
}
.lm-3d { position: absolute; inset: 0; }
.lm-3d-leinwand { width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.lm-3d-leinwand:active { cursor: grabbing; }
.lm-ms-flach {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%);
  max-width: 78%; max-height: 72%; width: auto; height: auto;
  border: 10px solid var(--tinte); box-shadow: 0 18px 40px rgba(31, 29, 69, .28); background: #fff;
}
.lm-ms-buehne.ist-3d .lm-ms-flach { display: none; }
/* Bis alles bereit ist: nur ein Ladekreis – kein leerer Rahmen, kein Blitzen. */
.lm-ms-buehne:not(.bereit) .lm-ms-flach,
.lm-ms-buehne:not(.bereit) .lm-3d,
.lm-ms-buehne:not(.bereit) .lm-ms-unten { visibility: hidden; }
.lm-ms-buehne.bereit .lm-lader { display: none; }
.lm-3d { transition: opacity .35s ease; }
.lm-ms-buehne:not(.bereit) .lm-3d { opacity: 0; }
.lm-lader { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.lm-lader.klein { position: static; padding: 60px 0; }
.lm-lader i {
  width: 44px; height: 44px; border-radius: 50%;
  border: 4px solid rgba(31, 29, 69, .12); border-top-color: var(--koralle);
  animation: lm-drehen .8s linear infinite;
}
@keyframes lm-drehen { to { transform: rotate(360deg); } }
.lm-ms-zurueck, .lm-ms-rund {
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, .88); color: var(--tinte); text-decoration: none; font-size: 20px; font-weight: 700;
  box-shadow: var(--schatten); cursor: pointer; backdrop-filter: blur(6px);
}
.lm-ms-rund svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lm-ms-zurueck { position: absolute; left: 16px; top: calc(14px + env(safe-area-inset-top)); z-index: 3; }
/* Sprachauswahl neben dem Zurück-Pfeil */
.lm-sprachwahl { position: absolute; left: 68px; top: calc(14px + env(safe-area-inset-top)); z-index: 3; }
.sw-knopf {
  display: flex; align-items: center; gap: 7px; height: 44px; padding: 0 30px 0 11px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .88) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231f1d45' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center / 11px;
  box-shadow: var(--schatten); font: 800 14px var(--schrift); color: var(--tinte); cursor: pointer; backdrop-filter: blur(6px);
}
.lm-sprachwahl img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none;
  box-shadow: 0 0 0 1px rgba(31, 29, 69, .12); }
.sw-liste {
  position: absolute; top: calc(100% + 8px); left: 0; margin: 0; padding: 6px; list-style: none; min-width: 172px;
  background: #fff; border-radius: 16px; box-shadow: 0 14px 40px -12px rgba(31, 29, 69, .35), 0 0 0 1px rgba(31, 29, 69, .06);
  animation: lm-sprache-auf .16s ease-out;
}
.sw-liste li {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; cursor: pointer;
  font: 700 15px var(--schrift); color: var(--tinte);
}
.sw-liste { max-height: min(62vh, 440px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; touch-action: pan-y; max-width: calc(100vw - 32px); }
.sw-liste li .sw-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-liste li .sw-name { flex: 1; }
.sw-liste li small { font-size: 11px; font-weight: 800; color: var(--tinte-3); letter-spacing: .04em; }
.sw-liste li[aria-selected="true"] small { display: none; }
.sw-liste li:hover { background: rgba(31, 29, 69, .06); }
.sw-liste li[aria-selected="true"] { background: var(--koralle-hell); }
.sw-liste li[aria-selected="true"]::after { content: '✓'; margin-left: auto; color: var(--koralle-dunkel); font-weight: 900; }
/* Im Seitenkopf der Startseite: im Fluss, Liste rechtsbündig */
.lm-sprachwahl.im-kopf { position: relative; left: auto; top: auto; z-index: 20; margin-left: 4px; }
.lm-sprachwahl.im-kopf .sw-knopf { height: 38px; background-color: var(--papier); box-shadow: 0 0 0 1px var(--linie); backdrop-filter: none; }
.lm-sprachwahl.im-kopf .sw-liste { left: auto; right: 0; }
/* Schmal: nur die runde Flagge, damit Logo und „Motive“ Platz haben */
@media (max-width: 520px) {
  .lm-sprachwahl.im-kopf .sw-knopf { width: 38px; padding: 0; justify-content: center; background-image: none; }
  .lm-sprachwahl.im-kopf .sw-knopf span { display: none; }
}
@media (max-width: 400px) {
  .lm-kopf .lm-logo { font-size: 19px; gap: 7px; }
  .lm-kopf .lm-logo img { width: 38px; height: 38px; }
  .lm-kopf nav a { padding: 8px 8px; }
}
@keyframes lm-sprache-auf { from { opacity: 0; transform: translateY(-4px); } }
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lm-ms-marke {
  position: absolute; left: 50%; top: calc(18px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 3;
  display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -.03em; white-space: nowrap;
}
.lm-ms-marke img { width: 38px; height: 38px; }
.lm-ms-marke b { color: var(--koralle); }
.lm-ms-unten {
  position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 3;
  display: grid; justify-items: center; gap: 10px; padding: 0 16px; pointer-events: none;
}
.lm-ms-unten > * { pointer-events: auto; }
.lm-ms-werkzeug { display: flex; align-items: center; gap: 10px; }
.lm-ms-tipp { font-size: 12px; color: var(--tinte-2); background: rgba(255, 255, 255, .6); padding: 4px 10px; border-radius: 999px; }
/* Am Rechner mittig über den Werkzeugen, am Handy oben rechts. */
.lm-rahmenwahl {
  position: absolute; z-index: 3; left: 50%; transform: translateX(-50%);
  bottom: calc(18px + 44px + 10px + env(safe-area-inset-bottom));
  display: flex; justify-content: center; gap: 8px; flex-wrap: nowrap; white-space: nowrap;
}
/* Farbpunkte für den Rahmen – nur solange er an ist */
.lm-farbpunkte {
  display: inline-flex; gap: 6px; padding: 5px 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); box-shadow: var(--schatten);
}
.lm-farbpunkte button {
  width: 30px; height: 30px; padding: 0; border: 2px solid transparent; border-radius: 50%;
  background: none; cursor: pointer; display: grid; place-items: center;
}
.lm-farbpunkte button i { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.lm-farbpunkte button[aria-pressed="true"] { border-color: var(--tinte); }
/* Schalter „Rahmen“ an/aus */
.lm-rahmen-schalter {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none;
  background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 6px 8px 6px 14px;
  box-shadow: var(--schatten); font-weight: 700; font-size: 14px; color: var(--tinte);
}
.lm-rahmen-schalter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lm-rahmen-schalter i {
  position: relative; width: 44px; height: 26px; border-radius: 999px; background: #cfc6b8; transition: background .2s ease;
}
.lm-rahmen-schalter i::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s ease;
}
.lm-rahmen-schalter input:checked + i { background: var(--tinte); }
.lm-rahmen-schalter input:checked + i::after { transform: translateX(18px); }
.lm-rahmen-schalter input:focus-visible + i { outline: 3px solid var(--sonne); outline-offset: 2px; }
.lm-rahmenwahl button {
  display: inline-flex; align-items: center; gap: 6px; border: 2px solid transparent; background: rgba(255, 255, 255, .92);
  border-radius: 999px; padding: 5px 11px 5px 6px; font-weight: 700; font-size: 13px; cursor: pointer; box-shadow: var(--schatten);
}
.lm-rahmenwahl button i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.lm-rahmenwahl button[aria-pressed="true"] { border-color: var(--tinte); }
.lm-ms-ruf { display: none; }

.lm-ms-angaben {
  position: relative; overflow: auto; min-height: 0;
  padding: 34px 28px 40px; background: var(--creme); border-left: 1px solid var(--linie);
  scrollbar-width: thin;
}
.lm-ms-zu { display: none; }
.lm-ms-anlass { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--koralle); }
.lm-ms-kopf h1 { font-size: clamp(28px, 2.6vw, 38px); font-weight: 850; }
.lm-ms-preis { margin: 8px 0 0; }
.lm-ms-preis b { font-size: 24px; color: var(--koralle); }
.lm-ms-preis span { font-size: 13px; color: var(--tinte-3); }
.lm-ms-text { color: var(--tinte-2); margin: 10px 0 0; }
.lm-ms-text.zu { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lm-ms-mehr { background: none; border: 0; padding: 4px 0; margin: 2px 0 0; font: inherit; font-weight: 600; color: var(--koralle-dunkel); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lm-rahmen-hinweis {
  display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 14px; padding: 8px 12px;
  font-size: 13px; line-height: 1.4; color: var(--tinte-2); background: var(--sonne-hell); border-radius: 10px;
}
.lm-rahmen-hinweis::before { content: "ⓘ"; font-weight: 700; color: var(--tinte); }
.lm-ms-block { background: var(--papier); border-radius: var(--rund); padding: 18px 16px; box-shadow: var(--schatten); margin-top: 18px; }
.lm-ms-block h2 { font-size: 19px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.lm-ms-block h2 .nr { width: 28px; height: 28px; border-radius: 50%; background: var(--sonne); display: grid; place-items: center; font-size: 15px; flex: none; }
.lm-ms-weiter { display: none; margin-top: 4px; }
.lm-schritt-kopf, .lm-schritt-knoepfe #schrittZurueck, .lm-texte-aendern { display: none; }
.lm-ms-recht { margin-top: 22px; font-size: 12px; color: var(--tinte-3); text-align: center; }
.lm-ms-recht a { color: inherit; }

/* Am Handy: nur der Rahmen. Die Angaben liegen als Blatt darunter bereit. */
@media (max-width: 900px) {
  .lm-ms { display: block; height: 100vh; height: 100svh; bottom: auto; }
  html:has(body.lm-vollbild), body.lm-vollbild { overscroll-behavior: none; }
  /* Auf der ganzen Motivseite nur wischen, nicht zoomen – der Rahmen zoomt selbst. */
  body.lm-vollbild, .lm-ms, .lm-ms-angaben, .lm-ms-ruf { touch-action: pan-x pan-y; }
  .lm-ms-buehne { position: absolute; left: 0; right: 0; top: 0; bottom: 0; }
  .lm-ms-unten { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .lm-ms-tipp { display: none; }
  .lm-ms-unten { display: flex; justify-content: center; align-items: center; gap: 5px; padding: 0 8px; }
  .lm-rahmenwahl {
    left: auto; right: 12px; transform: none; bottom: auto; top: calc(18px + env(safe-area-inset-top));
    gap: 5px; justify-content: flex-end; flex-direction: column; align-items: flex-end;
  }
  /* Das Logo braucht es in der Ansicht nicht – dort stehen jetzt die Farben. */
  .lm-ms-marke { display: none; }
  .lm-ms.blatt-offen .lm-rahmenwahl { display: none; }
  .lm-rahmen-schalter { gap: 7px; padding: 5px 6px 5px 10px; font-size: 13px; }
  .lm-rahmen-schalter i { width: 40px; height: 24px; }
  .lm-rahmen-schalter i::after { width: 18px; height: 18px; }
  .lm-rahmen-schalter input:checked + i::after { transform: translateX(16px); }
  .lm-rahmenwahl button { font-size: 0; gap: 0; padding: 0; width: 36px; height: 36px; justify-content: center; }
  .lm-rahmenwahl button i { width: 22px; height: 22px; }
  .lm-ms-werkzeug { gap: 5px; }
  .lm-ms-werkzeug .lm-ms-rund { width: 36px; height: 36px; }
  .lm-ms-werkzeug .lm-ms-rund svg { width: 17px; height: 17px; }
  .lm-ms-ruf {
    position: absolute; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 4;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-radius: 22px; padding: 10px 10px 10px 18px;
    box-shadow: 0 10px 30px rgba(31, 29, 69, .18);
  }
  .lm-ms-ruf p { margin: 0; display: grid; line-height: 1.15; }
  .lm-ms-ruf b { font-size: 20px; color: var(--koralle); }
  .lm-ms-ruf p span { font-size: 12px; color: var(--tinte-3); }
  .lm-ms-ruf .lm-knopf { min-height: 48px; padding: 0 18px; font-size: 16px; }

  .lm-ms-angaben {
    position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; top: auto;
    max-height: 62svh; padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
    border-left: 0; border-radius: 24px 24px 0 0; box-shadow: 0 -12px 40px rgba(31, 29, 69, .2);
    transform: translateY(105%); visibility: hidden;
    transition: transform .3s ease, visibility 0s linear .3s;
    overscroll-behavior: contain;
  }
  .lm-ms.blatt-offen .lm-ms-angaben { transform: none; visibility: visible; transition: transform .3s ease, visibility 0s; }
  .lm-ms.blatt-offen .lm-ms-ruf, .lm-ms.blatt-offen .lm-ms-unten, .lm-ms.blatt-offen .lm-ms-marke, .lm-ms.blatt-offen .lm-sprachwahl { display: none; }
  .lm-ms-zu {
    display: grid; place-items: center; position: absolute; top: 14px; right: 12px; z-index: 2;
    width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--linie); color: var(--tinte); font-size: 16px; cursor: pointer;
  }
  /* Kopfdaten stehen schon im Ruf – im Blatt zählt die Eingabe. */
  .lm-ms-kopf { display: none; }
  .lm-ms-block { margin-top: 0; box-shadow: none; padding: 4px 0 0; background: transparent; }
  .lm-ms-block + .lm-ms-block { margin-top: 18px; padding-top: 18px; border-top: 2px dashed var(--linie); }
  .lm-ms-weiter { display: flex; }

  /* Ein Feld nach dem anderen: das Blatt bleibt niedrig, der Rahmen groß. */
  .lm-ms-angaben { max-height: 70svh; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .lm-ms:not(.an-kasse) .lm-ms-angaben { overflow: hidden; }
  /* Der Name steht schon in der Kopfzeile – über dem Feld braucht es ihn nicht. */
  #felder .lm-feld > label:not(.lm-collage-hoch):not(.lm-collage-anzahl) { display: none; }
  /* Foto-Zahl: Upload, Fotoleiste und Bearbeiten brauchen mehr Platz – das Blatt darf scrollen,
     die Fotos stehen in einer Reihe zum Wischen */
  .lm-ms:not(.an-kasse) .lm-ms-angaben:has(.lm-collage.dran) { overflow-y: auto; }
  #felder .lm-collage .lm-collage-anzahl { margin: 6px 0 2px; }
  /* Fotos in einer Reihe zum Wischen, die „+“-Kachel vorne */
  #felder .lm-collage-fotos { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; margin-top: 4px; scrollbar-width: none; touch-action: pan-x; }
  #felder .lm-collage-fotos button { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
  /* Solange noch kein Foto drin ist: das erste Foto hüpft und zeigt nach oben – „hochziehen!“ */
  #felder .lm-collage-fotos { padding-top: 12px; }
  #felder .lm-collage-fotos .lm-collage-plus { align-self: flex-end; }
  #felder .lm-collage-fotos button.lm-hochhinweis { animation: lm-hochhuepfer 1.8s ease-in-out infinite; overflow: visible; }
  #felder .lm-collage-fotos button.lm-hochhinweis img { border-radius: 8px; }
  #felder .lm-collage-fotos button.lm-hochhinweis::before {
    content: "↑"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, .95); color: var(--koralle); font-size: 18px; font-weight: 900; line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  }
  @keyframes lm-hochhuepfer {
    0%, 55%, 100% { transform: translateY(0); }
    20% { transform: translateY(-11px); }
    32% { transform: translateY(0); }
    42% { transform: translateY(-5px); }
  }
  @media (prefers-reduced-motion: reduce) { #felder .lm-collage-fotos button.lm-hochhinweis { animation: none; } }
  #felder .lm-collage-fotos button, #felder .lm-collage-plus { flex: 0 0 58px; }
  #felder .lm-collage-plus { display: grid; }
  /* Beim Bearbeiten eines Fotos nur das Nötigste – der Rahmen soll groß bleiben */
  #felder .lm-feld { gap: 4px; }
  #felder .lm-feld .hinweis { font-size: 12px; }
  #felder .lm-feld .warnung:not([hidden]) { font-size: 12px; }
  #felderForm h2, #kasse h2 { display: none; }
  /* Kopfzeile: Schritt links, rechts ← → und daneben das ✕ (schwebt). */
  .lm-schritt-kopf { display: flex; align-items: center; gap: 6px; margin: 0 44px 8px 0; min-height: 36px; font-size: 13px; color: var(--tinte-2); }
  .lm-schritt-kopf span { margin-right: auto; }
  .lm-schritt-kopf b { color: var(--tinte); }
  .lm-pfeil {
    flex: none; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 999px; border: 0;
    background: var(--linie); color: var(--tinte); font-weight: 800; font-size: 16px; cursor: pointer;
  }
  .lm-pfeil.haupt { background: var(--koralle); color: #fff; }
  .lm-pfeil.breit { font-size: 14px; padding: 0 14px; }
  .lm-schritt-knoepfe { display: none !important; }
  #felder .lm-feld { margin-bottom: 0; }
  #felder .lm-feld:not(.dran) { display: none; }
  .lm-schritt-knoepfe { display: flex; gap: 8px; margin-top: 12px; }
  .lm-schritt-knoepfe .lm-knopf { min-height: 48px; }
  .lm-schritt-knoepfe .lm-knopf.leise, .lm-schritt-knoepfe #schrittZurueck { display: inline-flex; flex: 0 0 auto; padding: 0 18px; }
  .lm-ms-weiter { margin-top: 0; }
  /* Kasse: erst nach dem letzten Feld, dann ohne die Felder darüber. */
  .lm-ms:not(.an-kasse) #kasse { display: none; }
  .lm-ms.an-kasse #felderForm { display: none; }
  .lm-ms.an-kasse .lm-ms-block + .lm-ms-block { margin-top: 0; padding-top: 0; border-top: 0; }
  .lm-texte-aendern {
    display: inline-block; border: 0; background: none; padding: 4px 0 10px; font-weight: 700; font-size: 14px;
    color: var(--tinte-2); cursor: pointer;
  }
  .lm-ms-recht { margin-top: 14px; }
  .lm-ms:not(.an-kasse) .lm-ms-recht { display: none; }
  .lm-ms.an-kasse .lm-vorteile { display: none; }
  .lm-ms-marke span { display: none; }

  /* Kasse am Handy: nur das untere Drittel – der Rest gehört der Vorschau mit
     dem PDF-Symbol. Der Inhalt scrollt im Blatt selbst. */
  .lm-ms.an-kasse .lm-ms-angaben {
    max-height: 50svh; overflow-y: auto; overflow-x: hidden; overscroll-behavior-x: none; touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    padding-top: 8px; border-radius: 20px 20px 0 0;
  }
  .lm-ms.an-kasse .lm-texte-aendern { padding: 2px 0 6px; font-size: 13px; }
  .lm-ms.an-kasse .lm-ms-zu { top: 8px; width: 32px; height: 32px; }
  .lm-ms.an-kasse #kasse .lm-feld { gap: 4px; margin-bottom: 8px; }
  .lm-ms.an-kasse #kasse .lm-feld label { font-size: 14px; }
  .lm-ms.an-kasse #kasse .lm-feld .hinweis { font-size: 11.5px; }
  .lm-ms.an-kasse .lm-haken { font-size: 13px; line-height: 1.4; gap: 10px; margin: 4px 0 8px; }
  .lm-ms.an-kasse .lm-summe { margin: 6px 0 8px; padding-top: 8px; }
  .lm-ms.an-kasse .lm-summe b { font-size: 22px; }
  .lm-ms.an-kasse #kasse .lm-stand { font-size: 11.5px; margin: 6px 0 0; }
  .lm-ms.an-kasse .lm-ms-recht { margin-top: 8px; }
  /* Es geht weiter unten: der Inhalt blendet unten weich aus, ein Pfeil wippt.
     Verschwindet, sobald man unten angekommen ist (motiv.js setzt .mehr-unten). */
  .lm-ms.an-kasse .lm-ms-angaben::after {
    content: ""; position: sticky; display: block; bottom: calc(-24px - env(safe-area-inset-bottom));
    height: 96px; margin: -96px -12px calc(-24px - env(safe-area-inset-bottom)); pointer-events: none;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1d45' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center 22px / 34px 34px no-repeat,
      linear-gradient(to bottom, rgba(255, 246, 236, 0), var(--creme) 55%);
    opacity: 0; transition: opacity .25s ease;
  }
  .lm-ms.an-kasse.mehr-unten .lm-ms-angaben::after { opacity: 1; animation: lm-mehr-wippen 1.4s ease-in-out infinite; }
  .lm-ms.an-kasse.email-tippt .lm-ms-angaben::after { display: none; }
  @keyframes lm-mehr-wippen {
    50% { background-position: center 29px, 0 0; }
  }
  /* Tastatur offen im E-Mail-Feld: nur das Feld – spart Platz über der Tastatur */
  .lm-ms.an-kasse.email-tippt #kasse > :not(.lm-feld),
  .lm-ms.an-kasse.email-tippt .lm-ms-recht { display: none; }
  .lm-ms.an-kasse.email-tippt #kasse .lm-feld { margin-bottom: 0; }
  .lm-ms.an-kasse.email-tippt #kasse .lm-feld .hinweis { display: none; }
  .lm-ms.an-kasse.email-tippt .lm-ms-angaben { padding-top: 14px; }
}

/* ===== Bilderwand (3D) ===== */
.lm-wand { background: transparent; padding-top: 28px; }
/* Die Leinwand hat oben Luft über den Rahmen – die Überschrift rückt in diese Luft hinein */
.lm-wand-titel { font-size: 26px; text-align: center; margin-bottom: -30px; position: relative; z-index: 1; pointer-events: none; }
@media (min-width: 880px) { .lm-wand-titel { font-size: 30px; margin-bottom: -8px; } }
.lm-wand-buehne { position: relative; height: min(62vh, 470px); max-width: 1400px; margin: 0 auto; }
/* Über die ganze Breite, zu den Seiten weich ausgeblendet statt hart abgeschnitten */
@media (min-width: 641px) {
  .lm-wand-buehne canvas { -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
}
.lm-wand-buehne canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
@media (max-width: 640px) { .lm-wand { padding-top: 8px; } .lm-wand-buehne { height: min(64vh, 520px); } }
.lm-wand-pfeil {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--tinte); box-shadow: var(--schatten);
  transition: transform .15s ease, background .15s ease;
}
.lm-wand-pfeil.links { left: max(12px, calc(50% - 680px)); }
.lm-wand-pfeil.rechts { right: max(12px, calc(50% - 680px)); }
.lm-wand-pfeil:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.lm-wand-pfeil:active { transform: translateY(-50%) scale(.95); }
.lm-wand-pfeil svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) { .lm-wand-pfeil { width: 40px; height: 40px; } .lm-wand-pfeil.links { left: 6px; } .lm-wand-pfeil.rechts { right: 6px; } }
.lm-wand-punkte { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.lm-wand-punkte button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(31, 29, 69, .25); cursor: pointer; transition: width .25s, background .25s; }
.lm-wand-punkte button[aria-current="true"] { width: 22px; border-radius: 999px; background: var(--koralle); }

/* --- „So geht's“ im Stil des neuen Kopfbereichs ------------------------------
   Glas-Karten, Symbole als farbige Verlaufs-Kacheln, große zarte Schrittzahl,
   verbunden durch eine weiche Verlaufslinie statt der grauen Strichellinie. */
.lm-schritte h2 { letter-spacing: -.02em; }
.lm-schritte ol::before {
  border: 0; width: 2px; background: linear-gradient(to bottom, #ffc93c, #ff5a36 55%, #7c74ff); opacity: .35; border-radius: 2px;
}
.lm-schritte li {
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .8) inset, 0 12px 32px -14px rgba(31, 29, 69, .28);
  border-radius: 22px; overflow: hidden;
}
.lm-s-symbol {
  border-radius: 16px; color: #fff !important;
  background: linear-gradient(135deg, #ffd45e, #ffae2b) !important; box-shadow: 0 10px 20px -10px rgba(255, 160, 30, .9);
}
.lm-schritte li:nth-child(2) .lm-s-symbol { background: linear-gradient(135deg, #ff8a5c, #ff4f36) !important; box-shadow: 0 10px 20px -10px rgba(255, 79, 54, .9); }
.lm-schritte li:nth-child(3) .lm-s-symbol { background: linear-gradient(135deg, #3fcf9b, #1f9d74) !important; box-shadow: 0 10px 20px -10px rgba(31, 157, 116, .9); }
.lm-schritte li:nth-child(4) .lm-s-symbol { background: linear-gradient(135deg, #9a93ff, #6a5cf0) !important; box-shadow: 0 10px 20px -10px rgba(106, 92, 240, .9); }
.lm-s-symbol svg { stroke-width: 2.2; }
/* Die Schrittzahl groß und zart in der Ecke */
.lm-s-nr {
  left: auto !important; right: 12px; top: 4px !important; width: auto; height: auto; border-radius: 0;
  background: none; box-shadow: none; font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: -.04em;
  background-image: linear-gradient(160deg, rgba(31, 29, 69, .14), rgba(31, 29, 69, 0) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  pointer-events: none;
}
.lm-schritte b { letter-spacing: -.01em; }
@media (min-width: 720px) {
  .lm-schritte ol::before { width: auto; height: 2px; top: 62px; left: 14%; right: 14%; background: linear-gradient(90deg, #ffc93c, #ff5a36 40%, #1f9d74 70%, #7c74ff); }
  .lm-schritte li { padding: 28px 20px 24px; }
  .lm-s-symbol { width: 64px; height: 64px; border-radius: 20px; }
  .lm-s-nr { right: 16px; top: 10px !important; font-size: 56px; }
  .lm-schritte li { transition: transform .25s ease, box-shadow .25s ease; }
  .lm-schritte li:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .9) inset, 0 20px 40px -16px rgba(31, 29, 69, .35); }
  .lm-schritte li:hover .lm-s-symbol { transform: rotate(-6deg) scale(1.06); }
  .lm-s-symbol { transition: transform .25s ease; }
}
@media (prefers-reduced-motion: reduce) { .lm-schritte li:hover, .lm-schritte li:hover .lm-s-symbol { transform: none; } }

/* --- Preis und Zahlungsart unter den Produkten -------------------------------
   Eine ruhige Zeile: der Betrag trägt, der Rest erklärt, PayPal als Plättchen. */
.lm-preiszeile {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px;
  max-width: 1100px; margin: 10px auto 0; padding: 0 16px; text-align: center;
}
.lm-preiszeile[hidden] { display: none; }
.lm-preiszeile b { font-size: 21px; font-weight: 850; letter-spacing: -.01em; color: var(--tinte); }
.lm-preiszeile > span { font-size: 13.5px; color: var(--tinte-2); }
.lm-zahlung {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 5px 4px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: var(--tinte-2) !important;
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(6px);
  box-shadow: 0 0 0 1px rgba(31, 29, 69, .10) inset, 0 6px 16px -10px rgba(31, 29, 69, .35);
}
.lm-zahlung img { height: 26px; width: auto; display: block; padding: 5px 10px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(31, 29, 69, .08) inset; }
@media (max-width: 640px) {
  .lm-preiszeile { gap: 4px 8px; margin-top: 6px; }
  .lm-preiszeile b { font-size: 19px; }
  .lm-preiszeile > span { font-size: 12.5px; }
}

/* --- Produktseite: der Kasten, der gerade dran ist, pulsiert sanft ------------
   (motiv.js setzt .lm-dran: erst „1 Mach es persönlich“, dann „2 Bezahlen“).
   Der Leuchtrahmen ist eine eigene Ebene mit etwas Luft – so verschiebt sich
   nichts, und am Handy (Kästen ohne Hintergrund) klebt er nicht am Text. */
.lm-ms-block.lm-dran { position: relative; }
.lm-ms-block.lm-dran::after {
  content: ""; position: absolute; inset: -6px; border-radius: calc(var(--rund) + 6px); pointer-events: none;
  animation: lm-dran-puls 1.8s ease-in-out infinite;
}
.lm-ms-block.lm-dran h2 .nr { animation: lm-dran-nr 1.8s ease-in-out infinite; }
@keyframes lm-dran-puls {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 54, 0); }
  50% { box-shadow: 0 0 0 3px rgba(255, 90, 54, .55), 0 0 22px 4px rgba(255, 90, 54, .22); }
}
@keyframes lm-dran-nr {
  0%, 100% { transform: scale(1); background: var(--sonne); color: var(--tinte); }
  50% { transform: scale(1.18); background: var(--koralle); color: #fff; }
}
@media (max-width: 900px) { .lm-ms-block.lm-dran::after { inset: -2px -6px -8px; } }
@media (prefers-reduced-motion: reduce) {
  .lm-ms-block.lm-dran::after { animation: none; box-shadow: 0 0 0 3px rgba(255, 90, 54, .55); }
  .lm-ms-block.lm-dran h2 .nr { animation: none; background: var(--koralle); color: #fff; }
}

/* --- Kasse: Hinweis „Du erhältst eine PDF …“ direkt über dem Kaufen-Knopf ----
   Kompakt: eine schmale Zeile, höchstens zwei Zeilen Text – gut lesbar. */
.lm-pdf-info {
  display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 6px 10px;
  border-radius: 10px; background: var(--koralle-hell); color: var(--koralle-dunkel);
  font-size: 12px; font-weight: 600; line-height: 1.3; letter-spacing: -.005em;
}
.lm-pdf-info svg { flex: none; width: 16px; height: auto; }
.lm-pdf-info span { color: var(--tinte); }

/* --- Startseite: „Nach Anlass“ – Kacheln mit gefächertem Motiv-Stapel ----------
   Wie beim Grußkartenheld, im hellen Kleid: Glas-Kachel, drei Motive gefächert
   (Maus darüber: sie rücken auseinander), unten ein schräges Etikett. */
.lm-anlaesse { padding: 18px 0 8px; }
.lm-anlaesse-titel {
  display: flex; align-items: center; gap: 14px; justify-content: center; margin: 0 0 14px;
  font-size: 13px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; color: var(--koralle-dunkel);
}
.lm-anlaesse-titel::before, .lm-anlaesse-titel::after {
  content: ""; flex: 1; max-width: 220px; height: 1px; background: linear-gradient(90deg, transparent, rgba(224, 67, 31, .45));
}
.lm-anlaesse-titel::after { background: linear-gradient(90deg, rgba(224, 67, 31, .45), transparent); }
.lm-anlass-reihe { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.lm-anlass-kachel {
  position: relative; width: 340px; height: 262px; padding: 14px; border: 0; cursor: pointer;
  display: grid; align-items: end; justify-items: start; text-align: left; font: inherit; text-decoration: none; color: inherit;
  border-radius: 18px; background: rgba(255, 255, 255, .62); backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .85) inset, 0 12px 30px -16px rgba(31, 29, 69, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.lm-anlass-kachel:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .95) inset, 0 18px 36px -16px rgba(31, 29, 69, .42); }
.lm-anlass-kachel[aria-current="true"] { box-shadow: 0 0 0 2px var(--koralle) inset, 0 18px 36px -16px rgba(224, 67, 31, .45); }
.lm-anlass-stapel { position: absolute; left: 0; right: 0; top: 14px; height: 186px; display: grid; place-items: center; perspective: 700px; }
.lm-anlass-blatt {
  position: absolute; height: 164px; width: auto; max-width: 150px; object-fit: contain; background: #fff;
  /* Schwarzer Bilderrahmen wie im Karussell – mit feiner Kante und Schatten */
  border: 5px solid #1d1c24; border-radius: 2px; box-sizing: content-box;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25), 0 0 0 1px rgba(255, 255, 255, .08), 0 12px 20px -8px rgba(31, 29, 69, .5);
  transition: transform .3s cubic-bezier(.22, .9, .3, 1);
}
.lm-anlass-blatt.quer { height: auto; width: 150px; max-width: none; }
.lm-anlass-blatt:nth-child(1) { transform: translateX(-66px) rotateY(40deg) rotate(-5deg) scale(.84); }
.lm-anlass-blatt:nth-child(2) { transform: translateX(66px) rotateY(-40deg) rotate(5deg) scale(.84); }
.lm-anlass-blatt:nth-child(3) { transform: translateY(-3px) scale(1.06); }
@media (hover: hover) {
  .lm-anlass-kachel:hover .lm-anlass-blatt:nth-child(1) { transform: translateX(-98px) rotateY(14deg) rotate(-3deg) scale(.94); }
  .lm-anlass-kachel:hover .lm-anlass-blatt:nth-child(2) { transform: translateX(98px) rotateY(-14deg) rotate(3deg) scale(.94); }
  .lm-anlass-kachel:hover .lm-anlass-blatt:nth-child(3) { transform: translateY(-8px) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .lm-anlass-blatt, .lm-anlass-kachel { transition: none; } }
.lm-anlass-schild {
  position: relative; z-index: 1; transform: skewX(-11deg); max-width: 100%; padding: 8px 14px; border-radius: 5px;
  background: linear-gradient(135deg, #ff7a4d, #ff4f36 60%, #e0431f);
  box-shadow: 0 10px 20px -12px rgba(224, 67, 31, .8), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.lm-anlass-schild span {
  display: block; transform: skewX(11deg); white-space: nowrap;
  font-size: 13px; font-weight: 850; line-height: 1; letter-spacing: .08em; text-transform: uppercase; color: #fff;
}
/* Handy: zwei Kacheln nebeneinander – kein seitliches Scrollen */
@media (max-width: 640px) {
  .lm-anlass-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .lm-anlass-kachel { width: auto; height: 200px; padding: 10px; border-radius: 16px; }
  .lm-anlass-stapel { top: 10px; height: 140px; }
  .lm-anlass-blatt { height: 112px; max-width: 86px; border-width: 4px; }
  .lm-anlass-blatt.quer { height: auto; width: 96px; max-width: none; }
  .lm-anlass-blatt:nth-child(1) { transform: translateX(-38px) rotateY(40deg) rotate(-5deg) scale(.84); }
  .lm-anlass-blatt:nth-child(2) { transform: translateX(38px) rotateY(-40deg) rotate(5deg) scale(.84); }
  .lm-anlass-schild { padding: 6px 10px; }
  .lm-anlass-schild span { font-size: 11px; }
}

/* Anlass-Seite: die Überschrift „Geburtstag / Geschenke zum Ausdrucken“ darf umbrechen */
.lm-held h1.lm-h1-anlass em { white-space: normal; display: block; }
@media (max-width: 640px) {
  .lm-held h1.lm-h1-anlass { font-size: clamp(24px, 7vw, 30px); }
  .lm-held h1.lm-h1-anlass em { font-size: .82em; }
}

/* --- Alle Zwischentitel im Stil von „NACH ANLASS“ --------------------------------
   Kleine rote Großbuchstaben mit weitem Abstand, feine Linien links und rechts.
   (Die Abstände nach unten bleiben je Abschnitt wie sie waren.) */
.lm-wand-titel, .lm-schritte h2, .lm-fragen h2, .lm-anlaesse-titel {
  display: flex; align-items: center; justify-content: center; gap: 14px; text-align: center;
  font-size: 13px !important; font-weight: 850; letter-spacing: .16em; text-transform: uppercase;
  color: var(--koralle-dunkel); line-height: 1.3;
}
.lm-wand-titel::before, .lm-wand-titel::after,
.lm-schritte h2::before, .lm-schritte h2::after,
.lm-fragen h2::before, .lm-fragen h2::after {
  content: ""; flex: 1; max-width: 220px; height: 1px;
}
.lm-wand-titel::before, .lm-schritte h2::before, .lm-fragen h2::before { background: linear-gradient(90deg, transparent, rgba(224, 67, 31, .45)); }
.lm-wand-titel::after, .lm-schritte h2::after, .lm-fragen h2::after { background: linear-gradient(90deg, rgba(224, 67, 31, .45), transparent); }
/* Die Bestseller-Überschrift ragt in die Luft über den Rahmen – bei der kleinen Schrift etwas weniger */
.lm-wand-titel { margin-bottom: -18px; }
@media (min-width: 880px) { .lm-wand-titel { margin-bottom: 0; } }

/* --- Geburtstag: Alter wählen – eine Glas-Kapsel wie die übrigen Elemente -----
   Links ein Tortensymbol im Farbverlauf, die Frage, rechts ein kompaktes Zahlenfeld. */
.lm-alter { position: relative; z-index: 2; display: flex; justify-content: center; margin: 4px auto -6px; padding: 0 16px; }
.lm-alter-kapsel {
  display: inline-flex; align-items: center; gap: 12px; padding: 7px 7px 7px 7px; border-radius: 999px; cursor: text;
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .9) inset, 0 12px 28px -14px rgba(31, 29, 69, .35);
  transition: box-shadow .2s ease;
}
/* Hinweis unter der Kapsel: was passiert, wenn man eine Zahl eintippt */
.lm-alter { flex-direction: column; align-items: center; }
.lm-alter-tipp { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 13px; font-weight: 700; color: #7a7887; text-align: center; }
.lm-alter-tipp::before { content: '✨'; font-size: 13px; }
.lm-alter-kapsel:focus-within { box-shadow: 0 0 0 2px var(--koralle) inset, 0 14px 30px -14px rgba(224, 67, 31, .45); }
.lm-alter-symbol {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #ff8a5c, #ff4f36); box-shadow: 0 8px 16px -8px rgba(255, 79, 54, .8);
}
.lm-alter-symbol svg { width: 20px; height: 20px; }
.lm-alter-frage { font-size: 15px; font-weight: 800; color: var(--tinte); white-space: nowrap; }
.lm-alter-kapsel input {
  width: 74px; height: 38px; padding: 0 10px; border: 0; border-radius: 999px; text-align: center;
  font: inherit; font-size: 18px; font-weight: 850; color: var(--koralle-dunkel); background: var(--koralle-hell);
}
.lm-alter-kapsel input::placeholder { color: rgba(224, 67, 31, .55); font-size: 14px; font-weight: 800; }
.lm-alter-kapsel input:focus { outline: none; background: #fff; box-shadow: 0 0 0 1.5px rgba(224, 67, 31, .35) inset; }
/* Handy: dominanter – volle Breite, kräftiger Rand, großes Feld, das pulsiert, bis ein Alter drinsteht */
@media (max-width: 640px) {
  .lm-alter { margin: 6px auto -10px; }
  .lm-alter-kapsel {
    display: flex; width: 100%; gap: 10px; padding: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 0 0 2px rgba(255, 90, 54, .45) inset, 0 14px 30px -14px rgba(224, 67, 31, .5);
  }
  .lm-alter-symbol { width: 44px; height: 44px; }
  .lm-alter-symbol svg { width: 24px; height: 24px; }
  .lm-alter-frage { flex: 1; font-size: 15.5px; font-weight: 850; white-space: normal; line-height: 1.2; }
  .lm-alter-kapsel input { width: 76px; height: 46px; font-size: 21px; background: linear-gradient(135deg, #ffe9e1, #ffd6c8); }
  .lm-alter-kapsel input::placeholder { font-size: 15px; }
  .lm-alter-kapsel input:placeholder-shown { animation: lm-alter-puls 1.8s ease-in-out infinite; }
}
/* Desktop: die Alterskapsel groß und kräftig – Blickfang oben auf der Geburtstagsseite */
@media (min-width: 641px) {
  .lm-alter { margin: 10px auto 2px; }
  .lm-alter-kapsel {
    gap: 18px; padding: 10px 10px 10px 10px; min-width: 580px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 0 0 2.5px rgba(255, 90, 54, .5) inset, 0 22px 44px -18px rgba(224, 67, 31, .55);
  }
  .lm-alter-symbol { width: 58px; height: 58px; }
  .lm-alter-symbol svg { width: 30px; height: 30px; }
  .lm-alter-frage { flex: 1; font-size: 23px; font-weight: 900; letter-spacing: -.01em; }
  .lm-alter-kapsel input { width: 124px; height: 58px; font-size: 28px; background: linear-gradient(135deg, #ffe9e1, #ffd6c8); }
  .lm-alter-kapsel input::placeholder { font-size: 18px; }
  .lm-alter-kapsel input:placeholder-shown { animation: lm-alter-puls 1.8s ease-in-out infinite; }
  .lm-alter-tipp { margin-top: 12px; font-size: 15px; }
  .lm-alter-tipp::before { font-size: 15px; }
}
@keyframes lm-alter-puls {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 54, 0); }
  50% { box-shadow: 0 0 0 4px rgba(255, 90, 54, .28); }
}
@media (prefers-reduced-motion: reduce) { .lm-alter-kapsel input:placeholder-shown { animation: none; } }
/* Mit Altersauswahl darunter ragt die Überschrift nicht nach unten – sonst überlappt sie die Frage */
.lm-wand:has(#alterWahl:not([hidden])) .lm-wand-titel { margin-bottom: 8px; }

/* Anlass-Seite: der Unterstrich nur so breit wie der Text */
.lm-held h1.lm-h1-anlass em { display: inline-block; }
/* Anlass-Seite: ohne Maskottchen – der Kopf steht mittig in einer Spalte */
.lm-held-anlass .lm-held-bild { display: none; }
.lm-held-anlass .huelle { grid-template-columns: 1fr !important; grid-template-areas: none !important; justify-items: center; text-align: center; }
.lm-held-anlass .lm-marke, .lm-held-anlass .lm-held-knoepfe { justify-self: center !important; }
.lm-held-anlass h1, .lm-held-anlass p.unter, .lm-held-anlass .klein { text-align: center !important; margin-left: auto !important; margin-right: auto !important; }
.lm-held-anlass .lm-vorteile { justify-content: center !important; }
.lm-held-anlass > .huelle > * { grid-area: auto !important; grid-column: 1 !important; grid-row: auto !important; }
@media (min-width: 720px) { .lm-held-anlass { padding: 34px 0 30px; } }
/* Anlass-Seite: direkt mit dem Anlass beginnen – ohne „Fünf vor zwölf? Perfekt.“ */
.lm-held-anlass .lm-marke { display: none !important; }
.lm-held-anlass h1 { margin-top: 0 !important; }

/* Anlass-Seite: der ganze Kopfbereich entfällt – es geht direkt mit Titel und Karussell los */
.lm-held.lm-held-anlass { display: none; }
body:has(.lm-held-anlass) .lm-wand { padding-top: 22px; }

/* --- Anlass-Seiten: Produktkacheln statt Karussell ---------------------------
   Motiv im schwarzen Rahmen auf einer Glas-Kachel, darunter Name, Preis, Knopf. */
.lm-produkte {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px;
  max-width: 1100px; margin: 18px auto 6px; padding: 0 16px;
}
.lm-produkte[hidden] { display: none; }
.lm-produkt {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 14px 14px; text-decoration: none; color: inherit; min-width: 0;
  border-radius: 20px; background: rgba(255, 255, 255, .72); backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .9) inset, 0 12px 30px -16px rgba(31, 29, 69, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.lm-produkt:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .95) inset, 0 20px 40px -18px rgba(31, 29, 69, .45); }
/* Alle Rahmen gleich groß (A4 hochkant); Querformate sitzen darin mit weißem Rand wie im Passepartout */
.lm-produkt-bild {
  display: block; width: 82%; margin: 0 auto 8px; aspect-ratio: 210 / 297; box-sizing: border-box;
  background: #fff; border: 7px solid #1d1c24; border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25), 0 14px 22px -10px rgba(31, 29, 69, .55);
  transition: transform .25s ease;
}
.lm-produkt-bild img { display: block; width: 100%; height: 100%; object-fit: contain; }
.lm-produkt:hover .lm-produkt-bild { transform: scale(1.03); }
.lm-produkt-name { font-size: 15px; font-weight: 850; line-height: 1.25; color: var(--tinte); }
.lm-produkt-preis { font-size: 13px; font-weight: 600; color: #7a7887; }
.lm-produkt-knopf {
  align-self: flex-start; margin-top: auto; padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #ff6b3d, #ff4f36);
  box-shadow: 0 8px 16px -8px rgba(255, 79, 54, .7);
}
@media (prefers-reduced-motion: reduce) { .lm-produkt, .lm-produkt-bild { transition: none; } }
@media (max-width: 640px) {
  .lm-produkte { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
  .lm-produkt { padding: 10px 9px 11px; border-radius: 16px; gap: 4px; }
  .lm-produkt-bild { width: 88%; border-width: 4px; }
  .lm-produkt-name { font-size: 13px; }
  .lm-produkt-preis { font-size: 12px; }
  .lm-produkt-knopf { padding: 7px 10px; font-size: 12px; }
}
/* Hoch- und Querrahmen sind derselbe Rahmen, nur gedreht: die Breite des einen ist
   die Höhe des anderen. Das A4-Verhältnis gilt für die Bildfläche innerhalb der
   schwarzen Leiste (content-box) – sonst bleibt oben/unten ein weißer Streifen.
   --lm-kurz = kurze Bildseite, das Querformat sitzt mittig im selben Platz, damit
   Name, Preis und Knopf auf einer Höhe bleiben (Abstände in % der Breite). */
.lm-produkte { --lm-leiste: 7px; --lm-kurz: calc((96% - 2 * var(--lm-leiste)) / 1.41421); }
@media (max-width: 640px) { .lm-produkte { --lm-leiste: 4px; } }
.lm-produkt-bild { box-sizing: content-box !important; width: var(--lm-kurz) !important; border-width: var(--lm-leiste) !important; min-height: 0; overflow: hidden; flex: none; }
/* Safari (iPhone) staucht sonst die Höhe – Bild füllt die A4-Fläche immer ganz */
.lm-produkte .lm-produkt-bild img { object-fit: cover; }
.lm-produkt.quer .lm-produkt-bild { width: calc(var(--lm-kurz) * 1.41421) !important; aspect-ratio: 297 / 210;
  margin: calc(var(--lm-kurz) * .20711) auto calc(var(--lm-kurz) * .20711 + 8px); }

/* --- Kasse: Gutschein-/Rabattcode ------------------------------------------------ */
.lm-gutschein { margin: 2px 0 10px; }
.lm-gutschein[hidden] { display: none; }
.lm-gutschein-auf {
  padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: 14px; font-weight: 700;
  color: var(--tinte-3); text-decoration: underline; text-underline-offset: 3px;
}
.lm-gutschein-auf:hover { color: var(--tinte); }
.lm-gutschein-feld { display: flex; gap: 8px; margin-top: 8px; }
.lm-gutschein-feld[hidden] { display: none; }
.lm-gutschein-feld input {
  flex: 1; min-width: 0; padding: 10px 12px; border: 2px solid var(--linie); border-radius: var(--rund-klein);
  background: #fffdf9; font: inherit; font-size: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.lm-gutschein-feld input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 500; }
.lm-gutschein-feld input:focus { outline: 0; border-color: var(--tinte); background: #fff; }
.lm-gutschein-feld button {
  flex: none; padding: 0 16px; border: 0; border-radius: var(--rund-klein); cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 800; color: #fff; background: var(--tinte);
}
.lm-gutschein-feld button:disabled { opacity: .6; cursor: wait; }
.lm-gutschein-agb { margin: 6px 0 0; font-size: 12.5px; }
.lm-gutschein-agb[hidden] { display: none; }
.lm-gutschein-agb a { color: var(--tinte-3); }
.lm-gutschein-fehler { margin: 6px 0 0; font-size: 13px; color: var(--rot); }
.lm-gutschein-fehler[hidden] { display: none; }
.lm-rabatt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; padding: 9px 12px;
  border-radius: var(--rund-klein); background: #e8f6ec; color: #1d6b3b; font-size: 14px; font-weight: 700;
}
.lm-rabatt[hidden] { display: none; }
.lm-rabatt button { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; color: inherit; text-decoration: underline; }
.lm-summe s { margin-right: 4px; font-size: .78em; font-weight: 600; color: var(--tinte-3); }
.lm-summe s[hidden] { display: none; }

/* --- Clipart-Auswahl (z. B. Frisur): Karussell mit kleinen Bildern --- */
.lm-feld-clipart label { display: flex; align-items: baseline; gap: 8px; }
.lm-clip-wahl { font-weight: 600; color: var(--tinte-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-clip { position: relative; display: flex; align-items: center; gap: 6px; }
.lm-clip-leiste {
  flex: 1; min-width: 0; display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 6px; margin: -4px 0 -6px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
.lm-clip-leiste::-webkit-scrollbar { display: none; }
.lm-clip-leiste > button {
  flex: none; scroll-snap-align: center; width: 76px; padding: 5px; border: 0; border-radius: 16px; cursor: pointer;
  background: var(--papier); box-shadow: 0 0 0 1px var(--linie); display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.lm-clip-leiste > button img { width: 66px; height: 66px; object-fit: contain; border-radius: 11px; pointer-events: none; background: #fff; }
.lm-clip-leiste > button span { font: 700 11px var(--schrift); color: var(--tinte-2); max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-clip-leiste > button:hover { box-shadow: 0 0 0 1px var(--tinte-3); }
.lm-clip-leiste > button[aria-checked="true"] { box-shadow: 0 0 0 2.5px var(--koralle); transform: translateY(-1px); }
.lm-clip-leiste > button:focus-visible { outline: 2px solid var(--tinte); outline-offset: 2px; }
.lm-clip-pfeil {
  display: none; flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--papier); box-shadow: 0 0 0 1px var(--linie); color: var(--tinte); font: 800 18px/1 var(--schrift);
}
.lm-clip-pfeil:disabled { opacity: .35; cursor: default; }
.lm-clip.blaettert .lm-clip-pfeil { display: grid; place-items: center; }

/* Haarfarbe: runde Farbtupfer unter dem Karussell */
.lm-farbwahl { margin-top: 12px; }
.lm-farbwahl-titel { display: flex; align-items: baseline; gap: 8px; font: 700 13px var(--schrift); color: var(--tinte); margin-bottom: 8px; }
.lm-farbwahl-tupfer { display: flex; flex-wrap: wrap; gap: 10px; }
.lm-farbwahl-tupfer > button {
  width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(31, 29, 69, .14), 0 1px 2px rgba(31, 29, 69, .12);
  transition: transform .15s ease, box-shadow .15s ease;
}
.lm-farbwahl-tupfer > button:hover { transform: scale(1.08); }
.lm-farbwahl-tupfer > button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--papier), 0 0 0 4.5px var(--koralle); }
.lm-farbwahl-tupfer > button:focus-visible { outline: 2px solid var(--tinte); outline-offset: 4px; }
/* Karussell im Raster: darf schmaler als sein Inhalt sein – sonst scrollt es nicht, sondern wird abgeschnitten */
.lm-feld-clipart > *, .lm-clip { min-width: 0; }
.lm-clip-leiste { cursor: grab; }
.lm-clip-leiste.zieht { cursor: grabbing; scroll-snap-type: none; }
.lm-clip-leiste.zieht > button { pointer-events: none; }

/* Wo bin ich im Karussell? Dünner Balken darunter */
.lm-clip-lauf { position: relative; height: 3px; margin: 8px 38px 0; border-radius: 3px; background: var(--linie); overflow: hidden; }
.lm-clip-lauf[hidden] { display: none; }
.lm-clip-lauf i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--koralle); transition: left .08s linear; }
@media (max-width: 900px) { .lm-clip-pfeil { width: 28px; height: 28px; font-size: 17px; } }
/* Zwei Frisuren untereinander (z. B. linke / rechte Frau): feine Linie dazwischen */
.lm-feld-clipart + .lm-feld { border-top: 1px solid var(--linie); padding-top: 16px; margin-top: 6px; }

/* Vorschau nicht speichern: kein Bildmenü beim langen Drücken (iOS), nicht markier- oder ziehbar */
.lm-ms-buehne canvas, .lm-ms-buehne img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }

/* Geburtstag, nach der Eingabe: das Alter als kleine Zeile, darunter „Für wen?“ */
.lm-alter-kapsel[hidden], .lm-alter-tipp[hidden], .lm-alter-chip[hidden], .lm-fuer[hidden] { display: none; }
.lm-alter-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; color: var(--tinte); background: rgba(255, 255, 255, .92);
  box-shadow: 0 0 0 1.5px rgba(255, 90, 54, .4) inset, 0 10px 24px -14px rgba(224, 67, 31, .45);
  animation: lm-einblenden .25s ease-out;
}
.lm-alter-chip .lm-alter-symbol { width: 34px; height: 34px; }
.lm-alter-chip .lm-alter-symbol svg { width: 18px; height: 18px; }
.lm-alter-chip b { font-size: 16px; font-weight: 900; }
.lm-alter-aendern { font-size: 13px; font-weight: 800; color: var(--koralle-dunkel); text-decoration: underline; text-underline-offset: 3px; }
.lm-alter-chip:hover .lm-alter-aendern { color: var(--koralle); }
.lm-fuer { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 14px; animation: lm-einblenden .3s ease-out; }
.lm-fuer-frage { margin: 0; font-size: 17px; font-weight: 900; color: var(--tinte); text-align: center; }
.lm-fuer-knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lm-fuer-knoepfe button {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 800; color: var(--tinte); background: rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 1.5px var(--linie) inset; transition: box-shadow .15s ease, background .15s ease, transform .15s ease;
}
.lm-fuer-knoepfe button:hover { transform: translateY(-1px); }
.lm-fuer-knoepfe button[aria-checked="true"] { color: #fff; background: linear-gradient(135deg, #ff8a5c, #ff4f36); box-shadow: 0 8px 18px -10px rgba(255, 79, 54, .8); }
@media (min-width: 641px) { .lm-fuer-frage { font-size: 21px; } .lm-fuer-knoepfe button { padding: 12px 22px; font-size: 16px; } }
@keyframes lm-einblenden { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lm-alter-chip, .lm-fuer { animation: none; } }

/* Eingeklappt: Alter und „Für wen?“ in einer Reihe nebeneinander (schmal: umbrechen) */
.lm-alter.eingeklappt { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; }
.lm-alter.eingeklappt .lm-fuer { flex-direction: row; flex-wrap: wrap; justify-content: center; margin-top: 0; gap: 8px 10px; }
.lm-alter.eingeklappt .lm-fuer-frage { font-size: 15px; }
@media (min-width: 641px) { .lm-alter.eingeklappt .lm-fuer-frage { font-size: 17px; } .lm-alter.eingeklappt .lm-fuer-knoepfe button { padding: 10px 18px; font-size: 15px; } }

/* Hochzeit & Liebe: „Was wird gefeiert?“ – wie „Für wen?“ beim Geburtstag */
.lm-liebe { gap: 10px; }
.lm-liebe[hidden], .lm-meilensteine[hidden], .lm-liebe-leer[hidden] { display: none; }
.lm-liebe .lm-fuer-frage { font-size: 19px; }
.lm-meilensteine { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 2px; animation: lm-einblenden .25s ease-out; }
.lm-meilenstein-frage { margin: 0; font-size: 14px; font-weight: 800; color: var(--tinte-2); }
.lm-fuer-knoepfe.klein button { padding: 7px 13px; font-size: 13.5px; }
.lm-liebe-leer { margin: 2px 0 0; max-width: 520px; font-size: 13.5px; font-weight: 700; color: var(--tinte-3); text-align: center; }
@media (min-width: 641px) { .lm-liebe .lm-fuer-frage { font-size: 23px; } }
@media (max-width: 879px) { .lm-alter.lm-liebe { margin-top: 26px; } }

/* Handy und Tablet (auch quer): keine Sprunglinks im Kopf, nur Logo und Sprachwahl */
@media (max-width: 899px), (hover: none) and (pointer: coarse) {
  .lm-kopf nav .nur-breit { display: none; }
}

/* Länderliste: Gruppen (Schweiz, EU) */
.sw-liste li.sw-gruppe { cursor: default; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--tinte-2, #5a5877);
  padding-top: 10px; padding-bottom: 4px; pointer-events: none; }
.sw-liste li.sw-gruppe img { width: 16px; height: 16px; opacity: .9; }
.sw-liste li.sw-gruppe:not(:first-child) { border-top: 1px solid rgba(0,0,0,.08); margin-top: 4px; }
.sw-liste li.sw-mehr .sw-sprachen { display: flex; gap: 4px; margin-left: auto; }
.sw-liste li.sw-mehr .sw-sprachen button { border: 1px solid rgba(0,0,0,.12); background: #fff; color: inherit; font: inherit; font-size: 11px; font-weight: 800;
  padding: 3px 7px; border-radius: 99px; cursor: pointer; line-height: 1.2; }
.sw-liste li.sw-mehr .sw-sprachen button:hover { border-color: #da291c; }
.sw-liste li.sw-mehr .sw-sprachen button.aktiv { background: #da291c; border-color: #da291c; color: #fff; }


/* --- „So geht's“ mit Szenen (wie bei Grußkartenheld) -------------------------
   Oben je Schritt eine kleine Szene, darunter Titel und Text. Die Szenen laufen
   in einer 6-s-Schleife, aber erst, wenn der Bereich im Bild ist (.laeuft).
   Farbe je Schritt über --sk / --sk2. Am Handy: Karussell zum Wischen. */
.lm-schritte .lm-sk-liste { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lm-schritte .lm-sk-liste::before { display: none; }
.lm-schritte .lm-sk-liste li.lm-sk {
  display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: center;
  padding: 0 0 22px; border-radius: 22px; overflow: hidden;
}
.lm-schritte .lm-sk-liste li.lm-sk:hover { transform: translateY(-5px); }
.lm-sk-bild {
  position: relative; height: 150px; overflow: hidden; margin-bottom: 12px;
  background:
    radial-gradient(110% 85% at 50% 90%, color-mix(in srgb, var(--sk) 22%, transparent), transparent 65%),
    linear-gradient(180deg, color-mix(in srgb, var(--sk2) 10%, #fff), rgba(255, 255, 255, 0));
  border-bottom: 1px solid color-mix(in srgb, var(--sk) 14%, transparent);
}
.lm-schritte .lm-sk-liste b { padding: 0 18px; align-self: auto; }
.lm-schritte .lm-sk-liste .lm-s-text { padding: 0 18px; align-self: auto; }
/* Ziffer als farbige Plakette oben rechts in der Szene */
.lm-schritte .lm-sk-liste .lm-s-nr {
  position: absolute; z-index: 5; left: auto !important; right: 12px; top: 12px !important;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 16px; font-weight: 900; letter-spacing: 0; line-height: 1; color: #fff;
  background: linear-gradient(135deg, var(--sk2), var(--sk)); -webkit-background-clip: border-box; background-clip: border-box;
  box-shadow: 0 6px 14px -6px var(--sk), 0 0 0 2px rgba(255, 255, 255, .85);
}

/* Die Szenen stehen still, bis der Bereich zu sehen ist */
.lm-schritte:not(.laeuft) .lm-sk-bild * { animation-play-state: paused !important; }

/* 1 · Motiv wählen: ein Fächer aus A4-Blättern, eines hebt sich heraus */
.lm-sk-faecher { position: absolute; inset: 0; }
.lm-sk-blatt {
  position: absolute; left: 50%; bottom: 14px; width: 44px; height: 62px; margin-left: -22px;
  transform-origin: 50% 150%;
  transform: translateX(calc((var(--i) - 2) * 27px)) rotate(calc((var(--i) - 2) * 9deg));
  z-index: calc(10 - (var(--i) - 2) * (var(--i) - 2));
}
.lm-sk-blatt em {
  display: block; width: 100%; height: 100%; border-radius: 2px;
  background: var(--bild, linear-gradient(160deg, #fff 0%, #fdf1dc 100%)) center / cover no-repeat, #fff;
  box-shadow: 0 0 0 1px rgba(31, 29, 69, .06), 0 8px 14px -8px rgba(31, 29, 69, .45);
  animation: lm-sk-blick 6s ease-in-out infinite calc(var(--i) * .3s), lm-sk-dimm 6s ease-in-out infinite;
}
.lm-sk-blatt.lm-sk-wahl em { position: relative; animation: lm-sk-wahl 6s cubic-bezier(.3, .7, .2, 1) infinite; }
.lm-sk-blatt.lm-sk-wahl em::after {
  content: "✓"; position: absolute; right: -8px; top: -8px; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font: 900 11px/1 Nunito, system-ui, sans-serif; color: #fff;
  background: linear-gradient(135deg, var(--sk2), var(--sk)); box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  opacity: 0; transform: scale(.4); animation: lm-sk-haken 6s ease infinite;
}
@keyframes lm-sk-blick { 0%, 14%, 100% { transform: none; } 6% { transform: translateY(-8px); } }
@keyframes lm-sk-dimm { 0%, 50%, 92%, 100% { opacity: 1; filter: none; } 60%, 84% { opacity: .5; filter: saturate(.6); } }
@keyframes lm-sk-wahl {
  0%, 8%, 18%, 48%, 96%, 100% { transform: none; }
  12% { transform: translateY(-8px); }
  60%, 86% { transform: translateY(-18px) scale(1.3); box-shadow: 0 0 0 2px var(--sk), 0 16px 26px -10px rgba(31, 29, 69, .5); }
}
@keyframes lm-sk-haken { 0%, 58%, 90%, 100% { opacity: 0; transform: scale(.4); } 64%, 86% { opacity: 1; transform: scale(1); } }

/* 2 · Personalisieren: ein A4-Bogen, unten schreibt sich ein Name hinein */
.lm-sk-bogen {
  position: absolute; left: 50%; top: 16px; width: 88px; height: 124px; margin-left: -44px;
  background: #fff; border-radius: 3px; box-shadow: 0 0 0 1px rgba(31, 29, 69, .06), 0 14px 24px -14px rgba(31, 29, 69, .5);
  display: flex; flex-direction: column; align-items: center; padding: 8px 8px 0;
}
.lm-sk-bogen-bild {
  display: block; width: 100%; height: 70px; border-radius: 2px;
  background: var(--bild, linear-gradient(160deg, #ffe2d8, #fff3ee)) center / cover no-repeat;
  opacity: .9;
}
.lm-schritte .lm-sk-zeile {
  display: inline-block; overflow: hidden; white-space: nowrap; width: 0; margin-top: 8px;
  font: italic 800 17px/1.2 "Segoe Script", "Brush Script MT", Nunito, cursive; color: var(--sk);
  border-right: 1.5px solid var(--sk);
  animation: lm-sk-tippen 6s steps(7, end) infinite, lm-sk-cursor .7s step-end infinite;
}
.lm-sk-stift {
  position: absolute; left: 50%; top: 88px; width: 26px; height: 26px; color: #fff; border-radius: 8px;
  display: grid; place-items: center; background: linear-gradient(135deg, var(--sk2), var(--sk));
  box-shadow: 0 6px 12px -6px var(--sk);
  animation: lm-sk-stift 6s ease-in-out infinite;
}
.lm-sk-stift svg { width: 15px; height: 15px; }
@keyframes lm-sk-tippen { 0%, 10% { width: 0; } 58%, 88% { width: 4.1em; } 96%, 100% { width: 0; } }
@keyframes lm-sk-cursor { 50% { border-right-color: transparent; } }
@keyframes lm-sk-stift {
  0%, 10% { transform: translate(-30px, 4px) rotate(0); }
  58%, 88% { transform: translate(40px, 4px) rotate(8deg); }
  96%, 100% { transform: translate(-30px, 4px) rotate(0); }
}

/* 3 · Herunterladen: das Motiv schrumpft in eine PDF-Datei (Eselsohr, „PDF“-Streifen),
   die Datei fällt in die Download-Ablage, der Balken füllt sich, Haken. */
.lm-sk-laden { position: absolute; inset: 0; }
.lm-sk-datei {
  position: absolute; left: 50%; top: 8px; width: 64px; height: 102px; margin-left: -32px; z-index: 2;
  animation: lm-sk-datei 6s cubic-bezier(.4, .1, .3, 1) infinite;
}
/* Die Hülle der Datei: weißes Blatt mit Eselsohr, erscheint um das Motiv herum */
.lm-sk-datei::before {
  content: ""; position: absolute; inset: 0; background: #fff;
  clip-path: polygon(0 0, 76% 0, 100% 18%, 100% 100%, 0 100%);
  filter: drop-shadow(0 8px 10px rgba(31, 29, 69, .25));
  animation: lm-sk-huelle 6s ease infinite;
}
.lm-sk-datei::after {
  content: ""; position: absolute; right: 0; top: 0; width: 24%; height: 18%;
  background: linear-gradient(225deg, transparent 50%, color-mix(in srgb, var(--sk) 30%, #fff) 50%);
  animation: lm-sk-huelle 6s ease infinite;
}
.lm-sk-datei em {
  position: absolute; left: 8px; right: 8px; top: 8px; height: 68px; z-index: 1;
  background: var(--bild, linear-gradient(160deg, #e3f6ee, #fff)) center / 100% 100% no-repeat, #fff;
  box-shadow: 0 0 0 1px rgba(31, 29, 69, .06);
  transform-origin: 50% 0; animation: lm-sk-motiv 6s cubic-bezier(.4, .1, .3, 1) infinite;
}
.lm-sk-datei b {
  position: absolute; left: 8px; right: 8px; bottom: 8px; height: 16px; z-index: 1; display: grid; place-items: center;
  font: 900 10px/1 Nunito, system-ui, sans-serif; letter-spacing: .08em; color: #fff; background: var(--sk);
  animation: lm-sk-huelle 6s ease infinite;
}
.lm-sk-ablage {
  position: absolute; left: 50%; bottom: 22px; width: 40px; height: 40px; margin-left: -20px; z-index: 1;
  display: grid; place-items: center; color: var(--sk); border-radius: 12px;
  background: color-mix(in srgb, var(--sk) 12%, #fff); box-shadow: 0 0 0 1px color-mix(in srgb, var(--sk) 22%, transparent);
  animation: lm-sk-ablage 6s ease infinite;
}
.lm-sk-ablage svg { width: 22px; height: 22px; }
.lm-sk-balken {
  position: absolute; left: 50%; bottom: 10px; width: 96px; margin-left: -48px; height: 5px; border-radius: 99px; overflow: hidden;
  background: color-mix(in srgb, var(--sk) 16%, transparent);
}
.lm-sk-balken i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--sk2), var(--sk)); animation: lm-sk-balken 6s ease-in-out infinite; }
.lm-sk-haken {
  position: absolute; left: 50%; bottom: 30px; width: 26px; height: 26px; margin-left: 10px; border-radius: 50%; z-index: 3;
  display: grid; place-items: center; font: 900 13px/1 Nunito, system-ui, sans-serif; color: #fff; background: var(--sk);
  box-shadow: 0 0 0 3px #fff; opacity: 0; transform: scale(.3); animation: lm-sk-haken2 6s ease infinite;
}
/* Ablauf: 0–22 % Motiv groß · 22–38 % wird zur Datei · 44–62 % Datei fällt in die Ablage · 58–84 % Balken · 80–94 % Haken */
@keyframes lm-sk-motiv {
  0%, 20% { transform: scale(1.4); }
  36%, 100% { transform: none; }
}
@keyframes lm-sk-huelle { 0%, 20% { opacity: 0; } 34%, 100% { opacity: 1; } }
@keyframes lm-sk-datei {
  0%, 42% { transform: none; opacity: 1; }
  60% { transform: translateY(62px) scale(.3); opacity: 0; }
  96% { transform: translateY(62px) scale(.3); opacity: 0; }
  100% { transform: none; opacity: 0; }
}
@keyframes lm-sk-ablage { 0%, 40% { opacity: 0; transform: translateY(8px); } 48%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(8px); } }
@keyframes lm-sk-balken { 0%, 56% { width: 0; } 82%, 94% { width: 100%; } 100% { width: 0; } }
@keyframes lm-sk-haken2 { 0%, 80%, 96%, 100% { opacity: 0; transform: scale(.3); } 86%, 93% { opacity: 1; transform: scale(1); } }

/* 4 · Drucken: ein Drucker, aus dessen Schlitz das Poster nach oben herauskommt.
   Das Blatt liegt in einer Ausgabe, die am Schlitz endet – so wird es Stück für Stück sichtbar. */
.lm-sk-druckbild { position: absolute; inset: 0; }
.lm-sk-ausgabe { position: absolute; left: 50%; top: 4px; width: 66px; height: 102px; margin-left: -33px; overflow: hidden; z-index: 1; }
.lm-sk-druck {
  position: absolute; left: 0; right: 0; bottom: 0; height: 93px;
  background: var(--bild, linear-gradient(160deg, #ecebff, #fff)) center / 100% 100% no-repeat, #fff;
  box-shadow: 0 0 0 1px rgba(31, 29, 69, .08);
  animation: lm-sk-drucken 6s linear infinite;
}
.lm-sk-drucker {
  position: absolute; left: 50%; top: 98px; width: 124px; height: 44px; margin-left: -62px; z-index: 2; border-radius: 10px 10px 8px 8px;
  background: linear-gradient(180deg, #45427a 0%, #2b2a4a 60%, #24233f 100%);
  box-shadow: 0 14px 22px -12px rgba(31, 29, 69, .7), inset 0 1px 0 rgba(255, 255, 255, .18);
  animation: lm-sk-rattern 6s linear infinite;
}
/* Schlitz oben, Papierfach unten */
.lm-sk-drucker::before { content: ""; position: absolute; left: 22px; right: 22px; top: 5px; height: 4px; border-radius: 2px; background: #151428; }
.lm-sk-drucker::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 7px; height: 5px; border-radius: 2px; background: rgba(255, 255, 255, .14); }
/* Kontrollleuchte: blinkt beim Drucken, dann grün */
.lm-sk-drucker i {
  position: absolute; right: 12px; top: 18px; width: 7px; height: 7px; border-radius: 50%;
  background: #6a6890; animation: lm-sk-lampe 6s step-end infinite;
}
@keyframes lm-sk-drucken {
  0%, 6% { transform: translateY(100%); opacity: 1; }
  62%, 92% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(0); opacity: 0; }
}
@keyframes lm-sk-rattern {
  0%, 6%, 62%, 100% { transform: none; }
  10%, 18%, 26%, 34%, 42%, 50%, 58% { transform: translateY(1px); }
  14%, 22%, 30%, 38%, 46%, 54% { transform: translateY(-.5px); }
}
@keyframes lm-sk-lampe {
  0% { background: #6a6890; }
  8%, 20%, 32%, 44%, 56% { background: #ffc93c; box-shadow: 0 0 6px #ffc93c; }
  14%, 26%, 38%, 50% { background: #6a6890; box-shadow: none; }
  62% { background: #3fcf9b; box-shadow: 0 0 6px #3fcf9b; }
  96% { background: #6a6890; box-shadow: none; }
}

/* Tablet: zwei Spalten */
@media (min-width: 621px) and (max-width: 959px) { .lm-schritte .lm-sk-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Handy: Karussell. Eine Kachel vorn, die nächste ragt herein; Punkte zeigen den Schritt. */
.lm-sk-punkte { display: none; }
@media (max-width: 620px) {
  .lm-schritte .lm-sk-liste {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: -16px; padding: 4px 16px 14px; scroll-padding-inline: 16px;
  }
  .lm-schritte .lm-sk-liste::-webkit-scrollbar { display: none; }
  .lm-schritte .lm-sk-liste li.lm-sk { flex: 0 0 80%; scroll-snap-align: start; }
  .lm-schritte .lm-sk-liste li.lm-sk:hover { transform: none; }
  .lm-sk-punkte { display: flex; justify-content: center; gap: 8px; margin-top: 2px; }
  .lm-sk-punkte button {
    width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; cursor: pointer;
    background: rgba(31, 29, 69, .2); transition: width .3s ease, background .3s ease;
  }
  .lm-sk-punkte button[aria-current="true"] { width: 22px; background: var(--koralle); }
}

@media (prefers-reduced-motion: reduce) {
  .lm-sk-bild *, .lm-sk-bild *::after { animation: none !important; }
  .lm-sk-blatt.lm-sk-wahl em { transform: translateY(-26px) scale(1.4); box-shadow: 0 0 0 2px var(--sk); }
  .lm-sk-blatt.lm-sk-wahl em::after, .lm-sk-haken { opacity: 1; transform: none; }
  .lm-schritte .lm-sk-zeile { width: 4.1em; border-right-color: transparent; }
  .lm-sk-stift { transform: translate(40px, 4px); }
  .lm-sk-datei { opacity: 1; transform: none; }
  .lm-sk-datei::before, .lm-sk-datei::after, .lm-sk-datei b { opacity: 1; }
  .lm-sk-balken i { width: 100%; }
}
.lm-sk-blatt em, .lm-sk-bogen, .lm-sk-bogen-bild, .lm-sk-datei em, .lm-sk-druck { border-radius: 0; }
/* Schritt 2: Blatt genau A4, Motiv ganz; der Name schreibt sich über den Textbereich des Motivs */
.lm-sk-bogen { top: 12px; width: 90px; height: 127px; margin-left: -45px; padding: 0; display: block; overflow: visible; }
.lm-sk-bogen-bild { width: 100%; height: 100%; aspect-ratio: auto; background-size: 100% 100%; background-position: center; opacity: 1; }
.lm-schritte .lm-sk-zeile {
  position: absolute; left: 50%; bottom: 13%; transform: translateX(-50%); margin: 0;
  font-size: 15px; padding: 0 4px; background: rgba(255, 255, 255, .92); box-shadow: 0 0 8px 6px rgba(255, 255, 255, .92);
}
.lm-sk-stift { top: 100px; }
/* Schritt 2: „Anna“ schreibt sich von links auf – aufgedeckt statt über eine feste Breite,
   so passt es zu jeder Wortlänge und nichts wird halb abgeschnitten */
.lm-schritte .lm-sk-zeile { width: auto; animation: lm-sk-schreiben 6s steps(4, end) infinite, lm-sk-cursor .7s step-end infinite; }
@keyframes lm-sk-schreiben { 0%, 10% { clip-path: inset(0 100% 0 0); } 58%, 88% { clip-path: inset(0 0 0 0); } 96%, 100% { clip-path: inset(0 100% 0 0); } }

/* ===== Foto-Zahl: Formular und Editor ===== */
.lm-collage .lm-collage-anzahl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 10px 0 6px; font-size: 14px; }
.lm-collage .lm-collage-anzahl input { flex: 1 1 160px; accent-color: var(--koralle); }
.lm-link { border: 0; background: none; padding: 0; color: var(--koralle); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.lm-collage-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px; margin: 10px 0 4px; }
.lm-collage-fotoschritt .lm-collage-fotos { margin-top: 0; }
/* Vorne in der Fotoreihe die leere Kachel mit „+“ zum Hochladen – bleibt immer stehen */
.lm-feld .lm-collage-plus {
  display: grid; place-items: center; justify-content: center; align-content: center; aspect-ratio: 1; border-radius: 10px; cursor: pointer;
  border: 2px dashed var(--koralle); background: #fff8f3; color: var(--koralle); font-size: 30px; font-weight: 800; line-height: 1;
}
.lm-feld .lm-collage-plus:hover, .lm-feld .lm-collage-plus:active { background: var(--koralle-hell); }
.lm-collage-fotos button { position: relative; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: grab; background: #f3ece2; }
.lm-collage-fotos button img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.lm-collage-fotos button.gewaehlt { border-color: var(--koralle); box-shadow: 0 0 0 2px rgba(255, 90, 54, .25); }
.lm-collage-fotos button.benutzt::after { content: "✓"; position: absolute; right: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #2e9e5b; color: #fff; font-size: 11px; line-height: 16px; text-align: center; }
.lm-collage-hilfe { margin: 2px 0 0; }
#buehne.lm-foto-drueber #rahmen3d, #buehne.lm-foto-drueber #leinwand { outline: 3px dashed var(--koralle); outline-offset: -8px; border-radius: 12px; }
#buehne.lm-foto-gewaehlt #rahmen3d canvas, #buehne.lm-foto-gewaehlt #leinwand { cursor: copy; }
/* Handy, Foto ziehen: Pfeile an den Rändern – dort hin fährt die Ansicht */
.lm-randpfeile { position: fixed; pointer-events: none; z-index: 299; }
.lm-randpfeile i { position: absolute; display: grid; place-items: center; transition: opacity .2s, background .2s; opacity: .9; }
.lm-randpfeile i[data-rand="oben"] { left: 0; right: 0; top: 0; height: 60px; background: linear-gradient(to bottom, rgba(31, 29, 69, .28), transparent); }
.lm-randpfeile i[data-rand="unten"] { left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(to top, rgba(31, 29, 69, .28), transparent); }
.lm-randpfeile i[data-rand="links"] { top: 60px; bottom: 60px; left: 0; width: 60px; background: linear-gradient(to right, rgba(31, 29, 69, .28), transparent); }
.lm-randpfeile i[data-rand="rechts"] { top: 60px; bottom: 60px; right: 0; width: 60px; background: linear-gradient(to left, rgba(31, 29, 69, .28), transparent); }
.lm-randpfeile b {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .95); box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  display: grid; place-items: center;
}
.lm-randpfeile b::before { content: ""; width: 10px; height: 10px; border: solid var(--koralle); border-width: 3px 3px 0 0; }
.lm-randpfeile [data-rand="oben"] b::before { transform: translateY(2px) rotate(-45deg); }
.lm-randpfeile [data-rand="unten"] b::before { transform: translateY(-2px) rotate(135deg); }
.lm-randpfeile [data-rand="links"] b::before { transform: translateX(2px) rotate(-135deg); }
.lm-randpfeile [data-rand="rechts"] b::before { transform: translateX(-2px) rotate(45deg); }
.lm-randpfeile:not(.scharf) [data-rand="unten"] { opacity: 0; }
.lm-randpfeile i.ende { opacity: .2; }
.lm-randpfeile i.an { opacity: 1; }
.lm-randpfeile i.an[data-rand="oben"] { background: linear-gradient(to bottom, rgba(255, 90, 54, .45), transparent); }
.lm-randpfeile i.an[data-rand="unten"] { background: linear-gradient(to top, rgba(255, 90, 54, .45), transparent); }
.lm-randpfeile i.an[data-rand="links"] { background: linear-gradient(to right, rgba(255, 90, 54, .45), transparent); }
.lm-randpfeile i.an[data-rand="rechts"] { background: linear-gradient(to left, rgba(255, 90, 54, .45), transparent); }
.lm-randpfeile i.an b { background: var(--koralle); }
.lm-randpfeile i.an b::before { border-color: #fff; }
/* Knöpfe an den Ecken des gewählten Fotos im Bild */
.lm-fotoknoepfe { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 298; }
.lm-fotoknoepfe button {
  position: fixed; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center; font: 800 18px/1 Nunito, sans-serif; color: var(--tinte); background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .28); touch-action: none; -webkit-tap-highlight-color: transparent;
}
.lm-fotoknoepfe [data-fk="drehen"] { cursor: grab; font-size: 22px; }
.lm-fotoknoepfe [data-fk="weg"] { color: var(--rot, #d93a2b); }
.lm-fotoknoepfe [data-fk="fertig"] { background: var(--koralle); color: #fff; }
.lm-fotoknoepfe [data-fk="groesse"] { background: var(--koralle); color: #fff; font-size: 22px; cursor: nwse-resize; }
.lm-foto-geist { position: fixed; left: -36px; top: -36px; width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 2px solid #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25); pointer-events: none; z-index: 300; opacity: .9; }

/* Vertrag widerrufen (/widerrufen) */
.lm-wr-form { display: grid; gap: 14px; max-width: 520px; margin: 20px 0 12px; }
.lm-wr-form .lm-feld { margin: 0; }
.lm-wr-form .lm-feld > span { font-weight: 700; font-size: 15px; }
.lm-wr-form input, .lm-wr-form textarea { width: 100%; box-sizing: border-box; }
.lm-wr-ok { max-width: 520px; margin: 20px 0; padding: 16px 18px; border-radius: 14px; background: #eaf7ef; border: 1px solid #b9e3c8; }
.lm-wr-ok h2 { margin-top: 0; }
.lm-wr-link { margin-top: 18px; font-size: 14px; }

/* Anlass-Seite: Versprechen unter dem Titel + eigener Text über „So geht's“ */
.lm-lp-versprechen { text-align: center; margin: 4px auto 14px; padding: 0 16px; color: var(--tinte-2); font-weight: 600; font-size: 14px; text-wrap: balance; }
.lm-lp-text { padding: 28px 0 8px; }
.lm-lp-text .huelle { max-width: 760px; }
.lm-lp-text h2 { font-size: clamp(20px, 3.4vw, 26px); line-height: 1.25; margin: 0 0 12px; color: var(--tinte); }
.lm-lp-text p { color: var(--tinte-2); margin: 0 0 12px; line-height: 1.6; }

/* Echte Links für Suchmaschinen: Anlässe in der Fußzeile, „Mehr zu …“ auf der Produktseite */
.lm-fuss-anlaesse { width: 100%; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; margin: 0 0 10px; color: inherit; }
.lm-fuss-anlaesse a { color: inherit; }
.lm-ms-mehr-links { font-size: 13px; color: var(--tinte-3); margin: 18px 0 6px; line-height: 1.7; }
.lm-ms-mehr-links a { color: var(--tinte-2); }
