/* =============================================
   CSS CUSTOM PROPERTIES / DESIGN TOKENS
   ============================================= */
:root {
  --bg:          #000000;
  --bg2:         #0a0500;
  --fg:          #f0ece5;
  --muted:       rgba(240, 236, 229, 0.6);
  --fire:        #e8520a;
  --fire-bright: #ff8c00;
  --fire-red:    #c41e00;
  --card-bg:     rgba(15, 8, 0, 0.80);
  --card-border: rgba(232, 82, 10, 0.30);

  --font-body:    'Inter', sans-serif;
  --font-display: 'Bebas Neue', sans-serif;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.04em;
}

img { max-width: 100%; display: block; }

a { color: var(--fire-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

/* =============================================
   UTILITY
   ============================================= */
.section-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 3.5rem 1.5rem; }

.fire-divider {
  background: linear-gradient(90deg, transparent, var(--fire), var(--fire-bright), var(--fire), transparent);
  width: 120px;
  height: 2px;
  margin: 0 auto 1.5rem;
}

.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.text-fire {
  color: var(--fire-bright);
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fireGlow {
  0%, 100% { box-shadow: 0 0 18px rgba(232, 82, 10, 0.4); }
  50%       { box-shadow: 0 0 40px rgba(255, 140, 0, 0.7); }
}

.animate-fade-up { animation: fadeUp 0.8s ease both; }

/* =============================================
   NAV
   ============================================= */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 82, 10, 0.3);
}

.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo-img { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--fg);
  line-height: 1.1;
}
.nav-logo-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--fire-bright);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
.nav-links a:hover { opacity: 1; color: var(--fire-bright); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: 0.3s;
}

/* =============================================
   HERO
   ============================================= */
#hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem 2rem;
}

.hero-logo-wrap {
  margin-bottom: 1.5rem;
  animation: fireGlow 3s ease-in-out infinite, fadeUp 0.8s ease both;
}

.hero-logo {
  width: min(300px, 72vw);
  height: min(300px, 72vw);
  border-radius: 50%;
  object-fit: cover;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.3rem);
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 0.5rem;
}

/* =============================================
   CHAT WIDGET
   ============================================= */
#chat {
  padding: 2rem 1.5rem 3rem;
}

.chat-wrap {
  max-width: 820px;
  margin: 0 auto;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--card-border);
}

/* =============================================
   ANLEITUNG
   ============================================= */
#anleitung {
  background: var(--bg2);
  border-top: 1px solid rgba(232, 82, 10, 0.2);
  border-bottom: 1px solid rgba(232, 82, 10, 0.2);
}

#anleitung h2 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--fg);
  text-align: center;
  margin-bottom: 0.5rem;
}

#anleitung .intro {
  color: var(--muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-size: 0.95rem;
}

.anleitung-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.anleitung-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  padding: 1.5rem 1.75rem;
}

.anleitung-card h3 {
  font-size: 1.15rem;
  color: var(--fire-bright);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.anleitung-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.anleitung-card a { color: var(--fire-bright); }

/* =============================================
   LEGAL PAGES
   ============================================= */
.legal-page { padding: 4rem 1.5rem; }
.legal-page .section-inner { max-width: 800px; }

.legal-page h1 {
  font-size: 2.2rem;
  color: var(--fire-bright);
  margin-bottom: 0.5rem;
}

.legal-page .fire-divider { margin: 1rem 0 2rem; }

.legal-page h2 {
  font-size: 1.3rem;
  color: var(--fg);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.legal-page p, .legal-page li {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.legal-page ul { padding-left: 1.5rem; }

/* =============================================
   KONTAKT PAGE
   ============================================= */
#kontakt {
  text-align: center;
  padding: 5rem 1.5rem;
}

#kontakt h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 0.5rem;
}

.kontakt-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.kontakt-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.9rem;
  min-width: 260px;
  text-align: left;
}

.kontakt-item span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fire-bright);
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
}

.kontakt-item a { color: var(--fg); }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: #000;
  border-top: 1px solid rgba(232, 82, 10, 0.25);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: var(--fg);
  margin-bottom: 0.25rem;
}

.footer-subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fire-bright);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--fg); text-decoration: none; }

.footer-copy {
  font-size: 0.75rem;
  color: rgba(240, 236, 229, 0.35);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 680px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.97);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(232, 82, 10, 0.25);
    gap: 1rem;
  }

  .nav-toggle { display: flex; }

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

  .hero-logo { width: min(240px, 80vw); height: min(240px, 80vw); }
}
