/*
Theme Name: SVK Child
Template: astra
Version: 1.1
Description: Selbstverteidigungskurse Child Theme
*/

:root {
  --sv-primary: #C9A84C;
  --sv-dark: #0D0D0D;
  --sv-bg: #FAF8F4;
  --sv-accent: #9B1B30;
}

/* ========================================
   ASTRA HEADER — Schwarz + Gold/Weiß
   ======================================== */
.ast-primary-header,
.ast-primary-header .ast-builder-menu,
.ast-primary-header .site-primary-header-wrap,
header.site-header,
.main-header-bar,
.ast-primary-header-bar {
  background-color: var(--sv-dark) !important;
}

.ast-primary-header .site-title a,
.ast-primary-header .site-branding a,
.main-header-bar .site-title a,
.ast-site-identity .site-title a {
  color: var(--sv-primary) !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
}

.ast-primary-header .site-description,
.main-header-bar .site-description {
  color: #888 !important;
}

/* Nav Links */
.ast-primary-header .menu-item > a,
.ast-primary-header .ast-menu-toggle,
.main-header-bar .main-header-menu > .menu-item > a,
.ast-header-break-point .ast-mobile-menu-buttons .menu-toggle,
.ast-builder-menu .menu-item > .menu-link,
.ast-nav-menu .menu-item > .menu-link {
  color: #ccc !important;
}

.ast-primary-header .menu-item > a:hover,
.ast-primary-header .menu-item.current-menu-item > a,
.main-header-bar .main-header-menu > .menu-item > a:hover,
.main-header-bar .main-header-menu > .menu-item.current-menu-item > a,
.ast-builder-menu .menu-item > .menu-link:hover,
.ast-builder-menu .menu-item.current-menu-item > .menu-link {
  color: var(--sv-primary) !important;
}

/* Mobile menu hamburger */
.ast-mobile-menu-trigger-minimal,
.ast-button-wrap .menu-toggle,
.ast-header-break-point .ast-mobile-menu-buttons .ast-button-wrap .menu-toggle {
  color: #fff !important;
}

/* ========================================
   ASTRA FOOTER — Schwarz + Gold/Weiß
   ======================================== */
.ast-footer,
.site-footer,
footer.site-footer,
.ast-small-footer,
.ast-footer-overlay,
.ast-primary-footer,
.ast-above-footer,
.ast-below-footer,
.site-below-footer-wrap,
.site-primary-footer-wrap,
.site-above-footer-wrap,
.ast-builder-footer .ast-builder-footer-grid-columns {
  background-color: var(--sv-dark) !important;
  color: #888 !important;
}

.site-footer a,
.ast-small-footer a,
.ast-footer a,
footer a {
  color: var(--sv-primary) !important;
}

.site-footer .site-info,
.ast-small-footer .ast-small-footer-section,
.ast-footer-copyright {
  color: #888 !important;
}

/* ========================================
   BODY BACKGROUND
   ======================================== */
body {
  background-color: var(--sv-bg) !important;
}

/* ========================================
   FULL WIDTH PAGES — Remove Astra padding
   ======================================== */
body.page .site-content > .ast-container,
body.page #content > .ast-container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.page .entry-content {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.page #primary {
  padding: 0 !important;
  margin: 0 !important;
}

body.page .ast-article-single {
  padding: 0 !important;
}

/* Hide page title (we have our own heroes) */
body.page .entry-header,
body.page .ast-archive-description {
  display: none !important;
}

/* ========================================
   HERO
   ======================================== */
.sv-hero {
  position: relative;
  min-height: 70vh;
  background: var(--sv-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.sv-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.sv-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 40px 20px;
}
.sv-hero h1 {
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.15;
}
.sv-hero h1 em {
  font-style: normal;
  color: var(--sv-primary);
}
.sv-hero p {
  color: #ddd;
  font-size: 18px;
  margin-bottom: 28px;
}

/* ========================================
   BUTTONS
   ======================================== */
.sv-btn {
  display: inline-block;
  background: var(--sv-primary);
  color: var(--sv-dark);
  padding: 14px 36px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: background 0.2s;
}
.sv-btn:hover { background: #b8952f; color: var(--sv-dark); }
.sv-btn-outline {
  display: inline-block;
  border: 2px solid var(--sv-primary);
  color: var(--sv-dark);
  padding: 10px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}
.sv-btn-outline:hover { background: var(--sv-primary); }

/* ========================================
   BOXES
   ======================================== */
.sv-boxes {
  max-width: 1100px;
  margin: -50px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}
.sv-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.sv-box {
  background: #fff;
  border-radius: 8px;
  padding: 36px 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}
.sv-box:hover { transform: translateY(-4px); }
.sv-box h2 { font-size: 22px; color: var(--sv-dark); margin-bottom: 10px; }
.sv-box p { color: #555; font-size: 15px; margin-bottom: 18px; line-height: 1.6; }
.sv-tag {
  display: inline-block;
  background: var(--sv-primary);
  color: var(--sv-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.sv-box-full {
  grid-column: 1 / -1;
  background: var(--sv-dark);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.sv-box-full h2 { color: var(--sv-primary); font-size: 26px; }
.sv-box-full p { color: #ccc; }
.sv-price { font-size: 42px; font-weight: 700; color: var(--sv-primary); }
.sv-price-old { text-decoration: line-through; color: #888; font-size: 18px; margin-right: 8px; }

/* ========================================
   SUBPAGE HERO
   ======================================== */
.svp-hero {
  background: var(--sv-dark);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}
.svp-hero h1 { font-size: 38px; margin-bottom: 16px; color: var(--sv-primary); }
.svp-hero p { font-size: 18px; color: #ccc; max-width: 700px; margin: 0 auto 30px; }

/* ========================================
   SUBPAGE CONTENT
   ======================================== */
.svp-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}
.svp-content h2 { font-size: 26px; color: var(--sv-dark); margin: 40px 0 16px; }
.svp-content p { font-size: 16px; color: #444; line-height: 1.7; margin-bottom: 16px; }
.svp-content ul { margin: 0 0 20px 20px; color: #444; line-height: 1.8; }

/* ========================================
   CTA + FORM SECTIONS
   ======================================== */
.svp-cta {
  background: var(--sv-bg);
  padding: 50px 20px;
  text-align: center;
}
.svp-cta h2 { font-size: 28px; color: var(--sv-dark); margin-bottom: 16px; }
.svp-cta p { font-size: 16px; color: #555; margin-bottom: 24px; }

.sc-form {
  background: var(--sv-bg);
  padding: 50px 20px;
  text-align: center;
  max-width: 700px;
  margin: 40px auto;
}
.sc-form h2 { font-size: 28px; color: var(--sv-dark); margin-bottom: 8px; }
.sc-form p { color: #555; margin-bottom: 24px; }
.sc-price { font-size: 48px; font-weight: 700; color: var(--sv-primary); margin: 20px 0; }
.sc-price-old { text-decoration: line-through; color: #999; font-size: 20px; margin-right: 8px; }

/* ========================================
   TRUST
   ======================================== */
.sv-trust {
  text-align: center;
  padding: 50px 20px;
  max-width: 800px;
  margin: 0 auto;
}
.sv-trust h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #999;
  margin-bottom: 10px;
}
.sv-trust p { font-size: 16px; color: #555; }

/* ========================================
   CUSTOM FOOTER
   ======================================== */
.svk-footer {
  background: var(--sv-dark);
  color: #888;
  text-align: center;
  padding: 40px 20px;
  font-size: 14px;
  line-height: 1.8;
}
.svk-footer-company {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.svk-footer-address { margin-bottom: 12px; }
.svk-footer a { color: var(--sv-primary) !important; text-decoration: none; }
.svk-footer a:hover { text-decoration: underline; }
.svk-footer-links { margin-top: 8px; }
.svk-footer-links a { color: #aaa !important; margin: 0 4px; }
.svk-footer-links a:hover { color: var(--sv-primary) !important; }

/* ========================================
   STANDARD PAGES (Kontakt, Impressum, Datenschutz)
   ======================================== */
body.page .entry-content:not(:has(.sv-hero)):not(:has(.svp-hero)):not(:has(.sc-form)) {
  max-width: 800px !important;
  margin: 0 auto !important;
  padding: 60px 20px !important;
  font-size: 16px;
  line-height: 1.7;
  color: #444;
}

/* Fallback for browsers without :has() */
body.page-id-2 .entry-content,
body.page-id-145 .entry-content,
body.page-id-147 .entry-content {
  max-width: 800px !important;
  margin: 0 auto !important;
  padding: 60px 20px !important;
  font-size: 16px;
  line-height: 1.7;
  color: #444;
}

body.page-id-2 .entry-content h1,
body.page-id-2 .entry-content h2,
body.page-id-145 .entry-content h1,
body.page-id-145 .entry-content h2,
body.page-id-147 .entry-content h1,
body.page-id-147 .entry-content h2 {
  color: var(--sv-dark);
  margin: 32px 0 12px;
}

body.page-id-2 .entry-content a,
body.page-id-145 .entry-content a,
body.page-id-147 .entry-content a {
  color: var(--sv-primary);
}

/* Show page title on these pages */
body.page-id-2 .entry-header,
body.page-id-145 .entry-header,
body.page-id-147 .entry-header {
  display: block !important;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 0;
}

body.page-id-2 .entry-title,
body.page-id-145 .entry-title,
body.page-id-147 .entry-title {
  font-size: 32px;
  color: var(--sv-dark);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .sv-row { grid-template-columns: 1fr; }
  .sv-box-full { grid-template-columns: 1fr; }
  .sv-hero h1 { font-size: 28px; }
}
