/* ==========================================================================
   dealshop.de — Design System
   Dark, ruhig, hochwertig. Amazon-Orange als Akzent, Grün für Preise.
   Tokens zuerst, danach Komponenten in Seitenreihenfolge.
   ========================================================================== */

:root {
  /* --- Flächen / Tiefe -------------------------------------------------- */
  --bg:          #0c0e13;
  --bg-elev-1:   #12151c;   /* Header, Footer */
  --bg-card:     #151922;   /* Karten */
  --bg-card-2:   #1a1f2a;   /* Hover / eingebettete Flächen */
  --bg-inset:    #0e1117;   /* vertiefte Flächen (Charts, Inputs) */

  /* --- Linien ----------------------------------------------------------- */
  --line:        #232833;
  --line-soft:   #1c212b;
  --line-strong: #2e3542;

  /* --- Text ------------------------------------------------------------- */
  --text:        #eef1f6;
  --text-soft:   #c3cad6;
  --muted:       #8d97a8;
  --faint:       #5b6474;

  /* --- Akzente ---------------------------------------------------------- */
  --accent:      #ff9900;
  --accent2:     #ffc85c;
  --accent-ink:  #14161c;
  --green:       #45d99a;
  --green-dim:   #2e9d6f;
  --red:         #f2563d;
  --blue:        #4aa8ff;

  /* --- Radius ----------------------------------------------------------- */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  22px;
  --r-pill: 999px;

  /* --- Schatten --------------------------------------------------------- */
  --sh-1: 0 1px 2px rgba(0,0,0,.4);
  --sh-2: 0 4px 16px rgba(0,0,0,.35);
  --sh-3: 0 16px 40px -12px rgba(0,0,0,.65);
  --glow-accent: 0 8px 28px -10px rgba(255,153,0,.55);
  --glow-green:  0 8px 28px -10px rgba(69,217,154,.45);

  /* --- Bewegung --------------------------------------------------------- */
  --ease: cubic-bezier(.22,.61,.36,1);
  --t-fast: .16s var(--ease);
  --t-med:  .28s var(--ease);

  --maxw: 1240px;

  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "cv11", "ss01";
  font-synthesis-weight: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  /* sehr dezentes Licht von oben, damit die Fläche nicht tot wirkt */
  background-image:
    radial-gradient(900px 480px at 50% -220px, rgba(255,153,0,.08), transparent 70%),
    radial-gradient(700px 400px at 88% 4%, rgba(69,217,154,.05), transparent 70%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

h1, h2, h3 { letter-spacing: -.02em; line-height: 1.22; }

a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* Preise & Zahlen immer in gleicher Laufweite */
.price, .uvp, .save, .ph-row b, .basket-summary .value { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14,17,23,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header::after {
  /* feiner Lichtsaum an der Unterkante */
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,153,0,.35), transparent);
  opacity: .5;
}
.site-header .wrap {
  display: flex; align-items: center; gap: 12px 22px;
  min-height: 66px; padding-top: 10px; padding-bottom: 10px;
  flex-wrap: wrap;
}

.logo {
  color: var(--text); text-decoration: none;
  font-weight: 800; font-size: 21px; letter-spacing: -.03em;
  flex-shrink: 0; white-space: nowrap;
  transition: opacity var(--t-fast);
}
.logo:hover { opacity: .85; }
.logo span {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.cats {
  display: flex; flex-wrap: wrap; gap: 4px;
  flex: 1; min-width: 0; align-items: center;
}
.cat-link {
  position: relative;
  color: var(--muted); text-decoration: none;
  padding: 8px 13px; border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 500; white-space: nowrap;
  border: 1px solid transparent;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.cat-link:hover { color: var(--text); background: var(--bg-card-2); }
.cat-link.active {
  background: linear-gradient(135deg, var(--accent), #ffb43a);
  color: var(--accent-ink); font-weight: 700;
  box-shadow: var(--glow-accent);
}
.cat-link.sparabo-link {
  margin-left: auto;
  background: rgba(69,217,154,.08);
  border-color: rgba(69,217,154,.28);
  color: var(--green); font-weight: 650;
}
.cat-link.sparabo-link:hover {
  background: rgba(69,217,154,.16); border-color: rgba(69,217,154,.5); color: var(--green);
}
.cat-link.rk-link { color: #ffb056 !important; }
.cat-link.rk-link:hover { background: rgba(255,176,86,.1); }

@media (max-width: 720px) {
  .cat-link.sparabo-link { margin-left: 0; }
  .site-header .wrap { gap: 8px; min-height: 0; }
  .logo { width: 100%; }
  .cats {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    /* Kanten ausblenden statt harte Abrisskante */
    mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 20px), transparent);
  }
  .cats::-webkit-scrollbar { height: 6px; }
  .cats::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: 52px 0 30px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -40% 20% auto;
  height: 320px;
  background: radial-gradient(closest-side, rgba(255,153,0,.13), transparent);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero h1 {
  font-size: clamp(28px, 5.2vw, 48px);
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -.035em;
  background: linear-gradient(175deg, #ffffff 30%, #b9c2d1);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); max-width: 620px; margin: 0 auto 8px; font-size: 16px; }
.hero .updated { font-size: 12px; color: var(--faint); margin-top: 14px; }

/* Vertrauens-Chips unter der Headline */
.hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; margin: 20px 0 4px; padding: 0; list-style: none;
}
.hero-stats li {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 7px 15px;
  font-size: 13px; color: var(--text-soft);
  backdrop-filter: blur(6px);
}
.hero-stats b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-stats .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(69,217,154,.16);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-stats .dot { animation: pulse 2.4s var(--ease) infinite; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(69,217,154,.16); }
  50%      { box-shadow: 0 0 0 6px rgba(69,217,154,.05); }
}

.hero-actions { margin: 22px 0 4px; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(135deg, rgba(69,217,154,.16), rgba(69,217,154,.06));
  color: var(--green); font-weight: 700; text-decoration: none;
  padding: 13px 26px; border-radius: var(--r-pill); font-size: 15px;
  border: 1px solid rgba(69,217,154,.35);
  transition: transform var(--t-fast), box-shadow var(--t-med), border-color var(--t-fast), background var(--t-fast);
}
.hero-cta:hover {
  background: linear-gradient(135deg, rgba(69,217,154,.26), rgba(69,217,154,.1));
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: var(--glow-green);
}
.hero-cta:active { transform: translateY(0); }

/* ==========================================================================
   Suche
   ========================================================================== */

.search-box { position: relative; margin: 4px 0 26px; }
.search-box input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--text);
  font: inherit; font-size: 15px;
  padding: 14px 46px 14px 46px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  /* Lupe als Inline-SVG, spart einen Request */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d97a8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 15px 50%;
  background-size: 18px;
}
.search-box input::placeholder { color: var(--faint); }
.search-box input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-card-2);
  box-shadow: 0 0 0 4px rgba(255,153,0,.12);
}
.search-box .search-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: var(--bg-card-2); border: 1px solid var(--line);
  color: var(--muted); font-size: 16px; line-height: 1;
  width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; display: none;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.search-box .search-clear:hover { color: var(--text); border-color: var(--line-strong); }
.search-box .search-clear.show { display: grid; place-items: center; }
.search-count { color: var(--muted); font-size: 13px; margin: -16px 0 18px; }
.no-results { color: var(--muted); text-align: center; padding: 56px 0; }

/* ==========================================================================
   Karten-Grid
   ========================================================================== */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
  gap: 20px;
  padding: 8px 0 64px;
}
/* Mobil zweispaltig: eine Riesenkarte pro Zeile bedeutet endloses Scrollen */
@media (max-width: 560px) {
  .grid, .related .grid, .bio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card h3 { font-size: 13px; height: 54px; margin: 5px 0 9px; }
  .card-body { padding: 13px 12px 14px; }
  .price { font-size: 18px; }
  .uvp { font-size: 12px; }
  .badge { font-size: 12px; padding: 4px 9px; right: 9px; top: -14px; }
  .cta { font-size: 12.5px; }
  .price-low { font-size: 10.5px; padding: 3px 7px; }
}

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  box-shadow: var(--sh-1);
  transition: transform var(--t-med), border-color var(--t-fast), box-shadow var(--t-med), background var(--t-fast);
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,153,0,.45);
  background: var(--bg-card-2);
  box-shadow: var(--sh-3);
}
.card-link {
  color: inherit; text-decoration: none;
  display: flex; flex-direction: column;
  width: 100%;
}

.card-img {
  position: relative;
  background: #fff;
  aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
  padding: 14px;
  overflow: hidden;
}
.card-img img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  transition: transform .45s var(--ease);
}
.card:hover .card-img img { transform: scale(1.045); }

.card-body {
  padding: 15px 16px 16px;
  position: relative;
  display: flex; flex-direction: column;
  flex: 1;
}

/* Rabatt-Badge: sitzt auf der Kante zwischen Bild und Body */
.badge {
  position: absolute; top: -15px; right: 12px;
  background: linear-gradient(135deg, #ff5f45, #e03a22);
  color: #fff; font-weight: 800; font-size: 13px;
  letter-spacing: -.01em;
  padding: 5px 11px; border-radius: var(--r-sm);
  box-shadow: 0 6px 16px -6px rgba(224,58,34,.9);
  z-index: 2;
}

.card h3 {
  font-size: 14.5px; line-height: 1.4;
  margin: 6px 0 12px;
  height: 61px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  font-weight: 600; color: var(--text-soft);
  letter-spacing: -.005em;
  transition: color var(--t-fast);
}
.card:hover h3 { color: var(--text); }

.price-row { display: flex; align-items: baseline; gap: 9px; margin-bottom: 10px; flex-wrap: wrap; }
.price { color: var(--green); font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.uvp { color: var(--faint); font-size: 13px; text-decoration: line-through; }
.save {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 0 0 18px;
  background: rgba(69,217,154,.1);
  border: 1px solid rgba(69,217,154,.28);
  border-radius: var(--r-pill);
  padding: 7px 15px;
  color: var(--green); font-weight: 700; font-size: 14.5px;
}
.product-info .save { display: flex; width: fit-content; margin-bottom: 20px; }

/* Preis-Vertrauens-Badges */
.price-low {
  display: inline-flex; align-items: center; gap: 5px;
  align-self: flex-start;
  font-size: 11.5px; font-weight: 700;
  padding: 4px 9px; border-radius: var(--r-sm);
  margin-bottom: 10px;
  border: 1px solid transparent;
}
.price-low.all { background: rgba(255,200,92,.1); color: var(--accent2); border-color: rgba(255,200,92,.25); }
.price-low.m30 { background: rgba(69,217,154,.1); color: var(--green); border-color: rgba(69,217,154,.25); }

/* CTA immer bündig am unteren Kartenrand */
.cta {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: auto;
  font-size: 13px; color: var(--accent2); font-weight: 700;
  transition: gap var(--t-fast), color var(--t-fast);
}
.card:hover .cta { gap: 9px; color: var(--accent); }

/* Retourenkauf-Variante */
.rk-card .rk-cond {
  position: absolute; bottom: 10px; left: 10px;
  background: rgba(14,17,23,.86);
  backdrop-filter: blur(4px);
  color: #ffd7a8; font-size: 11px; font-weight: 700;
  padding: 4px 9px; border-radius: var(--r-sm);
  border: 1px solid rgba(255,176,86,.35);
  z-index: 2;
}
.rk-card .card-img .badge { top: 10px; right: 10px; }
.rk-card .uvp { font-size: 12px; }
.rk-card:hover { border-color: rgba(255,176,86,.5); }

/* ==========================================================================
   Produktseite
   ========================================================================== */

.product-page { padding-top: 26px; padding-bottom: 64px; }

.breadcrumb { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--accent2); }

.product-detail { display: grid; grid-template-columns: 1fr; gap: 34px; }
@media (min-width: 760px) { .product-detail { grid-template-columns: 400px 1fr; } }

.product-img {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 26px;
  display: flex; align-items: center; justify-content: center;
  min-height: 320px;
  box-shadow: var(--sh-2);
  align-self: start;
}
.product-img img { max-width: 100%; max-height: 380px; object-fit: contain; }

.product-info h1 { font-size: clamp(20px, 2.6vw, 26px); line-height: 1.32; margin: 0 0 16px; font-weight: 700; }
.product-info .badge { position: static; display: inline-block; margin-bottom: 14px; box-shadow: none; }

.price-row.big { margin-bottom: 20px; align-items: baseline; }
.price-row.big .price { font-size: 36px; }
.price-row.big .uvp { font-size: 16px; }

.ended {
  color: #f0a23f;
  background: rgba(240,162,63,.08);
  border: 1px solid rgba(240,162,63,.28);
  padding: 11px 15px; border-radius: var(--r-md);
  font-size: 14px; margin-bottom: 18px;
}

.buy-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: var(--accent-ink); font-weight: 800; text-decoration: none;
  padding: 15px 30px; border-radius: var(--r-md);
  font-size: 16px; margin-bottom: 18px;
  box-shadow: var(--glow-accent);
  transition: transform var(--t-fast), box-shadow var(--t-med), filter var(--t-fast);
}
.buy-btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 14px 34px -10px rgba(255,153,0,.7); }
.buy-btn:active { transform: translateY(0); }

.fineprint { color: var(--muted); font-size: 12px; max-width: 520px; line-height: 1.6; }

.about-deal { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 24px; }
.about-deal h2 { font-size: 19px; margin: 0 0 12px; }
.about-deal p { color: var(--text-soft); line-height: 1.7; max-width: 760px; font-size: 14.5px; }
.about-deal strong { color: var(--text); }

/* ==========================================================================
   Preishistorie
   ========================================================================== */

.sparkline { display: block; }
.price-history {
  max-width: var(--maxw);
  margin: 28px auto 0;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-inset));
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  box-shadow: var(--sh-1);
}
.price-history h2 { margin: 0 0 12px; font-size: 20px; }
.ph-hint { margin: 0 0 16px; font-size: 14px; font-weight: 700; }
.ph-hint.good { color: var(--green); }
.ph-chart { background: var(--bg-inset); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 14px; margin-bottom: 18px; }
.ph-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 28px; }
.ph-row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-soft); padding: 7px 0; font-size: 14px; color: var(--muted); }
.ph-row b { color: var(--text); font-weight: 650; }
.ph-fineprint { color: var(--faint); font-size: 11.5px; margin: 16px 0 0; }

/* ==========================================================================
   Interne Verlinkung
   ========================================================================== */

.related { border-top: 1px solid var(--line); margin-top: 26px; padding: 26px 0 10px; }
.related h2 { font-size: 20px; margin: 0 0 18px; }
.related .grid { grid-template-columns: repeat(auto-fill, minmax(206px, 1fr)); padding-bottom: 20px; }

.related-cats { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 22px; }
.related-cats h2 { font-size: 18px; margin: 0 0 14px; }
.rc-links { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-links a {
  background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: var(--r-pill); padding: 8px 16px;
  color: var(--muted); text-decoration: none; font-size: 13.5px;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.rc-links a:hover { border-color: rgba(255,200,92,.45); color: var(--text); background: var(--bg-card-2); }

/* ==========================================================================
   Content-Seiten (Kategorie, Ratgeber, FAQ)
   ========================================================================== */

.page-hero { padding: 44px 0 20px; }
.page-hero h1 { font-size: clamp(25px, 4vw, 38px); margin: 0 0 12px; font-weight: 800; letter-spacing: -.03em; }
.page-hero p { color: var(--muted); max-width: 720px; }
.cat-intro { color: var(--text-soft); max-width: 780px; margin-top: 14px; line-height: 1.7; font-size: 14.5px; }

.prose { max-width: 740px; margin: 0 auto; line-height: 1.75; padding: 22px 0 56px; }
.prose h2 { margin-top: 38px; font-size: 23px; }
.prose h3 { margin-top: 26px; font-size: 18px; }
.prose p, .prose li { color: var(--text-soft); }
.prose a { color: var(--accent2); text-decoration-color: rgba(255,200,92,.35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent2); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }

.faq-item { border-bottom: 1px solid var(--line-soft); padding: 20px 0; }
.faq-item h3 { margin: 0 0 8px; font-size: 17px; color: var(--text); }
.faq-item p { margin: 0; color: var(--muted); line-height: 1.7; }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 18px; padding: 22px 0 54px; }
.guide-card {
  position: relative;
  background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 22px;
  text-decoration: none; color: inherit;
  transition: transform var(--t-med), border-color var(--t-fast), box-shadow var(--t-med), background var(--t-fast);
}
.guide-card:hover {
  border-color: rgba(255,200,92,.45);
  background: var(--bg-card-2);
  transform: translateY(-4px);
  box-shadow: var(--sh-3);
}
.guide-card h3 { margin: 0 0 8px; font-size: 17px; }
.guide-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }

/* ==========================================================================
   BioGlück (eigene Marke)
   ========================================================================== */

.badge-bio { background: linear-gradient(135deg, #3fa45c, #2b7a3f); box-shadow: 0 6px 16px -6px rgba(43,122,63,.9); }
.card-bio { border-color: rgba(69,217,154,.28); }
.card-bio:hover { border-color: var(--green); box-shadow: 0 16px 40px -12px rgba(69,217,154,.3); }
.bio-block {
  background: linear-gradient(180deg, rgba(69,217,154,.07), transparent 70%);
  border-top: 1px solid rgba(69,217,154,.2);
  border-bottom: 1px solid var(--line-soft);
  padding: 30px 0 10px; margin: 10px 0;
}
.bio-block-head h2 { margin: 0 0 6px; font-size: 22px; color: var(--green); }
.bio-block-head p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.bio-grid { grid-template-columns: repeat(auto-fill, minmax(206px, 1fr)); padding-bottom: 28px; }

/* ==========================================================================
   Telegram-CTA
   ========================================================================== */

.tg-cta {
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(600px 220px at 12% 0%, rgba(34,158,217,.12), transparent 70%),
    linear-gradient(180deg, var(--bg-elev-1), var(--bg));
  padding: 38px 0;
}
.tg-cta-inner { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; justify-content: space-between; }
.tg-cta-text { flex: 1; min-width: 260px; }
.tg-cta-text h2 { margin: 0 0 8px; font-size: 22px; }
.tg-cta-text p { color: var(--muted); margin: 0 0 18px; max-width: 490px; }
.tg-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #34b3ea, #1f92cc);
  color: #fff; font-weight: 700; text-decoration: none;
  padding: 13px 24px; border-radius: var(--r-md); font-size: 15px;
  box-shadow: 0 10px 26px -12px rgba(34,158,217,.9);
  transition: transform var(--t-fast), filter var(--t-fast), box-shadow var(--t-med);
}
.tg-btn:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 14px 30px -10px rgba(34,158,217,.8); }
.tg-qr {
  flex-shrink: 0; background: #fff; padding: 11px;
  border-radius: var(--r-md); line-height: 0; display: block;
  box-shadow: var(--sh-2);
  transition: transform var(--t-med);
}
.tg-qr:hover { transform: translateY(-3px) rotate(-1.5deg); }
.tg-qr img { display: block; width: 120px; height: 120px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-elev-1);
  padding: 32px 0 44px;
  color: var(--muted); font-size: 12.5px;
}
.site-footer p { max-width: 780px; line-height: 1.7; margin: 0 0 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer nav a {
  color: var(--muted); text-decoration: none;
  transition: color var(--t-fast);
  border-bottom: 1px solid transparent;
}
.site-footer nav a:hover { color: var(--text); border-bottom-color: var(--line-strong); }

/* ==========================================================================
   Rechtstexte
   ========================================================================== */

.legal { max-width: 780px; margin: 56px auto; padding: 0 22px; line-height: 1.75; color: var(--text-soft); }
.legal h1 { margin-bottom: 26px; color: var(--text); }
.legal h2 { margin-top: 32px; color: var(--text); }
.legal a { color: var(--accent2); text-underline-offset: 3px; }

/* ==========================================================================
   Cookie-Consent
   ========================================================================== */

#consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: rgba(16,19,26,.94);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -12px 36px rgba(0,0,0,.55);
}
@media (prefers-reduced-motion: no-preference) {
  #consent-banner { animation: slideUp .4s var(--ease) both; }
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.consent-inner { max-width: 1040px; margin: 0 auto; padding: 18px 22px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.consent-text { flex: 1; min-width: 260px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.consent-text strong { color: var(--text); }
.consent-text a { color: var(--accent2); text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 10px; }
.consent-btn {
  border: 1px solid transparent; cursor: pointer;
  padding: 11px 22px; border-radius: var(--r-sm);
  font: inherit; font-size: 14px; font-weight: 700;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.consent-btn:active { transform: scale(.97); }
.consent-btn.deny { background: transparent; color: var(--muted); border-color: var(--line-strong); }
.consent-btn.deny:hover { color: var(--text); border-color: var(--muted); }
.consent-btn.accept {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: var(--accent-ink);
  box-shadow: var(--glow-accent);
}
.consent-btn.accept:hover { filter: brightness(1.06); }

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .site-header, .tg-cta, #consent-banner, .related, .search-box { display: none !important; }
  body { background: #fff; color: #000; }
}
