: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;
}
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, 30px); }
.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;
}
.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); }
.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-products {
  padding: clamp(22px, 3.5vw, 34px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  background:
    radial-gradient(circle at 90% 0%, rgba(124,58,237,.13), transparent 34%),
    rgba(255,255,255,.86);
}
.hero-products__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.hero-products__head a { color: var(--accent); font-weight: 900; white-space: nowrap; }
.hero-products__head h2 { font-size: clamp(1.55rem, 2.4vw, 2.35rem); }
.product-marquee {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border-radius: 24px;
  border: 1px solid rgba(230,234,242,.9);
  background: rgba(255,255,255,.65);
}
.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;
  animation: productMarquee 42s linear infinite;
}
.product-marquee:hover .product-marquee__track { animation-play-state: paused; }
.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; }
.soft-shop-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(79,70,229,.14);
  border-radius: 18px;
  background: rgba(79,70,229,.06);
}
.soft-shop-cta span { color: var(--muted); font-weight: 800; }
.soft-shop-cta a { color: var(--accent); font-weight: 900; }
@keyframes productMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.card-section { padding: clamp(22px, 4vw, 36px); margin-bottom: 28px; }
.section-head { justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.status-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: #f5fcf8;
  color: var(--success);
  font-weight: 900;
  border: 1px solid #d9f3e8;
  white-space: nowrap;
}
.status-pill.error { background: #fff1f1; color: var(--danger); border-color: #ffd8d8; }
.generator-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 470px); gap: 24px; align-items: start; }
.generator-panel, .preview-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); }
.field { display: grid; gap: 9px; margin-bottom: 18px; }
.field span { font-weight: 900; }
.field small { color: var(--muted); line-height: 1.45; }
textarea, select, input[type="color"] { width: 100%; border: 1px solid #d7deea; border-radius: 18px; background: #fff; color: var(--text); outline: none; }
textarea { resize: vertical; min-height: 136px; padding: 15px 16px; line-height: 1.5; }
select { padding: 14px 15px; min-height: 52px; }
input[type="color"] { min-height: 52px; padding: 7px; }
textarea:focus, select:focus, input[type="color"]:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(79,70,229,.10); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.toggle-card { display: flex; gap: 14px; align-items: flex-start; padding: 15px; border: 1px solid var(--line); border-radius: 20px; margin: 4px 0 22px; background: #fafbff; }
.toggle-card input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-ui { width: 52px; height: 30px; border-radius: 999px; background: #d9deea; position: relative; flex: 0 0 auto; transition: background .18s ease; }
.toggle-ui::after { content: ""; width: 24px; height: 24px; border-radius: 50%; background: #fff; position: absolute; left: 3px; top: 3px; box-shadow: 0 5px 12px rgba(31,41,55,.16); transition: transform .18s ease; }
.toggle-card input:checked + .toggle-ui { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.toggle-card input:checked + .toggle-ui::after { transform: translateX(22px); }
.toggle-card strong, .toggle-card small { display: block; }
.toggle-card small { color: var(--muted); margin-top: 4px; line-height: 1.45; }
.preview-panel { position: sticky; top: 100px; }
.preview-box {
  border-radius: 24px;
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 24px;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, rgba(100,112,137,.12) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(100,112,137,.12) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(100,112,137,.12) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(100,112,137,.12) 75%);
  background-size: 22px 22px;
  background-position: 0 0, 0 11px, 11px -11px, -11px 0;
  border: 1px solid var(--line);
}
.qr-output { width: min(100%, 360px); aspect-ratio: 1; display: grid; place-items: center; }
.qr-output canvas, .qr-output svg { display: block; width: 100% !important; height: auto !important; border-radius: 16px; }
.preview-hint { color: var(--muted); line-height: 1.5; text-align: center; }
.download-row { justify-content: center; }
.privacy-note { margin-top: 18px; padding: 14px 16px; border-radius: 18px; background: #f8faff; border: 1px solid var(--line); color: var(--muted); line-height: 1.5; }
.privacy-note strong { color: var(--text); }

.shop-banner {
  margin-bottom: 28px;
  padding: clamp(24px, 4vw, 42px);
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(280px,.85fr);
  gap: 24px;
  background: radial-gradient(circle at 85% 20%, rgba(124,58,237,.18), transparent 36%), linear-gradient(135deg, #ffffff 0%, #f7f8ff 100%);
}
.shop-banner-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; line-height: 1.65; max-width: 760px; }
.shop-banner-visual { display: grid; place-items: center; }
.product-teaser-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); max-width: 420px; }
.teaser-icon { width: 70px; height: 70px; border-radius: 22px; display: grid; place-items: center; font-size: 2rem; background: #f4f6fb; margin-bottom: 18px; }
.product-teaser-card p { color: var(--muted); line-height: 1.55; }
.product-teaser-card a { color: var(--accent); font-weight: 900; }
.faq-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.faq-grid article { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.faq-grid p { color: var(--muted); line-height: 1.55; margin-bottom: 0; }
.site-footer { width: min(var(--max), calc(100% - 32px)); margin: 24px auto 0; padding: 28px 0 40px; color: var(--muted); text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; font-weight: 800; }
.footer-links a:hover { color: var(--accent); }

@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;}
  .meine-klasse 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; }
  .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; }
  .preview-box { min-height: 310px; padding: 14px; }
  .primary-btn, .secondary-btn, .download-btn { width: 100%; }
  .hero-products__head, .soft-shop-cta { 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; }
}

/* Hero-Banner im QR-Tool: nutzt dieselbe Anzeige wie die Startseite, ohne Editor-Funktionen. */
.hero-visual { min-width: 0; }
.hero-carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 32px;
  background: #fff;
  border: 1px solid rgba(230,234,242,.9);
  box-shadow: var(--shadow);
}
.hero-carousel.card-glass { padding: 0; }
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .55s ease, transform .7s cubic-bezier(.22,.9,.36,1);
}
.slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}
.slide picture,
.slide img {
  width: 100%;
  height: 100%;
}
.slide img { object-fit: cover; }
.slide-overlay {
  position: absolute;
  left: 24px;
  bottom: 24px;
  max-width: min(460px, calc(100% - 48px));
  padding: 18px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(180deg, rgba(17,24,39,.08), rgba(17,24,39,.62));
  backdrop-filter: blur(.5px);
}
.slide-title {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.slide-sub {
  margin: 0 0 12px;
  color: rgba(255,255,255,.92);
  line-height: 1.45;
}
.slide-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 14px 28px rgba(17,24,39,.18);
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,.86);
  color: var(--text);
  cursor: pointer;
  z-index: 4;
  font-size: 1.7rem;
  line-height: 1;
}
.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }
.carousel-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  display: flex;
  gap: 8px;
  z-index: 4;
}
.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,.55);
  cursor: pointer;
}
.carousel-dots button.active {
  background: #fff;
  transform: scale(1.15);
}

@media (max-width: 1100px) {
  .hero-carousel { min-height: 420px; }
}
@media (max-width: 760px) {
  .hero-carousel { min-height: clamp(230px, 62vw, 300px); border-radius: 22px; }
  .slide-overlay {
    left: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
    padding: 14px;
    border-radius: 18px;
  }
  .slide-title { font-size: 1.1rem; }
  .slide-sub { font-size: .92rem; }
  .carousel-btn { width: 36px; height: 36px; }
}

/* PDF unterschreiben Tool */
.tool-dropzone {
  border: 2px dashed rgba(79,70,229,.28);
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 0%, rgba(124,58,237,.10), transparent 34%),
    rgba(255,255,255,.74);
  padding: clamp(18px, 3vw, 28px);
  display: grid;
  gap: 14px;
  text-align: center;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.tool-dropzone.is-dragover {
  border-color: var(--accent);
  transform: translateY(-1px);
  background: rgba(255,255,255,.94);
}
.tool-dropzone input { display: none; }
.tool-dropzone__icon {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  font-size: 1.8rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 34px rgba(79,70,229,.20);
}
.tool-dropzone strong { font-size: clamp(1.1rem, 2vw, 1.35rem); }
.tool-dropzone span { color: var(--muted); line-height: 1.45; }
.tool-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}
.tool-status.is-error { color: var(--danger); }
.tool-status.is-success { color: var(--success); }
.tool-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.tool-mini-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 14px;
}
.tool-mini-card strong { display: block; margin-bottom: 5px; }
.tool-mini-card span { color: var(--muted); font-size: .92rem; line-height: 1.35; }
.editor-modal[hidden] { display: none !important; }
.editor-modal {
  position: fixed;
  inset: 0;
  z-index: 3900;
  display: grid;
  place-items: center;
  padding: 16px;
}
.editor-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17,24,39,.56);
  backdrop-filter: blur(10px);
}
.editor-modal__dialog {
  position: relative;
  width: min(1180px, 100%);
  height: min(92dvh, 940px);
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.72);
  background:
    radial-gradient(circle at 10% 0%, rgba(124,58,237,.13), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,255,.97));
  box-shadow: 0 30px 90px rgba(17,24,39,.32);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}
.editor-modal__head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.editor-modal__head h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
}
.editor-close {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 1.4rem;
  color: var(--muted);
}
.editor-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
}
.editor-canvas-wrap {
  min-height: 0;
  overflow: auto;
  padding: clamp(14px, 2vw, 22px);
  display: grid;
  place-items: start center;
  background:
    linear-gradient(45deg, rgba(100,112,137,.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(100,112,137,.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(100,112,137,.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(100,112,137,.08) 75%);
  background-size: 22px 22px;
  background-position: 0 0, 0 11px, 11px -11px, -11px 0px;
}
.pdf-stage {
  position: relative;
  width: fit-content;
  height: fit-content;
  box-shadow: 0 18px 50px rgba(31,41,55,.20);
  background: #fff;
}
#pdf-canvas { display: block; max-width: none; }
.pdf-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
}
.signature-item {
  position: absolute;
  min-width: 18px;
  min-height: 10px;
  touch-action: none;
  cursor: grab;
  border: 2px solid transparent;
  border-radius: 8px;
}
.signature-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.signature-item.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(79,70,229,.14);
}
.signature-item:active { cursor: grabbing; }
.editor-sidebar {
  min-height: 0;
  overflow: auto;
  padding: 16px;
  border-left: 1px solid var(--line);
  background: rgba(255,255,255,.72);
}
.editor-group {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 14px;
  margin-bottom: 12px;
}
.editor-group h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}
.editor-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.editor-row .secondary-btn,
.editor-row .primary-btn { min-height: 42px; padding: 10px 14px; }
.editor-select, .editor-input, .editor-range {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 10px 12px;
  color: var(--text);
  font-weight: 800;
}
.editor-range { padding: 8px 0; }
.page-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(79,70,229,.09);
  color: var(--accent);
  font-weight: 900;
}
.signature-library {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.signature-thumb {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 8px;
  display: grid;
  grid-template-columns: 54px minmax(0,1fr);
  gap: 10px;
  align-items: center;
  cursor: pointer;
  text-align: left;
}
.signature-thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,.10);
}
.signature-thumb img {
  width: 54px;
  height: 38px;
  object-fit: contain;
  background: linear-gradient(45deg, #eee 25%, transparent 25%), linear-gradient(-45deg, #eee 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #eee 75%), linear-gradient(-45deg, transparent 75%, #eee 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0px;
  border-radius: 8px;
}
.signature-thumb strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .9rem;
}
.signature-thumb span { color: var(--muted); font-size: .8rem; }
.editor-help {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.4;
  margin: 8px 0 0;
}
.editor-bottom-status {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}
.editor-bottom-status.is-error { color: var(--danger); }
.editor-bottom-status.is-success { color: var(--success); }
.field-file { display: block; }
.field-file input { display: none; }
.field-file .secondary-btn { width: 100%; }
@media (max-width: 980px) {
  .hero-section { grid-template-columns: 1fr; }
  .editor-layout { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .editor-sidebar { border-left: 0; border-top: 1px solid var(--line); max-height: 42dvh; }
  .tool-mini-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .editor-modal { padding: 0; }
  .editor-modal__dialog { width: 100%; height: 100dvh; border-radius: 0; }
  .editor-modal__head { padding: 10px 12px; }
  .editor-canvas-wrap { padding: 12px; place-items: start center; }
  .editor-sidebar { padding: 12px; }
  .editor-row .secondary-btn,
  .editor-row .primary-btn { flex: 1 1 auto; }
  .page-pill { flex: 1 1 100%; }
  .hero-copy { padding: 22px 18px; }
}

/* Hauptseiten-Downloadflow wie bei den anderen Tools */
.tool-actions-main {
  justify-content: center;
  margin-top: 12px;
}
.tool-status--small {
  margin-top: 8px;
  font-size: .92rem;
}
.primary-btn:disabled,
.secondary-btn:disabled,
.download-btn:disabled {
  opacity: .48;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

.product-focus-strip {
  margin: 18px 0 28px;
  padding: clamp(16px, 2.4vw, 24px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 16% 0%, rgba(124,58,237,.11), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,255,.88));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.product-focus-strip__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.product-focus-strip__head .eyebrow { margin-bottom: 5px; }
.product-focus-strip__head h2 {
  margin: 0;
  font-size: clamp(1.12rem, 1.8vw, 1.55rem);
  line-height: 1.12;
}
.product-focus-strip__head p:not(.eyebrow) {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.35;
  font-size: .94rem;
  max-width: 720px;
}
.product-focus-strip__link {
  color: var(--accent);
  font-weight: 900;
  white-space: nowrap;
}
.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;
}
.product-focus-strip .product-marquee {
  min-height: 255px;
  background: rgba(255,255,255,.7);
}
.product-focus-strip .product-marquee__track {
  padding: 14px;
  animation-duration: 48s;
}
.product-focus-strip .mini-product {
  width: 172px;
  flex-basis: 172px;
}
.product-focus-strip .mini-product__image { aspect-ratio: 1 / .9; }

@media (max-width: 980px) {
  .product-focus-strip__head { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 640px) {
  .tool-actions-main { display: grid; grid-template-columns: 1fr; }
  .product-focus-strip { margin-top: 14px; padding: 14px 12px; }
  .product-focus-strip .product-marquee { min-height: 232px; }
  .product-focus-strip .mini-product { width: 148px; flex-basis: 148px; }
  .product-focus-strip__head p:not(.eyebrow) { font-size: .88rem; }
}

/* Download Popup: freiwillige Spende + dezente Produktwerbung */
.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;
  z-index: 2;
}
.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;
  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 { overflow: hidden; }
@keyframes downloadSuccessIn {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@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__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; }
}

.editor-zoom-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 8px;
  align-items: center;
}
.editor-zoom-btn {
  min-width: 44px;
  padding-inline: 0;
  font-size: 1.1rem;
}

/* 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;
  }
}
