@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --bg: #eaf4fb;
  --bg-2: #fdf5e6;
  --card: rgba(255, 255, 255, 0.84);
  --card-strong: rgba(255, 255, 255, 0.94);
  --text: #162433;
  --muted: #5d6b7a;
  --accent: #1b8f6a;
  --accent-2: #e5a93a;
  --shadow: 0 16px 40px rgba(12, 22, 30, 0.14);
  --shadow-soft: 0 8px 24px rgba(12, 22, 30, 0.08);
  --radius: 20px;
  --radius-lg: 26px;
  --card-border: rgba(255, 255, 255, 0.65);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 10% 10%, rgba(255, 255, 255, 0.65), transparent 60%),
    radial-gradient(800px 500px at 90% 0%, rgba(229, 169, 58, 0.12), transparent 70%),
    radial-gradient(900px 600px at 80% 100%, rgba(27, 143, 106, 0.18), transparent 70%),
    linear-gradient(135deg, var(--bg), var(--bg-2));
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("/media/ZeltHintergrundV2.png") center / cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
  z-index: -1;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 120px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-weight: 700;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  padding: 8px;
  box-shadow: var(--shadow-soft);
}

.logo-text {
  display: none;
}

.nav {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  font-weight: 600;
  color: var(--muted);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav a.active,
.nav a:hover {
  background: var(--accent);
  color: #fff;
}

.hero {
  margin-top: 24px;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
}

.hero-home {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: center;
}

.hero-content {
  display: grid;
  gap: 10px;
}

.hero-media {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(27, 143, 106, 0.08);
  min-height: 220px;
  display: grid;
  place-items: center;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.hero-media-placeholder {
  font-weight: 600;
  color: var(--muted);
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.hero-title {
  margin: 0 0 8px;
  font-size: 2rem;
}

.hero-subtitle {
  margin: 0;
  max-width: 640px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid.cards-compact {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid.cards.layout-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.grid.cards.layout-list .app-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
}

.grid.cards.layout-list .app-card-media {
  height: 100%;
}

.grid.cards.layout-list .app-card-media img,
.grid.cards.layout-list .app-card-placeholder {
  height: 100%;
  min-height: 120px;
}

.grid.cards.layout-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-auto-rows: 140px;
  gap: 18px;
}

.grid.cards.layout-mosaic .app-card {
  display: grid;
  grid-template-rows: 1fr auto;
}

.grid.cards.layout-mosaic .app-card-media {
  height: 100%;
}

.grid.cards.layout-mosaic .app-card:nth-child(6n+1) {
  grid-column: span 2;
  grid-row: span 2;
}

.card {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--card-strong);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
}

.card h3 {
  margin: 0 0 6px;
}

.card-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

.hero-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 18px;
}

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.category-card {
  padding: 0;
  overflow: hidden;
  display: grid;
  gap: 0;
}

.category-card-media {
  height: 140px;
  background: rgba(27, 143, 106, 0.08);
}

.category-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
}

.category-card-body {
  padding: 16px 18px 18px;
  display: grid;
  gap: 6px;
}

.category-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.category-icon {
  display: none;
}

.ghost-icon {
  display: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(27, 143, 106, 0.12);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
}

.badge-ghost {
  background: rgba(27, 143, 106, 0.08);
}

.section-title {
  margin: 28px 0 12px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

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

.detail-body {
  line-height: 1.6;
}

.map-card {
  border-radius: var(--radius);
  background: var(--card-strong);
  box-shadow: var(--shadow-soft);
  padding: 12px;
  border: 1px solid var(--card-border);
}

.map-card .map {
  width: 100%;
  height: 360px;
  border-radius: 14px;
  background: #e8eef4;
}

.bottom-nav {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  padding: 10px 14px;
  display: flex;
  gap: 8px;
  box-shadow: var(--shadow);
  z-index: 11;
  max-width: min(92vw, 620px);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  border: 1px solid var(--card-border);
}

.bottom-nav::-webkit-scrollbar {
  display: none;
}

.bottom-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  flex: 0 0 auto;
}

.bottom-nav a.active,
.bottom-nav a:hover {
  background: rgba(27, 143, 106, 0.12);
  color: var(--accent);
}

.app-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app-card-media {
  height: 150px;
  background: rgba(27, 143, 106, 0.08);
}

.app-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
}

.app-card-body {
  padding: 16px 18px 18px;
  display: grid;
  gap: 6px;
}

.app-card-title {
  font-weight: 700;
}

.app-card-subtitle {
  font-size: 0.92rem;
}

.news-card {
  padding: 0;
  overflow: hidden;
  display: grid;
  gap: 0;
}

.news-card-media {
  height: 130px;
  background: rgba(27, 143, 106, 0.08);
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
}

.news-card-body {
  padding: 16px 18px 18px;
  display: grid;
  gap: 6px;
}

.news-card-title {
  font-weight: 700;
  font-size: 1rem;
}

.game-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.game-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 6px;
}

.game-stats {
  text-align: right;
  display: grid;
  gap: 4px;
  font-weight: 600;
}

.game-timer {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.game-area {
  position: relative;
  height: 220px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,0.4), rgba(27,143,106,0.08));
  border: 1px solid var(--card-border);
  overflow: hidden;
}

.game-target {
  position: absolute;
  width: 68px;
  height: 68px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transform: translateY(20px) scale(0.92);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.game-target img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,0.18));
}

.game-target.is-live {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.game-target.is-hit {
  opacity: 0;
  transform: translateY(140px) rotate(12deg) scale(0.85);
}

.game-footer {
  font-size: 0.9rem;
}

.game-start {
  align-self: flex-start;
  border: none;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
}

.game-card.is-finished .game-start {
  background: #0f6e52;
}

@media (min-width: 860px) {
  .bottom-nav { display: none; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .container { padding-bottom: 160px; }
  .hero-home { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-title { font-size: 1.6rem; }
  .grid.cards, .grid.cards-compact { grid-template-columns: 1fr; }
  .game-area { height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
