/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/

/* ==========================================================
   EHC OSTERODE / HARZER JÄGER – SALIENT DESIGN SYSTEM
   Typografie: Bebas Neue (Headlines), Montserrat (Fließtext)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --ehc-navy-950: #03101d;
  --ehc-navy-900: #061a2d;
  --ehc-navy-800: #0a263d;
  --ehc-navy-700: #12364f;
  --ehc-ice-300: #9ebfce;
  --ehc-ice-200: #c8dce5;
  --ehc-ice-100: #e8f1f5;
  --ehc-white: #f7fafc;
  --ehc-red: #e52b2f;
  --ehc-red-dark: #bd1d22;
  --ehc-ink: #091827;
  --ehc-muted: #758594;
  --ehc-line-dark: rgba(200, 220, 229, .20);
  --ehc-line-light: rgba(9, 24, 39, .16);
  --ehc-shadow: 0 22px 55px rgba(0, 8, 18, .24);
  --ehc-cut: 22px;
  --ehc-cut-small: 10px;
  --ehc-max-width: 1360px;
}

html {
  scroll-behavior: smooth;
}

body,
body[data-form-submit="regular"] {
  background: var(--ehc-navy-950);
  color: var(--ehc-white);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

body p,
body li,
body input,
body textarea,
body select {
  font-family: "Montserrat", Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.nectar-highlighted-text,
.nectar-rotating-words-title,
.nectar-split-heading,
.wpb_wrapper > .nectar-responsive-text {
  color: inherit;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif !important;
  font-weight: 400 !important;
  line-height: .98;
  letter-spacing: .025em;
  text-transform: uppercase;
}

body #ajax-content-wrap h1,
body #ajax-content-wrap h2,
body #ajax-content-wrap h3,
body #ajax-content-wrap h4,
body #ajax-content-wrap h5,
body #ajax-content-wrap h6 {
  color: var(--ehc-white) !important;
}

body #ajax-content-wrap .ehc-section--light h1,
body #ajax-content-wrap .ehc-section--light h2,
body #ajax-content-wrap .ehc-section--light h3,
body #ajax-content-wrap .ehc-section--light h4,
body #ajax-content-wrap .ehc-section--light h5,
body #ajax-content-wrap .ehc-section--light h6,
body #ajax-content-wrap .ehc-section--ice h1,
body #ajax-content-wrap .ehc-section--ice h2,
body #ajax-content-wrap .ehc-section--ice h3,
body #ajax-content-wrap .ehc-section--ice h4,
body #ajax-content-wrap .ehc-section--ice h5,
body #ajax-content-wrap .ehc-section--ice h6 {
  color: var(--ehc-ink) !important;
}

h1 { font-size: clamp(4rem, 8vw, 8.75rem); }
h2 { font-size: clamp(3rem, 5.2vw, 5.75rem); }
h3 { font-size: clamp(2.15rem, 3.3vw, 3.75rem); }
h4 { font-size: clamp(1.7rem, 2.2vw, 2.5rem); }
h5 { font-size: clamp(1.35rem, 1.7vw, 1.9rem); }
h6 { font-size: 1.2rem; }

a {
  color: var(--ehc-ice-200);
  text-decoration-color: var(--ehc-red);
  text-underline-offset: .18em;
  transition: color .2s ease, opacity .2s ease;
}

a:hover {
  color: var(--ehc-white);
}

::selection {
  background: var(--ehc-red);
  color: var(--ehc-white);
}

/* Header und Navigation */
#header-outer,
#header-outer[data-transparent-header="true"].transparent {
  background: rgba(3, 16, 29, .96) !important;
  border-bottom: 1px solid rgba(229, 43, 47, .55);
  box-shadow: none !important;
  backdrop-filter: blur(14px);
}

#header-secondary-outer {
  background: var(--ehc-navy-950) !important;
  border-bottom: 1px solid rgba(229, 43, 47, .65) !important;
}

#header-outer #top nav > ul > li > a,
#header-secondary-outer nav > ul > li > a {
  color: var(--ehc-white) !important;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  letter-spacing: .065em !important;
  text-transform: uppercase;
}

#header-outer #top nav > ul > li > a:after {
  background: var(--ehc-red) !important;
}

#header-outer #top nav > ul > li.current-menu-item > a,
#header-outer #top nav > ul > li > a:hover {
  color: var(--ehc-ice-200) !important;
}

#header-outer .sf-menu > li ul {
  background: var(--ehc-navy-900) !important;
  border: 1px solid var(--ehc-line-dark);
  box-shadow: var(--ehc-shadow) !important;
}

#header-outer .sf-menu > li ul a {
  color: var(--ehc-white) !important;
  font-family: "Montserrat", Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Inhaltsbreite und Standardabstände */
.container,
body .container-wrap .container,
#footer-outer .container {
  max-width: var(--ehc-max-width);
}

.main-content > .row,
.wpb_row.ehc-section {
  position: relative;
}

.ehc-section,
.ehc-section--dark,
.ehc-section--light {
  padding-top: clamp(70px, 8vw, 130px);
  padding-bottom: clamp(70px, 8vw, 130px);
}

.ehc-section--dark {
  background-color: var(--ehc-navy-900);
  color: var(--ehc-white);
}

.ehc-section--light {
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(232,241,245,.94)),
    repeating-linear-gradient(45deg, rgba(9,24,39,.018) 0 1px, transparent 1px 6px);
  color: var(--ehc-ink);
}

.ehc-section--ice {
  background: var(--ehc-ice-100);
  color: var(--ehc-ink);
}

/* Sportliche Zwischenüberschrift */
.ehc-kicker,
.wpb_text_column.ehc-kicker p {
  color: var(--ehc-red) !important;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif !important;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ehc-kicker:after,
.ehc-title-line:after {
  display: block;
  width: 58px;
  height: 3px;
  margin-top: 14px;
  background: var(--ehc-red);
  content: "";
}

/* Hero */
.wpb_row.ehc-hero {
  min-height: min(880px, 88vh);
  color: var(--ehc-white);
  background-color: var(--ehc-navy-950);
}

.ehc-hero:after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3,16,29,.94) 0%, rgba(3,16,29,.72) 42%, rgba(3,16,29,.08) 73%),
    linear-gradient(0deg, rgba(3,16,29,.80), transparent 45%);
  content: "";
}

.ehc-hero > .row-bg-wrap,
.ehc-hero > .row_col_wrap_12 {
  position: relative;
}

.ehc-hero > .row_col_wrap_12 {
  z-index: 2;
}

.ehc-hero h1 {
  max-width: 900px;
  color: var(--ehc-white) !important;
  text-shadow: 0 4px 30px rgba(0,0,0,.35);
}

.ehc-hero p {
  max-width: 700px;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
}

/* Nectar Slider – Typografie und Buttons wie im grafischen Entwurf */
body #ajax-content-wrap .nectar-slider-wrap .swiper-slide .content > h2.ns-heading-el {
  position: relative;
  max-width: 820px;
  margin: 0 0 34px !important;
  color: var(--ehc-red) !important;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif !important;
  font-size: 20px !important;
  font-weight: 400 !important;
  line-height: 1.1 !important;
  letter-spacing: .12em !important;
  text-shadow: none !important;
  text-transform: uppercase !important;
}

body #ajax-content-wrap .nectar-slider-wrap .swiper-slide .content > h2.ns-heading-el:after {
  position: absolute;
  bottom: -17px;
  left: 0;
  width: 58px;
  height: 3px;
  background: var(--ehc-red);
  content: "";
}

.nectar-slider-wrap .swiper-slide .content > p {
  max-width: 900px;
  margin: 0 !important;
  color: var(--ehc-white) !important;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif !important;
  font-size: clamp(4.5rem, 6vw, 7.15rem) !important;
  font-weight: 400 !important;
  line-height: .93 !important;
  letter-spacing: .018em !important;
  text-shadow: 0 4px 28px rgba(0, 0, 0, .32);
  text-transform: uppercase !important;
}

.nectar-slider-wrap .swiper-slide .content .buttons {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px !important;
}

.nectar-slider-wrap .swiper-slide .content .buttons .button {
  margin: 0 !important;
}

.nectar-slider-wrap .swiper-slide .content .buttons .button a.primary-color {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 205px;
  min-height: 54px;
  padding: 16px 34px !important;
  border: 1px solid var(--ehc-red) !important;
  border-radius: 0 !important;
  background: var(--ehc-red) !important;
  box-shadow: none !important;
  color: var(--ehc-white) !important;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  font-family: "Bebas Neue", "Arial Narrow", sans-serif !important;
  font-size: 21px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: .045em !important;
  text-align: center;
  text-transform: uppercase;
  transition: background-color .2s ease, border-color .2s ease,
              color .2s ease, transform .2s ease !important;
}

.nectar-slider-wrap .swiper-slide .content .buttons .button:first-child a.primary-color:hover {
  border-color: var(--ehc-red-dark) !important;
  background: var(--ehc-red-dark) !important;
  transform: translateY(-2px);
}

.nectar-slider-wrap .swiper-slide .content .buttons .button:nth-child(2) a.primary-color {
  border-color: var(--ehc-ice-200) !important;
  background: rgba(3, 16, 29, .28) !important;
  color: var(--ehc-white) !important;
}

.nectar-slider-wrap .swiper-slide .content .buttons .button:nth-child(2) a.primary-color:hover {
  border-color: var(--ehc-red) !important;
  background: var(--ehc-red) !important;
  color: var(--ehc-white) !important;
  transform: translateY(-2px);
}

/* Buttons – rote Fläche oder Kontur, immer angeschnitten */
body .nectar-button,
body input[type="submit"],
body button[type="submit"],
body .wp-block-button__link,
.ehc-button {
  min-height: 52px;
  padding: 17px 34px !important;
  border: 1px solid var(--ehc-red) !important;
  border-radius: 0 !important;
  background: var(--ehc-red) !important;
  box-shadow: none !important;
  color: var(--ehc-white) !important;
  clip-path: polygon(var(--ehc-cut-small) 0, 100% 0, calc(100% - var(--ehc-cut-small)) 100%, 0 100%);
  font-family: "Bebas Neue", "Arial Narrow", sans-serif !important;
  font-size: 20px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: .055em !important;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, transform .2s ease !important;
}

body .nectar-button:hover,
body input[type="submit"]:hover,
body button[type="submit"]:hover,
body .wp-block-button__link:hover,
.ehc-button:hover {
  background: var(--ehc-red-dark) !important;
  color: var(--ehc-white) !important;
  transform: translateY(-2px);
}

.nectar-button.ehc-button--outline,
.ehc-button--outline .nectar-button,
.ehc-button--outline {
  border-color: var(--ehc-ice-200) !important;
  background: rgba(3,16,29,.25) !important;
}

.nectar-button.ehc-button--outline:hover,
.ehc-button--outline .nectar-button:hover,
.ehc-button--outline:hover {
  border-color: var(--ehc-red) !important;
  background: var(--ehc-red) !important;
}

/* Karten und WPBakery-/Salient-Elemente */
.ehc-card,
.ehc-player-card,
.ehc-match-card,
.ehc-news-card,
.nectar-fancy-box.ehc-card,
.nectar-post-grid.ehc-news-grid .nectar-post-grid-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ehc-line-dark);
  border-radius: 0 !important;
  background: var(--ehc-navy-900);
  box-shadow: var(--ehc-shadow);
  color: var(--ehc-white);
  clip-path: polygon(0 0, calc(100% - var(--ehc-cut)) 0, 100% var(--ehc-cut), 100% 100%, var(--ehc-cut) 100%, 0 calc(100% - var(--ehc-cut)));
}

.ehc-card:before,
.ehc-player-card:before,
.ehc-match-card:before,
.ehc-news-card:before {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: 76px;
  height: 4px;
  background: var(--ehc-red);
  content: "";
}

.ehc-card {
  padding: clamp(28px, 3vw, 48px);
}

.ehc-card--light {
  border-color: var(--ehc-line-light);
  background: var(--ehc-white);
  color: var(--ehc-ink);
}

.ehc-card h3,
.ehc-card h4 {
  color: inherit !important;
}

/* Spielanzeige */
.ehc-match-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(35px, 5vw, 70px);
  background:
    radial-gradient(circle at 50% 0, rgba(158,191,206,.13), transparent 44%),
    var(--ehc-navy-900);
}

.ehc-match-card .ehc-team {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.ehc-match-card .ehc-team img {
  width: auto;
  max-width: 150px;
  height: 120px;
  object-fit: contain;
}

.ehc-match-card .ehc-vs,
.ehc-score {
  color: var(--ehc-red);
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1;
}

.ehc-match-meta {
  color: var(--ehc-ice-200);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Spieler */
.ehc-player-card {
  background: linear-gradient(180deg, var(--ehc-navy-800), var(--ehc-navy-950));
}

.ehc-player-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  filter: saturate(.88) contrast(1.04);
  transition: transform .35s ease, filter .35s ease;
}

.ehc-player-card:hover img {
  transform: scale(1.025);
  filter: saturate(1) contrast(1.06);
}

.ehc-player-card .ehc-player-info {
  position: relative;
  padding: 22px 24px 25px;
  border-top: 1px solid var(--ehc-line-dark);
}

.ehc-player-card .ehc-number {
  position: absolute;
  right: 18px;
  bottom: 8px;
  color: rgba(158,191,206,.18);
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 76px;
  line-height: 1;
}

.ehc-player-card h3,
.ehc-player-card h4 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ehc-white) !important;
  font-size: 28px;
}

.ehc-player-card p {
  position: relative;
  z-index: 1;
  margin: 4px 0 0;
  color: var(--ehc-ice-200);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

/* Kennzahlen */
.ehc-stat {
  position: relative;
  text-align: center;
}

.ehc-stat + .ehc-stat {
  border-left: 1px solid var(--ehc-line-light);
}

.ehc-stat strong,
.ehc-stat .nectar-milestone .number {
  display: block;
  color: var(--ehc-ink);
  font-family: "Bebas Neue", "Arial Narrow", sans-serif !important;
  font-size: clamp(3rem, 5vw, 5.5rem) !important;
  font-weight: 400 !important;
  line-height: 1;
}

.ehc-stat span,
.ehc-stat .subject {
  color: var(--ehc-ink) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Beiträge */
.ehc-news-grid .nectar-post-grid-item-bg-wrap,
.ehc-news-grid .nectar-post-grid-item-bg {
  border-radius: 0 !important;
}

.ehc-news-grid .nectar-post-grid-item .content {
  padding: 28px !important;
}

.ehc-news-grid .nectar-post-grid-item .post-heading {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif !important;
  font-size: clamp(2rem, 2.6vw, 3rem) !important;
  line-height: 1 !important;
  letter-spacing: .025em;
  text-transform: uppercase;
}

/* Tabellen, Spielplan */
.ehc-table,
.ehc-table table {
  width: 100%;
  border-collapse: collapse;
}

.ehc-table th {
  padding: 15px 18px;
  border-bottom: 2px solid var(--ehc-red);
  color: var(--ehc-ice-200);
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: .07em;
  text-align: left;
  text-transform: uppercase;
}

.ehc-table td {
  padding: 18px;
  border-bottom: 1px solid var(--ehc-line-dark);
  color: var(--ehc-white);
}

.ehc-table tr:hover td {
  background: rgba(158,191,206,.06);
}

/* Formulare */
body input[type="text"],
body input[type="email"],
body input[type="tel"],
body input[type="url"],
body input[type="number"],
body input[type="date"],
body textarea,
body select {
  min-height: 52px;
  padding: 13px 16px !important;
  border: 1px solid rgba(158,191,206,.38) !important;
  border-radius: 0 !important;
  background: rgba(3,16,29,.58) !important;
  box-shadow: none !important;
  color: var(--ehc-white) !important;
}

body textarea {
  min-height: 150px;
}

body input:focus,
body textarea:focus,
body select:focus {
  border-color: var(--ehc-red) !important;
  outline: none;
}

/* CTA */
.ehc-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(45px, 6vw, 90px);
  border-top: 1px solid rgba(229,43,47,.65);
  background:
    linear-gradient(90deg, rgba(3,16,29,.98), rgba(6,26,45,.78)),
    var(--ehc-navy-900);
  color: var(--ehc-white);
}

.ehc-cta:before {
  position: absolute;
  top: 0;
  left: -25px;
  width: 50px;
  height: 100%;
  background: var(--ehc-red);
  transform: skewX(-20deg);
  content: "";
}

/* Footer */
#footer-outer {
  border-top: 1px solid rgba(229,43,47,.55);
  background: var(--ehc-navy-950) !important;
  color: var(--ehc-ice-200);
}

#footer-outer h4,
#footer-outer h5,
#footer-outer .widget h4 {
  color: var(--ehc-white) !important;
}

#footer-outer a {
  color: var(--ehc-ice-200) !important;
}

#footer-outer a:hover {
  color: var(--ehc-red) !important;
}

#copyright {
  background: #020a12 !important;
  color: var(--ehc-muted) !important;
}

/* Kleine Helferklassen für WPBakery */
.ehc-text-white,
.ehc-text-white * { color: var(--ehc-white) !important; }
.ehc-text-dark,
.ehc-text-dark * { color: var(--ehc-ink) !important; }
.ehc-text-red { color: var(--ehc-red) !important; }
.ehc-bg-navy { background-color: var(--ehc-navy-900) !important; }
.ehc-bg-ice { background-color: var(--ehc-ice-100) !important; }
.ehc-no-radius,
.ehc-no-radius * { border-radius: 0 !important; }

@media (max-width: 999px) {
  #header-outer #top nav > ul > li > a {
    font-size: 17px !important;
  }

  body #ajax-content-wrap .nectar-slider-wrap .swiper-slide .content > h2.ns-heading-el {
    font-size: 18px !important;
  }

  .nectar-slider-wrap .swiper-slide .content > p {
    max-width: 760px;
    font-size: clamp(3.7rem, 8vw, 5.5rem) !important;
  }

  .wpb_row.ehc-hero {
    min-height: 720px;
  }

  .ehc-match-card {
    gap: 24px;
    padding: 35px 24px;
  }
}

@media (max-width: 690px) {
  body {
    font-size: 15px;
  }

  h1 { font-size: clamp(3.6rem, 17vw, 5.6rem); }
  h2 { font-size: clamp(2.8rem, 13vw, 4.4rem); }

  body #ajax-content-wrap .nectar-slider-wrap .swiper-slide .content > h2.ns-heading-el {
    margin-bottom: 28px !important;
    font-size: 16px !important;
    letter-spacing: .1em !important;
  }

  body #ajax-content-wrap .nectar-slider-wrap .swiper-slide .content > h2.ns-heading-el:after {
    bottom: -14px;
    width: 48px;
  }

  .nectar-slider-wrap .swiper-slide .content > p {
    max-width: 100%;
    font-size: clamp(3rem, 13vw, 4.35rem) !important;
    line-height: .95 !important;
  }

  .wpb_row.ehc-hero {
    min-height: 650px;
  }

  .nectar-slider-wrap .swiper-slide .content .buttons {
    align-items: stretch;
    gap: 12px;
  }

  .nectar-slider-wrap .swiper-slide .content .buttons .button,
  .nectar-slider-wrap .swiper-slide .content .buttons .button a.primary-color {
    width: 100%;
  }

  .nectar-slider-wrap .swiper-slide .content .buttons .button a.primary-color {
    min-width: 0;
    min-height: 50px;
    padding: 14px 25px !important;
    font-size: 19px !important;
  }

  .ehc-hero:after {
    background:
      linear-gradient(90deg, rgba(3,16,29,.92), rgba(3,16,29,.48)),
      linear-gradient(0deg, rgba(3,16,29,.95), transparent 60%);
  }

  .ehc-match-card {
    grid-template-columns: 1fr;
  }

  .ehc-match-card .ehc-vs {
    font-size: 2.4rem;
  }

  .ehc-stat + .ehc-stat {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--ehc-line-light);
    border-left: 0;
  }

  body .nectar-button,
  body input[type="submit"],
  body button[type="submit"],
  body .wp-block-button__link,
  .ehc-button {
    width: 100%;
    text-align: center;
  }
}

