/*
Theme Name: Adkru-jumpnrun
Text Domain: adkru-jumpnrun
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
*/

/* Base Styles — ergaenzt theme.json Global Styles */
html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: #ffffff;
  color: #111827;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.02em;
}

/* WordPress Block-Theme: entferne Default-Paddings/Margins */
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks { padding-top: 0 !important; }
.entry-content > *, .wp-block-post-content > * { margin-top: 0 !important; margin-bottom: 0 !important; }

/* ===== Nav: Sticky + Glass + Scroll ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.site-header.site-header--scrolled {
  background: rgba(255,255,255,0.96);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border-color: transparent;
}

/* Nav: Hover-Underline */
.site-header .wp-block-navigation a { position: relative; transition: color 0.2s; border-radius: 6px; }
.site-header .wp-block-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0.5rem; right: 0.5rem;
  height: 2px;
  background: #1e40af;
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header .wp-block-navigation a:hover { background: rgba(0,0,0,0.04); }
.site-header .wp-block-navigation a:hover::after { transform: scaleX(1); }

/* Footer: Animated Gradient Line */
.site-footer::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #1e40af, #7c3aed, #1e40af);
  background-size: 200% 100%;
  animation: footer-gradient 6s ease infinite;
}
@keyframes footer-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Footer: Link Hover */
.site-footer .wp-block-navigation a { transition: color 0.2s, padding-left 0.2s; }
.site-footer .wp-block-navigation a:hover { color: #fff !important; padding-left: 4px; }
