/* ==========================================================
   DC MAUMKE — Corporate Design (Anlehnung Volltreffer 2.0)
   Tokens: dunkles Holz + goldenes Bokeh + klare Kacheln
   ========================================================== */
:root {
  --bg-black: #0a0a0c;
  --wood-brown: #2a1a10;
  --wood-brown-light: #4a2f1c;
  --red: #c41e2a;
  --red-bright: #e8303d;
  --silver: #d8dade;
  --silver-dim: #9aa0a8;
  --white: #f5f5f6;
  --white-dim: #b8bcc2;
  --card-bg: rgba(15, 12, 12, 0.74);
  --card-border: rgba(196, 30, 42, 0.32);

  /* Alias für bestehende CSS-Regeln (Gold-Namen bleiben, Werte zeigen jetzt auf Rot/Silber) */
  --gold: var(--red);
  --gold-bright: var(--red-bright);
  --green-accent: var(--silver);

  --font-display: 'Bebas Neue', 'Anton', Impact, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 14px;
  --shadow-soft: 0 8px 30px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-black);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

/* ---------- Hintergrund: Holz + Bokeh ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(13,13,15,0.88) 0%, rgba(13,13,15,0.94) 55%, rgba(13,13,15,0.98) 100%),
    url('hintergrund.jpg');
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.bokeh {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.bokeh span {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,30,42,0.35) 0%, rgba(196,30,42,0) 70%);
  animation: float 14s infinite ease-in-out;
  opacity: 0.55;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  50% { transform: translateY(-40px) translateX(20px) scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .bokeh span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Layout Wrapper ---------- */
.page {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ---------- Header / Logo ---------- */
.header {
  text-align: center;
  margin-bottom: 40px;
}

.logo-img {
  max-width: 260px;
  width: 60%;
  height: auto;
  filter: drop-shadow(0 0 24px rgba(212,167,71,0.25));
}

.logo-sub {
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-top: 12px;
}

/* ---------- Kachel-Grid ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  flex: 1;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 42px 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--white);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  min-height: 180px;
}

.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,167,71,0.10), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.tile:hover, .tile:focus-visible {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 14px 40px rgba(212,167,71,0.18), var(--shadow-soft);
  outline: none;
}

.tile:hover::before, .tile:focus-visible::before { opacity: 1; }

.tile-icon {
  font-size: 2.4rem;
  line-height: 1;
}

.tile-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  text-align: center;
}

.tile-desc {
  font-size: 0.82rem;
  color: var(--white-dim);
  text-align: center;
  max-width: 220px;
}

.tile-featured {
  border-color: rgba(216,218,222,0.35);
}
.tile-featured:hover {
  border-color: var(--silver);
  box-shadow: 0 14px 40px rgba(216,218,222,0.15), var(--shadow-soft);
}

.tile-admin {
  border-color: rgba(255,255,255,0.12);
  opacity: 0.88;
}
.tile-admin:hover {
  opacity: 1;
  border-color: rgba(255,255,255,0.3);
}

/* ---------- Beitragsinfo ---------- */
.beitrag-info {
  margin-top: 36px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--white-dim);
  padding: 14px;
  border-top: 1px solid rgba(212,167,71,0.15);
}
.beitrag-info strong { color: var(--gold-bright); font-weight: 700; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 48px;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(201,196,186,0.5);
  line-height: 1.6;
}

.footer a { color: var(--red-bright); text-decoration: none; }

/* ---------- Subpage Shell (Formular/Zahlung) ---------- */
.subpage-card {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(6px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 24px;
  transition: color 0.2s ease;
}
.back-link:hover { color: var(--gold-bright); }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  color: var(--white);
}

.page-subtitle {
  color: var(--white-dim);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

@media (max-width: 600px) {
  .page { padding: 20px 14px 60px; }
  .tile { padding: 32px 18px; min-height: 150px; }
  .subpage-card { padding: 26px 18px; }
}
