/*
Theme Name: Sportbox
Theme URI: https://sportbox-trainingcenter.de/
Author: Sportbox Trainingcenter
Author URI: https://sportbox-trainingcenter.de/
Description: Ein modernes, einladendes WordPress-Theme für das Sportbox Trainingcenter in Bad Camberg. Vermittelt die familiäre Atmosphäre des Studios mit persönlicher Betreuung, Kursplan und Kursbuchung.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sportbox
Tags: fitness, sports, gym, business, custom-logo, custom-menu, featured-images, translation-ready, block-styles, wide-blocks
*/

/* =========================================================
   Sportbox Design Tokens
   ========================================================= */
:root {
  --sb-primary: #0e3a8a;        /* Sportbox Blue */
  --sb-primary-glow: #1f56c2;
  --sb-secondary: #f57c1f;      /* Energy Orange */
  --sb-bg: #ffffff;
  --sb-fg: #0f172a;
  --sb-muted: #f1f3f7;
  --sb-muted-fg: #5b6577;
  --sb-border: #e5e7eb;
  --sb-radius: 0.75rem;
  --sb-shadow: 0 10px 30px -5px rgba(14, 58, 138, 0.25);
  --sb-gradient-primary: linear-gradient(135deg, #0e3a8a, #1f56c2);
  --sb-gradient-hero: linear-gradient(135deg, #0b1f4d, #b35614);
  --sb-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================
   Reset & Base
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--sb-fg);
  background: var(--sb-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--sb-primary);
  text-decoration: none;
  transition: var(--sb-transition);
}
a:hover { color: var(--sb-primary-glow); }

h1, h2, h3, h4 {
  font-family: "Poppins", -apple-system, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.4rem; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: var(--sb-radius);
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: var(--sb-transition);
}
.btn-primary {
  background: var(--sb-gradient-primary);
  color: #fff;
  box-shadow: var(--sb-shadow);
}
.btn-primary:hover { transform: translateY(-2px); color: #fff; }
.btn-secondary {
  background: var(--sb-secondary);
  color: #fff;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--sb-primary);
  color: var(--sb-primary);
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sb-border);
}
.topbar {
  background: var(--sb-muted);
  font-size: 0.85rem;
  color: var(--sb-muted-fg);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-branding { display: flex; align-items: center; }
.site-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0;
  background: var(--sb-gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.site-title a { color: inherit; }
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}
.main-nav a { color: var(--sb-fg); font-weight: 500; }
.main-nav a:hover { color: var(--sb-primary); }

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .main-nav ul { display: none; }
  .main-nav ul.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem;
    border-bottom: 1px solid var(--sb-border);
  }
  .menu-toggle { display: block; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  background: var(--sb-gradient-hero);
  color: #fff;
  padding: 6rem 0;
  text-align: center;
  overflow: hidden;
}
.hero h1 { color: #fff; }
.hero p { font-size: 1.15rem; max-width: 720px; margin: 0 auto 2rem; opacity: 0.95; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   Sections
   ========================================================= */
section { padding: 5rem 0; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title p { color: var(--sb-muted-fg); max-width: 640px; margin: 0.5rem auto 0; }

.grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: #fff;
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius);
  padding: 1.75rem;
  transition: var(--sb-transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sb-shadow);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: #0b1f4d;
  color: #d6dcec;
  padding: 4rem 0 1.5rem;
}
.site-footer a { color: #d6dcec; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 2rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.8;
}

/* =========================================================
   WordPress Core
   ========================================================= */
.alignleft  { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide  { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull  { width: 100vw; margin-left: calc(50% - 50vw); }
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px; overflow: hidden;
}
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.875rem; color: var(--sb-muted-fg); text-align: center; }
.sticky { display: block; }
.gallery-caption {}
.bypostauthor {}
