:root {
  --md-primary-fg-color: #7c4dff;
  --md-accent-fg-color: #b388ff;
}

/* ====== HOMEPAGE ====== */

/* Hero Banner */
.hero-section {
  margin: -1rem -0.8rem 2rem -0.8rem;
}

.hero-section img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

/* Card Grid */
.home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

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

.home-card {
  background: var(--md-code-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  transition: border-color 0.2s, transform 0.15s;
}

.home-card:hover {
  border-color: var(--md-accent-fg-color);
  transform: translateY(-2px);
}

.home-card h3 {
  margin: 0 0 0.4rem 0 !important;
  font-size: 1rem;
}

.home-card p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

.card-icon {
  color: var(--md-accent-fg-color);
}

.card-freebuild {
  border-left: 3px solid #4caf50;
}

.card-wildlands {
  border-left: 3px solid #546e7a;
}

.card-shop {
  border-left: 3px solid #FFD54F;
  grid-column: 1 / -1;
}

/* Server Info Footer */
.home-info {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid var(--md-default-fg-color--lightest);
  font-size: 0.9rem;
  opacity: 0.85;
}

.home-info code {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--md-accent-fg-color);
}

/* ====== CONTENT PAGES ====== */

/* Banner-Bilder */
.md-content img[alt="Freebuild"],
.md-content img[alt="Wildlands"],
.md-content img[alt="Farmwelt"] {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

/* GUI-Mockup-Bilder */
.md-content img[alt*="Menü"],
.md-content img[alt*="Detail"],
.md-content img[alt*="Marktplatz"] {
  width: 100%;
  max-width: 520px;
  border-radius: 10px;
  margin: 1rem 0;
  display: block;
}

/* Tabellen */
.md-typeset table:not([class]) {
  border-radius: 8px;
  overflow: hidden;
}

.md-typeset table:not([class]) th {
  background: rgba(124, 77, 255, 0.1);
}

.md-typeset td code {
  color: var(--md-accent-fg-color);
}

/* Trennlinien */
.md-typeset hr {
  border-color: rgba(124, 77, 255, 0.12);
}

/* ====== SHOP PAGE ====== */

/* Hero Banner */
.shop-hero {
  max-width: 760px;
  margin: -0.5rem auto 0;
  position: relative;
  overflow: visible;
}

.shop-hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 300%;
  background: radial-gradient(ellipse at center, rgba(255, 213, 79, 0.06) 0%, rgba(124, 77, 255, 0.03) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.shop-hero img {
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
  border-radius: 12px;
}

/* Highlights Strip */
.shop-highlights {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  padding: 0.6rem 0 0.2rem;
}

.shop-hl-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.hl-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.hl-green { background: #66BB6A; box-shadow: 0 0 6px rgba(102, 187, 106, 0.5); }
.hl-gold  { background: #FFD54F; box-shadow: 0 0 6px rgba(255, 213, 79, 0.5); }
.hl-blue  { background: #42A5F5; box-shadow: 0 0 6px rgba(66, 165, 245, 0.5); }

.shop-hl-sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.08);
}

/* Section Heading */
.shop-section-heading {
  max-width: 760px;
  margin: 0 auto 1rem;
  text-align: center;
}

.shop-section-heading span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  position: relative;
  padding: 0 1.5rem;
}

.shop-section-heading span::before,
.shop-section-heading span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
}

.shop-section-heading span::before {
  right: 100%;
  background: linear-gradient(to left, rgba(255, 213, 79, 0.2), transparent);
}

.shop-section-heading span::after {
  left: 100%;
  background: linear-gradient(to right, rgba(255, 213, 79, 0.2), transparent);
}

/* Rang-Karte */
.shop-rank-card {
  max-width: 760px;
  margin: -1.5rem auto 2.5rem;
  position: relative;
  z-index: 2;
  background: var(--md-code-bg-color);
  border: 1px solid rgba(255, 213, 79, 0.15);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 80px rgba(255, 213, 79, 0.03);
}

.shop-rank-header {
  background: linear-gradient(160deg, #2a1f3d, #1e1633);
  padding: 1.4rem 1.6rem 1rem;
  text-align: center;
}

.shop-rank-label {
  display: inline-block;
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.35);
  color: #66BB6A;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 0.15rem 0.7rem;
  border-radius: 3px;
  margin-bottom: 0.4rem;
}

.shop-rank-name {
  font-size: 2.4rem;
  font-weight: 800;
  color: #FFD54F;
  line-height: 1.1;
  text-shadow: 0 0 40px rgba(255, 213, 79, 0.2);
}

.shop-rank-chat {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 0.78rem;
  background: rgba(0, 0, 0, 0.3);
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: 4px;
  margin-top: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.shop-rank-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.6rem;
  border-top: 1px solid rgba(255, 213, 79, 0.1);
}

@media (max-width: 480px) {
  .shop-rank-price-row {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
}

.price-amount {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-right: 0.6rem;
}

.price-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

.mc-gold { color: #FFAA00; font-weight: 700; }
.mc-yellow { color: #FFFF55; font-weight: 700; }
.mc-gray { color: #AAAAAA; }
.mc-dark-gray { color: #555555; }
.mc-white { color: #e0e0e0; }

/* Buy Button */
.shop-buy-btn {
  display: inline-block;
  background: linear-gradient(135deg, #FFD54F, #FFB300);
  color: #1a1028 !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.8rem;
  border-radius: 6px;
  text-decoration: none !important;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  white-space: nowrap;
}

.shop-buy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 213, 79, 0.3);
}

/* Comparison Table */
.shop-compare-wrap {
  max-width: 760px;
  margin: 0 auto 2rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--md-code-bg-color);
}

.md-typeset .shop-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  display: table;
  margin: 0;
}

.md-typeset .shop-compare thead th {
  padding: 0.7rem 0.6rem;
  font-weight: 600;
  font-size: 0.8rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  min-width: auto;
  vertical-align: middle;
}

.md-typeset .shop-compare th.compare-feature-col {
  text-align: left;
  width: 54%;
}

.md-typeset .shop-compare th.compare-spieler-col {
  width: 23%;
  text-align: center;
}

.md-typeset .shop-compare th.compare-premium-col {
  width: 23%;
  text-align: center;
  color: #FFD54F;
}

.md-typeset .shop-compare tbody td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: middle;
}

.md-typeset .shop-compare tbody td:first-child {
  color: rgba(255, 255, 255, 0.75);
  padding-left: 1.2rem;
  text-align: left;
}

.md-typeset .shop-compare tbody td:nth-child(2),
.md-typeset .shop-compare tbody td:nth-child(3) {
  text-align: center;
  font-weight: 600;
}

.md-typeset .shop-compare tbody td:nth-child(3) {
  background: rgba(255, 213, 79, 0.015);
}

.md-typeset .shop-compare tbody tr:hover {
  background: rgba(255, 255, 255, 0.015);
}

.md-typeset .shop-compare .compare-section-row td {
  background: rgba(255, 213, 79, 0.03) !important;
  font-weight: 700 !important;
  font-size: 0.72rem !important;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 213, 79, 0.45) !important;
  padding: 0.7rem 1rem !important;
  border-bottom: 1px solid rgba(255, 213, 79, 0.06) !important;
  text-align: left !important;
}

.val-yes { color: #66BB6A !important; font-size: 1rem !important; }
.val-no  { color: rgba(239, 83, 80, 0.45) !important; font-size: 1rem !important; }
.val-premium { color: #FFD54F !important; font-weight: 700 !important; }
.val-normal  { color: rgba(255, 255, 255, 0.35) !important; }

.compare-note {
  display: inline-block;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.7rem;
  margin-left: 0.4rem;
}
.compare-note::before {
  content: "(";
}
.compare-note::after {
  content: ")";
}

/* Claim-Flags subsection */
.md-typeset .shop-compare .compare-subsection-row td {
  background: rgba(124, 77, 255, 0.03) !important;
  font-weight: 600 !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.8px;
  color: rgba(179, 136, 255, 0.5) !important;
  padding: 0.45rem 1rem 0.45rem 1.2rem !important;
  border-bottom: 1px solid rgba(124, 77, 255, 0.06) !important;
  text-align: left !important;
}

.flag-hint {
  font-weight: 400;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.2);
  margin-left: 0.5rem;
  letter-spacing: 0;
  text-transform: none;
}

/* Claim Flags Block */
.claim-flags-block {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 1rem 1.2rem 1.1rem;
}

.claim-flags-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}

.claim-flags-icon {
  font-size: 0.85rem;
  opacity: 0.4;
}

.claim-flags-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
}

.claim-flags-badge {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #FFD54F;
  background: rgba(255, 213, 79, 0.1);
  border: 1px solid rgba(255, 213, 79, 0.2);
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
}

.claim-flags-subtitle {
  width: 100%;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.2);
  margin-top: -0.2rem;
}

.claim-flags-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.flag-chip {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(179, 136, 255, 0.7);
  background: rgba(124, 77, 255, 0.06);
  border: 1px solid rgba(124, 77, 255, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  transition: border-color 0.15s, background 0.15s;
  cursor: default;
  position: relative;
}

.flag-chip:hover {
  background: rgba(124, 77, 255, 0.1);
  border-color: rgba(124, 77, 255, 0.25);
}

/* Tooltips for chips and table rows */
.flag-chip[data-tip],
.md-typeset .shop-compare tbody td[data-tip] {
  cursor: help;
}

.flag-chip[data-tip] {
  position: relative;
}

.flag-chip[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e1338;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.73rem;
  font-weight: 400;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(124, 77, 255, 0.15);
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(124, 77, 255, 0.06);
  max-width: 280px;
  min-width: 160px;
  white-space: normal;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0;
  opacity: 0;
  animation: tooltipFadeIn 0.15s ease-out forwards;
}

.flag-chip[data-tip]:hover::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1e1338;
  z-index: 101;
  pointer-events: none;
  opacity: 0;
  animation: tooltipFadeIn 0.15s ease-out forwards;
}

/* Table row tooltips */
.md-typeset .shop-compare tbody td[data-tip] {
  position: relative;
}

.md-typeset .shop-compare tbody td[data-tip]::after {
  content: " \u24D8";
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.12);
  margin-left: 0.3rem;
  transition: color 0.2s;
}

.md-typeset .shop-compare tbody tr:hover td[data-tip]::after {
  color: rgba(124, 77, 255, 0.35);
}

.md-typeset .shop-compare tbody td[data-tip]:hover::before {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: #1e1338;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.73rem;
  font-weight: 400;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(124, 77, 255, 0.15);
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(124, 77, 255, 0.06);
  max-width: 300px;
  min-width: 180px;
  white-space: normal;
  line-height: 1.5;
  text-align: left;
  opacity: 0;
  animation: tooltipFadeIn 0.15s ease-out forwards;
}

@keyframes tooltipFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* CTA Bar */
.shop-cta-bar {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.shop-buy-cta {
  font-size: 1rem;
  padding: 0.75rem 2.2rem;
  box-shadow: 0 4px 20px rgba(255, 213, 79, 0.12);
}

/* Steps */
.shop-steps-section {
  max-width: 760px;
  margin: 0 auto 2rem;
}

.shop-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

@media (max-width: 600px) {
  .shop-steps-grid {
    grid-template-columns: 1fr;
  }
}

.shop-step-card {
  background: var(--md-code-bg-color);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 1.3rem 1rem 1.1rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.15s;
}

.shop-step-card:hover {
  border-color: rgba(255, 213, 79, 0.12);
  transform: translateY(-2px);
}

.shop-step-card .step-num {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 213, 79, 0.1);
  color: #FFD54F;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

.step-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.3rem;
}

.step-desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
}

/* Footer Note */
.shop-footer-note {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 0;
}

/* ====== Light theme ====== */
[data-md-color-scheme="default"] .shop-rank-header {
  background: linear-gradient(160deg, #f5f0fa, #ede4f7);
}
[data-md-color-scheme="default"] .shop-rank-name { color: #d4a000; }
[data-md-color-scheme="default"] .shop-rank-chat { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.06); }
[data-md-color-scheme="default"] .price-amount { color: #1a1028; }
[data-md-color-scheme="default"] .price-note { color: rgba(0,0,0,0.35); }
[data-md-color-scheme="default"] .mc-white { color: #333; }
[data-md-color-scheme="default"] .md-typeset .shop-compare thead th { background: rgba(0,0,0,0.02); color: rgba(0,0,0,0.4); }
[data-md-color-scheme="default"] .md-typeset .shop-compare th.compare-premium-col { color: #d4a000 !important; }
[data-md-color-scheme="default"] .md-typeset .shop-compare tbody td:first-child { color: rgba(0,0,0,0.65); }
[data-md-color-scheme="default"] .md-typeset .shop-compare .compare-section-row td { color: rgba(0,0,0,0.3) !important; background: rgba(0,0,0,0.015) !important; }
[data-md-color-scheme="default"] .md-typeset .shop-compare .compare-subsection-row td { color: rgba(124, 77, 255, 0.4) !important; background: rgba(124, 77, 255, 0.02) !important; }
[data-md-color-scheme="default"] .flag-hint { color: rgba(0,0,0,0.2); }
[data-md-color-scheme="default"] .claim-flags-block { border-top-color: rgba(0,0,0,0.04); }
[data-md-color-scheme="default"] .claim-flags-title { color: rgba(0,0,0,0.5); }
[data-md-color-scheme="default"] .claim-flags-subtitle { color: rgba(0,0,0,0.2); }
[data-md-color-scheme="default"] .claim-flags-badge { color: #d4a000; background: rgba(212,160,0,0.08); border-color: rgba(212,160,0,0.15); }
[data-md-color-scheme="default"] .flag-chip { color: rgba(124,77,255,0.65); background: rgba(124,77,255,0.04); border-color: rgba(124,77,255,0.1); }
[data-md-color-scheme="default"] .flag-chip[data-tip]:hover::after { background: #fff; color: rgba(0,0,0,0.7); border-color: rgba(0,0,0,0.08); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
[data-md-color-scheme="default"] .flag-chip[data-tip]:hover::before { border-top-color: #fff; }
[data-md-color-scheme="default"] .md-typeset .shop-compare tbody td[data-tip]::after { color: rgba(0,0,0,0.12); }
[data-md-color-scheme="default"] .md-typeset .shop-compare tbody tr:hover td[data-tip]::after { color: rgba(124,77,255,0.3); }
[data-md-color-scheme="default"] .md-typeset .shop-compare tbody td[data-tip]:hover::before { background: #fff; color: rgba(0,0,0,0.7); border-color: rgba(0,0,0,0.08); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
[data-md-color-scheme="default"] .val-premium { color: #d4a000 !important; }
[data-md-color-scheme="default"] .val-normal { color: rgba(0,0,0,0.3) !important; }
[data-md-color-scheme="default"] .compare-note { color: rgba(0,0,0,0.2); }
[data-md-color-scheme="default"] .shop-hl-item { color: rgba(0,0,0,0.35); }
[data-md-color-scheme="default"] .shop-hl-sep { background: rgba(0,0,0,0.08); }
[data-md-color-scheme="default"] .shop-section-heading span { color: rgba(0,0,0,0.25); }
[data-md-color-scheme="default"] .shop-section-heading span::before { background: linear-gradient(to left, rgba(0,0,0,0.08), transparent); }
[data-md-color-scheme="default"] .shop-section-heading span::after { background: linear-gradient(to right, rgba(0,0,0,0.08), transparent); }
[data-md-color-scheme="default"] .shop-rank-name { text-shadow: none; }
[data-md-color-scheme="default"] .step-title { color: rgba(0,0,0,0.75); }
[data-md-color-scheme="default"] .step-desc { color: rgba(0,0,0,0.45); }
[data-md-color-scheme="default"] .shop-step-card { border-color: rgba(0,0,0,0.06); }
[data-md-color-scheme="default"] .shop-footer-note { color: rgba(0,0,0,0.2); }
