@font-face {
  font-family: 'Inter';
  src: url('vendor/InterVariable.woff2') format('woff2-variations'),
       url('vendor/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #121212;
  --accent: #facc15;
  --fg: #f3f3f4;
  --muted: #8a8a90;
  --muted-dim: #55555a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv02", "cv11";
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Animated background ---------- */
.bg-scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.bg-blob {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  mix-blend-mode: screen;
  will-change: transform;
}
.bg-blob-1 {
  background: radial-gradient(circle, #facc15, transparent 60%);
  top: -180px;
  left: -140px;
  animation: blobA 26s ease-in-out infinite;
}
.bg-blob-2 {
  background: radial-gradient(circle, #3b82f6, transparent 60%);
  top: 30%;
  right: -200px;
  animation: blobB 32s ease-in-out infinite;
}
.bg-blob-3 {
  background: radial-gradient(circle, #a855f7, transparent 60%);
  bottom: -220px;
  left: 20%;
  animation: blobC 29s ease-in-out infinite;
}
.bg-blob-4 {
  background: radial-gradient(circle, #22c55e, transparent 60%);
  top: 55%;
  left: -160px;
  width: 400px;
  height: 400px;
  animation: blobD 34s ease-in-out infinite;
  opacity: 0.25;
}
@keyframes blobA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(180px, 120px) scale(1.15); }
  66%      { transform: translate(60px, 220px) scale(0.95); }
}
@keyframes blobB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-220px, -140px) scale(1.1); }
}
@keyframes blobC {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%      { transform: translate(-120px, -180px) scale(1.2); }
  75%      { transform: translate(180px, -80px) scale(0.9); }
}
@keyframes blobD {
  0%, 100% { transform: translate(0, 0) scale(0.9); }
  50%      { transform: translate(260px, -120px) scale(1.1); }
}

/* Subtiles Raster für den Industrie-Look */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(250, 204, 21, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 204, 21, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
}

@media (prefers-reduced-motion: reduce) {
  .bg-blob { animation: none; }
}

header {
  padding: 0.8rem 1rem 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.lang-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

header h1 {
  margin: 0;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 900;
}

.sub {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0.75rem 0.75rem 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 560px) {
  main {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.9rem;
    padding: 1rem 1rem 2rem;
  }
}

/* ---------- 3D Tile ---------- */
.tile {
  display: block;
  position: relative;
  background: linear-gradient(145deg, rgba(42, 42, 46, 0.85), rgba(18, 18, 22, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 0.75rem;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 6px 14px rgba(0, 0, 0, 0.45),
    0 14px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(ellipse at 30% 0%, rgba(250, 204, 21, 0.06), transparent 55%);
  pointer-events: none;
}

.tile:hover {
  border-color: rgba(250, 204, 21, 0.35);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 8px 18px rgba(0, 0, 0, 0.5),
    0 18px 42px rgba(250, 204, 21, 0.12);
}

.tile:active {
  transform: translateY(1px) scale(0.985);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Image tile */
.tile-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 0.55rem;
  display: block;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.5);
  background: #0a0a0b;
}

/* SVG icon tile */
.tile-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  margin-bottom: 0.7rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(50, 50, 55, 0.45), rgba(10, 10, 12, 0.6));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}
.tile-icon svg { width: 48%; height: 48%; }

.tile-title {
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
  line-height: 1.2;
}

.tile-desc {
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 0.2rem;
  line-height: 1.35;
  position: relative;
  z-index: 1;
}

footer {
  text-align: center;
  color: var(--muted-dim);
  padding: 1rem;
  font-size: 0.78rem;
  position: relative;
  z-index: 1;
}

footer code {
  background: rgba(38, 38, 42, 0.7);
  padding: 0.1rem 0.45rem;
  border-radius: 5px;
  color: var(--accent);
  font-family: ui-monospace, monospace;
}
