: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 { display: flex; 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; }
}

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