/* ============================================================
   BSW NRW SHOP – Design System
   Primärverlauf: #792351 → #CF0055 → #EE7402
   Akzent: #FFCC00
   Schrift: Helvetica Neue / Arial, Headlines Heavy Condensed
   ============================================================ */

:root {
  --bsw-violet: #792351;
  --bsw-pink:   #CF0055;
  --bsw-orange: #EE7402;
  --bsw-yellow: #FFCC00;
  --bsw-grad: linear-gradient(90deg, #792351 0%, #CF0055 55%, #EE7402 100%);
  --bsw-grad-bar: linear-gradient(90deg, #792351 0%, #CF0055 55%, #EE7402 100%);
  --bg: #f5f4f2;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #666;
  --border: #e0ddd8;
  --radius: 4px;
  --shadow: 0 2px 12px rgba(0,0,0,0.10);
  --shadow-hover: 0 6px 28px rgba(207,0,85,0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

/* ---- TYPOGRAFIE ---- */
h1, h2, h3, h4, .headline {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ---- GRADIENT BAR (Signature Element) ---- */
.grad-bar {
  display: block;
  height: 5px;
  background: var(--bsw-grad);
  width: 100%;
}

.section-label {
  position: relative;
  display: inline-block;
  padding: 4px 16px 4px 0;
}
.section-label::before {
  content: '';
  position: absolute;
  left: -20px; right: 0; top: 0; bottom: 0;
  background: var(--bsw-grad);
  opacity: 0.64;
  transform: skewX(-8deg);
  z-index: 0;
}
.section-label span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---- DEMO NOTICE ---- */
.demo-notice {
  background: var(--bsw-yellow);
  color: #1a1a1a;
  text-align: center;
  padding: 8px 20px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--bsw-orange);
}

/* ---- HEADER ---- */
.site-header {
  background: #fff;
  border-bottom: 3px solid transparent;
  border-image: var(--bsw-grad) 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
  min-width: 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 1;
}

.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.logo-text-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  overflow: hidden;
}

.logo-main, .logo-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-main {
  font-size: 1.18rem;
  font-weight: 900;
  color: var(--bsw-violet);
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-sub {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--bsw-pink);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover { background: var(--bg); color: var(--bsw-pink); }

.btn-admin {
  background: var(--bsw-grad);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 7px 14px;
  border-radius: var(--radius);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: opacity 0.15s;
}
.btn-admin:hover { opacity: 0.88; }

/* ---- HERO SECTION ---- */
.hero {
  background: var(--bsw-grad);
  position: relative;
  overflow: hidden;
  padding: 56px 24px 52px;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
  margin-bottom: 12px;
  font-style: italic;
}

.hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.hero-badge {
  display: inline-block;
  background: var(--bsw-yellow);
  color: #1a1a1a;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 18px;
}

/* ---- MAIN LAYOUT ---- */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* ---- CATEGORY FILTER ---- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  align-items: center;
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-right: 4px;
}

.filter-btn {
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.filter-btn:hover { border-color: var(--bsw-pink); color: var(--bsw-pink); }
.filter-btn.active {
  background: var(--bsw-grad);
  border-color: transparent;
  color: #fff;
}

/* ---- SEARCH ---- */
.search-wrap {
  position: relative;
  margin-bottom: 20px;
  max-width: 480px;
}
.search-input {
  width: 100%;
  padding: 10px 40px 10px 16px;
  border: 2px solid var(--border);
  border-radius: 24px;
  font-size: 0.92rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-input:focus {
  outline: none;
  border-color: var(--bsw-pink);
  box-shadow: 0 0 0 3px rgba(207,0,85,0.10);
}
.search-input::placeholder { color: var(--text-muted); }
.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
  opacity: 0.5;
}
.search-no-results {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: none;
}
.admin-search-wrap {
  position: relative;
  margin-bottom: 14px;
  max-width: 380px;
}

/* ---- PRODUCT GRID ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--border);
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--bsw-pink);
}

.product-img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, #f0eef5 0%, #fdf0f4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}

.product-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  color: var(--text-muted);
}

.product-img-placeholder .placeholder-icon {
  font-size: 3rem;
  opacity: 0.3;
}

.product-img-placeholder .placeholder-id {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--bsw-violet);
  opacity: 0.5;
}

.product-card--featured {
  border: 2.5px solid #e8a000;
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25), var(--shadow);
}
.product-card--featured:hover {
  border-color: #e8a000;
  box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.35), var(--shadow-hover);
}

.cat-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--bsw-grad);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
}

.product-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}

.product-short {
  font-size: 0.84rem;
  color: var(--text-muted);
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.product-price {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--bsw-violet);
}

.btn-detail {
  background: var(--bsw-grad);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s;
  letter-spacing: 0.02em;
}
.btn-detail:hover { opacity: 0.88; }

/* ---- PRODUCT MODAL / LIGHTBOX ---- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,0,20,0.82);
  z-index: 1000;
  overflow-y: auto;
  padding: 40px 20px;
}
.modal-overlay.open { display: flex; align-items: flex-start; justify-content: center; }

.modal-box {
  background: #fff;
  border-radius: 6px;
  max-width: 860px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  animation: modalIn 0.22s ease;
  margin: auto;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.modal-header-bar {
  background: var(--bsw-grad);
  height: 5px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  font-family: inherit;
}
.modal-close:hover { background: var(--bsw-pink); }

.modal-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

@media (max-width: 640px) {
  .modal-layout { grid-template-columns: 1fr; }
}

.modal-img-side {
  background: linear-gradient(135deg, #f0eef5 0%, #fdf0f4 100%);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-img-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
}
.modal-img-placeholder .big-icon { font-size: 5rem; opacity: 0.2; }
.modal-img-placeholder .big-id {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--bsw-violet);
  opacity: 0.4;
}

.modal-info {
  padding: 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-cat {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bsw-pink);
}

.modal-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.15;
}

.modal-price {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--bsw-violet);
}

.desc-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-top: 4px;
}

.desc-tab {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 14px;
  cursor: pointer;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
}
.desc-tab.active {
  color: var(--bsw-pink);
  border-bottom-color: var(--bsw-pink);
}

.desc-content {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
  min-height: 80px;
}

.modal-demo-note {
  background: #fffbe6;
  border: 1.5px solid var(--bsw-yellow);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.78rem;
  color: #664d00;
  margin-top: 4px;
  font-weight: 600;
}

/* ---- SECTION HEADING ---- */
.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  margin-left: -8px;
}

.section-heading-bar {
  width: 5px;
  height: 32px;
  background: var(--bsw-grad);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-heading h2 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--bsw-violet);
  color: rgba(255,255,255,0.75);
  margin-top: 60px;
}

.footer-top {
  background: var(--bsw-grad);
  height: 4px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bsw-yellow);
  margin-bottom: 12px;
}

.footer-col p, .footer-col a {
  font-size: 0.84rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  display: block;
}
.footer-col a:hover { color: var(--bsw-yellow); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  padding: 14px 24px;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.45);
}

/* ---- STATIC PAGES (Impressum / Datenschutz) ---- */
.static-page {
  max-width: 760px;
  margin: 40px auto;
  padding: 0 24px 60px;
}

.static-page h1 {
  font-size: 2rem;
  margin-bottom: 28px;
  color: var(--bsw-violet);
}

.static-page h2 {
  font-size: 1.15rem;
  margin: 28px 0 8px;
  color: var(--bsw-pink);
}

.static-page p, .static-page li {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 10px;
}

.static-page ul { padding-left: 20px; }

.demo-box {
  background: #fffbe6;
  border: 2px solid var(--bsw-yellow);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
}
.demo-box p { font-weight: 700; font-size: 0.88rem; color: #664d00; margin: 0; }

/* ---- ADMIN ---- */
.admin-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

.admin-header {
  background: var(--bsw-grad);
  padding: 18px 24px;
  color: #fff;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-header a { color: rgba(255,255,255,0.8); font-size: 0.84rem; text-decoration: none; }
.admin-header a:hover { color: #fff; }

.admin-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
  gap: 0;
}

.admin-tab {
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
}
.admin-tab.active { color: var(--bsw-pink); border-bottom-color: var(--bsw-pink); }
.admin-tab:hover { color: var(--bsw-pink); }

.admin-section { display: none; }
.admin-section.active { display: block; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.form-grid.full { grid-template-columns: 1fr; }

@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--bsw-pink);
}
.form-group textarea { resize: vertical; min-height: 80px; }

.btn-primary {
  background: var(--bsw-grad);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.88; }

.btn-secondary {
  background: #fff;
  color: var(--bsw-violet);
  border: 1.5px solid var(--bsw-violet);
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.btn-secondary:hover { background: var(--bsw-violet); color: #fff; }

.btn-danger {
  background: #fff;
  color: #c0392b;
  border: 1.5px solid #c0392b;
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.btn-danger:hover { background: #c0392b; color: #fff; }

.btn-edit {
  background: #fff;
  color: var(--bsw-violet);
  border: 1.5px solid var(--border);
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.btn-edit:hover { border-color: var(--bsw-violet); }

.products-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.products-table th {
  background: var(--bsw-violet);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 14px;
  text-align: left;
}
.products-table th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.products-table th.sortable:hover {
  background: var(--bsw-pink);
}
.products-table th.sort-active {
  background: var(--bsw-pink);
}
.products-table .sort-icon {
  font-style: normal;
  opacity: 0.7;
  margin-left: 4px;
  font-size: 0.85em;
}
.products-table td {
  padding: 10px 14px;
  font-size: 0.86rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.products-table tr:last-child td { border-bottom: none; }
.products-table tr:nth-child(even) td { background: #faf8fc; }
.products-table tr:hover td { background: #f9f0f4; }

.thumb-cell img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--border);
}

.thumb-placeholder {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #f0eef5, #fdf0f4);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid var(--border);
}

.badge-active {
  display: inline-block;
  background: #d5f5e3;
  color: #1a7a4a;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}
.badge-inactive {
  display: inline-block;
  background: #fde8e8;
  color: #c0392b;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}
.badge-featured {
  display: inline-block;
  background: #fff3cd;
  color: #856404;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid #ffc107;
  margin-left: 4px;
}

.action-btns { display: flex; gap: 6px; flex-wrap: wrap; }

.card-admin {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.card-admin h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--bsw-violet);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.alert-success { background: #d5f5e3; color: #1a7a4a; border-left: 4px solid #27ae60; }
.alert-error { background: #fde8e8; color: #c0392b; border-left: 4px solid #e74c3c; }

.logo-preview {
  margin-top: 10px;
  max-height: 60px;
  max-width: 200px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  background: #fff;
}

.img-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s;
  background: #fafafa;
}
.img-upload-area:hover { border-color: var(--bsw-pink); }
.img-upload-area p { font-size: 0.82rem; color: var(--text-muted); margin-top: 6px; }

/* ---- LOGIN ---- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 40px 20px;
}

.login-box {
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 380px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.login-top {
  background: var(--bsw-grad);
  padding: 24px;
  text-align: center;
}
.login-top h2 { color: #fff; font-size: 1.1rem; }
.login-top p { color: rgba(255,255,255,0.8); font-size: 0.8rem; margin-top: 4px; }

.login-body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---- MISC ---- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 3rem; opacity: 0.3; margin-bottom: 12px; }
.empty-state h3 { font-size: 1rem; color: var(--text-muted); font-weight: 700; }

.tag { display: inline-block; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; font-size: 0.74rem; font-weight: 700; padding: 2px 8px; color: var(--text-muted); }

@media (max-width: 768px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .modal-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .products-table { font-size: 0.78rem; }
  .hero h1 { font-size: 1.8rem; }
}

/* ---- HAMBURGER BUTTON (nur mobil sichtbar) ---- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 6px 8px;
  color: var(--bsw-violet);
  border-radius: var(--radius);
  transition: background 0.15s;
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--bg); }
.nav-toggle[aria-expanded="true"] { color: var(--bsw-pink); }

@media (max-width: 600px) {
  .nav-toggle { display: flex; align-items: center; }

  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 16px;
    gap: 0;
  }
  .site-logo {
    flex: 1 1 auto;
    padding: 4px 0;
  }
  .logo-img { height: 36px; }

  /* Nav standardmäßig versteckt, aufgeklappt per .nav-open */
  .header-nav {
    display: none;
    width: 100%;
    margin-left: 0;
    border-top: 1px solid var(--border);
    padding: 8px 0 6px;
    flex-direction: column;
    gap: 2px;
  }
  .header-nav.nav-open { display: flex; }

  .nav-link {
    padding: 10px 12px;
    font-size: 0.92rem;
    border-radius: var(--radius);
    width: 100%;
    box-sizing: border-box;
  }
  .btn-admin {
    padding: 10px 12px;
    font-size: 0.88rem;
    text-align: center;
    margin-top: 4px;
  }
}

/* ---- STAFFELPREISE ---- */
.tiers-wrap {
  margin-top: 10px;
}

.tiers-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.tiers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.tiers-table th {
  background: var(--bsw-violet);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 10px;
  text-align: left;
}

.tiers-table td {
  padding: 5px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.tiers-table tr:last-child td { border-bottom: none; }
.tiers-table tr:nth-child(even) td { background: #faf8fc; }

.tiers-table .tier-price {
  font-weight: 800;
  color: var(--bsw-violet);
}

.tiers-table .tier-saving {
  font-size: 0.72rem;
  color: #1a7a4a;
  font-weight: 700;
}

.tiers-table tr.tier-active td {
  background: #f3e6ed;
}

/* Admin Staffelpreise */
.tiers-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  margin-bottom: 10px;
}

.tiers-admin-table th {
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.tiers-admin-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.tiers-admin-table tr:last-child td { border-bottom: none; }

.tiers-admin-table input[type="number"],
.tiers-admin-table input[type="text"] {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  padding: 5px 8px;
  font-size: 0.86rem;
  font-family: inherit;
  background: #fff;
}

.tiers-admin-table input:focus {
  outline: none;
  border-color: var(--bsw-pink);
}

.btn-add-tier {
  background: #fff;
  border: 1.5px dashed var(--bsw-violet);
  color: var(--bsw-violet);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  width: 100%;
  margin-top: 4px;
}
.btn-add-tier:hover { background: var(--bsw-violet); color: #fff; border-style: solid; }

.btn-del-tier {
  background: none;
  border: none;
  color: #c0392b;
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  transition: background 0.15s;
  line-height: 1;
}
.btn-del-tier:hover { background: #fde8e8; }

.tier-base-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-style: italic;
}

/* ============================================================
   MOTIVE – Shopfront Motivwähler & Admin
   ============================================================ */

/* ---- Motivwähler in der Lightbox ---- */
.motiv-section {
  margin-top: 10px;
}

.motiv-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.motiv-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.motiv-thumb {
  width: 58px;
  height: 58px;
  border-radius: 4px;
  border: 2px solid var(--border);
  cursor: pointer;
  overflow: hidden;
  background: linear-gradient(135deg, #f0eef5, #fdf0f4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, transform 0.12s;
  flex-shrink: 0;
  position: relative;
}

.motiv-thumb:hover {
  border-color: var(--bsw-pink);
  transform: scale(1.06);
}

.motiv-thumb.selected {
  border-color: var(--bsw-violet);
  box-shadow: 0 0 0 2px var(--bsw-violet);
}

.motiv-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.motiv-thumb-placeholder {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--bsw-violet);
  opacity: 0.5;
  text-align: center;
  padding: 4px;
  line-height: 1.2;
}

.motiv-name {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-style: italic;
  min-height: 1.2em;
}

.motiv-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10,0,20,0.85);
  color: #fff;
  font-size: 0.72rem;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 3px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 10;
  max-width: 160px;
  white-space: normal;
  text-align: center;
}

.motiv-thumb:hover .motiv-tooltip {
  opacity: 1;
}

/* ---- Admin Motivverwaltung ---- */
.motiv-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.motiv-admin-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s;
}

.motiv-admin-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--bsw-pink);
}

.motiv-admin-img {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #f0eef5, #fdf0f4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.motiv-admin-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.motiv-admin-img-placeholder {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--bsw-violet);
  opacity: 0.4;
  text-align: center;
  padding: 8px;
}

.motiv-admin-body {
  padding: 10px 12px 12px;
}

.motiv-admin-id {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--bsw-pink);
  text-transform: uppercase;
}

.motiv-admin-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin: 2px 0 4px;
}

.motiv-admin-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
}

.motiv-admin-actions {
  display: flex;
  gap: 6px;
}

/* ---- Admin Artikel: Motivzuordnung (Checkboxen) ---- */
.motiv-assign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.motiv-assign-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fafafa;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.motiv-assign-item:hover {
  border-color: var(--bsw-pink);
  background: #fdf0f4;
}

.motiv-assign-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--bsw-violet);
  flex-shrink: 0;
  cursor: pointer;
}

.motiv-assign-item label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
}

.motiv-assign-thumb {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #f0eef5, #fdf0f4);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.motiv-assign-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.motiv-assign-thumb-ph {
  font-size: 0.55rem;
  font-weight: 800;
  color: var(--bsw-violet);
  opacity: 0.5;
  text-align: center;
}

/* ============================================================
   SOCIAL MEDIA SHARE BAR
   ============================================================ */

.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 4px;
  border-top: 1px solid var(--border);
  margin-top: 6px;
  flex-wrap: wrap;
}

.share-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.share-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  overflow: hidden;
}

.share-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}

.share-btn:hover {
  transform: scale(1.18);
  box-shadow: 0 3px 10px rgba(0,0,0,0.22);
}

/* ---- Toast-Meldung (Link kopiert) ---- */
.copy-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--bsw-violet);
  color: #fff;
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 9999;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   PRODUKT-DETAILSEITE (produkt.php)
   ============================================================ */

.produkt-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 0 60px;
}

@media (max-width: 640px) {
  .produkt-detail { grid-template-columns: 1fr; gap: 24px; }
}

.produkt-img-wrap {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #f0eef5 0%, #fdf0f4 100%);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.produkt-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.produkt-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.produkt-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0;
}

.produkt-desc {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.65;
  margin: 0;
}

/* ===== Musik-Seite ===== */
.musik-hero {
  background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 50%, #0a1a2e 100%);
  padding: 48px 24px 32px;
  text-align: center;
  color: #fff;
}
.musik-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 8px; }
.musik-hero p  { opacity: .75; font-size: .95rem; }

.musik-toolbar {
  display: flex; align-items: center; gap: 12px; padding: 12px 24px;
  background: var(--surface); border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.musik-count { font-size: .84rem; color: var(--text-muted); flex: 1; }
.play-all-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--bsw-pink); color: #fff; border: none;
  padding: 8px 16px; border-radius: 20px; font-weight: 600; cursor: pointer;
  font-size: .86rem; transition: opacity .15s;
}
.play-all-btn:hover { opacity: .85; }
.sort-select {
  padding: 6px 12px; border: 1.5px solid var(--border); border-radius: 6px;
  font-size: .84rem; background: var(--surface); color: var(--text); cursor: pointer;
}

.musik-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px; padding: 24px;
}
.musik-card {
  background: var(--surface); border-radius: 10px; overflow: hidden;
  border: 1.5px solid var(--border); transition: transform .15s, border-color .15s;
  cursor: pointer; position: relative;
}
.musik-card:hover { transform: translateY(-2px); border-color: var(--bsw-pink); }
.musik-card.playing { border-color: var(--bsw-pink); box-shadow: 0 0 0 2px rgba(180,50,120,.2); }
.musik-cover {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block;
  background: #1a0a2e;
}
.musik-cover-ph {
  width: 100%; aspect-ratio: 1/1; background: linear-gradient(135deg,#1a0a2e,#2d1b4e);
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
}
.musik-card-body { padding: 10px 12px 12px; }
.musik-title { font-size: .84rem; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.musik-actions { display: flex; gap: 6px; align-items: center; }
.btn-play-card {
  background: var(--bsw-pink); border: none; color: #fff; width: 32px; height: 32px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem; transition: opacity .15s; flex-shrink: 0;
}
.btn-play-card:hover { opacity: .85; }
.btn-play-card.playing-icon::after { content: '⏸'; }
.btn-play-card:not(.playing-icon)::after { content: '▶'; font-size: .8rem; padding-left: 2px; }
.btn-dl {
  background: none; border: 1.5px solid var(--border); color: var(--text-muted);
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; cursor: pointer; font-size: .9rem; text-decoration: none;
  transition: all .15s; flex-shrink: 0;
}
.btn-dl:hover { border-color: var(--bsw-pink); color: var(--bsw-pink); }
.btn-share-song {
  background: none; border: 1.5px solid var(--border); color: var(--text-muted);
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; cursor: pointer; font-size: .9rem; text-decoration: none;
  transition: all .15s; flex-shrink: 0;
}
.btn-share-song:hover { border-color: var(--bsw-pink); color: var(--bsw-pink); }
.musik-stars { display: flex; gap: 2px; flex: 1; justify-content: flex-end; }
.star {
  font-size: .95rem; cursor: pointer; color: #ccc; transition: color .1s;
  background: none; border: none; padding: 0; line-height: 1;
}
.star.filled { color: #f5a623; }
.star:hover ~ .star { color: #ccc !important; }
.musik-stars:hover .star { color: #f5a623; }
.musik-stars .star:hover ~ .star { color: #ccc; }

/* ===== Sticky Player ===== */
#sticky-player {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: #12002a; color: #fff;
  border-top: 2px solid #6b21a8;
  display: none; flex-direction: column;
}
#sticky-player.visible { display: flex; }
.player-progress-bar-wrap {
  height: 4px; background: rgba(255,255,255,.15); cursor: pointer; position: relative;
}
.player-progress-bar {
  height: 100%; background: var(--bsw-pink); width: 0%; transition: width .3s linear;
  pointer-events: none;
}
.player-inner {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  min-height: 64px;
}
.player-cover {
  width: 44px; height: 44px; border-radius: 4px; object-fit: cover;
  background: #2d1b4e; flex-shrink: 0;
}
.player-info { flex: 1; min-width: 0; }
.player-title { font-weight: 600; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-type  { font-size: .72rem; opacity: .6; }
.player-controls { display: flex; align-items: center; gap: 8px; }
.ctrl-btn {
  background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer;
  padding: 4px; opacity: .8; transition: opacity .15s;
}
.ctrl-btn:hover { opacity: 1; }
.ctrl-btn.big { font-size: 1.6rem; opacity: 1; }
.player-time { font-size: .76rem; opacity: .6; white-space: nowrap; }
.player-vol { display: flex; align-items: center; gap: 6px; }
.player-vol input[type=range] { width: 70px; accent-color: var(--bsw-pink); }
.player-close { background: none; border: none; color: #fff; opacity: .5; cursor: pointer; font-size: 1rem; padding: 4px; }
.player-close:hover { opacity: 1; }

/* Share-Zeile im Player */
.player-share-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 16px 10px; border-top: 1px solid rgba(255,255,255,.12); flex-wrap: wrap;
}
.player-share-row .share-label { color: rgba(255,255,255,.5); }
.player-share-row .share-btn { background: rgba(255,255,255,.06); }
.player-share-row .share-btn:hover { background: rgba(255,255,255,.18); }

body.player-open { padding-bottom: 110px; }

/* Nav-Link aktiv (SPA) */
.nav-link.active { color: var(--bsw-pink); background: var(--bg); }
