/* ============================================================
   DTF-Shop - One-Page Styles
   Minimalistisch, schnell, SEO-freundlich (systemnahe Fonts optional,
   hier bewusst Google-Fonts "Inter" mit Fallback).
   ============================================================ */
:root {
  --bg: #0b0d12;
  --surface: #12151d;
  --surface-2: #171b25;
  --line: #232838;
  --text: #eef1f7;
  --muted: #9aa3b6;
  --brand: #ff2e88;
  --brand-2: #7b5bff;
  --ok: #22c55e;
  --warn: #f59e0b;
  --err: #ef4444;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 70% -10%, #1a1030 0%, var(--bg) 55%) fixed;
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); letter-spacing: -.01em; }
p { margin: 0 0 1em; color: var(--muted); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.hidden { display: none !important; }
.center { text-align: center; }

/* Skip-Link für A11y/SEO */
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 0 0 8px 0; z-index: 100; }
.skip:focus { left: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11, 13, 18, .72);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; font-size: 1.1rem; }
.logo .dot { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 0 18px var(--brand); }
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.nav a:hover { color: var(--text); }
.cart-badge { background: var(--brand); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: .75rem; font-weight: 700; margin-left: 4px; }

/* Hero */
.hero { padding: 64px 0 32px; }
.hero .eyebrow { color: var(--brand); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
.hero p.lead { font-size: 1.08rem; max-width: 60ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* Buttons */
.btn {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: transform .08s ease, border-color .15s, background .15s;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
}
.btn:hover { border-color: #38405a; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border: none; color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 8px 14px; font-size: .88rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Cards / Panels */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card + .card { margin-top: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; } }

/* Steps */
.step { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: none; }
.step-num {
  flex: 0 0 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
}
.step.active .step-num { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border: none; }
.step-body { flex: 1; min-width: 0; }

/* Auswahl-Kacheln (Modus / Kleber / Zahlung) */
.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.chip {
  text-align: left; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 16px; color: var(--text);
  transition: border-color .15s, background .15s;
}
.chip:hover { border-color: #3a4560; }
.chip.selected { border-color: var(--brand); background: rgba(255, 46, 136, .08); box-shadow: 0 0 0 3px rgba(255, 46, 136, .12); }
.chip .chip-title { font-weight: 700; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.chip .chip-sub { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.chip .price-tag { color: var(--brand); font-weight: 700; font-size: .85rem; white-space: nowrap; }

/* Forms */
label.field { display: block; margin-bottom: 12px; font-size: .88rem; color: var(--muted); }
label.field span { display: block; margin-bottom: 5px; }
input[type=text], input[type=email], input[type=number], input[type=tel], select, textarea {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px; font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); border-color: transparent; }
input[type=number] { appearance: textfield; }
.row { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 12px; }
@media (max-width: 700px) { .row { grid-template-columns: 1fr; } }

/* Dropzone */
.dropzone {
  border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 34px 20px; text-align: center; color: var(--muted);
  transition: border-color .15s, background .15s; cursor: pointer;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--brand); background: rgba(255, 46, 136, .05); }
.dropzone strong { color: var(--text); }

/* Logo-Liste */
.logo-item {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px; margin-top: 12px;
}
.logo-thumb { width: 72px; height: 72px; background: repeating-conic-gradient(#2a3040 0 25%, #202634 0 50%) 0/16px 16px; border-radius: 8px; display: grid; place-items: center; overflow: hidden; }
.logo-thumb img { width: 100%; height: 100%; object-fit: contain; }
.logo-fields { display: grid; grid-template-columns: 130px 110px auto; gap: 10px; align-items: end; }
@media (max-width: 620px) { .logo-fields { grid-template-columns: 1fr 1fr; } }
.icon-btn { background: transparent; border: 1px solid var(--line); border-radius: 8px; width: 34px; height: 34px; color: var(--muted); display: grid; place-items: center; }
.icon-btn:hover { color: var(--err); border-color: var(--err); }
.klein { font-size: .8rem; color: var(--muted); }

/* Preisbox */
.price-box { position: sticky; top: 78px; }
.price-line { display: flex; justify-content: space-between; padding: 6px 0; font-size: .92rem; }
.price-line.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 1.15rem; font-weight: 800; }
.price-line .label { color: var(--muted); }

/* Packing-Preview */
.roll-preview { background: #0d1016; border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-top: 12px; }
.roll-preview .roll-label { font-size: .78rem; color: var(--muted); margin-bottom: 6px; }

/* Modal (Logo-Editor) */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-backdrop.open { display: flex; }
.modal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); width: min(960px, 100%); max-height: 92vh; overflow: auto; box-shadow: var(--shadow); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.modal-body { padding: 20px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
@media (max-width: 820px) { .modal-body { grid-template-columns: 1fr; } }
.canvas-wrap { background: repeating-conic-gradient(#2a3040 0 25%, #202634 0 50%) 0/20px 20px; border-radius: 10px; padding: 14px; position: relative; }
.canvas-wrap canvas { width: 100%; height: auto; border-radius: 6px; touch-action: none; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.swatch { width: 34px; height: 34px; border-radius: 8px; border: 2px solid var(--line); }
.swatch.selected { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(255,46,136,.25); }
.pantone-list { max-height: 190px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; margin-top: 6px; }
.pantone-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; cursor: pointer; border-bottom: 1px solid var(--line); }
.pantone-row:hover { background: var(--surface-2); }
.pantone-row .pc { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line); }

/* Alerts */
.alert { border-radius: 10px; padding: 12px 14px; margin: 12px 0; font-size: .9rem; border: 1px solid; }
.alert-ok { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.4); color: #b6f0c8; }
.alert-err { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.4); color: #ffc4c4; }
.alert-warn { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.4); color: #ffe0a6; }

/* Spinner */
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 40px 0 60px; color: var(--muted); font-size: .9rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

/* FAQ (native details = SEO-freundlich) */
details.faq { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; background: var(--surface); }
details.faq summary { cursor: pointer; font-weight: 600; color: var(--text); }
details.faq p { margin: 10px 0 0; }

/* Legal pages */
.legal { padding: 40px 0 80px; max-width: 780px; }
.legal h1 { margin-bottom: 20px; }
.legal h2 { margin-top: 28px; font-size: 1.2rem; }

/* Utility */
hr { border: none; border-top: 1px solid var(--line); margin: 22px 0; }
.tag { display: inline-block; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: .78rem; color: var(--muted); }
.flex { display: flex; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
