
*{box-sizing:border-box}body{margin:0;font-family:Arial,sans-serif;background:#f5f7fb;color:#1f2937}a{color:#0b63ce;text-decoration:none}header{background:#11243f;color:#fff}.container{max-width:1180px;margin:auto;padding:20px}.narrow{max-width:720px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px}.topbar small{display:block;color:#c8d4e6}.topbar nav{display:flex;gap:16px;flex-wrap:wrap}.topbar a{color:#fff}.hero{background:linear-gradient(135deg,#0b63ce,#17a2b8);color:#fff;padding:38px 0}.hero h1{font-size:38px;margin:0 0 10px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:22px}.product,.card{background:#fff;border-radius:14px;box-shadow:0 8px 28px rgba(0,0,0,.08);overflow:hidden}.product-image{height:210px;background:#e9eef6;display:flex;align-items:center;justify-content:center}.product-image img{width:100%;height:100%;object-fit:contain}.pad,.card{padding:22px}.badge{display:inline-block;background:#e5f1ff;color:#0b63ce;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:bold}.price,.total{font-size:22px;font-weight:bold;margin:18px 0}button,.button{display:inline-block;background:#0b63ce;color:#fff;border:0;border-radius:8px;padding:11px 16px;font-weight:bold;cursor:pointer}label{display:block;font-weight:bold;margin:14px 0}input,textarea,select{width:100%;padding:11px;margin-top:6px;border:1px solid #cfd7e3;border-radius:8px;font:inherit}textarea{min-height:110px}.check input{width:auto}.cartrow{display:flex;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid #e5e7eb}.error{background:#fee2e2;color:#991b1b;padding:12px;border-radius:8px}.admincols{display:grid;grid-template-columns:1fr 1fr;gap:22px}footer{margin-top:40px;background:#11243f;color:#fff}footer a{color:#fff}@media(max-width:760px){.topbar,.cartrow{align-items:flex-start;flex-direction:column}.admincols{grid-template-columns:1fr}.hero h1{font-size:30px}}

.success{background:#dcfce7;color:#166534;padding:12px;border-radius:8px}.hint{background:#eef6ff;border-left:4px solid #0b63ce;padding:14px;margin:18px 0}.danger{background:#b91c1c}.small{padding:7px 10px}.actions{display:flex;align-items:center;gap:12px}.actions form{margin:0}.thumb{width:54px;height:54px;object-fit:cover;border-radius:8px;float:left;margin-right:12px}.admin-preview{max-width:260px;max-height:180px;object-fit:contain;border:1px solid #d7dde7;border-radius:8px}.secondary{background:#475569}


/* V3 – kleinere Vorschaubilder und Bildvergrößerung */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:22px;
  align-items:start;
}
.product{
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 8px 22px rgba(12,36,66,.08);
  background:#fff;
}
.product-image{
  height:180px;
  background:#edf2f8;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.product-image a{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}
.product-image img{
  width:100%;
  height:100%;
  object-fit:contain;
  transition:transform .2s ease;
  cursor:zoom-in;
}
.product-image img:hover{
  transform:scale(1.03);
}
.product .pad{
  padding:18px 20px 20px;
}
.product h2{
  margin:10px 0 8px;
  font-size:20px;
}
.product p{
  margin:0 0 12px;
  line-height:1.45;
}
.price{
  font-size:18px;
  font-weight:700;
  margin-bottom:14px;
}

.lightbox[hidden]{display:none!important}
.lightbox{
  position:fixed;
  inset:0;
  z-index:9999;
}
.lightbox-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.72);
}
.lightbox-content{
  position:relative;
  z-index:2;
  max-width:90vw;
  max-height:90vh;
  margin:4vh auto;
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 12px 40px rgba(0,0,0,.35);
  padding:18px 18px 14px;
}
.lightbox-content img{
  display:block;
  max-width:calc(90vw - 36px);
  max-height:74vh;
  width:auto;
  height:auto;
  margin:0 auto;
  object-fit:contain;
}
.lightbox-caption{
  text-align:center;
  font-weight:700;
  margin-top:12px;
  color:#1f2937;
}
.lightbox-close{
  position:absolute;
  top:8px;
  right:10px;
  width:40px;
  height:40px;
  border:none;
  border-radius:50%;
  background:#0b63ce;
  color:#fff;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}
body.modal-open{overflow:hidden}

@media (max-width: 720px){
  .product-image{height:150px}
  .grid{grid-template-columns:1fr}
}


/* V4 – Dateiauswahl für digitale Produkte */
.admin-section{margin:24px 0;padding:18px;border:1px solid #dbe3ee;border-radius:12px;background:#f8fafc}
.admin-section h2{margin-top:0}
.file-picker{border:1px solid #cfd8e6;border-radius:10px;overflow:hidden;background:#fff}
.file-picker-head{display:flex;justify-content:space-between;gap:16px;padding:12px 14px;background:#eaf2ff;border-bottom:1px solid #cfd8e6}
.file-list{max-height:300px;overflow:auto}
.file-list.standalone{max-height:none;margin-top:22px;border:1px solid #d7deea;border-radius:10px}
.file-row{display:grid;grid-template-columns:auto auto 1fr auto auto;align-items:center;gap:10px;padding:11px 14px;border-bottom:1px solid #edf0f5;margin:0;cursor:pointer}
.file-row:last-child{border-bottom:0}
.file-row:hover{background:#f2f7ff}
.file-row input{width:auto;margin:0}
.file-icon{font-size:20px}
.file-name{font-weight:700;overflow-wrap:anywhere}
.file-meta{color:#64748b;font-size:13px;white-space:nowrap}
.empty-files{padding:18px;margin:0;color:#64748b}
@media(max-width:650px){
  .file-row{grid-template-columns:auto 1fr;align-items:start}
  .file-meta,.file-row form{grid-column:2}
}


/* V5 – schmalere und schönere Startseite */
body{
  background:linear-gradient(180deg,#edf2f8 0%,#f6f8fb 100%);
}
.container{
  max-width:1040px !important;
}
header{
  box-shadow:0 2px 12px rgba(8,22,44,.08);
}
.topbar{
  padding-top:18px;
  padding-bottom:18px;
}
.hero{
  background:linear-gradient(135deg,#0b63ce,#20b7cf);
  padding:38px 0 46px;
}
.hero-wrap{
  display:flex;
  justify-content:center;
}
.hero-card{
  width:100%;
  max-width:920px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.24);
  border-radius:24px;
  padding:34px 36px;
  color:#fff;
  box-shadow:0 14px 34px rgba(0,0,0,.14);
  backdrop-filter:blur(4px);
}
.hero-card h1{
  font-size:52px;
  line-height:1.08;
  margin:10px 0 14px;
  letter-spacing:-0.02em;
}
.hero-card p{
  font-size:20px;
  line-height:1.5;
  max-width:760px;
  margin:0;
}
.hero-kicker{
  display:inline-block;
  background:#fff;
  color:#0b63ce;
  font-weight:700;
  font-size:13px;
  letter-spacing:.08em;
  padding:8px 12px;
  border-radius:999px;
}
.hero-points{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:24px;
}
.hero-points span{
  background:rgba(255,255,255,.15);
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  padding:9px 14px;
  font-size:14px;
  font-weight:700;
}
.page-shell{
  margin-top:-18px;
  margin-bottom:28px;
}
.intro-bar{
  background:#fff;
  border-radius:20px;
  box-shadow:0 10px 30px rgba(13,29,55,.08);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding:24px 26px;
  margin-bottom:24px;
}
.intro-bar h2{
  margin:0 0 6px;
  font-size:30px;
  color:#11243f;
}
.intro-bar p{
  margin:0;
  color:#58677b;
}
.intro-meta{
  white-space:nowrap;
  background:#eaf2ff;
  color:#0b63ce;
  font-weight:700;
  padding:12px 16px;
  border-radius:14px;
}
.grid{
  margin-top:0 !important;
}
.product{
  border:1px solid #e3eaf4;
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 8px 24px rgba(12,36,66,.08);
  transition:transform .18s ease, box-shadow .18s ease;
}
.product:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 28px rgba(12,36,66,.12);
}
.product-image{
  height:170px !important;
  background:linear-gradient(180deg,#f3f7fb,#edf2f8);
}
.product .pad{
  padding:18px 18px 22px !important;
}
.product h2{
  font-size:19px !important;
}
.product p{
  color:#4e5e73;
  min-height:40px;
}
.badge{
  display:inline-block;
  font-size:12px;
  font-weight:700;
  padding:7px 11px;
  border-radius:999px;
  background:#eaf2ff;
  color:#0b63ce;
}
.price{
  color:#11243f;
  font-size:28px !important;
  margin-top:6px;
  margin-bottom:14px !important;
}
button, .button{
  border:none;
  background:#0b63ce;
  color:#fff;
  font-weight:700;
  border-radius:12px;
  padding:12px 18px;
  box-shadow:0 8px 18px rgba(11,99,206,.18);
}
button:hover, .button:hover{
  filter:brightness(.98);
}
.empty-card{
  text-align:center;
  padding:40px;
}
.shop-info{
  margin-top:28px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.info-box{
  background:#fff;
  border-radius:18px;
  padding:22px 20px;
  box-shadow:0 8px 22px rgba(12,36,66,.06);
  border:1px solid #e4eaf3;
}
.info-box h3{
  margin:0 0 10px;
  color:#11243f;
  font-size:20px;
}
.info-box p{
  margin:0;
  color:#58677b;
  line-height:1.55;
}
footer{
  background:#11243f;
  margin-top:34px;
}
footer .container{
  padding-top:18px;
  padding-bottom:18px;
}

@media (max-width: 900px){
  .hero-card h1{font-size:40px}
  .hero-card p{font-size:18px}
  .intro-bar{flex-direction:column;align-items:flex-start}
  .shop-info{grid-template-columns:1fr}
}
@media (max-width: 640px){
  .hero{padding:26px 0 34px}
  .hero-card{padding:24px 20px;border-radius:18px}
  .hero-card h1{font-size:32px}
  .hero-card p{font-size:16px}
  .intro-bar h2{font-size:24px}
  .product-image{height:150px !important}
}

/* V6 – Template-Aufbau, Bannerverwaltung und Demo-Admin */
body{background:#e9eef5}
.site-frame{max-width:1120px;margin:18px auto;background:#fff;box-shadow:0 8px 28px rgba(20,37,63,.14);overflow:hidden}
.site-frame .container{max-width:1020px!important}
.template-banner{position:relative;margin:0;background:#163b68;overflow:hidden}
.template-banner>img{display:block;width:100%;height:auto;min-height:260px;object-fit:cover}
.banner-copy{position:absolute;left:58px;top:50%;transform:translateY(-50%);max-width:570px;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.28)}
.banner-copy h1{font-size:42px;line-height:1.08;margin:0 0 12px}
.banner-copy p{font-size:20px;line-height:1.45;margin:0 0 20px}
.banner-button{background:#fff!important;color:#123d6d!important;text-shadow:none}
.content-wrap{padding-top:28px}
.banner-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0 24px}
.banner-choice{display:block;border:2px solid #dbe3ee;border-radius:12px;padding:10px;background:#fff;cursor:pointer}
.banner-choice:has(input:checked){border-color:#0b63ce;background:#eef6ff}
.banner-choice input{width:auto;margin:0 0 8px}
.banner-choice img{width:100%;aspect-ratio:1200/330;object-fit:cover;border-radius:8px;display:block}
.banner-choice span{display:block;margin-top:8px;font-weight:700;overflow-wrap:anywhere}
.demo-notice{display:flex;gap:14px;align-items:center;background:#eaf2ff;border-left:5px solid #0b63ce;padding:14px 16px;margin:24px 0;border-radius:10px}
.demo-notice strong{white-space:nowrap}
.demo-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}
.demo-toolbar button{background:#e8eef6;color:#1f3653;box-shadow:none}
.demo-toolbar button.active{background:#0b63ce;color:#fff}
.demo-panel{display:none;background:#fff;border:1px solid #dfe6ef;border-radius:14px;padding:22px;margin-bottom:30px}
.demo-panel.active{display:block}
.panel-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
.demo-row{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid #e8edf3}
.demo-row small{display:block;margin-top:4px;color:#64748b}
.demo-thumb{width:58px;height:58px;border-radius:8px;object-fit:cover;background:#e9eef5;display:flex;align-items:center;justify-content:center;color:#64748b}
.demo-drop{border:2px dashed #b7c6da;border-radius:12px;padding:34px;text-align:center;background:#f7faff;color:#52647c}
.muted-button{background:#dbe5f1!important;color:#334b68!important;box-shadow:none}
@media(max-width:760px){
 .site-frame{margin:0;box-shadow:none}
 .template-banner>img{min-height:330px}
 .banner-copy{left:24px;right:24px;top:50%;max-width:none}
 .banner-copy h1{font-size:30px}
 .banner-copy p{font-size:16px}
 .banner-grid{grid-template-columns:1fr}
 .panel-head{flex-direction:column}
}

/* V7 – vorbereitete Zahlungsarten */
.payment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}
.payment-card{border:1px solid #dfe6ef;border-radius:14px;padding:18px;background:#fff}
.payment-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
.payment-head h2,.payment-card h2{margin:0 0 8px;font-size:20px}
.payment-head p,.payment-card p{margin:0;color:#5c6c80;line-height:1.5}
.credentials-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.section-title{margin-top:30px}
.small-note{font-size:13px;color:#64748b;margin:8px 0 0}
.payment-hint{margin-top:14px}
@media(max-width:850px){
 .payment-grid,.credentials-grid{grid-template-columns:1fr}
 .payment-head{flex-direction:column}
}

/* V8 – edler Demo-Shop */
.site-frame{
  border-radius:28px;
  border:1px solid #d8e1ec;
}
.site-frame header{
  border-radius:28px 28px 0 0;
}
.template-banner{
  margin:18px 22px 0;
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 10px 26px rgba(17,36,63,.14);
}
.template-banner>img{
  width:100%;
  aspect-ratio:2048/683;
  min-height:0!important;
  object-fit:cover;
}
.product{
  border-radius:18px!important;
}
.product-image{
  border-radius:18px 18px 0 0;
}
footer{
  border-radius:0 0 28px 28px;
}
@media(max-width:760px){
 .site-frame{border-radius:0;border:0}
 .site-frame header,footer{border-radius:0}
 .template-banner{margin:12px;border-radius:16px}
}

.invoice-header-preview{max-width:100%;max-height:280px;object-fit:contain;border:1px solid #d7deea;border-radius:10px;background:#fff;padding:8px}

/* V10 – mehrere Artikel nacheinander auswählen */
.cart-notice{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:20px;
  padding:14px 16px;
  border-radius:12px;
  background:#dcfce7;
  color:#166534;
  border:1px solid #bbf7d0;
  font-weight:700;
}
.cart-notice a{
  color:#0b63ce;
  white-space:nowrap;
}
.cart-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px;
}
@media(max-width:650px){
  .cart-notice{
    align-items:flex-start;
    flex-direction:column;
  }
}

/* V11 – Einmal-Download */
.download-box{
  margin:16px 0;
  padding:18px;
  border:1px solid #cfe0f2;
  border-radius:12px;
  background:#f7fbff;
}
.download-box p{margin:8px 0 14px}
.download-used{color:#991b1b;font-weight:700}
.download-admin-status{margin-top:8px;font-size:14px}
.status-ready{color:#166534}
.status-used{color:#991b1b}
.inline-form{margin-top:10px}
.download-link-note{margin-top:10px;font-size:13px;color:#526174}
.download-link-note code{display:block;margin-top:5px;padding:8px;background:#eef2f7;border-radius:7px;overflow-wrap:anywhere}
