/* =================== Allgemein =================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
img { max-width: 100%; height: auto; display: block; }

body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(rgba(0, 123, 255, 0.8), rgba(0, 123, 255, 0.4)),
              url('./images/hintergrund.png') no-repeat center center/cover;
  background-attachment: fixed;
  background-size: cover;
  color: #fff;
  line-height: 1.6;
}

/* =================== Header =================== */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(0, 123, 255, 0.8);
  text-align: center;
  box-shadow: 0 6px 22px rgba(0,0,0,.18);
  padding: 12px 0 10px;
}
.header-inner { display: flex; justify-content: center; align-items: center; margin-bottom: 6px; }
.nav-giflogo { width: clamp(180px, 26vw, 280px); height: auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.3)); }
nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; }
nav a { color: #F1C40F; text-decoration: none; font-weight: 700; font-size: 1.1em; transition: color .2s ease; }
nav a:hover { color: #fff; text-shadow: 0 0 6px rgba(255,255,255,0.4); }
header::after {
  content: ""; display: block; width: 80%; height: 2px;
  background: linear-gradient(to right, transparent, #fff, transparent);
  margin: 8px auto 0;
}

/* =================== Container & Sektionen =================== */
.container { width: min(1200px, 94%); margin: 20px auto; }
.section {
  background: rgba(96,160,225,0.38);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

/* =================== Texte & Überschriften =================== */
h1, h2, h3, h4 { text-shadow: 1px 1px 3px rgba(0,0,0,0.3); color: #F1C40F; }
h2 { text-align: center; margin-bottom: 12px; }
h3 { margin-top: 4px; margin-bottom: 10px; }

/* =================== Formular-Design =================== */
input, select, textarea {
  width: 100%; height: 46px; line-height: 46px; padding: 0 14px;
  border-radius: 14px; border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.14); color: #fff; text-align: center;
  outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea { height: 120px; line-height: 1.4; text-align: left; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: #F1C40F; box-shadow: 0 0 0 3px rgba(241,196,15,0.35); background: rgba(255,255,255,0.2);
}
::placeholder { color: rgba(255,255,255,0.75); }
label { font-weight: 700; display: block; margin-bottom: 6px; color: #fff; }

/* =================== Buttons =================== */
.btn {
  display: inline-block; padding: 10px 16px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.28); background: rgba(255,255,255,0.16);
  color: #fff; text-decoration: none; font-weight: 700; transition: all .2s;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,0.25); }
.btn.primary { background: #F1C40F; color: #06355f; border-color: #F1C40F; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.danger { background: rgba(220,53,69,0.28); border-color: rgba(220,53,69,0.55); color: #ffe3e3; }
.btn.danger:hover { background: rgba(220,53,69,0.38); transform: translateY(-1px); filter: brightness(1.02); }
.btn.btn-icon, .btn.icon { padding: 6px 12px; line-height: 1; font-size: 18px; border-radius: 10px; }
.btn.sm { padding: 6px 10px; border-radius: 10px; font-size: .95rem; }

/* =================== Produkt-Grid =================== */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px; padding: 14px; color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  display: flex; flex-direction: column; gap: 10px;
}
.media { border-radius: 16px; overflow: hidden; background: rgba(255,255,255,0.06); }
.product-image { display: block; width: 100%; height: auto; object-fit: contain; object-position: center; }
.product-title { margin: 2px 0 0; font-weight: 800; color: #fff; text-align: center; }
.product-price { margin: 0 0 8px; text-align: center; }

/* =================== Hero (Startseite) =================== */
.hero { text-align: center; padding: 10px 0 6px; }
.hero-image {
  display: block; margin: 0 auto 8px; width: clamp(200px, 28vw, 360px);
  height: auto; object-fit: contain; filter: drop-shadow(0 10px 22px rgba(0,0,0,0.25));
}

/* =================== Footer =================== */
footer {
  background-color: rgba(0, 123, 255, 0.8);
  text-align: center; color: white; padding: 14px 0;
  box-shadow: 0 -6px 12px rgba(0,0,0,0.2);
}

/* =================== Produktdetail & Galerie =================== */
.detail-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: start;
}
.detail-media {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 12px;
}

/* Hauptbild + 3D Viewer – um 20 % kleiner */
.product-image--detail { width: 100%; height: 416px; object-fit: contain; border-radius: 12px; background: transparent; display: block; }
.pg-main-3d { width: 100%; height: 416px; position: relative; }

/* Galerie */
.pg-wrap { display: flex; flex-direction: column; gap: 8px; }
.pg-main-wrap { position: relative; }
.pg-counter {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(0,0,0,.6); color: #fff; padding: 4px 8px;
  border-radius: 999px; font-size: .85rem;
}
.pg-thumbs { display: flex; gap: 8px; overflow: auto; padding: 2px 0; }
.pg-thumb-btn {
  border: 2px solid transparent; border-radius: 10px; padding: 0; background: transparent;
  cursor: pointer; outline: none;
}
.pg-thumb-btn img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; display: block; }
.pg-thumb-btn.is-active { border-color: #2563eb; }

/* Responsive: einspaltig */
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } }

/* Mobile: noch mal kleiner */
@media (max-width: 600px) {
  .product-image--detail, .pg-main-3d { height: 320px; }
  .pg-thumb-btn img, .pg-thumb-btn svg { width: 45px; height: 45px; }
}

/* =================== Hilfs-Utilities =================== */
.text-right { text-align: right; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.top-actionbar { margin-left:auto; margin-right:auto; }

/* =================== Checkout =================== */
.checkout-actions {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; flex-wrap: wrap; margin: 0 0 12px 0;
}

/* Radio-Liste als Karten */
.radio-list { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 6px; }
@media (min-width: 700px) { .radio-list { grid-template-columns: repeat(3, 1fr); } }

.radio-item {
  display: flex; align-items: center; gap: 12px; padding: 12px; cursor: pointer;
  border-radius: 14px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.10);
  transition: background .2s, border-color .2s, transform .05s;
}
.radio-item:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.28); }

/* Custom Radio */
.radio-item input[type="radio"] {
  appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7); background: transparent; position: relative; display: inline-block; flex: 0 0 auto; outline: none;
}
.radio-item input[type="radio"]::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: transparent; transition: background .2s, transform .2s; transform: scale(0.6);
}
.radio-item input[type="radio"]:checked { border-color: #F1C40F; box-shadow: 0 0 0 3px rgba(241,196,15,0.35); }
.radio-item input[type="radio"]:checked::after { background: #F1C40F; }
.radio-item label { margin: 0; font-weight: 700; color: #fff; cursor: pointer; }

/* Checkout Tabellenlayout */
.tbl-checkout { width: 100%; border-collapse: collapse; table-layout: fixed; }
.tbl-checkout th, .tbl-checkout td {
  padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.15); vertical-align: middle;
}
.tbl-checkout thead th { text-align: left; color: #F1C40F; font-weight: 800; }
.tbl-checkout td, .tbl-checkout tbody th { color: #fff; }
.tbl-checkout th:nth-child(n+2), .tbl-checkout td:nth-child(n+2) { text-align: right; }
@media (max-width: 600px) { .tbl-checkout th, .tbl-checkout td { padding: 8px 10px; } }

/* Checkout Media Thumbs (einheitlich) */
.mini-media { display: inline-flex; align-items: center; gap: 8px; line-height: 1.1; }
.mini-thumb, .stl-mini { width: 56px; height: 56px; border-radius: 8px; background: rgba(255,255,255,0.08); display: block; object-fit: cover; }
.mini-title { font-weight: 700; color: #fff; }

/* ==== Select (Dropdown) ans Theme anpassen ==== */
select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.28);
  border-radius: 14px; padding: 0 42px 0 14px; height: 46px; line-height: 46px;
  text-align: center; transition: border-color .2s, box-shadow .2s, background .2s;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23F1C40F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 14px 14px;
}
select:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.36); }
select:focus { border-color: #F1C40F; box-shadow: 0 0 0 3px rgba(241,196,15,0.35); background: rgba(255,255,255,0.20); }
select::-ms-expand { display: none; }
select option { background-color: rgba(6, 53, 95, 0.96); color: #fff; }
select optgroup { background-color: rgba(6, 53, 95, 0.96); color: #F1C40F; font-weight: 700; }
select option:checked, select option:hover { background-color: #2563eb; color: #fff; }
select:disabled { opacity: .6; cursor: not-allowed; }
select option:disabled { color: rgba(255,255,255,0.6); }
.select--sm { height: 38px; line-height: 38px; font-size: .95rem; padding-right: 38px; }
select.select-sm { height: 38px; line-height: 38px; padding: 0 38px 0 10px; }

/* ==== Admin Orders: kompakter Action-Bereich ==== */
.actions { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 10px; align-items: start; }
@media (max-width: 900px){ .actions { grid-template-columns: 1fr 1fr 1fr; } }
.actions .group { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn.icon[title] { position: relative; }

/* ==========================================================
   ===== Account / Orders (Konto): Tabellen + Mobile Stack ===
   ========================================================== */

/* Tabs im Konto – als Buttons (wie vorher) */
.tabs{
  display:flex; justify-content:center; align-items:center;
  gap:.45rem; flex-wrap:wrap; margin:.5rem 0 1rem;
}
.tabs .tab{ flex:0 0 auto; }
.tabs .tab a{
  display:inline-flex; align-items:center; gap:.35rem;
  padding:10px 16px; border-radius:12px;
  border:1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.16);
  color:#fff; text-decoration:none; font-weight:700;
  transition: transform .12s ease, background .2s ease, border-color .2s ease, filter .2s ease;
  text-shadow:none;
}
.tabs .tab a:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.36);
}
.tabs .tab a:focus{
  outline: none; box-shadow: 0 0 0 3px rgba(241,196,15,0.35);
}
.tabs .tab.active a,
.tabs .tab a[aria-current="page"]{
  background:#F1C40F; color:#06355f; border-color:#F1C40F; filter:none;
}
@media (max-width: 520px){
  .tabs{ gap:.4rem; }
  .tabs .tab a{ padding:12px 16px; }
}

/* Bestell-Tabellen – Desktop */
.table-orders, .table-order-detail{
  width:100%; border-collapse:collapse; table-layout:fixed;
}
.table-orders th,.table-orders td,
.table-order-detail th,.table-order-detail td{
  padding:10px 12px; border-bottom:1px solid rgba(255,255,255,0.1);
}
.table-orders th, .table-order-detail th{ text-align:left; }
.td-right{ text-align:right; }

/* Artikel-Thumbnails (Liste & Details) */
.td-products{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.prod-thumb{
  position:relative; width:64px; height:48px; border-radius:8px; overflow:hidden;
  background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.15);
}
.img-mini{ width:100%; height:100%; object-fit:cover; display:block; }
.stl-mini{ width:100%; height:100%; display:block; }
.swatch-dot{
  position:absolute; right:4px; bottom:4px; width:12px; height:12px;
  border-radius:999px; border:2px solid rgba(0,0,0,.35);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.25);
}
.qty-badge{
  position:absolute; left:4px; top:4px; font-size:.72rem; line-height:1;
  padding:2px 4px; border-radius:6px; background:#F1C40F; color:#06355f; font-weight:700;
  border:1px solid rgba(0,0,0,.15);
}

/* Detail-Item Layout */
.detail-item{ display:flex; align-items:center; gap:8px; }
.detail-title{ font-weight:700; }

/* ====== Mobile-Stack für Tabellen ====== */
@media (max-width: 760px){
  .table-orders th, .table-orders td,
  .table-order-detail th, .table-order-detail td{ width:auto !important; }
  .table-orders .nowrap, .table-order-detail .nowrap { white-space: normal; }

  .table-orders thead, .table-order-detail thead{ display:none; }
  .table-orders, .table-order-detail{ border:0; table-layout:auto; }

  .table-orders tbody tr, .table-order-detail tbody tr{
    display:block; margin:0 0 .7rem 0; overflow:hidden;
    border:1px solid rgba(255,255,255,0.12); border-radius:12px; background:rgba(255,255,255,0.03);
  }

  .table-orders tbody td, .table-order-detail tbody td{
    display:grid; grid-template-columns:minmax(8rem,42%) 1fr; align-items:center;
    gap:.5rem; padding:10px 12px; border-bottom:1px solid rgba(255,255,255,0.08);
    text-align:left !important;
  }
  .table-orders tbody td:last-child, .table-order-detail tbody td:last-child{ border-bottom:none; }

  .table-orders tbody td::before, .table-order-detail tbody td::before{
    content: attr(data-label); font-weight:700; color:#F1C40F; margin-bottom:2px;
  }

  .td-right{ text-align:left; }

  .td-products{
    grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:8px; align-items:center;
  }
  .prod-thumb{ width:56px; height:42px; border-radius:8px; }

  .table-orders [data-label="Aktion"] .btn{
    width:100%; justify-content:center; margin-top:6px;
  }

  .table-order-detail tr:last-child{
    background: rgba(241,196,15,0.10);
    border-color: rgba(241,196,15,0.35);
  }

  .table-orders td, .table-order-detail td{ font-size:.98rem; }
}

/* Sehr kleine Screens */
@media (max-width: 420px){
  .prod-thumb{ width:50px; height:38px; }
  .table-orders tbody tr, .table-order-detail tbody tr{ padding: 0; }
}

/* Zwischenbreiten: optional horizontales Scroll-Fallback */
@media (min-width: 761px) and (max-width: 980px){
  .table-orders, .table-order-detail{ overflow-x:auto; display:block; }
}
/* Force: Konto-Tabs als Buttons, auch mit .tabs--buttons */
.tabs.tabs--buttons .tab a{
  display:inline-flex; align-items:center; gap:.35rem;
  padding:10px 16px; border-radius:12px;
  border:1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.16);
  color:#fff; text-decoration:none; font-weight:700;
  transition: transform .12s ease, background .2s ease, border-color .2s ease, filter .2s ease;
}
.tabs.tabs--buttons .tab a:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.36);
}
.tabs.tabs--buttons .tab.active a,
.tabs.tabs--buttons .tab a[aria-current="page"]{
  background:#F1C40F; color:#06355f; border-color:#F1C40F; filter:none;
}
/* --- Konto: Orders Tabellen fix für mobil (< 760px) --- */
@media (max-width: 760px){
  /* Inline-Breiten & Ausrichtungen aus dem HTML neutralisieren */
  .table-orders th, .table-orders td,
  .table-order-detail th, .table-order-detail td{
    width:auto !important;
    max-width: 100% !important;
    text-align:left !important;
    white-space: normal !important;
    word-break: break-word;
  }

  /* Stacked-Karten-Layout sicher aktivieren */
  .table-orders thead, .table-order-detail thead{ display:none !important; }
  .table-orders, .table-order-detail{ border:0; table-layout:auto; display:block; width:100%; }

  .table-orders tbody tr, .table-order-detail tbody tr{
    display:block;
    margin:0 0 .7rem 0;
    border:1px solid rgba(255,255,255,0.12);
    border-radius:12px;
    overflow:hidden;
    background:rgba(255,255,255,0.03);
  }

  /* Zellen als 2-Spalten-Grid: Label | Wert */
  .table-orders tbody td, .table-order-detail tbody td{
    display:grid;
    grid-template-columns:minmax(8rem,42%) 1fr;
    align-items:center;
    gap:.5rem;
    padding:10px 12px;
    border-bottom:1px solid rgba(255,255,255,0.08);
  }
  .table-orders tbody td:last-child,
  .table-order-detail tbody td:last-child{ border-bottom:none; }

  /* Labels aus data-label */
  .table-orders tbody td::before,
  .table-order-detail tbody td::before{
    content: attr(data-label);
    font-weight:700;
    color:#F1C40F;
    margin-bottom:2px;
  }

  /* Produkt-Thumbnails kompakter */
  .td-products{
    grid-column:1 / -1;
    display:flex; flex-wrap:wrap; gap:8px; align-items:center;
  }
  .prod-thumb{ width:56px; height:42px; border-radius:8px; }

  /* Aktionen: Buttons volle Breite untereinander */
  .table-orders [data-label="Aktion"] .btn{
    width:100%;
    justify-content:center;
    margin-top:6px;
  }
}

/* --- Zwischenbreiten: falls JS/CSS vom Stack nicht greift, horizontales Scroll-Fallback --- */
@media (min-width: 761px) and (max-width: 980px){
  .table-orders, .table-order-detail{ overflow-x:auto; display:block; width:100%; }
}

/* Sicherstellen, dass .nowrap in Tabellen auf Mobil nicht klemmt */
@media (max-width: 760px){
  .table-orders .nowrap, .table-order-detail .nowrap{ white-space: normal !important; }
}
/* ======================================================
   PRODUKT-GALERIE (Thumbnails + Preview mit 3D-Anzeige)
   ====================================================== */

:root{
  --accent-gelb: #F1C40F;                 /* Hauptfarbe (gelb) */
  --stl-frame: rgba(255,255,255,.35);     /* neutrale Rahmenfarbe (z. B. Thumbs) */
  --vhpx: 1vh;
  --preview-base: 44vh;
  --preview-h: calc(var(--preview-base) * 0.66);
}
@supports (height: 1svh){
  :root{ --preview-base: 44svh; --preview-h: calc(44svh * 0.66); }
}
@media (max-width: 768px){
  :root{
    --preview-base: clamp(220px, calc(var(--vhpx, 1vh) * 42), 360px);
    --preview-h: calc(var(--preview-base) * 0.75);
  }
}

/* ====== Querformat-Handy / Tablet – Vorschau größer ====== */
@media (orientation: landscape) and (max-height: 520px) {
  :root{
    --preview-base: 70svh;
    --preview-h: calc(var(--preview-base) * 0.80);
  }
  .preview-container{ width: clamp(360px, 68%, 880px); }
}
@media (orientation: landscape) and (max-height: 420px) {
  :root{
    --preview-base: 78svh;
    --preview-h: calc(var(--preview-base) * 0.82);
  }
}

/* ====== Thumbnails ====== */
.thumbnails-container{
  display:flex; gap:10px; overflow-x:auto; padding:8px 0; margin-bottom:14px;
  scrollbar-width:thin; background:transparent;
}
.thumb{ flex:0 0 auto; display:flex; flex-direction:column; align-items:center; gap:6px; width:80px; }
.thumbnail{
  width:80px; height:80px; border:2px solid var(--stl-frame); border-radius:12px;
  cursor:pointer; transition:all .25s ease; overflow:hidden; position:relative; background:transparent;
}
.thumbnail:hover{ border-color:var(--accent-gelb); }
.thumbnail.active{ border-color:var(--accent-gelb); border-width:3px; }
.thumbnail img,.thumbnail canvas{ width:100%; height:100%; object-fit:cover; display:block; }

/* 3D-Badge (Thumbs) */
.stl-badge{
  position:absolute; left:4px; top:4px; padding:1px 4px; font-size:.6rem; font-weight:700;
  border-radius:999px; color:#06355f; background:var(--accent-gelb);
  border:1px solid var(--accent-gelb); z-index:10;
}

/* NEU-Label unterhalb der Thumbnails */
.new-flag{
  display:inline-block; padding:2px 8px; font-size:.62rem; font-weight:800;
  border-radius:999px; color:#06355f; background:var(--accent-gelb);
  border:1px solid var(--accent-gelb); line-height:1; white-space:nowrap;
}

/* ====== Preview-Bereich (3D-Hauptanzeige) ====== */
.preview-container{
  width:clamp(320px, 56%, 720px);
  height:var(--preview-h);
  margin-inline:auto;
  border:3px solid var(--accent-gelb);
  border-radius:16px;
  overflow:hidden;
  background:transparent;
  position:relative;
  margin-bottom:14px;
  box-shadow:0 0 10px rgba(241,196,15,.25);
}

/* 3D-Badge im Hauptfenster */
.preview-badge{
  position:absolute; left:10px; top:10px; z-index:12;
  display:none; align-items:center; justify-content:center;
  height:22px; padding:0 8px; border-radius:9999px;
  font-size:.68rem; font-weight:800;
  color:#06355f; background:var(--accent-gelb);
  border:1px solid var(--accent-gelb);
  box-shadow:0 1px 2px rgba(0,0,0,.15);
}
.preview-badge.is-visible{ display:inline-flex; }

/* Inhalt */
.preview-content{
  width:100%; height:100%; position:relative; background:transparent;
  display:flex; align-items:center; justify-content:center;
}
.preview-image{
  max-width:100%; max-height:100%; object-fit:contain;
  display:none; margin:auto; z-index:2;
}
.preview-stl{
  position:relative; width:100%; height:100%; display:none; background:transparent;
  touch-action: pan-y pan-x; pointer-events:none; z-index:1;
}
.preview-content.is-stl-active .preview-stl{ display:block; }
.preview-content.is-stl-active .preview-image{ display:none; }

/* Placeholder */
.preview-placeholder{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  color:rgba(255,255,255,.85); font-size:1rem;
  text-shadow:0 1px 2px rgba(0,0,0,.3); background:transparent; pointer-events:none; z-index:3;
}

/* Loader */
.loading{
  display:flex; align-items:center; justify-content:center; width:100%; height:100%;
  background:rgba(0,0,0,.12); position:absolute; inset:0; z-index:4;
}
.loading-spinner{
  width:20px; height:20px; border:2px solid rgba(255,255,255,.5);
  border-top:2px solid var(--accent-gelb);
  border-radius:50%; animation:spin 1s linear infinite;
}
@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}

/* ====== Info-Box unter der Vorschau ====== */
.preview-info{
  background:transparent; border:3px solid var(--accent-gelb);
  width:clamp(300px, 80%, 760px); margin:0 auto 14px; padding:14px;
  border-radius:12px; color:#fff; text-align:left;
  box-shadow:0 0 10px rgba(241,196,15,.25);
  display:grid; grid-template-columns:1fr auto; grid-template-rows:auto auto;
  grid-template-areas:"title actions" "price actions";
  align-items:center; gap:8px 20px;
}
.preview-info .preview-title{ grid-area:title; margin:0; font-size:1.25rem; font-weight:600; }
.preview-info .preview-price{ grid-area:price; margin:0; font-size:1.15rem; font-weight:700; }
.preview-info .preview-actions{ grid-area:actions; display:flex; align-items:center; justify-content:flex-end; gap:10px; min-width:160px; }
.preview-info .preview-actions .btn{
  display:flex; align-items:center; justify-content:center;
  white-space:nowrap; height:42px; padding:0 18px;
  border-radius:12px; font-weight:600; font-size:1rem;
  background:var(--accent-gelb); border:2px solid var(--accent-gelb);
  color:#06355f; transition:all .25s;
}
.preview-info .preview-actions .btn:hover{ box-shadow:0 0 10px rgba(241,196,15,.4); }

/* Mobile Layout */
@media (max-width:640px){
  .preview-info{
    grid-template-columns:1fr;
    grid-template-rows:auto auto auto;
    grid-template-areas:"title" "price" "actions";
    text-align:center; gap:8px;
  }
  .preview-info .preview-actions{ justify-content:center; }
  .preview-info .preview-actions .btn{ width:100%; max-width:300px; }
}

/* Mobile Thumbs */
@media (max-width:768px){
  .thumb{ width:60px; }
  .thumbnail{ width:60px; height:60px; }
  .preview-info .preview-title{ font-size:1.1rem; }
  .preview-info .preview-price{ font-size:1.15rem; }
}
/* ===== ZENTRIERTER TEXTBEREICH FÜR INHALTSSEKTIONEN ===== */
.center-content {
  max-width: 900px;        /* Breite des Textbereichs */
  margin: 0 auto;           /* horizontal mittig */
  text-align: center;       /* zentrierte Ausrichtung */
}

.center-content p {
  text-align: center;       /* Absätze ebenfalls zentrieren */
  margin-bottom: 10px;
}

.center-content ul {
  display: inline-block;    /* Liste mittig unter der Überschrift */
  text-align: left;         /* Text in der Liste bleibt lesbar linksbündig */
  margin-top: 10px;
}
/* ===== Modernes Laufband (Ticker, nahtlos) ===== */
.ticker-wrap {
  width: 70%;
  max-width: 900px;
  overflow: hidden;
  position: relative;
  height: 2.2em;
  background: rgba(0,0,0,0.15);
  border-radius: 6px;
  backdrop-filter: blur(4px);
  margin: 15px auto;
  display: flex;
  align-items: center;
}

.ticker {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 22s linear infinite; /* etwas länger, weil jetzt 3x Text */
  font-size: 1.1rem;
  font-weight: 600;
  color: #E3C373;
  text-shadow: 0 0 4px rgba(0,0,0,0.55);
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* nur halb, damit der Loop perfekt wirkt */
}
.preview-desc{
    font-size:.70em;
    line-height:1.4;
    opacity:.9;
    margin-top:6px;
    white-space:pre-wrap;
}