/* ============================
   Grund-Design – Light/Dark
   ============================ */

/* Standard: Light-Theme */
:root {
  /* Flächen / Hintergrund */
  --bg: #f9fafb;
  --bg-soft: #e5e7eb;
  --header-bg: #facc15;
  --header-border: #d4b008;

  /* Text */
  --text: #111827;          /* dunkler als vorher */
  --text-muted: #4b5563;    /* satteres Grau */
  --text-softer: #6b7280;   /* weicheres Grau */

  /* Preise */
  --price-text: #111827;    /* Titel + MwSt */
  --price-strong: #e0a800;  /* kräftiges Gold, sehr gut lesbar */

  /* Karten / Boxen */
  --card-bg: #ffffff;
  --card-border: rgba(15, 23, 42, 0.08);
  --card-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  --card-hover-bg: #f3f4f6;

  /* Akzent / Buttons / Preise */
  --accent: #facc15;
  --accent-strong: #eab308;
  --accent-contrast: #111827;

  /* Chips / Filter-Pills */
  --chip-bg: #f3f4f6;
  --chip-border: #d1d5db;
  --chip-bg-active: #facc15;
  --chip-text-active: #111827;

  /* Inputs / Felder */
  --input-bg: #ffffff;
  --input-border: #cbd5e1;

  /* Linien / Trenner / Rahmen */
  --separator: #e5e7eb;

  /* Wishlist-Button */
  --wishlist-bg: rgba(255, 255, 255, 0.8);
  --wishlist-bg-hover: rgba(255, 255, 255, 1);
  --wishlist-text: #111827;
  --wishlist-active-bg: rgba(248, 113, 113, 0.95);
  --wishlist-active-text: #111827;

  /* Links */
  --link-normal: #d4a514;
  --link-hover: #b98a0c;

  /* Produktbild-Hintergrund */
  --media-bg: #ffffff;

  /* Footer */
  --footer-bg: #f3f4f6;
  --footer-text: #4b5563;
  --footer-link: #6b7280;
  --footer-link-hover: #374151;
  --footer-border: #e5e7eb;

  /* Boxen (AGB, Impressum, etc.) */
  --box-bg: #ffffff;
  --box-text: #1f2937;
  --box-border: rgba(0,0,0,0.1);
  --box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* LIGHT MODE – btn-secondary */
:root .btn-secondary {
  background: #f3f4f6;              /* hellgrau */
  color: #111827;                   /* fast schwarz */
  border: 1px solid #d1d5db;
  box-shadow: 0 2px 4px rgba(0,0,0,.12);
}

:root .btn-secondary:hover {
  background: #e5e7eb;
  border-color: #cbd5e1;
}


/* DARK MODE – echte dunkle Secondary Buttons */
:root[data-theme="dark"] .btn-secondary {
  background: #0b1120;               /* tiefes Night-Blue */
  color: #facc15;                    /* gelber Text */
  border: 1px solid #1f2937;
  box-shadow: 0 2px 6px rgba(0,0,0,.45);
}

:root[data-theme="dark"] .btn-secondary:hover {
  background: #1e293b;               /* etwas heller beim Hover */
  border-color: #334155;
  color: #fde047;                    /* leicht helleres Gelb */
}
:root[data-theme="dark"] .qty-input {
  background: #0f131a;                     /* etwas heller als Hintergrund */
  border: 1px solid rgba(250, 204, 21, .35); /* sanftes Gold, dezent sichtbar */
  color: #f9fafb;
}

:root[data-theme="dark"] .qty-input:focus {
  border-color: #facc15;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, .35);
}


/* Dark-Theme */
:root[data-theme="dark"] {
  --bg: #020617;
  --bg-soft: #0b1120;
  --header-bg: #facc15;
  --header-border: #d4b008;

  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --text-softer: #6b7280;

  --card-bg: #0f131a;
  --card-border: rgba(255, 255, 255, 0.04);
  --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  --card-hover-bg: #161b22;

  --accent: #facc15;
  --accent-strong: #eab308;
  --accent-contrast: #111827;

  --chip-bg: #020617;
  --chip-border: #1f2937;
  --chip-bg-active: #facc15;
  --chip-text-active: #111827;

  --input-bg: #020617;
  --input-border: #1f2937;

  --separator: #1f2937;

  --wishlist-bg: rgba(255, 255, 255, 0.18);
  --wishlist-bg-hover: rgba(255, 255, 255, 0.28);
  --wishlist-text: #f9fafb;
  --wishlist-active-bg: rgba(248, 113, 113, 0.95);
  --wishlist-active-text: #111827;

  --link-normal: #facc15;
  --link-hover: #ffe666;

  --media-bg: #020617;

  --footer-bg: #020617;
  --footer-text: #9ca3af;
  --footer-link: #facc15;
  --footer-link-hover: #fde047;
  --footer-border: #1f2937;

  --box-bg: #111827;
  --box-text: #f9fafb;
  --box-border: #1f2937;
  --box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* ============================
   Grund-Styles
   ============================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* Links global */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Standard-Heading */
h1 {
  margin-top: 0;
}

/* Text-Helfer */
.text-muted {
  color: var(--text-muted);
}

.text-soft {
  color: var(--text-softer);
}

/* Box-Stil für rechtliche Seiten etc. */
.box {
  background: var(--box-bg);
  color: var(--box-text);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--box-border);
  box-shadow: var(--box-shadow);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}


.box a:hover {
  text-decoration: underline;
}

/* Tabellen (allgemein) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: .9rem;
}

th,
td {
  padding: .6rem .4rem;
  border-bottom: 1px solid #1f2937;
  text-align: left;
}

th {
  font-weight: 600;
  
}

.right {
  text-align: right;
}

/* Globaler Button-Stil */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: .45rem 1.2rem;
  border-radius: .7rem;
  background: var(--accent);
  color: var(--accent-contrast);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .25);
  transition:
    background .15s ease,
    transform .12s ease,
    box-shadow .15s ease;
}
/* --- BASIS-BUTTON (Gelb) --- */
.btn {
  background: var(--accent);
  color: var(--accent-contrast);
  border: none;
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
}

.btn:hover {
  
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
}


/* --- SECONDARY-BUTTON (dunkel) --- */
.btn-secondary {
  background: #111827;
  color: var(--accent);
  border: 1px solid rgba(0,0,0,0.5);
}

.btn-secondary:hover {
  background: #1e293b;
  color: var(--accent-strong);
}


/* --- DANGER-BUTTON (rot) --- */
.btn-danger {
  background: #b91c1c;
  color: #fee2e2;
}

.btn-danger:hover {
  background: #dc2626;
}





/* Nachrichten */
.msg {
  border-radius: .7rem;
  padding: .7rem 1rem;
  font-size: .9rem;
  margin-bottom: 1rem;
}

.msg-success {
  background: #022c22;
  color: #bbf7d0;
  border: 1px solid #15803d;
}

.msg-error {
  background: #450a0a;
  color: #fecaca;
  border: 1px solid #b91c1c;
}

/* ------------------------------------
   Footer Styling Light/Dark
------------------------------------ */

.ib-footer {
  line-height: 1.6; /* ← DAS */
  height: auto;
  padding: 16px 0 10px;
  margin-top: 40px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  font-size: .85rem;

  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  color: var(--footer-text);

  transition: background .25s ease, color .25s ease;
}

.ib-footer a {
  color: var(--footer-link);
  text-decoration: none;
  margin: 0 .35rem;
  transition: color .2s ease;
}

.ib-footer a:hover {
  color: var(--footer-link-hover);
}

/* ============================
   HEADER
   ============================ */

.site-header {
  background: var(--header-bg);
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid var(--header-border);
  margin-bottom: 1.5rem;
}

.site-header-inner {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: auto 1fr auto; /* Logo | Mitte | rechts */
  align-items: center;
  padding: 0 1.5rem;
}

/* Zonen definieren */
.header-left {
  justify-self: start;
}

.header-center {
  justify-self: center;
}

.header-right {
  justify-self: end;
}

/* Logo */
.site-header-logo img {
  height: 60px;
  cursor: pointer;
  display: block;
}

/* Warenkorb rechts */
.site-header-cart {
  display: flex;
  justify-content: flex-end;
}

.site-header-cart a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: #111827;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.55);
}

.site-header-cart a:hover {
  background: #fefce8;
}

.cart-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.cart-count {
  min-width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: #facc15;
  color: #111827;
  border: 1px solid #eab308;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Sub-Links unter dem Warenkorb */
.header-sub-links {
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.header-sub-link {
  text-decoration: none;
  color: #111827;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}

.header-sub-link:hover {
  opacity: 1;
}

.header-sub-separator {
  color: #111827;
  opacity: 0.6;
}

/* Rechtsbereich: Links + Toggle nebeneinander */
.header-right-extra {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  margin-left: 0.75rem;
}

/* Toggle-Button */
.theme-toggle-btn {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
  font-size: 0.85rem;
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.08s ease;
}

.theme-toggle-btn:hover {
  background: #fefce8;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
  transform: translateY(-1px);
}

.theme-toggle-icon {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.45;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

/* Aktives Icon hervorheben – Light */
.theme-toggle-btn[data-theme="light"] .theme-toggle-icon-sun {
  opacity: 1;
  transform: translateY(-0.5px);
}

/* Aktives Icon hervorheben – Dark */
.theme-toggle-btn[data-theme="dark"] .theme-toggle-icon-moon {
  opacity: 1;
  transform: translateY(-0.5px);
}

/* Mobile: ein bisschen enger */
@media (max-width: 640px) {
  .header-right-extra {
    align-items: flex-end;
    gap: 0.2rem;
  }

  .theme-toggle-btn {
    padding: 0.15rem 0.45rem;
  }
}

/* Suche (einklappbar, mit Lupe rechts) */
.header-search-wrapper {
  display: flex;
  align-items: center; /* zentriert Input + Button sauber */
  gap: 0.4rem;
}

.header-search-input {
  padding: 0 14px;
  border-radius: 999px;
}

.header-search-toggle {
  position: relative;  
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.header-search-toggle:hover {
  transform: scale(1.08) rotate(-3deg);
}

.header-search-toggle:active {
  transform: scale(0.97);
}

.header-search-toggle.spin {
  animation: spin-lupe 0.35s ease;
}

@keyframes spin-lupe {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Das ausklappbare Suchfeld */
.header-search-form {
  overflow: hidden;
  transition: width 0.25s ease;
  width: 0; /* eingeklappt */
}

.header-search-wrapper.active .header-search-form {
  width: 300px; /* ausgeklappt */
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.header-search-input {
  width: 100%;
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  outline: none;
  background: rgba(255, 255, 255, 0.95);
  color: #111827;
  display: flex;
  align-items: center;
}

.header-search-input:focus {
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.5);
}

/* A11y: Label nur für Screenreader */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Mobile Header */
@media (max-width: 640px) {
  .site-header {
    height: auto;
    padding: 0.5rem 0;
  }

  .site-header-inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 0.5rem;
  }

  .site-header-logo {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }

  .site-header-cart {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }

  .header-center {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    justify-self: center;
  }

  .header-search-wrapper.active .header-search-form {
    width: 160px;
  }
}

/* ============================
   INDEX / KATALOG / WISHLIST
   ============================ */

.section-headline {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-headline h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.section-headline .sub {
  font-size: .85rem;
  opacity: .8;
}

/* Kategorien-Filter-Leiste */
.cat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .28rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--text);
  font-size: .8rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background .15s ease,
    border-color .15s ease,
    color .15s ease;
}

.cat-pill span.count {
  font-size: .7rem;
  color: var(--text-softer);
}

.cat-pill:hover {
  border-color: var(--accent);
}

.cat-pill.active {
  background: var(--chip-bg-active);
  color: var(--chip-text-active);
  border-color: var(--accent-strong);
  font-weight: 600;
}

.empty {
  opacity: .8;
  font-size: .95rem;
}

/* Toolbar (Artikel pro Seite) */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  font-size: .85rem;
  flex-wrap: wrap;
}

.per-page-form {
  display: flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
}

.per-page-form label {
  opacity: .85;
  font-size: .85rem;
  white-space: nowrap;
}

.per-page-select {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0.55rem;
  padding: 0.3rem 0.6rem;
  color: #111827;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.per-page-select:hover {
  border-color: #facc15;
}

.per-page-select:focus {
  outline: none;
  border-color: #facc15;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.35);
}

/* Produkt-Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}

.card {
  position: relative;
  background: var(--card-bg);
  border-radius: .75rem;
  padding: .9rem;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: .55rem;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background .18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  border-color: var(--accent);
  background: var(--card-hover-bg);
}

.card-img{
  max-height: 190px;
  display: flex;
  align-items: center;      /* vertikal mittig */
  justify-content: center;  /* horizontal mittig */
  overflow: hidden;
}


.card-img img{
  max-height: 190px;
  width: auto;          /* WICHTIG */
  max-width: 100%;
  display: block;
  object-fit: contain; /* optional, aber logisch */
  transition: transform .25s ease;
}


.card:hover .card-img img {
  transform: scale(1.04);
}

.card-img-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card h2 {
  margin: 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
}

.card h2 a {
  color: inherit;
  text-decoration: none;
}

.card h2 a:hover {
  text-decoration: underline;
}

.card p {
  margin: 0;
  font-size: .85rem;
  line-height: 1.3;
  color: var(--text-muted);
}

.price-row {
  margin-top: .3rem;
  display: flex;
  gap: .35rem;
  align-items: baseline;
  font-size: .9rem;
}

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

.price-note {
  font-size: .78rem;
  color: var(--text-muted);
}

.card-footer {
  margin-top: auto;
}

.card .btn {
  margin-top: .6rem;
}

/* Pagination */
.pagination {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
  font-size: .85rem;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #111827;
  text-decoration: none;
  cursor: pointer;
  transition:
    background .15s ease,
    border-color .15s ease,
    color .15s ease,
    transform .12s ease;
}

.page-link:hover {
  background: #f3f4f6;
  border-color: #facc15;
}

.page-link.disabled {
  opacity: .4;
  pointer-events: none;
}

.page-link.active {
  background: #facc15;
  border-color: #eab308;
  color: #111827;
  font-weight: 600;
}

/* ============================
   WISHLIST-HERZ
   ============================ */

.wishlist-form {
  position: absolute;
  top: 8px;
  right: 8px;
  margin: 0;
  padding: 0;
  z-index: 10;
}

.wishlist-btn {
  border: none;
  width: 30px;
    height: 30px;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  background: var(--wishlist-bg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.45);
  transition:
    background .18s ease,
    transform .12s ease,
    box-shadow .18s ease,
    color .18s ease;
}
 button.wishlist-btn {
    color: #605c5c;
}
.wishlist-btn:hover {
  background: var(--wishlist-bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.55);
}

.wishlist-btn.is-active {
  background: var(--wishlist-active-bg);
  color: var(--wishlist-active-text);
  font-weight: 700;
}



/* Bild soll hinter dem Herz liegen */
.card-img,
.card-img-link {
  position: relative;
  z-index: 1;
}


/* Wishlist-Button auf der Produktseite – ganz oben über dem Bild */
.product-gallery-main {
  position: relative;
}

.wishlist-toggle {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;

  z-index: 50;                /* <<< WICHTIG: ganz nach oben */
  pointer-events: auto;       /* <<< Klickbar */

  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}

.wishlist-btn {
  position: relative;
  z-index: 51;                /* Noch über dem Form-Layer */
  cursor: pointer;

  background-color: #e5e7ebb0;
  border-radius: 999px;
  padding: 0.25rem 0.4rem;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
  border: none;

  pointer-events: auto;       /* <<< Wichtig */
}

.wishlist-btn * {
  pointer-events: none;       /* <<< Der Klick soll auf den Button gehen, nicht auf das Icon */
}

.wishlist-icon {
  font-size: 1.3rem;
  color: #9ca3af;
  transition: color 0.2s, transform 0.2s;
}

.wishlist-icon.active {
  color: #e11d48;
}

.wishlist-btn:hover .wishlist-icon {
  transform: scale(1.08);
}
/* Karten im Grid als Positionierungs-Container */
.wishlist-page .card {
  position: relative;
}

/* ============================
   PRODUKTSEITE
   ============================ */

/* Backlink & Breadcrumb */

.backlink {
  display: inline-block;
  margin: 0 0 .5rem 0;
  font-size: .9rem;
  color: var(--text-muted);
  text-decoration: none;
}
.backlink:hover {
  text-decoration: underline;
}

/* Breadcrumb-Zeile */
.breadcrumb {
  font-size: .85rem;
  color: var(--text-softer);
  margin-bottom: 1.2rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin-right:.2rem;
}

.breadcrumb .active {
  color: var(--accent);
  font-weight: 600;
}

/* Produkt-Karte */

.product-card {
  position: relative;
  background: var(--card-bg);
  border-radius: 1.2rem;
  padding: 1.5rem 1.5rem 1.8rem;
  margin-top: 1rem;
  border: 1px solid var(--card-border);
  box-shadow:
    var(--card-shadow),
    0 0 18px rgba(250, 204, 21, 0.12);
}

/* Layout */

.product-layout {
  display:flex;
  flex-direction:column;
  gap:2rem;
}

@media (min-width: 900px) {
  .product-layout {
    flex-direction:row;
    align-items:flex-start;
  }
  .product-media {
    flex:0 0 28%;
	justify-content: center;
  }
  .product-info {
    flex:1;
  }
}

/* Bildbereich / Galerie */

.product-media {
  text-align:center;
}

.product-gallery {
  max-width:640px;
  margin:0 auto;
}

.product-gallery-main {
  position: relative;
  background: var(--media-bg);
  border-radius: 1.5rem;
  padding: 1rem;
  box-shadow: 0 12px 35px rgba(0,0,0,.15);
  transition: transform .25s ease-out, box-shadow .25s ease-out;
}

.product-gallery-main img {
  display:block;
  width:100%;
  max-height:320px;
  object-fit:contain;
  border-radius:1.2rem;
  cursor:pointer;
  transition: transform .25s ease-out;
  position: relative;
  z-index: 1;      /* liegt unter den Pfeilen */
}

.product-gallery-main:hover {
  transform: translateY(-4px);
  box-shadow:0 18px 55px rgba(0,0,0,.75);
}

.product-gallery-main:hover img {
  transform: scale(1.03) rotate(-0.5deg);
}

/* Pfeile fürs Karussell */

.gallery-arrow {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid var(--card-border);
  background:var(--card-bg);
  color:var(--text);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.4rem;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(0,0,0,.15);
  padding:0;
  transition:background .2s ease, transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  z-index: 5;           /* 🔼 wichtiger Teil */
  pointer-events: auto; /* sicherheitshalber */
}

.gallery-arrow-left {
  left:8px;
}

.gallery-arrow-right {
  right:8px;
}

.gallery-arrow:hover {
  background:var(--card-hover-bg);
  border-color:var(--accent);
  box-shadow:0 12px 26px rgba(0,0,0,.20);
  transform:translateY(-50%) scale(1.05);
}
/* im Dark-Mode wieder dunkler / „Nachtoptik“ */
/* Pfeile ein klein wenig „weicher“ im Dark-Mode */
:root[data-theme="dark"] .gallery-arrow {
  background: rgba(15, 23, 42, 0.95);
}

.gallery-arrow {
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
}

:root[data-theme="dark"] .gallery-arrow:hover {
  background:#fa8b15;
}
/* Thumbnails */

.product-thumbs {
  display:flex;
  flex-wrap:wrap;
  gap:.4rem;
  justify-content:center;
  margin-top:.6rem;
}

.product-thumb {
  border:none;
  background:transparent;
  padding:2px;
  border-radius:.6rem;
  cursor:pointer;
  opacity:.7;
  border:1px solid transparent;
  transition:opacity .15s ease, border-color .15s ease, transform .15s ease;
}

.product-thumb img {
  display:block;
  width:60px;
  height:60px;
  object-fit:cover;
  border-radius:.5rem;
}

.product-thumb:hover {
  opacity:1;
  transform:translateY(-1px);
  border-color:rgba(250,204,21,0.5);
}

.product-thumb.active {
  opacity:1;
  border-color:#facc15;
}

.image-hint {
  font-size:.8rem;
  color:#9ca3af;
  margin-top:.5rem;
}

/* Produktinfos */

.product-info h1 {
  margin:0 0 .7rem 0;
  font-size:1.8rem;
}

.long-desc {
  font-size:.98rem;
  line-height:1.6;
  color:var(--text-muted);
  margin-bottom:1.2rem;
}


/* Preisblock */

.price-block {
  margin:1rem 0 .75rem 0;
}

.price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--price-strong);
}

.price-note {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: .15rem;
}

/* Lieferzeit */

.delivery {
  font-size:.85rem;
  color: var(--text-muted);
  opacity: 1;
  margin:.3rem 0 1rem 0;
}

/* Lizenzbereich */

.license-box {
  margin: .4rem 0 .6rem 0;
  padding:.6rem 0;
  border-radius:.6rem;
  border:none;
  background:transparent;
  box-shadow:none;
  font-size:.9rem;
}

.license-header {
  display:flex;
  align-items:flex-start;
  gap:.5rem;
  margin-bottom:.4rem;
}

.license-icon {
  font-size:1.1rem;
  margin-top:.05rem;
  opacity:.7;
}

.license-label {
  font-weight:600;
  color:#e5e7eb;
}

.license-sub {
  font-size:.8rem;
  color:#9ca3af;
}

.license-links {
  margin-top:.1rem;
}

.license-pill {
  display:inline-flex;
  align-items:center;
  padding:.3rem .8rem;
  border-radius:999px;
  border:1px solid var(--card-border);
  background:var(--card-bg);
  color:var(--text);
  text-decoration:none;
  font-size:.82rem;
  transition:background .15s ease, border-color .15s ease, transform .12s ease;
}

.license-pill:hover {
  background:var(--card-hover-bg);
  border-color:var(--accent);
  transform:translateY(-1px);
}

/* Dark-Mode: alter dunkler Style bleibt erhalten */
:root[data-theme="dark"] .license-pill {
  background:rgba(15,23,42,.85);
  border-color:#334155;
  color:#e5e7eb;
}

:root[data-theme="dark"] .license-pill:hover {
  background:#0f172a;
  border-color:#475569;
}


/* Links im main-Bereich */

main a {
  color: #fa8b15;
}



/* Add-to-cart */

.add-to-cart-form {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.6rem;
  margin-top:.25rem;
}

.qty-label {
  font-size:.9rem;
}

.qty-input {
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--card-border);
  border-radius: .5rem;
  padding: .35rem .6rem;
  width: 55px;
  font-size: .9rem;
  text-align: center;
  transition: background .2s, border-color .2s;
}
/* Spinner-Pfeile ausblenden */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-input[type="number"] {
  -moz-appearance: textfield;
}

/* Mobile für Produktseite */

@media (max-width: 599px) {
  .gallery-arrow {
    width:30px;
    height:30px;
    font-size:1.2rem;
  }
  .product-thumb img {
    width:52px;
    height:52px;
  }
}

/* ============================
   SUCHE
   ============================ */

.search-page {
  padding: 1.5rem;
}

.search-page-inner {
  max-width: 1100px;
  margin: 0 auto 2rem;
}

.search-page-inner h1 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

/* Meta-Bereich */

.search-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.search-meta-left p {
  margin: 0;
}

.search-meta-range {
  margin-left: 0.4rem;
  color: #9ca3af;
  font-size: 0.85rem;
}

.search-reset-link {
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: var(--card-bg);
  color: var(--text);
}

.search-reset-link:hover {
  background: var(--card-hover-bg);
}

/* Auswahl Treffer pro Seite */

.search-perpage-form {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
}

.search-perpage-label {
  color: #9ca3af;
}

.search-perpage-select {
  font-size: 0.85rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: var(--bg);
  color: var(--text);
}

.search-perpage-select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.5);
}

@media (max-width: 700px) {
  .search-meta {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.4rem 0.75rem;
  }

  .search-perpage-form {
    order: 2;
  }

  .search-reset-link {
    order: 3;
  }
}

/* Keine Ergebnisse */

.search-empty {
  margin-top: 1rem;
  font-style: italic;
}

/* Ergebnisliste */

.search-results-list {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.search-result-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 1rem;
  align-items: center;
  padding: 0.55rem 0.8rem;
  border-radius: 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  transition: background-color 0.12s ease,
              box-shadow 0.12s ease,
              transform 0.08s ease,
              border-color 0.12s ease;
}

.search-result-row:hover {
  background: var(--card-hover-bg);
  border-color: var(--accent);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

/* Thumbnail links */

.search-result-thumb-link {
  text-decoration: none;
  color: inherit;
}

.search-result-thumb-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 0.6rem;
  overflow: hidden;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-result-thumb-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.search-result-thumb-placeholder {
  font-size: 0.7rem;
  color: #9ca3af;
  text-align: center;
  padding: 0.25rem;
}

/* Mittlerer Bereich */

.search-result-main {
  min-width: 0;
}

.search-result-title-link {
  text-decoration: none;
  color: inherit;
}

.search-result-title {
  margin: 0 0 0.2rem;
  font-size: 0.98rem;
  font-weight: 600;
}

.search-result-desc {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  max-height: 2.8em;
  overflow: hidden;
}

/* Rechte Seite: Preis + Button */

.search-result-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  margin-left: 0.5rem;
}

.search-result-priceblock {
  text-align: right;
}

.search-result-price {
  font-weight: 700;
  font-size: 0.95rem;
}

.search-result-taxhint {
  font-size: 0.78rem;
  color: #9ca3af;
}

/* Suchergebnis-Button – Light */
.search-result-button {
  background-color: #facc15; /* warmes Gelb (Ideenbude-Style 😉) */
  color: #1f2937;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.search-result-button:hover {
  background-color: #fde047;
  color: #111827;
}
[data-theme="dark"] .search-result-button {
  background-color: #1f2937;
  color: #f9fafb;
}

[data-theme="dark"] .search-result-button:hover {
  background-color: #374151;
}


.search-result-button:hover {
  border-color: rgba(250, 204, 21, 0.95);
  
  color: #111827;
}

/* Pagination Suche */

.search-pagination {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.search-pagination ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.search-pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  text-decoration: none;
  font-size: 0.8rem;
  color: #e5e7eb;
  background: #020617;
}

.search-pagination .page-link:hover {
  border-color: rgba(250, 204, 21, 0.95);
}

.search-pagination .page-link.active {
  background: #facc15;
  color: #111827;
  border-color: rgba(250, 204, 21, 0.95);
}

/* Mobile */
@media (max-width: 700px) {
  .search-page {
    padding: 1rem;
  }

  .search-result-row {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    row-gap: 0.4rem;
    align-items: flex-start;
  }

  .search-result-side {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    align-items: flex-start;
    text-align: left;
    margin-left: 0;
  }

  .search-result-priceblock {
    text-align: left;
  }

  .search-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-reset-link {
    align-self: flex-start;
  }
}

/* ============================
   WARENKORB
   ============================ */

.totals {
  text-align:right;
  font-size:1rem;
  margin-top:.5rem;
  margin-bottom:1.5rem;
}

.totals strong {
  display:block;
  margin-bottom:.2rem;
}

.tax-note {
  font-size:.85rem;
  color:#9ca3af;
  margin-top:.15rem;
}

.cart-empty {
  opacity:.8;
}

.link {
  color:#5f6368;
  text-decoration:none;
  font-size:.9rem;
}

.link:hover {
  text-decoration:underline;
}

/* ============================
   CHECKOUT
   ============================ */

/* Falls du im Body class="checkout-body" nutzt */
.checkout-body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.checkout-main {
  padding: 2rem 1.5rem 3rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Links im Checkout */
.checkout-link {
  color: var(--accent);
  text-decoration: none;
}
.checkout-link:hover {
  text-decoration: underline;
}

/* Karten / Container im Checkout */
.checkout-main .card {
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  color: var(--text);
}

/* Formularfelder */
.checkout-main label {
  display: block;
  font-size: .85rem;
  margin-bottom: .15rem;
  color: var(--text);
}

.checkout-main input,
.checkout-main select {
  width: 100%;
  padding: .4rem .5rem;
  border-radius: .4rem;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  font-size: .9rem;
  margin-bottom: .7rem;
}

.checkout-main input:focus,
.checkout-main select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.45);
}

/* Fehlermeldungen */
.checkout-main .error {
  color: #b91c1c;
  font-size: .8rem;
  margin-top: -.4rem;
  margin-bottom: .5rem;
}

/* Bestellübersicht (Order Summary) */

.order-summary {
  background: var(--bg-soft);
  border-radius: .6rem;
  border: 1px solid var(--card-border);
  padding: .8rem .9rem;
  margin-top: 1.5rem;
}

.order-summary-title {
  font-size: .95rem;
  font-weight: 600;
}

.order-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
  margin-top: .5rem;
}

.order-summary-table th,
.order-summary-table td {
  padding: .5rem .3rem;
  border-bottom: 1px solid var(--separator);
}

.order-summary-table .col-left {
  text-align: left;
}

.order-summary-table .col-right {
  text-align: right;
}

.delivery-text {
  font-size: .75rem;
  color: var(--text-muted);
}

/* Summen & MwSt-Hinweise */

.order-total {
  text-align: right;
  margin-top: .5rem;
  font-size: .9rem;
}

.order-vat {
  text-align: right;
  margin-top: .2rem;
  font-size: .8rem;
  color: var(--text-muted);
}

.order-hint {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .4rem;
}

/* Pflichtfeld-Hinweis */

.hint-required {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .3rem;
}

/* Rechtlicher Bereich mit Checkboxen */

.checkout-legal {
  margin-top: 1.5rem;
  padding-top: .7rem;
  border-top: 1px solid var(--separator);
}

.legal-checkbox {
  margin-top: .4rem;
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  font-size: .8rem;
  line-height: 1.4;
  color: var(--text);
}

.legal-checkbox input[type="checkbox"] {
  width: auto;
  margin-top: .15rem;
}

.legal-link {
  color: #fa8b15;
  text-decoration: none;
}
.legal-link:hover {
  text-decoration: underline;
}

/* Button-Reihe im Checkout */

.button-row {
  margin-top: 1rem;
}

/* Meldungsboxen im Checkout */

/* Nachrichten / Hinweise (global) */
.msg {
  border-radius: .7rem;
  padding: .7rem 1rem;
  font-size: .9rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

/* Erfolg */
.msg-success {
  background: rgba(22, 163, 74, 0.06);    /* sehr helles Grün */
  color: #166534;                         /* sattes Grün für Text */
  border-color: rgba(22, 163, 74, 0.35);  /* dezente Kontur */
}

/* Fehler */
.msg-error {
  background: rgba(185, 28, 28, 0.06);    /* sehr helles Rot */
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.35);
}

/* Optional: im Dark-Mode etwas kräftiger machen */
:root[data-theme="dark"] .msg-success {
  background: rgba(22, 163, 74, 0.18);
  border-color: rgba(22, 163, 74, 0.55);
  color: #bbf7d0;
}

:root[data-theme="dark"] .msg-error {
  background: rgba(185, 28, 28, 0.2);
  border-color: rgba(185, 28, 28, 0.6);
  color: #fecaca;
}

/* Mobile */

@media (max-width: 600px) {
  .checkout-main {
    padding: 1.5rem 1rem 2.5rem;
  }

  .checkout-main .card {
    padding: 1rem;
  }

  .button-row {
    display: flex;
    flex-direction: column;
    gap: .5rem;
  }

  .btn-secondary {
    margin-left: 0;
  }
}

/* ============================
   ERROR-TEMPLATE
   ============================ */

.error-main {
  padding:2rem;
  max-width:800px;
  margin:0 auto;
}

.error-card {
  background:#020617;
  border-radius:1rem;
  padding:1.25rem;
  border:1px solid #1f2937;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}

.error-lead {
  font-size:.95rem;
  margin-bottom:.75rem;
}

.error-details {
  font-size:.9rem;
  opacity:.9;
}

.error-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:.85rem;
  background:#020617;
  padding:.1rem .3rem;
  border-radius:.25rem;
}

/* ============================
   SUCCESS-SEITE
   ============================ */

.success-main {
  padding:2rem;
  max-width:900px;
  margin:0 auto;
}

.success-card {
  background:#020617;
  border-radius:1rem;
  padding:1.25rem;
  border:1px solid #1f2937;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
  margin-bottom:1.5rem;
}

.success-muted {
  font-size:.9rem;
  opacity:.8;
}

.success-note {
  padding:.7rem .9rem;
  border-radius:.6rem;
  font-size:.85rem;
  background:#1e293b;
  border:1px solid #334155;
  margin-top:1rem;
}

.badge {
  display:inline-block;
  font-size:.75rem;
  padding:.15rem .5rem;
  border-radius:999px;
  border:1px solid #374151;
  color:#9ca3af;
  margin-bottom:.4rem;
}

.download-link {
  color:#facc15;
  text-decoration:none;
  font-size:.85rem;
}

.download-link:hover {
  text-decoration:underline;
}

/* ============================
   LIZENZEN / RECHTSTEXTE / ZAHLUNG
   ============================ */

.license-card {
  background:#111827;
  border-radius:1rem;
  border:1px solid #1f2937;
  box-shadow:0 10px 30px rgba(0,0,0,.4);
  padding:1.5rem 1.75rem;
  color:#f9fafb;
}

.license-content {
  font-size:.95rem;
  line-height:1.6;
}

.license-content a {
  color:var(--accent);
}

.license-backlink {
  display:inline-block;
  margin-bottom:1rem;
  font-size:.9rem;
  color:#9ca3af;
  text-decoration:none;
}

.license-backlink:hover {
  text-decoration:underline;
}

.license-hint {
  font-size:.8rem;
  opacity:.8;
  margin-top:1.2rem;
}

/* ---------- KONTAKT ---------- */

.page-contact {
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 2rem 1.5rem 3rem;
}

.page-contact h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
}

.page-contact-intro {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Box nutzt schon .box-Design, wir ergänzen nur Abstände */
.page-contact-box {
  margin-top: 0.5rem;
}

/* Formularfelder */
.page-contact-form .field {
  margin-bottom: 1rem;
}

.page-contact-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
  color: var(--text);
}

.page-contact-form input,
.page-contact-form textarea {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border-radius: 0.45rem;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  font-size: 0.9rem;
}

.page-contact-form input:focus,
.page-contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.45);
}

.page-contact-form textarea {
  resize: vertical;
}

/* Hinweistext unter dem Formular */
.page-contact-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  margin-bottom: 0.9rem;
}

/* Fehlermeldungen */
.page-contact-form .error {
  font-size: 0.8rem;
  color: #b91c1c;
  margin-top: 0.2rem;
}

/* Honeypot – für Nutzer unsichtbar, für Bots sichtbar im HTML */
.page-contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


.backlink {
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 0.75rem;
  font: inherit;
  color: #9ca3af;
  cursor: pointer;
  text-decoration: none;
}

.backlink:hover {
  text-decoration: underline;
}
/* =========================
   GPSR – Dark Mode (Default)
========================= */
.gpsr-box {
  
  
  border-radius: .9rem;
  border: 1px solid rgba(148,163,184,.25);
  background: rgba(15,23,42,.65);
  font-size: .9rem;
  line-height: 1.55;

  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: max-height .35s ease, opacity .25s ease, transform .25s ease;
}

.gpsr-box.is-open {
  max-height: 900px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* =========================
   GPSR – Light Mode
========================= */
@media (prefers-color-scheme: light) {
  .gpsr-box {
    background: #f8fafc;              /* sehr helles Grau */
    border: 1px solid #e5e7eb;        /* saubere Kante */
    color: #111827;                   /* fast schwarz */
  }

  .gpsr-box a {
    color: #2563eb;                   /* dezentes Blau */
    text-decoration: underline;
  }
}
/* =========================
   GPSR – Light per Theme-Toggle
   (nicht per prefers-color-scheme)
========================= */
:root:not([data-theme="dark"]) .gpsr-box {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #111827;
}

:root:not([data-theme="dark"]) .gpsr-box a {
  color: #2563eb;
  text-decoration: underline;
}

/* =========================
   Overlay (Lightbox) – FINAL
   - keine doppelten Regeln
   - Video bleibt "natürlich" (nicht aufblasen)
========================= */

.image-overlay{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.image-overlay.active{
  display: flex;
}

.image-overlay-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.75);
}

.image-overlay-content{
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Bild */
#image-overlay-img{
  display: block;
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(0,0,0,.15);
  box-shadow: 0 20px 60px rgba(0,0,0,.7);
}

/* Video: NICHT aufblasen */
#image-overlay-video{
  display: block;
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(0,0,0,.15);
  box-shadow: 0 20px 60px rgba(0,0,0,.7);
}

.image-overlay-close{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 30;

  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;

  display: grid;
  place-items: center;

  background: rgba(15, 23, 42, 0.85); /* dunkler Kreis */
  color: #ffffff;                     /* weißes X */
  font-size: 28px;
  line-height: 1;

  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}

.image-overlay-close:hover{
  transform: scale(1.06);
  background: rgba(225, 29, 72, 0.95); /* rot bei Hover */
}


/* Pfeile im Overlay */
.overlay-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}



:root[data-theme="dark"] .overlay-arrow{
  background: rgba(250, 204, 21, 0.85);
  color: #111827;
  box-shadow:
    0 0 0 2px rgba(250, 204, 21, 0.35),
    0 12px 28px rgba(0,0,0,.65);
}

:root[data-theme="dark"] .overlay-arrow:hover{
  background: #fde047;
  transform: translateY(-50%) scale(1.12);
}

@media (max-width: 700px){
  .image-overlay-content{ padding: 14px; }
  .overlay-arrow{ width: 40px; height: 40px; font-size: 26px; }
  .overlay-arrow-left{ left: 10px; }
  .overlay-arrow-right{ right: 10px; }
}


.product-thumb.is-video { position: relative; }
.video-thumb{
  display:inline-flex;
  width:100%;
  height:100%;
  align-items:center;
  justify-content:center;
  font-size:1.1rem;
  font-weight:700;
}


/* Haupt-Galerie: Bild & Video gleich groß */
.product-gallery-main {
  position: relative;
}

#product-main-image,
#product-main-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px; /* falls deine Bilder abgerundet sind */
}

/* Wenn du eine feste Höhe/Ratio für die Galerie nutzt: */
.product-gallery-main {
  aspect-ratio: 1 / 1;       /* passt zu deinen 800x800 Bildern */
  overflow: hidden;
}

#product-main-image,
#product-main-video {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* wichtig! */
}


/* Bühne: passt sich dem Screen an, aber mit Deckel */
.overlay-media-box{
  position: relative;

  /* immer 1:1 Bühne */
  aspect-ratio: 1 / 1;

  /* passt sich an Viewport an */
  width: min(92vw, 92vh);

  /* aber nicht größer als X (damit Desktop nicht “zu groß” wird) */
  max-width: 820px;   /* <- dein bisheriges Feeling (800) + bisschen Luft */

  margin: 0 auto;
  display: grid;
  place-items: center;

  border-radius: 16px;
  overflow: hidden;

  background: rgba(0,0,0,0.05);
}

/* Bild & Video: nur einpassen, nicht aufblasen */
#image-overlay-img,
#image-overlay-video{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 14px; /* optional, wenn du innen auch Rundung willst */
}


/* Pfeile: sitzen IMMER am Rand dieser Bühne */
.overlay-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
}

.overlay-arrow-left{ left: 12px; }
.overlay-arrow-right{ right: 12px; }


.checkout-hint{
  margin-top: 12px;   /* das ist deine "Leerzeile" */
  line-height: 1.4;
  opacity: .85;
}



.ib-footer{
  height: auto;
  padding: 16px 0 10px;     /* ↓ weniger Luft nach unten */
  margin-top: 40px;
  text-align: center;
  font-size: .85rem;
  line-height: 1.6;
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  color: var(--footer-text);
}

.ib-footer-row{
  width: 100%;
  display: flex;
  align-items: center;       /* ← Logos & Links auf einer Linie */
}

.ib-footer-top{
  flex: 1;
  text-align: center;
  padding-left: 20px;        /* optional: damit “optisch” mittig bleibt */
}

.footer-right{
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 20px;       /* Abstand zum rechten Rand */
}

.footer-right img{
  height: 28px;
  width: auto;
  display: block;
}

.ib-footer-bottom{
  margin-top: 4px;           /* Abstand zur oberen Zeile */
}


@media (max-width: 640px) {

  /* Footer insgesamt etwas kompakter */
  .ib-footer {
    padding: 14px 0 10px;
  }

  /* obere Zeile: alles untereinander */
  .ib-footer-row {
    flex-direction: column;
    gap: 8px;
  }

  /* Links sauber zentrieren */
  .ib-footer-top {
    padding-left: 0;
    text-align: center;
  }

  /* Logos nach GANZ unten schieben */
  .footer-right {
    order: 3;              /* ← kommt nach dem Copyright */
    margin-left: 0;
    padding-right: 0;
    justify-content: center;
  }

  /* Copyright bleibt mittig */
  .ib-footer-bottom {
    order: 2;
    margin-top: 4px;
  }
}

/* Lizenzbox: Default (Light) */
:root:not([data-theme="dark"]) .license-box-inline{
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #111827;
}

/* Lizenzbox: Dark */
:root[data-theme="dark"] .license-box-inline{
  background: rgba(15,23,42,.65);
  border: 1px solid rgba(148,163,184,.25);
  color: #e5e7eb;
}

/* Links in der Lizenzbox */
:root:not([data-theme="dark"]) .license-box-inline a{ color:#2563eb; text-decoration: underline; }
:root[data-theme="dark"] .license-box-inline a{ color: var(--accent); }

/* =========================
   Lizenzbox – Radius & Feeling wie GPSR
========================= */

.license-box-inline{
  border-radius: .9rem;   /* gleich wie .gpsr-box */
  padding: .9rem 1rem;    /* gleiche Innenabstände */
}
/* =========================
   Accordion-Logik (GPSR + Lizenz)
   steuert Sichtbarkeit über aria + is-open
========================= */

/* Standard: Boxen zu */
.gpsr-box,
.license-box-inline{
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    max-height .35s ease,
    opacity .25s ease,
    transform .25s ease;
}

/* Offen */
.gpsr-box.is-open,
.license-box-inline.is-open{
  max-height: 900px;        /* groß genug für Lizenztext */
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* Nur Platz unter der Lizenzbox, wenn wirklich etwas offen ist */
.license-box:not(:has(.is-open)) {
  padding-bottom: 0;
}
