:root {
  --bg: #f7f7fb;
  --panel: rgba(255,255,255,0.86);
  --panel-solid: #ffffff;
  --text: #19202b;
  --muted: #647089;
  --line: #e6eaf2;
  --accent: #4f46e5;
  --accent-2: #7c3aed;
  --success: #0f9f6e;
  --danger: #d64545;
  --shadow: 0 18px 50px rgba(31, 41, 55, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 5%, rgba(79,70,229,0.13), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(124,58,237,0.12), transparent 34%),
    linear-gradient(180deg, #fbfcff 0%, #f5f7fb 100%);
  min-height: 100vh;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.site-shell { min-height: 100vh; }
.topbar { color: var(--muted); font-size: .92rem; padding: 10px 0; }
.topbar-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.header-card {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 12px;
  z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { height: 44px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.plain-link { color: var(--muted); font-weight: 700; }
.plain-link:hover { color: var(--accent); }
.shop-pill {
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 28px rgba(79,70,229,0.18);
}

main { width: min(var(--max), calc(100% - 32px)); margin: 34px auto 0; }
.card-glass, .card-section, .shop-banner {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}
.hero-copy { padding: clamp(28px, 5vw, 38px); }
.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 900;
}
h1, h2, h3 { letter-spacing: -0.04em; line-height: 1.05; }
h1 { margin: 0; font-size: xx-large; font-weight: bolder; }
h2 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 3rem); }
h3 { margin: 0 0 10px; font-size: 1.25rem; }
.lead { max-width: 760px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.65; }
.hero-cta-row, .button-row, .banner-actions, .download-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.primary-btn, .secondary-btn, .download-btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, opacity .18s ease;
}
.primary-btn, .download-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 18px 30px rgba(79,70,229,0.18);
}
.secondary-btn, .download-btn.light { background: #fff; border: 1px solid var(--line); color: var(--text); box-shadow: none; }
.primary-btn:hover, .secondary-btn:hover, .download-btn:hover, .shop-pill:hover { transform: translateY(-2px); }
.download-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.secondary-btn.wide { width: 100%; margin-top: 12px; }
.hero-trust {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 800;
}
.hero-trust li { background: #fff; border: 1px solid var(--line); padding: 10px 14px; border-radius: 999px; }

.hero-carousel { position: relative; height: 100%; min-height: 430px; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.slide.active { opacity: 1; }
.slide picture, .slide img { width: 100%; height: 100%; }
.slide img { object-fit: cover; }
.slide-overlay { position: absolute; left: 26px; right: 26px; bottom: 26px; z-index: 2; color: #fff; display: grid; gap: 10px; }
.slide-title { font-size: clamp(1.5rem, 2.8vw, 2.7rem); text-shadow: 0 12px 28px rgba(0,0,0,.2); }
.slide-sub { margin: 0; color: rgba(255,255,255,.88); line-height: 1.5; font-weight: 700; }
.slide-cta { justify-self: start; padding: 11px 16px; border-radius: 999px; background: #fff; color: var(--text); font-weight: 900; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border: 0; border-radius: 999px; background: rgba(255,255,255,.86); box-shadow: 0 12px 24px rgba(0,0,0,.12); font-size: 2rem; line-height: 1; color: var(--text); }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 4; display: flex; gap: 7px; justify-content: center; }
.carousel-dots button { width: 9px; height: 9px; border: 0; border-radius: 999px; padding: 0; background: rgba(255,255,255,.5); }
.carousel-dots button.active { width: 28px; background: #fff; }

.generator-section { padding: clamp(18px, 2.4vw, 26px); margin-bottom: 28px; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 22px; }
.section-head.compact { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.45rem, 2.2vw, 2rem); }
.status-pill { border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); padding: 9px 13px; font-weight: 900; white-space: nowrap; }
.status-pill[data-type="ok"] { color: var(--success); border-color: rgba(15,159,110,.25); background: rgba(15,159,110,.08); }
.status-pill[data-type="error"] { color: var(--danger); border-color: rgba(214,69,69,.25); background: rgba(214,69,69,.08); }
.generator-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(280px, 390px); gap: 16px; align-items: start; }
.generator-panel, .preview-panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(14px, 2vw, 20px); }
.field { display: grid; gap: 6px; margin-bottom: 11px; }
.field span { font-size: .94rem; font-weight: 900; }
.field small { color: var(--muted); font-size: .82rem; line-height: 1.32; }
.field input, .field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  background: #fbfcff;
  color: var(--text);
  outline: none;
}
.field input:focus, .field select:focus { border-color: rgba(79,70,229,.6); box-shadow: 0 0 0 4px rgba(79,70,229,.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.upload-zone {
  display: grid;
  justify-items: center;
  gap: 9px;
  text-align: center;
  border: 2px dashed rgba(79,70,229,.32);
  background: linear-gradient(180deg, rgba(79,70,229,.06), rgba(124,58,237,.04));
  border-radius: 24px;
  padding: clamp(26px, 4vw, 42px);
  margin-bottom: 16px;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.upload-zone:hover, .upload-zone.is-dragover { border-color: var(--accent); transform: translateY(-1px); background: rgba(79,70,229,.09); }
.upload-zone input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.upload-zone__icon { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 22px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-weight: 950; letter-spacing: -.08em; box-shadow: 0 20px 34px rgba(79,70,229,.22); }
.upload-zone strong { font-size: clamp(1.05rem, 2vw, 1.25rem); }
.upload-zone small { color: var(--muted); font-weight: 700; }
.file-list-card { border: 1px solid var(--line); border-radius: 20px; background: #fbfcff; padding: 12px; }
.file-list-card__head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 10px; }
.plain-button { border: 0; background: transparent; color: var(--accent); font-weight: 900; padding: 6px; }
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.file-item { display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 10px; box-shadow: 0 8px 20px rgba(22,33,61,.04); }
.file-item.is-dragging { opacity: .65; }
.file-item.is-drop-target { border-color: var(--accent); }
.file-item__number { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 999px; background: rgba(79,70,229,.09); color: var(--accent); font-weight: 950; }
.file-item__meta { display: grid; gap: 3px; min-width: 0; }
.file-item__meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item__meta small { color: var(--muted); font-weight: 700; }
.file-item__actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.file-item__actions button { border: 1px solid var(--line); background: #fff; border-radius: 999px; min-height: 34px; padding: 7px 10px; font-weight: 900; color: var(--text); }
.file-item__actions button:disabled { opacity: .35; cursor: not-allowed; }
.empty-note { color: var(--muted); margin: 8px 0 0; font-weight: 700; }
.empty-note[hidden] { display: none; }

.pdf-summary-card { border: 1px solid var(--line); border-radius: 22px; padding: 18px; background: radial-gradient(circle at 88% 0%, rgba(124,58,237,.12), transparent 35%), #fbfcff; }
.pdf-summary-card__badge { display: inline-flex; margin-bottom: 10px; border-radius: 999px; padding: 8px 12px; color: var(--success); background: rgba(15,159,110,.1); font-weight: 950; }
.pdf-summary-card p { color: var(--muted); line-height: 1.55; font-weight: 700; }
.pdf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 0; }
.pdf-stats div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.pdf-stats dt { color: var(--muted); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.pdf-stats dd { margin: 5px 0 0; font-size: 1.15rem; font-weight: 950; }
.preview-panel .download-row { margin-top: 14px; }
.preview-panel .download-btn { width: 100%; }
.admin-counter-note { color: var(--muted); font-size: .86rem; font-weight: 800; margin: 12px 0 0; }

.product-focus-strip { margin: 0 0 28px; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.82); box-shadow: var(--shadow); overflow: hidden; }
.product-focus-strip__head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 16px; }
.product-focus-strip__head p { color: var(--muted); line-height: 1.55; margin-bottom: 0; }
.product-focus-strip__link { color: var(--accent); font-weight: 950; white-space: nowrap; }
.product-marquee { position: relative; overflow: hidden; min-height: 312px; border-radius: 24px; border: 1px solid rgba(230,234,242,.9); background: rgba(255,255,255,.65); touch-action: pan-y; }
.product-marquee::before, .product-marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 72px; z-index: 2; pointer-events: none; }
.product-marquee::before { left: 0; background: linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,0)); }
.product-marquee::after { right: 0; background: linear-gradient(270deg, rgba(255,255,255,.96), rgba(255,255,255,0)); }
.product-marquee__track { display: flex; gap: 14px; width: max-content; padding: 18px; transform: translate3d(var(--marquee-x, 0), 0, 0); will-change: transform; }
.product-marquee:not(.product-marquee--interactive) .product-marquee__track { animation: productMarquee 42s linear infinite; }
.product-marquee:hover .product-marquee__track { animation-play-state: paused; }
.product-marquee.is-dragging { cursor: grabbing; }
.mini-product { width: 190px; flex: 0 0 190px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 14px 28px rgba(22,33,61,.06); transition: transform .18s ease, box-shadow .18s ease; }
.mini-product:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(22,33,61,.11); }
.mini-product__image { aspect-ratio: 1 / 1; background: #f4f6fb; overflow: hidden; }
.mini-product__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.mini-product:hover .mini-product__image img { transform: scale(1.04); }
.mini-product__body { display: grid; gap: 5px; padding: 14px; }
.mini-product__body strong { min-height: 2.4em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.2; font-size: .96rem; }
.mini-product__body span { color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.mini-product__body em { color: var(--accent); font-style: normal; font-weight: 900; }
@keyframes productMarquee { to { transform: translateX(-50%); } }

.seo-info { padding: clamp(22px, 3vw, 30px); margin-bottom: 30px; }
.faq-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.faq-grid article { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.faq-grid p { color: var(--muted); line-height: 1.55; }
.site-footer { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; padding: 26px 0 40px; color: var(--muted); text-align: center; }
.footer-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; font-weight: 800; }
.footer-links a:hover { color: var(--accent); }

.download-success-modal[hidden] { display: none !important; }
.download-success-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.download-success-modal__backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.46); backdrop-filter: blur(10px); }
.download-success-modal__dialog { position: relative; width: min(940px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 28px; box-shadow: 0 30px 90px rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.5); padding: clamp(18px, 3vw, 28px); }
.download-success-modal__close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 1.7rem; line-height: 1; color: var(--muted); }
.download-success-modal__top { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding-right: 36px; }
.download-success-modal__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: rgba(15,159,110,.12); color: var(--success); font-weight: 950; font-size: 1.6rem; }
.download-success-modal h2 { font-size: clamp(1.6rem, 3vw, 2.55rem); }
.download-success-modal__text { color: var(--muted); line-height: 1.55; max-width: 680px; font-weight: 700; }
.download-success-modal__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.download-success-modal__btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 15px; border-radius: 999px; font-weight: 950; border: 1px solid var(--line); transition: transform .18s ease; }
.download-success-modal__btn:hover { transform: translateY(-1px); }
.download-success-modal__btn--primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }
.download-success-modal__btn--ghost { background: #fff; color: var(--text); }
.download-success-modal__note { color: var(--muted); font-size: .9rem; font-weight: 800; }
.paypal-donate-box { min-height: 44px; display: inline-flex; align-items: center; }
.paypal-donate-button-container { min-height: 44px; display: flex; align-items: center; }
.paypal-donate-button-container img { max-height: 44px; width: auto; }
.paypal-donate-box.is-not-configured .paypal-donate-button-container::before { content: ""; }
.download-success-products { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.download-success-products__head { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 12px; }
.download-success-products__head a { color: var(--accent); font-weight: 950; }
.download-success-products .product-marquee { min-height: 260px; }
.download-success-products .mini-product { width: 160px; flex-basis: 160px; }
.download-success-products .mini-product__body { padding: 12px; }

@media (max-width: 980px) {
  .hero-section, .generator-grid { grid-template-columns: 1fr; }
  .hero-carousel { min-height: 360px; }
  .faq-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  main, .header-card, .topbar-inner, .site-footer { width: min(100% - 20px, var(--max)); }
  main { margin-top: 22px; }
  .header-card { border-radius: 24px; align-items: flex-start; }
  .header-actions { width: 100%; justify-content: space-between; }
  .hero-section { gap: 16px; }
  .hero-copy, .generator-section, .seo-info, .product-focus-strip { padding: 16px; }
  .field-row, .faq-grid { grid-template-columns: 1fr; }
  .section-head, .product-focus-strip__head { align-items: flex-start; flex-direction: column; }
  .file-item { grid-template-columns: auto 1fr; }
  .file-item__actions { grid-column: 1 / -1; justify-content: flex-start; }
  .pdf-stats { grid-template-columns: 1fr; }
  .download-success-modal { padding: 10px; align-items: end; }
  .download-success-modal__dialog { max-height: calc(100vh - 20px); border-radius: 24px 24px 0 0; }
  .download-success-modal__top { grid-template-columns: 1fr; padding-right: 0; }
  .download-success-modal__actions { display: grid; }
  .download-success-modal__btn { width: 100%; }
}

/* Feinschliff nach QR-Code-Generator-Vorlage: mobile Kopfzeile, Popup-Buttons und griffiges Produkt-Scrolling. */
.product-marquee.product-marquee--interactive {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}
.product-marquee.product-marquee--interactive .product-marquee__track {
  animation: none !important;
  transform: translate3d(var(--marquee-x, 0px), 0, 0);
  will-change: transform;
}
.product-marquee.product-marquee--interactive.is-dragging {
  cursor: grabbing;
  user-select: none;
}
.product-marquee.product-marquee--interactive.is-dragging .product-marquee__track,
.product-marquee.product-marquee--interactive:hover .product-marquee__track {
  animation-play-state: paused;
}
.product-marquee.product-marquee--interactive img,
.product-marquee.product-marquee--interactive a {
  -webkit-user-drag: none;
  user-select: none;
}

.download-success-modal[hidden] { display: none !important; }
.download-success-modal {
  position: fixed;
  inset: 0;
  z-index: 4200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.download-success-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17,24,39,.46);
  backdrop-filter: blur(8px);
}
.download-success-modal__dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: clamp(20px, 3vw, 30px);
  padding-bottom: calc(clamp(20px, 3vw, 30px) + env(safe-area-inset-bottom, 0px));
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.76);
  background:
    radial-gradient(circle at 12% 0%, rgba(124,58,237,.16), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,255,.97));
  box-shadow: 0 30px 90px rgba(17,24,39,.28);
  animation: downloadSuccessIn .22s ease-out;
}
@supports not (height: 100dvh) {
  .download-success-modal__dialog { max-height: calc(100vh - 40px); }
}
.download-success-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.download-success-modal__top {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding-right: 36px;
}
.download-success-modal__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 21px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 16px 34px rgba(79,70,229,.26);
}
.download-success-modal h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3.1vw, 2.15rem);
  line-height: 1.06;
  color: var(--text);
}
.download-success-modal__text {
  margin: 8px 0 0;
  max-width: 610px;
  color: var(--muted);
  line-height: 1.45;
}
.download-success-modal__actions {
  display: grid;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.download-success-modal__btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.download-success-modal__btn:hover { transform: translateY(-1px); }
.download-success-modal__btn--primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 14px 30px rgba(79,70,229,.24);
}
.download-success-modal__btn--ghost {
  background: #fff;
  color: var(--text);
}
.download-success-modal__note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
}
.paypal-donate-box {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 999px;
}
.paypal-donate-button-container {
  display: grid;
  place-items: center;
  min-height: 44px;
  width: 100%;
}
.paypal-donate-button-container img {
  max-height: 44px;
  width: auto;
  max-width: 100%;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(79,70,229,.14);
}
.paypal-donate-box.is-not-configured .paypal-donate-button-container::before {
  content: "PayPal-Spende noch nicht eingerichtet";
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px dashed rgba(79,70,229,.24);
  color: var(--muted);
  background: rgba(255,255,255,.7);
  font-weight: 900;
  text-align: center;
}
.download-success-products {
  margin-top: 14px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(79,70,229,.12);
  background: rgba(255,255,255,.72);
  overflow: hidden;
}
.download-success-products__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.download-success-products__head strong {
  color: var(--text);
  font-size: .98rem;
}
.download-success-products__head a {
  color: var(--accent);
  font-weight: 900;
  white-space: nowrap;
}
.download-success-products .product-marquee {
  min-height: 202px;
  background: rgba(248,250,255,.72);
}
.download-success-products .product-marquee__track { padding: 12px; }
.download-success-products .mini-product {
  width: 148px;
  flex-basis: 148px;
}
.download-success-products .mini-product__image { aspect-ratio: 1 / .88; }
body.download-success-open,
body.modal-open { overflow: hidden; }
@keyframes downloadSuccessIn {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1115px) {
  .hero-section, .generator-grid, .shop-banner { grid-template-columns: 1fr; }
  .preview-panel { position: static; }
  .faq-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .product-marquee { min-height: auto; }
}
@media (max-width: 750px) {
  .topbar-inner { display: block; }
  .topbar-inner span:first-of-type { display: none; }
  .topbar-inner span:nth-of-type(2) { display: block; font-weight: bold; }
}
@media (max-width: 640px) {
  .header-card { border-radius: 24px; align-items: flex-start; }
  .brand img { height: 38px; }
  .header-actions { display: block; margin-top: .5rem; flex-direction: column; align-items: flex-end; gap: 8px; width: auto; }
  .plain-link { font-size: .92rem; }
  .shop-pill { padding: 10px 14px; }
  main, .topbar-inner, .header-card, .site-footer { width: min(100% - 22px, var(--max)); }
  h1 { font-size: clamp(2.05rem, 12vw, 3.2rem); }
  .hero-copy { padding: 24px; }
  .field-row, .faq-grid { grid-template-columns: 1fr; }
  .primary-btn, .secondary-btn, .download-btn { width: 100%; }
  .product-focus-strip__head { flex-direction: column; align-items: flex-start; }
  .mini-product { width: 158px; flex-basis: 158px; }
  .product-marquee__track { animation-duration: 34s; }
  main { margin: 11px auto 0; }
}
@media (max-width: 620px) {
  .download-success-modal {
    align-items: start;
    padding: 8px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .download-success-modal__dialog {
    width: 100%;
    max-height: calc(100dvh - 16px);
    border-radius: 22px;
    padding: 14px 12px 18px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }
  .download-success-modal__top {
    grid-template-columns: 42px minmax(0, 1fr);
    padding-right: 32px;
    gap: 10px;
  }
  .download-success-modal__icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    font-size: 1.15rem;
  }
  .download-success-modal .eyebrow {
    margin-bottom: 3px;
    font-size: .68rem;
    letter-spacing: .11em;
  }
  .download-success-modal h2 {
    font-size: clamp(1.28rem, 6vw, 1.62rem);
    line-height: 1.04;
  }
  .download-success-modal__text {
    margin-top: 6px;
    font-size: .94rem;
    line-height: 1.35;
  }
  .download-success-modal__actions {
    display: grid;
    gap: 8px;
    margin-top: 12px;
  }
  .download-success-modal__btn {
    width: 100%;
    min-height: 42px;
    padding: 0 10px;
    font-size: .9rem;
  }
  .download-success-modal__btn:first-child,
  .download-success-modal__btn:last-child { grid-column: 1 / -1; }
  .download-success-modal__note {
    margin-top: 7px;
    font-size: .78rem;
  }
  .download-success-products {
    margin-top: 12px;
    padding: 10px 8px 12px;
    border-radius: 17px;
  }
  .download-success-products__head {
    align-items: center;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 7px;
  }
  .download-success-products__head strong { font-size: .9rem; }
  .download-success-products__head a { font-size: .9rem; }
  .download-success-products .product-marquee { min-height: 154px; }
  .download-success-products .product-marquee__track { padding: 8px; }
  .download-success-products .mini-product { width: 112px; flex-basis: 112px; border-radius: 16px; }
  .download-success-products .mini-product__image { aspect-ratio: 1 / .82; }
  .download-success-products .mini-product__body { padding: 8px; }
  .download-success-products .mini-product__body strong { font-size: .78rem; line-height: 1.16; }
  .download-success-products .mini-product__body span,
  .download-success-products .mini-product__body em { font-size: .72rem; }
}

/* PDF-Komprimieren: spezifische Vorschau und Dateiliste */
.upload-zone__icon { letter-spacing: .04em; }
.upload-zone.is-dragover { border-color: var(--accent); background: rgba(79,70,229,.08); transform: translateY(-1px); }
.image-file-item { grid-template-columns: auto 58px 1fr auto; }
.image-file-item__thumb {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  overflow: hidden;
  background: #f4f6fb;
  border: 1px solid var(--line);
  display: block;
}
.image-file-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-item__meta .is-error { color: var(--danger); font-weight: 900; }
.image-summary-card { background: radial-gradient(circle at 88% 10%, rgba(124,58,237,.13), transparent 34%), #fff; }
@media (max-width: 720px) {
  .image-file-item { grid-template-columns: auto 50px 1fr; }
  .image-file-item__thumb { width: 50px; height: 50px; }
  .image-file-item .file-item__actions { grid-column: 1 / -1; }
}

.checkbox-field {
  align-items: flex-start;
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.checkbox-field input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #111827;
}
.checkbox-field span {
  line-height: 1.45;
}
.pdf-summary-card .pdf-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.image-file-item__thumb {
  align-items: center;
  background: linear-gradient(135deg, rgba(15, 23, 42, .95), rgba(76, 29, 149, .86));
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  letter-spacing: .06em;
}

/* Einheitliche Tool-Navigation: Startseite · Tools · Zum Shop bleibt auch mobil in einer Zeile. */
.header-card {
  flex-wrap: nowrap;
  align-items: center;
}
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(6px, 1.8vw, 12px);
  flex-wrap: nowrap;
  min-width: 0;
  white-space: nowrap;
}
.header-actions a {
  white-space: nowrap;
}
@media (max-width: 640px) {
  .header-card {
    border-radius: 999px;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
  }
  .brand {
    flex: 0 1 auto;
    min-width: 0;
  }
  .brand img {
    height: clamp(28px, 8vw, 38px);
    max-width: 96px;
    object-fit: contain;
  }
  .header-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: auto !important;
    margin-top: 0 !important;
    margin-left: auto;
    gap: clamp(5px, 1.4vw, 8px);
  }
  .plain-link {
    font-size: clamp(.72rem, 3.15vw, .9rem);
  }
  .shop-pill {
    padding: 8px clamp(8px, 2.6vw, 12px);
    font-size: clamp(.72rem, 3.15vw, .9rem);
  }
}
@media (max-width: 380px) {
  .header-card {
    padding: 7px 8px;
    gap: 6px;
  }
  .brand img {
    height: 28px;
    max-width: 82px;
  }
  .header-actions {
    gap: 5px;
  }
  .plain-link,
  .shop-pill {
    font-size: .7rem;
  }
  .shop-pill {
    padding: 7px 8px;
  }
}
