/* ===== GEMEINSAME STYLES - FLAMMENLOGE ===== */

/* CSS Variablen */
:root {
  --bg: #080808;
  --surface: #121212;
  --surface-hover: #1e1e1e;
  --text: #f0ece4;
  --text-muted: #8a867e;
  --amber: #ff8c00;
  --amber-light: #ffd700;
  --fire: #ff4500;
  --fire-deep: #cc3300;
  --glow-amber: 0 0 30px rgba(255, 140, 0, 0.3);
  --glow-fire: 0 0 60px rgba(255, 69, 0, 0.2);
  --border: rgba(255, 107, 0, 0.1);
}

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

/* Body */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  line-height: 1.7;
}

/* ===== ACCESSIBILITY ===== */

/* Skip Link für Screen Reader */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--amber);
  color: var(--bg);
  padding: 8px 16px;
  text-decoration: none;
  z-index: 9999;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* Focus-Styles für Keyboard-Navigation */
a:focus, button:focus, [tabindex]:focus {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* Focus-visible nur bei Keyboard-Navigation */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* Entferne Focus bei Maus-Klick */
a:focus:not(:focus-visible), 
button:focus:not(:focus-visible), 
[tabindex]:focus:not(:focus-visible) {
  outline: none;
}

/* Verbesserte Kontraste */
:root {
  --text-muted: #a8a49c; /* Heller für besseren Kontrast (4.5:1+) */
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  font-family: 'Cinzel', serif;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--amber);
  text-decoration: none;
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: color 0.3s, background 0.3s;
  font-weight: 400;
}

.nav-links a:hover {
  color: var(--amber);
  background: rgba(255, 107, 0, 0.08);
}

.nav-links a.active {
  color: var(--amber);
}

.nav-burger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 600px) {
  .nav {
    padding: 0 1rem;
  }
  
  .nav-burger {
    display: block;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(8, 8, 8, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1rem;
    gap: 0.2rem;
  }
  
  .nav-links.open {
    display: flex;
  }
  
  .nav-links a {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 140, 0, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 140, 0, 0.4);
}

/* ===== SOCIAL SHARING ===== */
.share-toggle {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 100;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 140, 0, 0.2);
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(10px);
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.share-toggle:hover {
  border-color: var(--amber);
  color: var(--amber-light);
  box-shadow: var(--glow-amber);
}

.share-panel {
  position: fixed;
  bottom: 5rem;
  left: 2rem;
  z-index: 101;
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 140, 0, 0.2);
  border-radius: 12px;
  padding: 1rem;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 180px;
}

.share-panel.open {
  display: flex;
}

.share-panel button {
  background: none;
  border: 1px solid rgba(255, 140, 0, 0.1);
  border-radius: 8px;
  color: var(--text-muted);
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.share-panel button:hover {
  border-color: var(--amber);
  color: var(--amber-light);
  background: rgba(255, 140, 0, 0.05);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  z-index: 100;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 140, 0, 0.2);
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(10px);
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.back-to-top.visible {
  display: flex;
}

.back-to-top:hover {
  border-color: var(--amber);
  color: var(--amber-light);
  box-shadow: var(--glow-amber);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .share-toggle, .back-to-top {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
  
  .share-panel {
    bottom: 4.5rem;
    left: 1rem;
    right: 1rem;
    min-width: auto;
  }
}

/* ===== SECTION-DIVIDER ===== */
.section-line {
  transition: width 0.6s ease, opacity 0.6s ease;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  footer {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 1.5rem 1rem;
  }
}



/* ===== TYPOGRAFIE-GLOW ===== */
h1, h2, .section-title {
  text-shadow: 0 0 30px rgba(255, 140, 0, 0.1);
}

.hero h1, .god-title {
  text-shadow: 0 0 40px rgba(255, 140, 0, 0.2), 0 0 80px rgba(255, 69, 0, 0.1);
}

/* ===== HOVER-EFFEKTE ===== */
.law, .stage, .rite, .god-card, .gallery-item {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}

.law:hover, .gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(255, 107, 0, 0.15), 0 8px 24px rgba(0,0,0,0.3);
  border-color: rgba(255, 140, 0, 0.4);
}

.rite:hover {
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.1);
  border-color: rgba(255, 140, 0, 0.3);
}

.god-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(255, 107, 0, 0.12), 0 8px 24px rgba(0,0,0,0.3);
  border-color: var(--amber);
}

.stage:hover .stage-title {
  color: var(--amber-light);
  transition: color 0.3s;
}

.saying:hover {
  border-left: 2px solid var(--amber);
  padding-left: 22px;
  transition: all 0.4s ease;
}

.saying {
  transition: all 0.4s ease;
}

a.nav-links a:hover, a.god-title, .gallery-title:hover {
  transition: all 0.3s;
}

main { position: relative; z-index: 1; }

/* ===== SCROLL ANIMATIONS ===== */
.scroll-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.scroll-fade.scroll-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ===== ATMO-TIEFE ===== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(ellipse at 50% -10%, rgba(255,107,0,0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: fire-breathe 10s ease-in-out infinite alternate;
}

@keyframes fire-breathe {
  0% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 0.6; transform: scale(0.92); }
}

/* ===== PARTICLE CANVAS ===== */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* ===== MOBILE ALLGEMEIN ===== */
@media (max-width: 768px) {
  body { font-size: 16px; line-height: 1.7; }
  .hero { padding: 72px 1.5rem 2rem !important; }
  .hero h1 { font-size: clamp(1.6rem, 6vw, 2.2rem) !important; letter-spacing: 0.06em !important; }
  .hero .sub { font-size: 0.85rem !important; }
  .section { padding: 2.5rem 1.5rem !important; }
  .section-title { font-size: 1.1rem !important; }
  .section-text { font-size: 0.9rem !important; }
  .content { padding: 1.5rem !important; font-size: 0.9rem !important; }
  .gallery { grid-template-columns: 1fr !important; }
  .gallery-item { padding: 1.2rem !important; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .hero { padding: 60px 1rem 1.5rem !important; }
  .hero h1 { font-size: clamp(1.4rem, 5vw, 1.8rem) !important; }
  .section { padding: 2rem 1rem !important; }
  .gallery-item { padding: 1rem !important; }
  .share-toggle, .back-to-top { width: 42px; height: 42px; font-size: 1rem; bottom: 1rem; }
  .share-toggle { left: 1rem; }
  .back-to-top { right: 1rem; }
}

/* ===== SVG-EMOJI REPLACEMENTS ===== */
.nav-flame {
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 0 6px rgba(255, 140, 0, 0.4));
  margin-right: 6px;
}

.gallery-svg {
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 8px rgba(255, 200, 0, 0.3));
  transition: filter 0.5s ease;
}

.gallery-item:hover .gallery-svg {
  filter: drop-shadow(0 0 16px rgba(255, 200, 0, 0.6));
}

.share-icon {
  vertical-align: middle;
  margin-right: 0.3rem;
  opacity: 0.8;
}

.inline-emoji-svg {
  display: inline-block;
  vertical-align: -3px;
  margin-right: 0.2rem;
  filter: drop-shadow(0 0 3px rgba(255, 200, 0, 0.2));
}

.inline-ornament {
  opacity: 0.6;
  vertical-align: middle;
}

.sound-toggle img,
.share-toggle img {
  filter: drop-shadow(0 0 4px rgba(255, 140, 0, 0.3));
  transition: filter 0.3s ease;
}

.sound-toggle:hover img,
.share-toggle:hover img {
  filter: drop-shadow(0 0 8px rgba(255, 200, 0, 0.6));
}

.sound-toggle.playing img {
  filter: drop-shadow(0 0 10px rgba(255, 200, 0, 0.5));
}

.back-to-top img {
  filter: drop-shadow(0 0 4px rgba(255, 140, 0, 0.3));
  transition: filter 0.3s ease;
}

.back-to-top:hover img {
  filter: drop-shadow(0 0 10px rgba(255, 200, 0, 0.6));
}

@media (max-width: 480px) {
  .nav-flame { width: 20px; height: 20px; }
  .gallery-svg { width: 32px; height: 32px; }
}
