/* ---------- Farbverlauf wie im PALIN3D-Logo ---------- */
:root {
  --palin-gradient: linear-gradient(
    90deg,
    #00c6ff,   /* Türkis */
    #0077ff,   /* Electric Blue */
    #7b5cff,   /* Violett */
    #ff2f6e,   /* Magenta/Pink */
    #ff8a00    /* Orange */
  );
}

.text-gradient,
.text-palin-gradient {
  background: var(--palin-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 800;
}

/* ---------- Theme Tokens ---------- */
:root {
  --max: 1100px;
  --radius: 14px;

  --bg: #fff;
  --bg-subtle: #f5f7fb;
  --text: #0a0a0a;
  --muted: #5f6b7a;
  --border: #e5e7eb;
  --shadow: 0 12px 40px -20px rgba(2, 6, 23, .18);

  --accent: #0077ff;
  --accent-strong: #0050d4;
  --accent-contrast: #fff;

  --ring: rgba(0, 119, 255, .35);
  --hover-tint: rgba(0, 119, 255, .14);
}

:root {
  color-scheme: dark;
  --bg: #0b0f16;
  --bg-subtle: #0f172a;
  --text: #e8eef9;
  --muted: #94a3b8;
  --border: #1f2937;
  --shadow: 0 12px 40px -20px rgba(0, 119, 255, .2);

  --accent: #4ea8ff;
  --accent-strong: #1b76ff;
  --accent-contrast: #0b0f16;

  --ring: rgba(78, 168, 255, .45);
}

/* Bewegungen reduzieren */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}

:root{
  /* sag dem Browser: dunkle Form-Controls, Scrollbars etc. */
  color-scheme: dark;

  /* deine Dark-Palette */
  --bg:            #0b0f14;
  --surface:       #111826;
  --surface-2:     #0e1520;
  --text:          #e6eef7;
  --muted:         #9bb0c2;
  --border:        #223042;
  --accent:        #0a58ff;
  --accent-strong: #3b82f6;
}

html, body{
  background: var(--bg);
  color: var(--text);
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-subtle), var(--bg));
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(10px);
}

@supports (background: color-mix(in srgb, white, black)) {
  .header {
    background: color-mix(in srgb, var(--bg) 88%, transparent);
  }
}

footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
}

/* ---------- Brand & Nav ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .2px;
  color: inherit;
  text-decoration: none;
}

.logo {
  width: 80px;
  height: auto;
  border-radius: 10px;
}

.brand-text {
  letter-spacing: .2px;
  background: var(--palin-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 800;
  background-size: 200% 100%;
  transition: background-position 1.2s ease;
}

.brand:hover .brand-text {
  background-position: 100% 0;
}

nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

nav a {
  color: inherit;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  opacity: .85;
  transition:
    background-color .25s ease,
    transform .18s ease;
  position: relative;
}

nav a:hover {
  opacity: 1;
  transform: translateY(-1px);
  background: var(--hover-tint);
  color: var(--accent-strong);
}

@supports (background: color-mix(in srgb, white, black)) {
  nav a:hover {
    background: color-mix(in srgb, var(--accent) 14%, transparent);
  }
}

nav a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
  opacity: .6;
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
}

/* ---------- Hero ---------- */
.hero {
  padding: 60px 0;
  display: grid;
  gap: 14px;
  text-align: center;
}

.hero h2 {
  font-size: clamp(26px, 4vw, 42px);
  margin: 0;
  line-height: 1.2;
  background: var(--palin-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 800;
}

.hero p {
  color: var(--muted);
  max-width: 70ch;
  margin: 0 auto;
}

/* --- Hero-Logo mittig zentrieren --- */
.hero .hero-wordmark {
  display: block;
  margin: 0 auto 20px;
  width: min(320px, 80%);
  height: auto;
}

/* ---------- Buttons ---------- */
:root {
  /* Dark Theme Fix – sichtbarer Buttontext */
  --accent-contrast: #ffffff;  /* Weiß statt Dunkelgrau */
}

.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-contrast);

  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 11px 18px;
  border-radius: 12px;

  border: 1px solid color-mix(in srgb, var(--btn-bg) 60%, var(--border));
  background: linear-gradient(180deg, color-mix(in srgb, var(--btn-bg) 88%, #fff 0%), var(--btn-bg));
  color: var(--btn-fg);

  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 8px 22px -10px var(--ring);

  transition:
    transform .16s ease,
    filter .16s ease,
    box-shadow .16s ease;
}

.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -12px var(--ring);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

.btn.link {
  background: transparent;
  color: var(--accent-strong);
  border: 1px solid var(--accent);
}

.btn.link:hover {
  background: var(--hover-tint);
  color: var(--accent);
}

@supports (background: color-mix(in srgb, white, black)) {
  .btn.link:hover {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
  }
}

/* Mini-Feedback „hinzugefügt“ */
.btn.add.added {
  pointer-events: none;
  filter: brightness(1.02);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 70%, #fff 0%), var(--accent));
  border-color: color-mix(in srgb, var(--accent) 80%, var(--border));
}

.btn.add.added::after {
  content: " ✓";
  font-weight: 800;
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 25%, var(--border));
  box-shadow: 0 20px 50px -20px var(--ring);
}

.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 10px;
  background: #dbeafe;
}

.card h3 {
  margin: 12px 0 6px;
  font-size: 18px;
}

.price {
  font-weight: 700;
  color: var(--accent-strong);
}

/* ---------- Tabelle ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table th,
.table td {
  border-bottom: 1px solid var(--border);
  padding: 14px 12px;
  text-align: left;
}

.table thead th {
  background: var(--bg-subtle);
  font-size: 14px;
  letter-spacing: .3px;
}

.right {
  text-align: right;
}

/* ---------- Warenkorb-Badge ---------- */
.badge {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  font-size: 12px;
  border-radius: 999px;
  background: var(--accent-strong);
  color: var(--accent-contrast);
  box-shadow: 0 4px 10px -4px var(--ring);
}

/* Pop-Animation */
@keyframes cart-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.35); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

#cart-count.pop {
  animation: cart-pop .4s ease;
}

/* ---------- Materialien ---------- */

/* Grid für Materialkarten größer */
.grid.materials {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}

.card.mat {
  padding: 20px;
  border-radius: 16px;
}

.card.mat img {
  width: 100%;
  height: 260px;
  object-fit: contain;   /* nichts wird abgeschnitten */
  background: transparent;
  border-radius: 12px;
}

.card.mat h3 {
  font-size: 20px;
  margin: 14px 0 8px;
}

/* Specs-Zeile */
.specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.spec {
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, var(--bg-subtle));
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
  box-shadow: inset 0 0 10px rgba(0, 119, 255, .06);
}

.spec-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.spec-value {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  text-shadow: 0 0 6px rgba(0, 119, 255, 0.08);
}

/* Details / Zusammenfassungen */
.card.mat details {
  margin-top: 12px;
}

.card.mat details summary {
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  color: var(--text);
  transition:
    color .25s ease,
    background-size .25s ease;
  position: relative;
}

/* Verlauf bei Hover & Fokus */
.card.mat details summary:hover,
.card.mat details summary:focus-visible {
  background: var(--palin-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  background-size: 200% 100%;
}

/* Verlauf auch im geöffneten Zustand */
.card.mat details[open] > summary {
  background: var(--palin-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Lightbox (Galerie) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
/* Kleine Variante nur für den Shop-Details-Dialog */
.shop-details .lightbox-content{
  width: min(92vw, 520px);   /* deutlich kleiner als Galerie */
  max-height: 80vh;
  text-align: left;
}

.shop-details .lightbox-content h3{
  text-align: left;
  margin-bottom: 6px;
}

  /* 🔹 Blur + dunkler Overlay-Fokus */
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  /* sanftes Einblenden */
  animation: fadeOverlay 0.3s ease;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-content {
  width: min(92vw, 900px);
  max-height: 90vh;
  overflow: auto;

  background: color-mix(in srgb, var(--bg) 92%, white 8%);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(78, 168, 255, 0.25);

  padding: 16px 16px 20px;
  position: relative;
  text-align: center;

  /* 🔹 sanftes Reinzoomen beim Öffnen */
  transform: scale(0.95);
  opacity: 0;
  animation: fadeInZoom 0.35s ease forwards;
}

/* --- Animationsdefinitionen --- */
@keyframes fadeOverlay {
  from { background: rgba(0,0,0,0); backdrop-filter: blur(0px); }
  to   { background: rgba(0,0,0,0.82); backdrop-filter: blur(6px); }
}

@keyframes fadeInZoom {
  from { transform: scale(0.93); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.lightbox-content img {
  display: block;
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 12px;
  background: #11182712;
  margin-bottom: 12px;
  box-shadow: 0 0 25px rgba(0,0,0,0.3);
}

/* 🔹 Farbverlauf im Titel passend zu PALIN3D */
.lightbox-content h3 {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.3px;

  background: var(--palin-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 0 8px rgba(78,168,255,0.25);
}

.lightbox-content p {
  color: var(--muted);
  margin-top: 6px;
  font-size: 15px;
}

/* --- Close-Button Hover leicht leuchtend --- */


.close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  opacity: 0.85;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.close-btn:hover {
  opacity: 1;
  background: rgba(78, 168, 255, 0.15);
}

/* ---------- Kontaktformular ---------- */
.form {
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.form input,
.form select,
.form textarea {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text);
  font-family: inherit;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { padding: 36px 0; }
  nav { gap: 2px; flex-wrap: wrap; }
  nav a { padding: 9px 10px; }
}

@media (max-width: 560px) {
  .container { padding: 14px; }
  .card img { height: 170px; }
  .brand { width: 100%; justify-content: space-between; }
  footer .row { flex-direction: column; gap: 8px; }
}

/* ---------- Impressum / Datenschutz / Widerruf ---------- */
pre {
  white-space: pre-wrap;         /* Zeilen umbrechen */
  word-wrap: break-word;         /* Lange Wörter umbrechen */
  font-family: inherit;          /* Gleiche Schrift wie der Rest */
  font-size: 18px;               /* Lesbare Größe */
  line-height: 1.6;
  background: var(--bg-subtle);  /* leicht abgesetzt */
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow);
}

/* ---------- Rechtstexte: Impressum / Datenschutz / Widerruf ---------- */

/* Bereich für die Seiten allgemein */
.legal-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 16px;
}

/* Überschrift mit Logo-Farbverlauf */
.legal-section h2 {
  font-size: clamp(28px, 5vw, 40px);
  background: var(--palin-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 800;
  text-align: center;
  margin-bottom: 24px;
}

/* Lesbarer Textbereich */
.legal-section pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-subtle);
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* --- Versandfrei-Hinweis nach rechts schieben --- */
#free-shipping-hint{
  margin-left:auto !important;  /* erzwingt rechte Kante in der Flex-Zeile */
  font-weight:600;
  white-space:nowrap;
}

/* mobil untereinander */
@media (max-width:640px){
  #free-shipping-hint{
    margin-left:0 !important;
    display:block;
    margin-top:6px;
  }
}

/* --- Fix für die Flex-Zeile mit Versandziel + Hinweis (ohne HTML ändern) --- */
/* Trifft nur .mt-1-Container, die inline display:flex gesetzt haben */
.mt-1[style*="display:flex"]{
  /* Für Desktop auf einer Zeile halten; mobil erlauben wir Wrapping */
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 10px;
}

/* Label ("Versandziel") schiebt den Hinweis nach rechts */
.mt-1[style*="display:flex"] > :first-child{
  margin-right: auto;
}

/* Der Hinweis selbst: immer ganz rechts */
#free-shipping-hint{
  order: 2;
  margin-left: auto !important;   /* falls flex-start aktiv ist */
  justify-self: end;               /* falls Grid zum Einsatz käme */
  float: none;                    /* falls weder Flex noch Grid greift */
  display: inline-block;
  white-space: nowrap;
  font-weight: 600;
}

/* Mobil: Wrapping wieder erlauben und untereinander anordnen */
@media (max-width: 640px){
  .mt-1[style*="display:flex"]{ flex-wrap: wrap; }
  #free-shipping-hint{
    margin-left: 0 !important;
    float: none;
    display: block;
    margin-top: 6px;
  }
}

.alert {
  padding: 12px 14px;
  border-radius: 8px;
  margin: 12px 0 0;
  font-weight: 600;
  border: 1px solid transparent;
}
.alert--success {
  background: #e8f7ee;
  border-color: #b7e2c6;
  color: #1e7a3f;
}
.alert--error {
  background: #fff1f0;
  border-color: #ffd1cf;
  color: #b10808;
}

/* kleiner, unaufdringlicher Spinner */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,.15);
  border-top-color: rgba(0,0,0,.55);
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn.is-loading { opacity: .7; pointer-events: none; }
.mt-05 { margin-top: .5rem; }


/* Über-uns – Layout & Typografie (ohne Aside-Variante) */
.about { scroll-margin-top: 80px; }

/* zentrierter Textkörper mit guter Lesebreite */
.about .about-center{
  max-width: 62ch;
  margin: 0 auto;
  text-align: center;
}

.prose { color: var(--text); }
.prose .lead{
  font-size: 18px;
  line-height: 1.65;
}
.prose p {
  line-height: 1.7;
  margin: .85rem 0;
}
.prose .mb-0{ margin-bottom: 0; }

/* dezente Hervorhebung */
.callout{
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(10,88,255,.06), rgba(10,88,255,.03));
  padding: 14px 16px;
  border-radius: 12px;
  margin: 1rem 0;
}

/* Info-Pills (zentriert & responsiv) */
.about-trust{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:.5rem;
  margin-top:1rem;
}
.pill {
  display: inline-block;
  padding: 6px 12px;             /* eine finale Version */
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  transition: all .2s ease;
}
.pill:hover{
  background: rgba(10,88,255,.07);
  border-color: var(--accent, #0a58ff);
  color: var(--accent-strong, #0a58ff);
}

/* --- PayPal / Zahlarten – Dark & ohne graue Restfläche --- */

/* Der sichtbare Host des PayPal-Widgets soll selbst keinen grauen Block erzeugen */
#paypal-container,
#paypal-button-container{
  background: transparent !important;
  display: flex;
  justify-content: flex-start;       /* verhindert leere Fläche rechts */
  width: 100%;
  overflow: visible;
  padding: 0;
  border: 0;
}

.payment-methods {
  background: rgba(255,255,255,.02);
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 16px;
}
.payment-methods h3 { margin-bottom: 12px; }

/* Mobile mittig */
@media (max-width:640px){
  #paypal-container,
  #paypal-button-container{ justify-content: center; }
}

/* Direkte Wrapper, die PayPal um den iFrame legt – auf Buttonbreite begrenzen */
#paypal-container > div,
#paypal-button-container > div{
  max-width: 420px;
  width: 100%;
  border-radius: 10px;
}

/* iFrame selbst (PayPal rendert darin) – dunkler Fallback & saubere Ecken */
#paypal-container iframe,
#paypal-button-container iframe{
  background: #2b2b2b !important;    /* Fallback gegen weiße Blitzer */
  border-radius: 10px;
  width: 100% !important;
  max-width: 420px;
  min-height: 120px;
  border: 1px solid #3a3a3a;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  transform: none !important;
  transform-origin: unset !important;
}

/* Sicherheitsnetz */
iframe{ background:#2b2b2b !important; }

/* Abstand zwischen Versandziel und Bezahlen */
.shipping-section{ margin-bottom:24px; }

/* Umgebung neutral halten (kein Weiß durch Tables/Cards) */
.table, .table thead, .table tbody, .table tfoot, .table tr, .table th, .table td,
.card, .card *,
.checkout-section, .cart-summary, .some-parent-selector{
  background: transparent !important;
}



/* Hide empty badges/spans (e.g. old-price, discount) */
.product-price span:empty, .price:empty, .badge:empty { display: none !important; }

/* --- Sichtbarer Kaufen-Button (Dark Mode Fix) --- */
button,
.btn,
.btn-buy,
.buy-btn,
.product button {
  background: linear-gradient(90deg, #007bff, #00bfff) !important;
  color: #fff !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 10px !important;
  box-shadow: 0 0 15px rgba(0,123,255,0.5) !important;
  transition: all 0.25s ease-in-out;
}

button:hover,
.btn:hover,
.btn-buy:hover,
.buy-btn:hover,
.product button:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

/* ==== Summary: EIN Pfeil links, sichtbar ==== */

/* Standard-Pfeil des Browsers ausblenden (sonst doppelt) */
.card.mat details summary {
  position: relative;
  padding-left: 24px;          /* Platz für linken Pfeil */
  cursor: pointer;
  user-select: none;
  color: var(--text);          /* Text bleibt sichtbar */
  font-weight: 700;
  transition: color .25s ease;
  list-style: none;            /* Firefox */
}
.card.mat details summary::-webkit-details-marker { display: none; } /* Chrome/Safari */

/* Falls du vorher mal ::after genutzt hast: sicher entfernen */
.card.mat details summary::after { content: none !important; }

/* Unser EINZIGER Pfeil (links) */
.card.mat details summary::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: -2px;
  font-size: 24px;
  line-height: 1;
  color: #ffffff;              /* weißer Pfeil */
  transition: transform .25s ease, color .25s ease;
}

/* Hover: leichtes Aufleuchten nur am Pfeil (Text bleibt sichtbar) */
.card.mat details summary:hover::before { color: var(--accent); }

/* Geöffnet: Pfeil dreht nach unten, bleibt weiß */
.card.mat details[open] > summary::before {
  transform: rotate(90deg);
  color: #ffffff;
}

/* WICHTIG: Kein Gradient/transparent auf summary bei Hover/Open */
.card.mat details summary:hover,
.card.mat details[open] > summary {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  color: var(--text) !important;
}

/* ==== Galerie Grid Tiles ==== */
#gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 2–4 Bilder je Reihe */
  gap: 20px;
  margin-top: 20px;
}

/* Thumbnail Box */
#gallery-grid .thumbbox {
  width: 100%;
  aspect-ratio: 4 / 3;          /* Verhältnis ändern falls gewünscht: 1/1 oder 16/9 */
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 0 15px rgba(0,0,0,.4);
  transition: transform .2s ease, box-shadow .2s ease;
}

/* Bild Styling */
#gallery-grid .thumbbox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hover Effekt */
#gallery-grid .thumbbox:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,.55);
}

/* ===== Mini-Modal für Shop-Details ===== */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
}
.modal.is-open { display: flex; }

.modal-card {
  position: relative;
  width: min(520px, 92vw);
  border-radius: 16px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 96%, #fff 4%);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.5), 0 0 40px rgba(27,118,255,.15);
  padding: 16px 16px 18px;
  animation: modalIn .22s ease;
}
@keyframes modalIn {
  from { transform: translateY(6px) scale(.98); opacity: 0; }
  to   { transform: translateY(0) scale(1);     opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 10px; right: 12px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  opacity: .9;
  transition: background .2s ease, opacity .2s ease, transform .12s ease;
}
.modal-close:hover {
  opacity: 1;
  background: rgba(27,118,255,.15);
  transform: translateY(-1px);
}

.modal-body h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 6px;
  background: var(--palin-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.modal-body p { color: var(--muted); margin: 6px 0 0; }

.modal-meta .pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface, #111826);
  font-size: 12px;
}
/* Shop-Karten: konsistente Abstände/Zeilen */
.product-card { display:flex; flex-direction:column; padding:14px; }
.product-img { width:100%; height:220px; object-fit:cover; border-radius:12px; background:#0f172a; }
.product-body { display:flex; flex-direction:column; gap:10px; margin-top:10px; }
.product-title { margin:0; font-size:18px; }

.product-badges { display:flex; gap:8px; flex-wrap:wrap; }
.pill.small { font-size:12px; padding:4px 10px; }
.pill.small.soft { opacity:.9; }

.product-actions { display:flex; justify-content:flex-start; }
.price-row { display:flex; align-items:center; justify-content:space-between; margin-top:4px; }

.meta-small { font-size:12px; opacity:.7; margin-top:2px; }



/* Modern: greift automatisch, wenn im Grid nur 1 Kind ist */
.grid:has(> :only-child) {
  justify-content: center;
  align-content: start;
}
.grid:has(> :only-child) > * {
  max-width: 460px;          /* ggf. 420–520px anpassen */
  width: 100%;
  justify-self: center;
}

/* Fallback (falls :has nicht unterstützt): nutzt deine bestehende Klasse */
.grid.center-one {
  justify-content: center;
  align-content: start;
}
.grid.center-one > * {
  max-width: 460px;
  width: 100%;
  justify-self: center;
}

/* Bildhöhe im Single-Card-Modus etwas kleiner halten */
.grid:has(> :only-child) .product-card .product-img,
.grid.center-one .product-card .product-img,
.grid:has(> :only-child) .project > img,
.grid.center-one .project > img {
  height: 220px;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
}


