/* ===== Farben ===== */
:root {
  --bg: #0f1115;
  --bg-soft: #1a1d24;

  --text: #e6e6e6;
  --text-muted: #a0a4ab;

  --primary: #4c2fff;
  --secondary: #33d9ff;

  --border: #2a2f3a;
}

/* ===== Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Basics ===== */
body {
  font-family: sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: var(--secondary);
  text-decoration: none;
}

a:hover {
  color: var(--primary);
}

/* ===== Layout ===== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.container.narrow {
  max-width: 700px;
}

/* ===== Header ===== */
.site-header {
  padding: 1rem 0;
}

.logo svg {
  height: 40px;
}

/* ===== Floating Language Switch ===== */
.lang-float {
  position: sticky;
  top: 1rem;
  right: 5%;

  display: inline-flex;
  margin: 1rem 0 2rem 5%;
  align-items: center;
  gap: 0.45rem;

  padding: 0.45rem 0.75rem;
  border-radius: 8px;

  background: rgba(26, 29, 36, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);

  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;

  transition: all 0.25s ease;
  z-index: 10;
  float: right;
}

.lang-float:hover {
  color: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-1px);
}

.lang-float img {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 6rem 0;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("hero.jpg") center/cover no-repeat;
  filter: grayscale(60%) brightness(0.4);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15,17,21,0.6),
    rgba(15,17,21,0.9)
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;

  align-items: stretch;
}

/* ===== PRODUCT CARD ===== */
.product {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  height: 100%;
}

/* Bild oben */
.product-image {
  height: 200px;
  flex-shrink: 0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content Bereich */
.product-content {
  display: flex;
  flex-direction: column;
  flex: 1;

  padding: 1rem;
}

/* Text */
.product-content h2 {
  margin-bottom: 0.5rem;
}

.product-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ===== BUTTON SYSTEM ===== */
.product-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;

  margin-top: auto;
}

/* Base Button */
.btn {
  display: block;
  text-align: center;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;

  font-size: 0.9rem;
  text-decoration: none;

  border: 1px solid var(--border);
  transition: all 0.2s ease;

  color: var(--text);
}

/* Primary (Shop) */
.btn.shop {
  background: var(--primary);
  color: #fff;
  border: none;
}

/* Secondary (Docs) */
.btn.docs {
  background: transparent;
  color: var(--text-muted);
}

/* Hover */
.btn:hover {
  transform: translateY(-2px);
}

.btn.shop:hover {
  filter: brightness(1.1);
}

.btn.docs:hover {
  color: var(--secondary);
  border-color: var(--secondary);
}

/* Single Button Mode */
.product-buttons.single .full {
  grid-column: 1 / -1;
}

/* ===== SUPPORT ===== */
.support {
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 2rem 0;
  text-align: center;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.socials a {
  color: var(--text-muted);
}

.socials svg {
  height: 24px;
  fill: currentColor;
  transition: all 0.25s ease;
}

.socials a:hover {
  color: var(--secondary);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

/* ===== LEGAL PAGES ===== */
.legal-page {
  padding: 4rem 0;
}

.legal-page h1 {
  margin-bottom: 2rem;
}

.legal-page h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-page p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

/* ===== BACK LINK ===== */
.back-link {
  position: sticky;
  top: 1rem;
  display: inline-block;

  margin: 1rem 0 2rem 5%;

  color: var(--text-muted);
  font-size: 0.9rem;

  background: rgba(26, 29, 36, 0.6);
  backdrop-filter: blur(6px);

  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);

  transition: all 0.25s ease;
  z-index: 10;
}

.back-link:hover {
  color: var(--secondary);
  transform: translateX(-3px);
}

/* ===== RESPONSIVE ===== */
@media (min-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    padding: 8rem 0;
  }
}