:root {
  --bg: #060508;
  --surface: #100e14;
  --surface-2: #18151e;
  --surface-3: #221e28;
  --border: #3d2e22;
  --border-soft: rgba(201, 162, 39, 0.22);
  --gold: #c9a227;
  --gold-bright: #e8c547;
  --gold-dim: #7a6020;
  --ember: #8b2a14;
  --blood: #4a1010;
  --text: #9fd4ff;
  --muted: #7aadcc;
  --danger: #d44;
  --ok: #5cb88a;
  --radius: 14px;
  --radius-sm: 8px;
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.55);
  --shadow-gold: 0 12px 48px rgba(201, 162, 39, 0.1);
  --panel-inset: inset 0 1px 0 rgba(255, 220, 160, 0.06), inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

.bg-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -8%, rgba(201, 162, 39, 0.16), transparent 58%),
    radial-gradient(ellipse 45% 40% at 0% 40%, rgba(139, 42, 20, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 35% at 100% 70%, rgba(90, 40, 120, 0.08), transparent),
    radial-gradient(ellipse 60% 30% at 50% 100%, rgba(74, 16, 16, 0.15), transparent);
  z-index: 0;
}

.bg-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.wrap {
  width: min(1320px, 94vw);
  margin: 0 auto;
}

main.wrap:has(.guide-page) {
  width: min(1440px, 96vw);
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(6, 5, 8, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand-head {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 2px solid var(--gold-dim);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 16px rgba(201, 162, 39, 0.25), var(--panel-inset);
  background: #1a1208;
}

.header-nav-link.active-nav,
.header-nav-link[href="/shop/anleitung"] {
  color: var(--gold-bright);
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}

.brand-sub {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.header-nav-link:hover { color: var(--gold); }

.lang-switch button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.lang-switch button:first-child { border-radius: 8px 0 0 8px; }
.lang-switch button:last-child { border-radius: 0 8px 8px 0; margin-left: -1px; }
.lang-switch button.active {
  background: var(--surface-2);
  color: var(--gold);
  border-color: var(--gold-dim);
}

.lang-switch.lang-flags {
  flex-wrap: wrap;
  gap: 0.25rem;
  max-width: 100%;
}

.lang-switch.lang-flags button {
  border-radius: 8px;
  margin-left: 0;
  padding: 0.3rem 0.4rem;
  font-size: 1rem;
  line-height: 1;
  min-width: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-switch.lang-flags button .flag-img {
  display: block;
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.lang-switch.lang-flags button:first-child,
.lang-switch.lang-flags button:last-child {
  border-radius: 8px;
}

/* ── Main layout ── */

main {
  position: relative;
  z-index: 1;
  padding: 0 0 4rem;
}

.shop-page { padding-top: 0.5rem; }

.shop-hero {
  text-align: center;
  padding: 2rem 1.25rem 2.25rem;
  margin-bottom: 1.75rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(74, 16, 16, 0.35) 0%, rgba(16, 14, 20, 0.9) 45%, var(--surface) 100%);
  box-shadow: var(--shadow-card);
  overflow: visible;
}

.shop-hero:has(.promo-ticker-active) {
  overflow: visible;
  z-index: 4;
}

.shop-hero .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: var(--gold-dim);
  margin: 0 0 0.85rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.05);
}

.shop-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  margin: 0 0 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  text-shadow: 0 2px 16px rgba(201, 162, 39, 0.2);
}

.shop-hero .hero-lead {
  color: var(--muted);
  max-width: 42rem;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.55;
}

.hero-lead-line {
  display: block;
}

@media (max-width: 520px) {
  .shop-hero .hero-lead {
    font-size: 0.98rem;
    max-width: 100%;
    padding-inline: 0.25rem;
  }
}

.promo-ticker {
  margin: 1.15rem auto 0;
  width: min(100%, 48rem);
  max-width: 90vw;
  overflow: hidden;
  padding: 1px 0;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(201, 162, 39, 0.06) 0%,
    rgba(74, 16, 16, 0.25) 50%,
    rgba(201, 162, 39, 0.06) 100%
  );
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.25);
  position: relative;
}

@media (min-width: 900px) {
  .promo-ticker {
    width: min(100%, 52rem);
    max-width: min(90vw, 52rem);
  }
}

.promo-ticker.promo-ticker-active {
  overflow: hidden;
  z-index: 12;
}

.promo-ticker.promo-ticker-active .promo-ticker-viewport {
  visibility: hidden;
  opacity: 0;
}

.promo-ticker-spotlight {
  position: absolute;
  inset: 1px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 40;
  overflow: hidden;
}

.promo-ticker-spotlight.hidden {
  display: none;
}

.promo-ticker-spotlight-text {
  display: inline-block;
  max-width: 92%;
  white-space: nowrap;
  color: var(--gold-bright);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-align: center;
  transform-origin: center center;
  line-height: 1.2;
}

.promo-ticker.hidden {
  display: none;
}

.promo-ticker-viewport {
  overflow: hidden;
  padding: 1px 0;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.promo-ticker-track {
  display: flex;
  width: max-content;
  padding: calc(0.7rem - 1px) 0;
  will-change: transform;
}

.promo-ticker-track.is-paused {
  animation-play-state: paused;
}

.promo-ticker-text {
  flex-shrink: 0;
  padding: 0 2rem;
  white-space: nowrap;
  color: var(--gold-bright);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-emoji: emoji;
}

.promo-em {
  display: inline-block;
  position: relative;
  color: var(--gold-bright);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.promo-em-code {
  letter-spacing: 0.05em;
}

.promo-emoji-icon {
  display: inline-block;
  font-size: 1.55em;
  line-height: 1;
  vertical-align: -0.12em;
  margin: 0 0.1em;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

.promo-ticker-spotlight-text .promo-emoji-icon {
  font-size: 1.75em;
  vertical-align: -0.14em;
}

@keyframes promo-em-pulse {
  0%, 100% {
    transform: scale(1);
    color: var(--gold-bright);
    text-shadow: none;
  }
  50% {
    transform: scale(1.45);
    color: #ffaa77;
    text-shadow:
      0 0 10px rgba(255, 170, 119, 0.85),
      0 0 20px rgba(255, 170, 119, 0.35);
  }
}

.promo-em-pulse {
  animation: promo-em-pulse 1.1s ease-in-out 4;
  z-index: 50;
  position: relative;
  max-width: 88%;
}

@keyframes promo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .promo-ticker-track {
    animation: none;
    justify-content: center;
    width: 100%;
  }

  .promo-ticker-text:last-child {
    display: none;
  }

  .promo-em-pulse {
    animation: none;
    font-weight: 800;
  }
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
}

.shop-primary {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
  min-width: 0;
}

.section-head {
  margin-bottom: 1.35rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0;
  letter-spacing: 0.03em;
}

.section-head p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.promo-ticker.promo-ticker-maintenance {
  border-color: rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.06);
}

.promo-ticker.promo-ticker-maintenance .promo-ticker-text {
  color: var(--gold-bright);
}

.maintenance-banner {
  max-width: 640px;
  margin: -1rem auto 1.5rem;
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
  color: var(--gold);
  font-size: 0.9rem;
  text-align: center;
}

/* ── Plans ── */

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 0.85rem;
}

@media (min-width: 1040px) {
  .plans-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .plan-card {
    padding: 1.15rem 0.75rem 1.05rem;
  }
}

.plan-card {
  position: relative;
  background: linear-gradient(165deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem 1.15rem;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.18s, box-shadow 0.2s;
  box-shadow: var(--shadow-card), var(--panel-inset);
}

.plan-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), var(--shadow-gold);
}

.plan-card.selected {
  border-color: var(--gold);
  background: linear-gradient(165deg, rgba(201, 162, 39, 0.08) 0%, var(--surface) 45%);
  box-shadow: 0 0 0 1px var(--gold-dim), var(--shadow-gold);
}

.plan-card.selected::after {
  content: "✓";
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #1a1508;
  background: var(--gold);
  border-radius: 50%;
}

.plan-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: rgba(201, 162, 39, 0.18);
  color: var(--gold-bright);
  padding: 0.22rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
}

.plan-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.3rem;
  padding-top: 0.15rem;
}

.plan-card.selected .plan-name { padding-left: 1.5rem; }

.plan-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.85rem;
  min-height: 2.4em;
  line-height: 1.4;
}

.plan-price {
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--gold-bright);
  letter-spacing: -0.02em;
}

.plan-equiv {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ── Features ── */

.features-panel {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(16, 14, 20, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: var(--shadow-card), var(--panel-inset);
}

.features-title { margin: 0; }

.features-lead { margin: 0.4rem 0 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

.feature-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.05rem;
  background: var(--surface-2);
  border: 1px solid rgba(58, 50, 40, 0.6);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.feature-card:hover {
  border-color: var(--border-soft);
  background: var(--surface-3);
  transform: translateY(-2px);
}

.feature-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid var(--border-soft);
  border-radius: 9px;
}

.feature-body {
  flex: 1;
  min-width: 0;
}

.feature-keyword {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin: 0 0 0.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.25;
}

.feature-summary {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.48;
  color: var(--muted);
}

.feature-flags {
  margin: 0.5rem 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
  letter-spacing: 0.08em;
  word-spacing: 0.15em;
}

.feature-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
}

.features-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.1) 0%, rgba(201, 162, 39, 0.03) 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
}

.features-cta-text {
  margin: 0;
  flex: 1;
  min-width: 200px;
  font-size: 0.92rem;
  color: var(--muted);
}

.btn-guide {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #d4ad2e 0%, #9a7515 100%);
  color: #1a1508;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(201, 162, 39, 0.25);
  transition: filter 0.15s, transform 0.1s;
}

.btn-guide:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ── Checkout sidebar (gleicher Look wie Lizenzmodelle) ── */

.checkout-panel {
  position: sticky;
  top: 5.5rem;
}

.checkout-section {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(16, 14, 20, 0.98) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: var(--shadow-card), var(--panel-inset);
}

.checkout-section .section-head {
  margin-bottom: 1.15rem;
}

.checkout-plan-card {
  margin-bottom: 1.35rem;
  cursor: default;
  pointer-events: none;
  transform: none !important;
}

.checkout-plan-card:not(.has-plan) {
  opacity: 0.55;
}

.checkout-plan-card.selected::after {
  content: none;
}

.checkout-plan-card .plan-name {
  padding-left: 0;
}

.checkout-form {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.checkout-form label:first-of-type {
  margin-top: 0;
}

.payment-info {
  margin-top: 1.15rem;
  padding: 1rem 1.05rem;
  background: var(--surface-2);
  border: 1px solid rgba(58, 50, 40, 0.6);
  border-radius: var(--radius-sm);
  text-align: center;
}

.payment-info-title {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-dim);
  font-weight: 600;
}

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.payment-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid var(--border-soft);
  color: var(--text);
}

.payment-info-note {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

.btn-checkout {
  margin-top: 0.15rem;
}

/* ── Discord OAuth ── */

.discord-field {
  margin-bottom: 0.95rem;
}

.discord-field > span {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.discord-oauth small,
.discord-manual small {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}

.discord-login-prompt {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.btn-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.72rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #5865f2 0%, #4752c4 100%);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(88, 101, 242, 0.35);
  transition: filter 0.15s, transform 0.1s;
}

.btn-discord:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.discord-icon {
  flex-shrink: 0;
}

.discord-linked {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgba(88, 101, 242, 0.08);
}

.discord-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(88, 101, 242, 0.45);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-2);
}

.discord-linked-info {
  flex: 1;
  min-width: 0;
}

.discord-linked-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  word-break: break-all;
}

.discord-linked-info small {
  margin-top: 0.15rem;
}

.discord-license-tools {
  margin-top: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-check-license {
  align-self: flex-start;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-check-license:hover {
  background: rgba(201, 162, 39, 0.2);
  border-color: var(--gold-dim);
}

.btn-check-license:disabled {
  opacity: 0.6;
  cursor: wait;
}

.discord-license-panel {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.license-status-dl {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.license-status-row {
  display: grid;
  grid-template-columns: minmax(7rem, 42%) 1fr;
  gap: 0.5rem 0.75rem;
  align-items: baseline;
}

.license-status-row dt {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}

.license-status-row dd {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text);
  word-break: break-word;
}

.license-status-row dd.status-active {
  color: #6dbf6d;
  font-weight: 600;
}

.license-status-row dd.status-expired {
  color: #c9a227;
  font-weight: 600;
}

.license-status-row dd.status-revoked {
  color: #c06060;
  font-weight: 600;
}

.btn-discord-secondary {
  flex-shrink: 0;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.btn-discord-secondary:hover {
  border-color: var(--gold-dim);
  color: var(--text);
}

.discord-manual {
  display: block;
  margin-bottom: 0;
}

label {
  display: block;
  margin-bottom: 0.95rem;
}

label > span {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 0.68rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  color-scheme: dark;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="text"]:-webkit-autofill,
input[type="email"]:-webkit-autofill,
input[type="text"]:-webkit-autofill:hover,
input[type="email"]:-webkit-autofill:hover,
input[type="text"]:-webkit-autofill:focus,
input[type="email"]:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset !important;
  box-shadow: 0 0 0 1000px var(--bg) inset !important;
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text);
  border-color: var(--border);
  transition: background-color 99999s ease-out 0s;
}

input:focus {
  outline: none;
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
}

label small {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}

#email-hint.ok,
#discount-msg.ok {
  color: var(--ok);
  font-size: 11pt;
  line-height: 1.4;
}

.discount-input {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  max-width: 100%;
}

.discount-input input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
}

.discount-input button {
  align-self: flex-start;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}

.discount-input button:hover {
  border-color: var(--gold-dim);
  background: var(--surface-3);
}

.discount-row .discount-input {
  width: min(100%, 20rem);
}

#discount-msg.ok { color: var(--ok); }
#discount-msg.err { color: var(--danger); }

.price-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border);
  margin: 0.35rem 0 1rem;
}

.price-summary span {
  font-size: 0.9rem;
  color: var(--muted);
}

.price-summary strong {
  font-size: 1.5rem;
  color: var(--gold-bright);
  font-weight: 700;
}

.btn-primary,
.btn-secondary {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: none;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s, opacity 0.15s;
}

.btn-primary {
  background: linear-gradient(180deg, #d4ad2e 0%, #a88418 100%);
  color: #1a1508;
  box-shadow: 0 3px 16px rgba(201, 162, 39, 0.3);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  max-width: 280px;
}

.legal {
  font-size: 0.68rem;
  color: var(--muted);
  margin: 0.85rem 0 0;
  line-height: 1.45;
  text-align: center;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.85rem 0 0.35rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}

.consent-row input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin: 0.12rem 0 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.consent-row a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── State panels ── */

.state-panel {
  text-align: center;
  padding: 5rem 1rem;
  max-width: 520px;
  margin: 0 auto;
}

.state-icon {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  opacity: 0.75;
}

.state-icon.ok { color: var(--ok); }

.state-panel h1 { margin-bottom: 0.75rem; }

.state-panel p { color: var(--muted); }

.order-ref {
  font-family: ui-monospace, monospace;
  color: var(--gold);
  margin-top: 1.5rem;
}

.muted { color: var(--muted); }

/* ── Footer ── */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 1.35rem 0;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.site-footer a:hover { color: var(--gold); }

.hidden { display: none !important; }

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-sm);
  z-index: 100;
  max-width: 90vw;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  font-size: 0.92rem;
}

.toast.err { border-color: var(--danger); }

/* ── Guide page (volle Shop-Breite) ── */

.guide-page {
  padding-top: 0.75rem;
  padding-bottom: 4rem;
  width: 100%;
}

.guide-back {
  margin: 0 0 1rem;
}

.guide-back a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.guide-back a:hover { color: var(--gold); }

.guide-hero {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(74, 16, 16, 0.35) 0%, rgba(16, 14, 20, 0.9) 45%, var(--surface) 100%);
  box-shadow: var(--shadow-card);
}

.guide-hero .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  color: var(--gold-dim);
  margin: 0 0 0.65rem;
  padding: 0.28rem 0.85rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
}

.guide-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  margin: 0 0 0.65rem;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 16px rgba(201, 162, 39, 0.2);
}

.guide-hero p {
  margin: 0 auto;
  max-width: 68ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.guide-content {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(12, 10, 14, 0.98) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 3rem 3rem;
  font-size: 0.98rem;
  line-height: 1.62;
  box-shadow: var(--shadow-card), var(--panel-inset);
}

.guide-content h2 {
  font-family: var(--font-display);
  color: var(--gold-bright);
  margin: 0 0 1rem;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-soft);
}

.guide-content h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--gold);
  margin: 1.75rem 0 0.75rem;
  letter-spacing: 0.02em;
}

.guide-content p { margin: 0.7rem 0; }

.guide-content ul {
  margin: 0.55rem 0 1.1rem;
  padding-left: 1.35rem;
}

.guide-content li { margin-bottom: 0.45rem; }

.guide-content a { color: var(--gold-bright); }

.guide-content a:hover { color: var(--gold-bright); }

.guide-content code {
  background: var(--bg);
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  font-size: 0.88em;
  border: 1px solid var(--border);
}

.guide-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gold-dim);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  background: #0a080c;
}

.guide-content a[id="obs_full"],
.guide-content a[id="obs1_full"] {
  display: inline-block;
  transition: transform 0.15s, box-shadow 0.15s;
}

.guide-content a[id="obs_full"]:hover,
.guide-content a[id="obs1_full"]:hover {
  transform: scale(1.02);
}

.guide-content a[id="obs_full"] img,
.guide-content a[id="obs1_full"] img {
  cursor: zoom-in;
}

.guide-lang.hidden { display: none; }

html[dir="rtl"] .guide-back,
html[dir="rtl"] .guide-hero {
  text-align: right;
}

html[dir="rtl"] .guide-content {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .guide-content ul {
  padding-left: 0;
  padding-right: 1.35rem;
}

html[dir="rtl"] .guide-content ol {
  padding-left: 0;
  padding-right: 1.35rem;
}

html[dir="rtl"] .header-nav {
  flex-direction: row-reverse;
}

.guide-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(4, 3, 6, 0.92);
  backdrop-filter: blur(6px);
}

.guide-lightbox img {
  max-width: min(96vw, 1200px);
  max-height: 90vh;
  border: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.guide-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--gold-bright);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.guide-lightbox-close:hover {
  background: var(--blood);
  border-color: var(--gold);
}

/* ── Legal pages (Impressum / Datenschutz) ── */

.legal-page {
  padding-top: 0.75rem;
  padding-bottom: 4rem;
}

.legal-content {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(12, 10, 14, 0.98) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.25rem 2.5rem;
  font-size: 0.94rem;
  line-height: 1.62;
  box-shadow: var(--shadow-card), var(--panel-inset);
}

.legal-content section {
  margin-bottom: 1.75rem;
}

.legal-content section:last-child {
  margin-bottom: 0;
}

.legal-content h2 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.12rem;
  margin: 0 0 0.75rem;
  letter-spacing: 0.03em;
}

.legal-content p {
  margin: 0.55rem 0;
  color: var(--text);
}

.legal-content ul {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.35rem;
}

.legal-content li {
  margin-bottom: 0.4rem;
}

.legal-content a {
  color: var(--gold-bright);
}

.legal-content a:hover {
  color: var(--gold-bright);
}

.legal-content code {
  background: var(--bg);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.88em;
  border: 1px solid var(--border);
}

.legal-content blockquote {
  margin: 0.75rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--gold-dim);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.legal-placeholder {
  color: var(--gold);
  font-size: 0.9rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1rem;
  font-size: 0.88rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--surface-2);
  color: var(--gold-dim);
  font-weight: 600;
}

/* ── Responsive ── */

@media (max-width: 960px) {
  .shop-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .checkout-panel {
    position: static;
    order: -1;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .header-nav-link { display: none; }

  main.wrap:has(.guide-page) {
    width: min(1320px, 94vw);
  }

  .shop-hero { padding: 2rem 0 1.75rem; }

  .plans-grid {
    grid-template-columns: 1fr 1fr;
  }

  .guide-content {
    padding: 1.5rem 1.25rem 2rem;
  }

  .features-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .btn-guide { justify-content: center; }
}

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