/*
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.9.69
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-love-bg: #c3c3c3;
  --ksv-cta-bar: #c3c3c3;
  --ksv-ink: #2d3748;
  --ksv-white: #ffffff;
  --ksv-footer: #3c3c3c;

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

  /* Einheitliche Abstände für Überschriften / Sektionen */
  --section-pad-y: clamp(2.25rem, 5vw, 3.5rem);
  --heading-gap: 1.25rem;
}

*,
*::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: var(--ksv-header);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.site-header-brand {
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  padding: 0.55rem 0.45rem 0.35rem clamp(0.15rem, 0.8vw, 0.45rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem 1rem;
  position: static;
}

.brand-ksv {
  justify-self: start;
  margin-left: -0.35rem;
}

.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: 50%;
  background: transparent;
  box-shadow: none;
  outline: none;
  border: 0;
}

.brand-right {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  line-height: 0;
}

.brand-tiger {
  width: clamp(56px, 9vw, 92px);
  height: auto;
  display: block;
  filter: brightness(1.08);
  margin: 0 4.75rem 0 0;
}

.menu-toggle {
  display: inline-flex;
  z-index: 3;
  flex-shrink: 0;
  position: absolute;
  right: 2.75rem;
  top: 50%;
  transform: translateY(-50%);
  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;
  margin: 0;
}

.menu-toggle-bar {
  display: block;
  width: 1.55rem;
  height: 2.5px;
  background: var(--ksv-red);
  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 {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 50;
  background: #2a2a2a;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

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

.nav-primary .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  text-align: right;
}

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

.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: var(--section-pad-y) 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;
}

/* Weißer CTA-Bereich ohne Schrägbalken */
.section.section-contact-intro {
  background: #ffffff;
  color: var(--ksv-ink);
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(1rem, 2.5vw, 1.5rem);
  overflow: hidden;
}

.contact-cta-bar {
  background: #ffffff;
  color: var(--ksv-ink);
  text-align: center;
  padding: clamp(1.1rem, 3vw, 1.75rem) clamp(1rem, 3vw, 1.75rem);
  width: 100%;
}

.contact-cta-line {
  margin: 0;
  color: var(--ksv-ink);
  font-size: clamp(1.05rem, 2.6vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
}

.contact-cta-line--strong {
  margin-top: 0.35rem;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
}

.section.section-love {
  position: relative;
  background: var(--ksv-love-bg);
  color: var(--ksv-ink);
  padding: 0;
  overflow: hidden;
  min-height: clamp(14rem, 36vw, 24rem);
  display: flex;
  flex-direction: column;
}

.section-contact + .section-love {
  margin-top: 0;
  border-top: 0;
}

.section-love-inner {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.1rem, 4vw, 2.5rem);
}

.section-love-text {
  margin: 0;
  color: var(--ksv-ink);
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  max-width: 800px;
}

.section-love + .site-footer {
  margin-top: 0;
}

.section.section-contact {
  margin-bottom: 0;
  padding-top: clamp(2rem, 5vw, 3.25rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

/* Alte Intro-Texte im Seiteninhalt ausblenden – CTA sitzt im Template */
.section-contact > .section-inner > h2,
.section-contact > .section-inner > .lead,
.section-contact > .section-inner > p.lead {
  display: none;
}

.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 {
  display: block;
}

.contact-card-text {
  flex: 1 1 auto;
  min-width: 0;
}

.contact-card-text h3 {
  margin-top: 0;
}

.contact-card h3,
.form-card h3 {
  margin: 0 0 var(--heading-gap);
  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 var(--heading-gap);
  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 var(--heading-gap);
  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 {
  --media-gap: 0.85rem;
  padding-left: 0;
  padding-right: 0;
  padding-top: var(--section-pad-y);
  padding-bottom: var(--media-gap);
  overflow: visible;
}

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

.welcome-media {
  --media-gap: 0.85rem;
  margin-top: var(--section-pad-y);
  margin-bottom: 0;
  width: 100%;
  max-width: 100%;
  background: transparent;
  padding: 0;
  overflow: visible;
}

/* 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 – per Finger/Maus durchschieben */
.media-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
  margin: var(--media-gap) 0;
  padding: 0 0.65rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
}

.media-strip.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

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

.media-strip figure {
  flex: 0 0 auto;
  width: min(82vw, 340px);
  min-width: min(82vw, 340px);
  margin: 0;
  overflow: hidden;
  background: var(--ksv-header);
  aspect-ratio: 5 / 4;
  scroll-snap-align: start;
}

.media-strip-zoom {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  appearance: none;
  -webkit-appearance: none;
}

.media-strip-zoom:focus-visible {
  outline: 3px solid var(--ksv-orange);
  outline-offset: -3px;
}

.media-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

@media (min-width: 768px) {
  .media-strip figure {
    width: min(36vw, 400px);
    min-width: min(36vw, 400px);
    aspect-ratio: 5 / 4;
  }
}

/* Einfache Großansicht (Lightbox) */
.ksv-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(20, 20, 20, 0.92);
  box-sizing: border-box;
}

.ksv-lightbox.is-open {
  display: flex;
}

.ksv-lightbox__img {
  max-width: min(96vw, 1200px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.ksv-lightbox__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 1.85rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.ksv-lightbox__close:hover,
.ksv-lightbox__close:focus-visible {
  background: var(--ksv-orange);
  color: #fff;
  outline: none;
}

.ksv-lightbox__hint {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #222;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

body.ksv-lightbox-open {
  overflow: hidden;
}

/* Trainingszeiten – exakt wie Archiv (rot, eckige Kästen, Schatten) */
.section-trainings {
  background: var(--ksv-red);
  color: #ffffff;
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
  overflow: visible;
}

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

.section-trainings h2 {
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  margin: 0 0 var(--heading-gap);
}

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

.section-trainings .train-card {
  background: var(--ksv-red);
  border: 0;
  border-radius: 0;
  padding: 1.35rem 1.15rem 1.45rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  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;
}

.page-template-page-galerie .galerie-intro {
  text-align: center;
  margin: 0 auto 2.75rem;
  max-width: 46rem;
  font-weight: 700;
}

.page-template-page-galerie .galerie-intro h2 {
  margin: 0 0 1.6rem;
  font-weight: 700;
}

.page-template-page-galerie .galerie-intro-sub {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ksv-ink);
  line-height: 1.75;
}

.page-template-page-galerie .galerie-intro-text {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ksv-ink);
  line-height: 1.75;
}

.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;
}

.contact-grid--form-only {
  grid-template-columns: 1fr;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.section-contact .contact-grid--form-only .form-card {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}

.section-contact .contact-grid--form-only .form-card h3 {
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.section-contact > .section-inner > h2,
.section-contact > .section-inner > .lead,
.section-contact .lead {
  text-align: center;
}

/* CF7 im Kontaktbereich zentrieren – auch ohne Theme-Shortcode */
.section-contact .wpcf7,
.section-contact .ksv-cf7 {
  display: block;
  max-width: 520px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.ksv-cf7-missing {
  margin: 0.5rem 0 0;
  color: var(--ksv-ink);
}

.section-contact .wpcf7-form > p,
.ksv-cf7 .wpcf7-form > p {
  margin: 0 0 0.85rem;
}

.section-contact .wpcf7-form label,
.ksv-cf7 .wpcf7-form label {
  display: block;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--ksv-ink);
}

.section-contact .wpcf7-form input[type="text"],
.section-contact .wpcf7-form input[type="email"],
.section-contact .wpcf7-form input[type="tel"],
.section-contact .wpcf7-form input[type="url"],
.section-contact .wpcf7-form textarea,
.ksv-cf7 .wpcf7-form input[type="text"],
.ksv-cf7 .wpcf7-form input[type="email"],
.ksv-cf7 .wpcf7-form input[type="tel"],
.ksv-cf7 .wpcf7-form input[type="url"],
.ksv-cf7 .wpcf7-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #9aa3b2;
  font: inherit;
  color: var(--ksv-ink);
  background: #fff;
  box-sizing: border-box;
}

.section-contact .wpcf7-form textarea,
.ksv-cf7 .wpcf7-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* Datenschutz: Checkbox + Text in einer Zeile, Text umbricht normal */
.section-contact .wpcf7-form > p:has(.wpcf7-acceptance),
.section-contact .ksv-cf7-consent,
.ksv-cf7 .wpcf7-form > p:has(.wpcf7-acceptance),
.ksv-cf7 .ksv-cf7-consent {
  display: block;
  margin: 1.1rem 0 0.35rem;
  line-height: 1.45;
  font-size: 0.95rem;
  color: var(--ksv-ink);
}

.section-contact .ksv-cf7-fields,
.ksv-cf7 .ksv-cf7-fields {
  width: 100%;
}

.section-contact .ksv-cf7-submit-wrap,
.ksv-cf7 .ksv-cf7-submit-wrap {
  text-align: center;
  margin-top: 0.75rem;
}

.section-contact .wpcf7-acceptance,
.section-contact .wpcf7-acceptance .wpcf7-list-item,
.section-contact .wpcf7-form-control-wrap:has(.wpcf7-acceptance),
.ksv-cf7 .wpcf7-acceptance,
.ksv-cf7 .wpcf7-acceptance .wpcf7-list-item,
.ksv-cf7 .wpcf7-form-control-wrap:has(.wpcf7-acceptance) {
  display: inline;
  margin: 0;
  width: auto;
  max-width: none;
  vertical-align: top;
}

.section-contact .wpcf7-acceptance label,
.section-contact .wpcf7-list-item label,
.ksv-cf7 .wpcf7-acceptance label,
.ksv-cf7 .wpcf7-list-item label {
  display: inline;
  font-weight: 400;
  margin: 0;
}

.section-contact .wpcf7-list-item-label,
.ksv-cf7 .wpcf7-list-item-label {
  display: inline;
  font-weight: 400;
  white-space: normal;
}

.section-contact .wpcf7-form input[type="checkbox"],
.ksv-cf7 .wpcf7-form input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.2rem 0.55rem 0 0;
  vertical-align: top;
  flex-shrink: 0;
  accent-color: var(--ksv-red);
}

.section-contact .wpcf7-form a,
.ksv-cf7 .wpcf7-form a {
  color: var(--ksv-red);
  font-weight: 700;
  text-decoration: underline;
}

.section-contact .wpcf7-submit,
.ksv-cf7 .wpcf7-submit {
  display: inline-block;
  margin: 1rem auto 0;
  min-width: 9rem;
}

.section-contact .wpcf7-form p:has(.wpcf7-submit),
.ksv-cf7 .wpcf7-form p:has(.wpcf7-submit) {
  text-align: center;
}

.section-contact .wpcf7-not-valid-tip,
.section-contact .wpcf7-response-output,
.ksv-cf7 .wpcf7-not-valid-tip,
.ksv-cf7 .wpcf7-response-output {
  color: var(--ksv-ink);
}

.section-contact .wpcf7-response-output,
.ksv-cf7 .wpcf7-response-output {
  text-align: center;
  margin-top: 1rem;
}

.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.04em;
  margin: 0 0 var(--heading-gap);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
}

.content-wrap h2 + *,
.content-wrap h3 + * {
  margin-top: 0;
}

.content-wrap h2:not(:first-child),
.content-wrap h3:not(:first-child) {
  margin-top: var(--section-pad-y);
}

.content-wrap .entry-title {
  margin: 0 0 var(--heading-gap);
  color: var(--ksv-red);
  text-transform: none;
  letter-spacing: 0;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.75rem, 3.5vw, 3.25rem);
  row-gap: clamp(3.5rem, 5vw, 5rem);
  max-width: min(1480px, 96vw);
  margin: 0 auto;
  width: 100%;
  padding-top: clamp(2.2rem, 4vw, 3rem);
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  height: 100%;
  padding-bottom: 0;
  border-bottom: 0;
}

.blog-thumb {
  display: block;
  overflow: hidden;
  background: var(--ksv-header);
  aspect-ratio: 4 / 3;
  width: 88%;
  max-width: 520px;
  margin-inline: auto;
  flex: 0 0 auto;
}

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

.blog-thumb:hover img {
  transform: scale(1.05);
}

.blog-card-body {
  min-width: 0;
  width: 88%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  margin-inline: auto;
  text-align: left;
}

.blog-card h2 {
  margin: 0 0 0.55rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.2rem;
  line-height: 1.3;
  color: #1a1a1a;
  min-height: calc(1.3em * 2);
}

.blog-card h2 a {
  color: #1a1a1a;
}

.blog-card h2 a:hover {
  color: #1a1a1a;
  text-decoration: underline;
}

.blog-excerpt {
  margin: 0 0 1rem;
  flex: 1 1 auto;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  line-clamp: 8;
  overflow: hidden;
}

.blog-excerpt p {
  margin: 0;
}

.blog-card .btn,
.blog-card .btn-primary {
  background: transparent;
  border: 0;
  color: #1a1a1a;
  padding: 0;
  font-weight: 600;
  text-decoration: underline;
  margin-top: auto;
  align-self: flex-start;
}

.blog-card .btn-primary:hover {
  background: transparent;
  color: #1a1a1a;
}

.blog-pagination {
  grid-column: 1 / -1;
  margin-top: 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 {
  display: none;
}

.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 0 1.5rem;
}

.footer-inner {
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  padding: 0.55rem 0.45rem 0.35rem clamp(0.15rem, 0.8vw, 0.45rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem 1rem;
  box-sizing: border-box;
}

.footer-side {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.footer-side-left {
  justify-content: space-between;
}

.footer-side-right {
  justify-content: space-between;
}

.footer-center-gap {
  width: clamp(84px, 13vw, 120px);
  flex: 0 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.footer-brand-left {
  justify-content: flex-start;
  margin-left: -0.35rem;
}

.footer-brand-right {
  justify-content: flex-end;
  margin-right: 0;
}

.footer-bushido,
.footer-tiger {
  width: clamp(72px, 12vw, 110px);
  height: auto;
  display: block;
}

.footer-tiger {
  filter: brightness(1.08);
}

.footer-col {
  min-width: 0;
  max-width: 18rem;
}

.footer-col-legal {
  text-align: left;
  transform: translateX(0.55rem);
}

.footer-col-partner {
  text-align: left;
  transform: translateX(0.55rem);
}

.site-footer h6 {
  margin: 0 0 var(--heading-gap);
  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: 1480px;
  margin: 1.5rem auto 0;
  padding: 1rem 0.45rem 0 clamp(0.15rem, 0.8vw, 0.45rem);
  border-top: 1px solid rgba(195, 195, 195, 0.25);
  font-size: 0.85rem;
  color: var(--ksv-silver);
  line-height: 1.45;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.footer-copy span {
  display: inline-block;
}

@media (max-width: 900px) {
  .trainings-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .site-header-brand {
    padding: 0.45rem 0.4rem 0.3rem 0.2rem;
    gap: 0.4rem 0.55rem;
  }

  .brand-ksv {
    margin-left: 0;
  }

  .brand-ksv img {
    width: min(230px, 40vw);
  }

  .brand-bushido img {
    width: clamp(72px, 12vw, 100px);
  }

  .brand-tiger {
    width: clamp(50px, 8.5vw, 78px);
    margin: 0 3rem 0 0;
  }

  .menu-toggle {
    right: 0.65rem;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.45rem;
  }

  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-side {
    flex-direction: column;
    width: 100%;
  }

  .footer-side-left,
  .footer-side-right {
    justify-content: center;
  }

  .footer-center-gap {
    display: none;
  }

  .footer-col-legal,
  .footer-col-partner {
    text-align: center;
    transform: none;
  }

  .footer-brand-left {
    order: 0;
    margin-left: 0;
  }

  .footer-col-legal {
    order: 1;
  }

  .footer-col-partner {
    order: 2;
  }

  .footer-brand-right {
    order: 3;
  }

  .footer-copy {
    display: block;
    text-align: center;
  }

  .footer-copy::before,
  .footer-copy::after {
    display: none;
  }

  .footer-bushido,
  .footer-tiger {
    width: clamp(56px, 12vw, 88px);
  }

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

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

@media (max-width: 560px) {
  .site-header-brand {
    padding: 0.4rem 0.35rem 0.25rem 0.1rem;
    gap: 0.35rem 0.45rem;
  }

  .brand-ksv {
    margin-left: 0;
  }

  .brand-ksv img {
    width: min(132px, 38vw);
  }

  .brand-bushido img {
    width: clamp(52px, 15vw, 68px);
  }

  .brand-tiger {
    width: clamp(36px, 11vw, 48px);
    margin: 0 2.85rem 0 0;
  }

  .menu-toggle {
    right: 0.55rem;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0.4rem;
  }

  .footer-bushido,
  .footer-tiger {
    width: clamp(48px, 16vw, 72px);
  }

  .footer-center-gap {
    width: clamp(52px, 15vw, 68px);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .blog-list {
    grid-template-columns: 1fr;
  }
}
