/* =========================================================
   MTV HATTORF – MASTER STYLE SYSTEM
   Version: Variablen-Edition
   Stand: 25.02.2026
   ========================================================= */


/* =========================================================
   0) DESIGN VARIABLEN (ZENTRALE STEUERUNG)
   ========================================================= */

:root {

  /* Vereinsfarben */
  --mtv-red: #fc0001;
  --mtv-dark: #1c1c1c;
  --mtv-grey: #777;
  --mtv-lightgrey: #f4f4f4;

  /* Radius-System */
  --radius-large: 18px;
  --radius-medium: 10px;

  /* Schatten */
  --shadow-soft: 0 10px 26px rgba(0,0,0,0.10);
  --shadow-footer: 0 -12px 28px rgba(0,0,0,0.5);

  /* Typografie */
  --h1-size-desktop: 42px;
  --h1-size-mobile: 30px;
  --h1-weight: 800;

}


/* =========================================================
   1) ROUNDED LAYOUT – globale runde Ecken
   ========================================================= */

.cd-backgroundPane[style*="background-color"],
.cd-backgroundPane[style*="background:"]
{
  border-radius: var(--radius-large) !important;
  overflow: hidden !important;
}


/* =========================================================
   2) HEADER & FOOTER
   ========================================================= */

/* Header/Footer Paneele wieder eckig */
.cd-header .cd-backgroundPane,
.cd-footer .cd-backgroundPane,
.cd-header .cd-backgroundPane[style*="background-color"],
.cd-footer .cd-backgroundPane[style*="background-color"],
.cd-header .cd-backgroundPane[style*="background:"],
.cd-footer .cd-backgroundPane[style*="background:"]
{
  border-radius: 0 !important;
}

/* Footer nur oben rund */
.cd-footer{
  border-top-left-radius: var(--radius-large) !important;
  border-top-right-radius: var(--radius-large) !important;
  box-shadow: var(--shadow-footer);
  overflow: hidden !important;
}


/* =========================================================
   3) SECTION-SPEZIFISCH – Startbild unten rund
   ========================================================= */

#section_1001221 .cd-backgroundPane{
  border-top-left-radius: 0px !important;
  border-top-right-radius: 0px !important;
  border-bottom-left-radius: var(--radius-large) !important;
  border-bottom-right-radius: var(--radius-large) !important;
}


/* =========================================================
   4) AKZENT – roter Strich unter dunklen Boxen
   ========================================================= */

.cd-backgroundPane[style*="background-color: rgba(51,51,51"]{
  border-bottom: 2px solid var(--mtv-red);
  box-shadow: none !important;
}


/* =========================================================
   5) GLOBAL TITLE SYSTEM
   ========================================================= */

/* ---------- H1 ---------- */

.cd-section h1 {
  position: relative;
  font-size: var(--h1-size-desktop);
  font-weight: var(--h1-weight);
  letter-spacing: -0.5px;
  color: var(--mtv-dark);
  padding-bottom: 14px;
  margin-bottom: 35px;
}

.cd-section h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 70px;
  height: 4px;
  background: var(--mtv-red);
}

/* Responsive */
@media (max-width: 768px) {
  .cd-section h1 {
    font-size: var(--h1-size-mobile);
  }
}


/* ---------- H2 Titel-Block ---------- */

div[data-block-type="24"] h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  margin-bottom: 25px;
}

div[data-block-type="24"] h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60%;
  height: 3px;
  background: var(--mtv-red);
}

/* =========================================================
   6) SCHNELLZUGRIFF KACHELN – MULTI SECTION PRO + RED HOVER GLOW
   Sections:
   - #section_1001312
   - #section_1001344
   - #section_1001366
   - #section_1001467
   - #section_1001368
   - #section_1001507
   - #section_1001532
   ========================================================= */

:is(
  #section_1001312,
  #section_1001344,
  #section_1001366,
  #section_1001467,
  #section_1001368,
  #section_1001507,
  #section_1001532
) .cd-row .cd-col {
  padding: 12px;
}

:is(
  #section_1001312,
  #section_1001344,
  #section_1001366,
  #section_1001467,
  #section_1001368,
  #section_1001507,
  #section_1001532
)
.cd-row .cd-col > .cd-block[data-block-type="0"] {
  position: relative;
  background: var(--mtv-lightgrey);
  border-radius: var(--radius-medium);
  text-align: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  padding: 0;
  cursor: pointer;
}

/* Vollfläche klickbar */
:is(
  #section_1001312,
  #section_1001344,
  #section_1001366,
  #section_1001467,
  #section_1001368,
  #section_1001507,
  #section_1001532
)
.cd-row .cd-col > .cd-block[data-block-type="0"] a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 28px 18px;
  text-decoration: none;
  color: inherit;
}

/* Hover – inkl. leichtem rotem Marken-Glow */
:is(
  #section_1001312,
  #section_1001344,
  #section_1001366,
  #section_1001467,
  #section_1001368,
  #section_1001507,
  #section_1001532
)
.cd-row .cd-col > .cd-block[data-block-type="0"]:hover {
  background: #ffffff;
  transform: translateY(-4px);

  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.08),
    0 0 0 2px rgba(252, 0, 1, 0.08),
    0 8px 28px rgba(252, 0, 1, 0.18);
}

/* Text */
:is(
  #section_1001312,
  #section_1001344,
  #section_1001366,
  #section_1001467,
  #section_1001368,
  #section_1001507,
  #section_1001532
)
.cd-row .cd-col > .cd-block[data-block-type="0"] .cd-block-content p {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--mtv-dark);
  transition: color 0.18s ease;
}

:is(
  #section_1001312,
  #section_1001344,
  #section_1001366,
  #section_1001467,
  #section_1001368,
  #section_1001507,
  #section_1001532
)
.cd-row .cd-col > .cd-block[data-block-type="0"]:hover .cd-block-content p {
  color: var(--mtv-red);
}

/* Untere rote Linie */
:is(
  #section_1001312,
  #section_1001344,
  #section_1001366,
  #section_1001467,
  #section_1001368,
  #section_1001507,
  #section_1001532
)
.cd-row .cd-col > .cd-block[data-block-type="0"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--mtv-red);
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform 0.25s ease;
}

:is(
  #section_1001312,
  #section_1001344,
  #section_1001366,
  #section_1001467,
  #section_1001368,
  #section_1001507,
  #section_1001532
)
.cd-row .cd-col > .cd-block[data-block-type="0"]:hover::after {
  transform: scaleX(1);
}
/* =========================================================
   7) BREADCRUMB
   ========================================================= */

#block_1003678,
#block_1003678_content,
#block_1003678_content p {
  font-size: 13px !important;
  color: var(--mtv-grey) !important;
  margin: 0 0 18px 0 !important;
  line-height: 1.3 !important;
}

#block_1003678_content a {
  color: var(--mtv-grey) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

#block_1003678_content a:hover {
  color: var(--mtv-red) !important;
}

#block_1003678_content strong {
  color: var(--mtv-dark) !important;
  font-weight: 600 !important;
}
#block_1003679,
#block_1003679_content,
#block_1003679_content p {
  font-size: 13px !important;
  color: var(--mtv-grey) !important;
  margin: 0 0 18px 0 !important;
  line-height: 1.3 !important;
}

#block_1003679_content a {
  color: var(--mtv-grey) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

#block_1003679_content a:hover {
  color: var(--mtv-red) !important;
}

#block_1003679_content strong {
  color: var(--mtv-dark) !important;
  font-weight: 600 !important;
}

/* =========================================================
   HERO TITLE OVERRIDE
   Block: #block_1003629
   ========================================================= */

/* H1 Schrift weiß */
#block_1003629 h1 {
  color: #ffffff !important;
}

/* Rote Linie entfernen */
#block_1003629 h1::after {
  display: none !important;
}

/*WA Symbol*/
#block_1004150 .wa-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: 10px;
  border-radius: 50%;
  background: #25D366;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

#block_1004150 .wa-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

#block_1004150 .wa-link svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}
/* Kalender mobil lesbar machen */
@media (max-width: 700px) {

  table {
    width: 100% !important;
  }

  table thead {
    display: none;
  }

  table,
  table tbody,
  table tr,
  table td {
    display: block;
    width: 100% !important;
  }

  table tr {
    margin-bottom: 18px;
    padding: 14px 16px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    overflow: hidden;
  }

  table td {
    padding: 6px 0 !important;
    border: none !important;
    white-space: normal !important;
    word-break: break-word;
  }

  table td:first-child {
    font-weight: 700;
    color: #fc0001;
    font-size: 1.05rem;
  }
}
/* =========================
   Sparten-Hero mobil/tablet
   Sections: 1001653–1001658
========================= */
@media (max-width: 1024px) {

  #section_1001653,
  #section_1001654,
  #section_1001655,
  #section_1001656,
  #section_1001657,
  #section_1001658 {
    min-height: 380px !important;
    overflow: hidden !important;
    border-radius: 0 0 18px 18px;
  }

  #section_1001653 .cd-backgroundPane,
  #section_1001654 .cd-backgroundPane,
  #section_1001655 .cd-backgroundPane,
  #section_1001656 .cd-backgroundPane,
  #section_1001657 .cd-backgroundPane,
  #section_1001658 .cd-backgroundPane {
    background-size: cover !important;
    background-position: center 40% !important;
  }

  #section_1001653 h5,
  #section_1001654 h5,
  #section_1001655 h5,
  #section_1001656 h5,
  #section_1001657 h5,
  #section_1001658 h5,
  #section_1001653 .cd-block-content h5,
  #section_1001654 .cd-block-content h5,
  #section_1001655 .cd-block-content h5,
  #section_1001656 .cd-block-content h5,
  #section_1001657 .cd-block-content h5,
  #section_1001658 .cd-block-content h5 {
    font-size: clamp(2.0rem, 7vw, 4.5rem) !important;
    line-height: 1.05 !important;
    max-width: 95% !important;
    margin: 0 auto !important;
    padding-top: 35px !important;
    text-align: center !important;

    hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    white-space: normal !important;
  }
}
/* =========================
   Unterseiten-Hero mobil/tablet
========================= */
@media (max-width: 1024px) {

  .cd-section h5 {
    font-size: clamp(1.8rem, 6vw, 3.8rem) !important;
    line-height: 1.15 !important;
    max-width: 92% !important;
    margin: 0 auto !important;
    text-align: center !important;

    hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    white-space: normal !important;
  }
}