/*
Theme Name: KSV Bushido Reichelsheim
Theme URI: https://karate-reichelsheim.de
Author: KSV Reichelsheim
Description: Theme nach Vorlage April 2026 – Top-Navigation, Logo-Rot.
Version: 1.6.0
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: ksv-bushido
License: GNU General Public License v2 or later
*/

:root {
  /* Logo-Rot (KSV-Banner / Bushido-Kreis) – minimal dunkler als Rein-Rot */
  --ksv-red: #f00000;
  --ksv-red-logo: #d9000e;
  --ksv-red-hover: #c40000;

  /* Aus April-2026-Seite */
  --ksv-header: #3c3c3c;
  --ksv-contact-bg: #f58a1e;
  --ksv-silver: #c3c3c3;
  --ksv-bg: #f6f6f6;
  --ksv-orange: #f58a1e;
  --ksv-orange-soft: #e8a83a;
  --ksv-orange-yellow: #e0a032;
  --ksv-ink: #2d3748;
  --ksv-white: #ffffff;
  --ksv-footer: #1a202c;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #f6f6f6;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ksv-ink);
  background: #f6f6f6;
  line-height: 1.65;
  font-size: 17px;
}

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

a {
  color: var(--ksv-red);
  text-decoration: none;
}

a:hover {
  color: var(--ksv-red-hover);
}

/* ===== Top Header (wie April 2026) ===== */
.site-header {
  background: #3c3c3c;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.site-header-brand {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.55rem 1.25rem 0.35rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem 1rem;
  position: relative;
}

.brand-ksv {
  justify-self: start;
}

.brand-ksv img {
  width: min(280px, 42vw);
  height: auto;
  display: block;
}

.brand-bushido {
  justify-self: center;
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.brand-bushido img {
  width: clamp(84px, 13vw, 120px);
  height: auto;
  display: block;
  border-radius: 0;
  background: #ffffff;
}

.brand-tiger {
  justify-self: end;
  width: clamp(56px, 9vw, 92px);
  height: auto;
  display: block;
  filter: brightness(1.08);
}

.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.15rem 1.25rem 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--ksv-white);
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.55rem;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  justify-self: end;
  grid-column: 3;
  grid-row: 1;
}

.menu-toggle-bar {
  display: block;
  width: 1.55rem;
  height: 2.5px;
  background: var(--ksv-white);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

body.nav-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

body.nav-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.nav-primary .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
}

.nav-primary a {
  display: block;
  color: var(--ksv-white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.55rem 0.85rem;
  transition: color 0.2s ease;
}

.nav-primary a:hover,
.nav-primary .current-menu-item > a,
.nav-primary a[aria-current="page"] {
  color: var(--ksv-red);
}

/* ===== Content ===== */
.site-main {
  min-width: 0;
}

.section {
  padding: clamp(2.25rem, 5vw, 4rem) clamp(1.1rem, 4vw, 2.5rem);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-white {
  background: var(--ksv-white);
}

.section-tint {
  background: linear-gradient(180deg, #fff 0%, var(--ksv-bg) 100%);
}

.section-contact {
  background: var(--ksv-contact-bg);
  color: #1a1a1a;
}

.section.section-contact h2 {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.section-contact .lead {
  color: #1a1a1a;
}

.contact-card,
.form-card {
  background: var(--ksv-white);
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--ksv-ink);
}

.contact-card h3,
.form-card h3 {
  margin-top: 0;
  text-transform: uppercase;
  color: var(--ksv-red);
}

.contact-card p,
.form-card p,
.ksv-form label,
.ksv-form .consent {
  color: var(--ksv-ink);
}

.ksv-form label {
  display: block;
  font-weight: 600;
  margin: 0.75rem 0 0.35rem;
}

.ksv-form input,
.ksv-form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #9aa3b2;
  font: inherit;
  color: var(--ksv-ink);
  background: #fff;
}

.ksv-form textarea {
  min-height: 140px;
  resize: vertical;
}

.ksv-form .consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.ksv-form .consent input {
  width: auto;
  margin-top: 0.3rem;
}

.section-dark {
  background: var(--ksv-header);
  color: var(--ksv-white);
}

.section h1,
.section h2,
.page-hero h1 {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ksv-red);
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 700;
}

.section-dark h2 {
  color: var(--ksv-red);
}

.lead {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto 1.5rem;
  color: var(--ksv-ink);
}

.section-dark .lead {
  color: #e7e7e7;
}

.welcome-block {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.welcome-block p {
  margin: 0 0 1rem;
}

.welcome-block p:last-child {
  margin-bottom: 0;
}

.welcome-cta {
  margin-top: 1.25rem !important;
  font-size: 1.05rem;
}

/* Willkommen: Text eingerückt, Striche + Bilder randlos über volle Breite */
.section-welcome {
  padding-left: 0;
  padding-right: 0;
  overflow-x: clip;
}

.section-welcome .section-inner {
  padding-left: clamp(1.1rem, 4vw, 2.5rem);
  padding-right: clamp(1.1rem, 4vw, 2.5rem);
}

.welcome-media {
  --media-gap: 1.15rem;
  margin-top: 1.75rem;
  width: 100%;
  background: transparent;
  padding: 0;
}

/* Orange Trennstriche – gleicher Abstand oben und unten zu den Bildern */
.ksv-divider {
  border: 0;
  border-top: 6px solid var(--ksv-orange-yellow);
  margin: 0;
  width: 100%;
  display: block;
}

/* Bilderleiste – manuell wischen, ohne sichtbaren Scrollbalken */
.media-strip {
  display: flex;
  gap: 0.65rem;
  width: 100%;
  margin: var(--media-gap) 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.media-strip::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.media-strip figure {
  flex: 0 0 clamp(220px, 72vw, 320px);
  margin: 0;
  overflow: hidden;
  background: var(--ksv-header);
  aspect-ratio: 4 / 3;
  scroll-snap-align: start;
}

.media-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .media-strip figure {
    flex-basis: clamp(260px, 28vw, 360px);
  }
}

/* Trainingszeiten – exakt wie Archiv (rot, eckige Kästen, Schatten) */
.section-trainings {
  background: var(--ksv-red);
  color: #ffffff;
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  overflow: visible;
}

.section-trainings .section-inner {
  overflow: visible;
}

.section-trainings h2 {
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 1.35rem;
}

.trainings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 0.5rem;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding: 0.5rem 0.35rem 1.5rem;
  overflow: visible;
}

.section-trainings .train-card {
  background: var(--ksv-red);
  border: 0;
  border-radius: 0;
  padding: 1.35rem 1.15rem 1.45rem;
  /* gleiche Farbe wie Hintergrund – Kästen durch starken Schatten erkennbar */
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.25),
    0 8px 16px rgba(0, 0, 0, 0.32),
    0 18px 36px rgba(0, 0, 0, 0.38),
    0 28px 56px rgba(0, 0, 0, 0.22);
  text-align: center;
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.section-trainings .train-card h3 {
  margin: 0 0 0.95rem;
  text-transform: none;
  letter-spacing: 0;
  color: #ffffff;
  font-size: clamp(1.05rem, 3.5vw, 1.2rem);
  font-weight: 700;
  line-height: 1.35;
}

.section-trainings .train-card p {
  margin: 0 0 0.85rem;
  color: #ffffff;
  font-size: clamp(0.92rem, 3.2vw, 1.02rem);
  line-height: 1.5;
  font-weight: 400;
}

.section-trainings .train-card p:last-child {
  margin-bottom: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.gallery-grid a {
  display: block;
  overflow: hidden;
  background: var(--ksv-header);
  aspect-ratio: 4 / 3;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-grid a:hover img {
  transform: scale(1.05);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.8rem 1.3rem;
  border: 2px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--ksv-red);
  color: var(--ksv-white);
}

.btn-primary:hover {
  background: var(--ksv-red-hover);
  color: var(--ksv-white);
}

.btn-ghost {
  background: transparent;
  border-color: var(--ksv-silver);
  color: var(--ksv-white);
}

.btn-ghost:hover {
  border-color: var(--ksv-red);
  color: var(--ksv-red);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

.page-hero {
  background: var(--ksv-header);
  color: var(--ksv-white);
  padding: 2.75rem clamp(1.1rem, 4vw, 2.5rem) 2rem;
}

.page-hero h1 {
  margin: 0;
  color: var(--ksv-red);
}

.content-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.25rem clamp(1.1rem, 4vw, 2.5rem);
}

.content-wrap h2,
.content-wrap h3 {
  color: var(--ksv-red);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.blog-list {
  display: grid;
  gap: 2rem;
  max-width: 820px;
  margin: 0 auto;
}

.blog-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--ksv-silver);
}

.blog-thumb {
  display: block;
  overflow: hidden;
  background: var(--ksv-header);
  aspect-ratio: 16 / 9;
  width: 100%;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  min-width: 0;
}

.blog-card h2 {
  margin: 0 0 0.4rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.35rem;
}

.blog-card h2 a {
  color: var(--ksv-red);
}

.blog-meta {
  color: #667084;
  font-size: 0.92rem;
  margin: 0 0 0.75rem;
}

.blog-excerpt {
  margin-bottom: 1rem;
}

.blog-featured {
  margin: 0 0 1.5rem;
  overflow: hidden;
  background: var(--ksv-header);
}

.blog-featured img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-content p {
  margin: 0 0 1rem;
}

.contact-card .contact-logo,
.contact-card img.contact-logo {
  max-width: 160px;
  margin: 1.25rem auto 0;
  background: #fff;
  display: block;
}

.site-footer .menu,
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.builder-page .elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 1100px;
}

.site-footer {
  background: var(--ksv-footer);
  color: var(--ksv-silver);
  padding: 2rem clamp(1.1rem, 4vw, 2.5rem);
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.site-footer h6 {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ksv-white);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--ksv-silver);
}

.site-footer a:hover {
  color: var(--ksv-red);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0.35rem 0;
}

.footer-copy {
  max-width: var(--max);
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(195, 195, 195, 0.25);
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    z-index: 2;
  }

  .brand-tiger {
    margin-right: 2.75rem;
  }

  .nav-primary {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #2a2a2a;
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  body.nav-open .nav-primary {
    display: block;
  }

  .site-header {
    position: sticky;
  }

  .site-header-inner {
    position: relative;
    flex-wrap: wrap;
    padding-top: 0;
    padding-bottom: 0;
    min-height: 0;
  }

  .nav-primary .menu {
    flex-direction: column;
    align-items: stretch;
  }

  .trainings-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
