/*
 Theme Name:   Astra Child - swimART
 Template:     astra
 Version:      1.3.3
 Description:  Child Theme für swimART Solingen e.V.
*/

/* ============================================
   swimART Solingen – Modern Design 2026
   Farbkonzept: Pool-Blau (#057ad4) + Dynamik
   ============================================ */

:root {
  --swim-primary: #057ad4;
  --swim-primary-dark: #0460a9;
  --swim-primary-light: #e8f4fd;
  --swim-accent: #00c2ff;
  --swim-dark: #0a1628;
  --swim-gray-900: #1a1a2e;
  --swim-gray-700: #374151;
  --swim-gray-500: #6b7280;
  --swim-gray-300: #d1d5db;
  --swim-gray-100: #f3f4f6;
  --swim-white: #ffffff;
  --swim-success: #10b981;
  --swim-warning: #f59e0b;
  --swim-radius: 10px;
  --swim-radius-lg: 16px;
  --swim-shadow-sm: 0 1px 3px rgba(10,22,40,0.08);
  --swim-shadow-md: 0 4px 16px rgba(10,22,40,0.10);
  --swim-shadow-lg: 0 8px 32px rgba(5,122,212,0.12);
  --swim-shadow-hover: 0 12px 40px rgba(5,122,212,0.18);
  --swim-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Global ---- */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--swim-gray-700);
  line-height: 1.7;
}

::selection {
  background: var(--swim-primary);
  color: var(--swim-white);
}

/* ---- Typografie ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--swim-dark);
  line-height: 1.2;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }

/* Blaue Akzentlinie unter Hauptüberschriften */
.entry-content h1::after,
.entry-content h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--swim-primary), var(--swim-accent));
  margin-top: 10px;
  border-radius: 2px;
}

/* Zentrierte Überschriften: Linie zentriert */
.has-text-align-center h2::after,
.aligncenter + h2::after {
  margin-left: auto;
  margin-right: auto;
}

/* ---- Header & Navigation ---- */
.main-header-bar {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--swim-transition);
}

/* Sticky Header: schlankerer Look */
.ast-sticky-active .main-header-bar {
  box-shadow: var(--swim-shadow-md);
}

/* Navigation Links */
.main-header-menu > .menu-item > a {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.06em;
  position: relative;
  transition: color var(--swim-transition);
}

/* Hover-Unterstrich animiert */
.main-header-menu > .menu-item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--swim-accent);
  transition: all var(--swim-transition);
  transform: translateX(-50%);
}

.main-header-menu > .menu-item > a:hover::after,
.main-header-menu > .menu-item.current-menu-item > a::after {
  width: 80%;
}

/* Dropdown modern */
.main-header-menu .sub-menu,
.ast-desktop-popup-content .main-header-menu .sub-menu {
  border: none !important;
  border-radius: var(--swim-radius) !important;
  box-shadow: var(--swim-shadow-lg) !important;
  padding: 8px 0 !important;
  overflow: hidden;
  animation: dropdownFade 0.25s ease;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.main-header-menu .sub-menu .menu-item a {
  padding: 10px 20px !important;
  font-size: 14px;
  transition: all var(--swim-transition);
  border-left: 3px solid transparent;
}

.main-header-menu .sub-menu .menu-item a:hover {
  background: var(--swim-primary-light) !important;
  border-left-color: var(--swim-primary);
  color: var(--swim-primary) !important;
}

/* ---- Buttons ---- */
.wp-block-button__link,
.ast-custom-button,
a.ast-button,
.elementor-button,
input[type="submit"],
.wpcf7-submit {
  border-radius: var(--swim-radius) !important;
  text-transform: uppercase;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  padding: 12px 28px;
  transition: all var(--swim-transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--swim-shadow-sm);
}

.wp-block-button__link:hover,
.ast-custom-button:hover,
a.ast-button:hover,
input[type="submit"]:hover,
.wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--swim-shadow-hover);
}

.wp-block-button__link:active,
input[type="submit"]:active,
.wpcf7-submit:active {
  transform: translateY(0);
}

/* ---- Cards & Posts ---- */
.ast-separate-container .ast-article-post {
  border-radius: var(--swim-radius-lg);
  overflow: hidden;
  border: 1px solid var(--swim-gray-300);
  box-shadow: var(--swim-shadow-sm);
  transition: all var(--swim-transition);
}

.ast-separate-container .ast-article-post:hover {
  transform: translateY(-6px);
  box-shadow: var(--swim-shadow-hover);
  border-color: var(--swim-primary);
}

/* Post-Bilder */
.ast-article-post .post-thumb img,
.wp-block-post-featured-image img {
  border-radius: var(--swim-radius-lg) var(--swim-radius-lg) 0 0;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ast-article-post:hover .post-thumb img {
  transform: scale(1.04);
}

/* Post-Meta */
.entry-date, .posted-on {
  color: var(--swim-primary);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Kategorie-Badges */
.cat-links a {
  background: var(--swim-primary-light);
  color: var(--swim-primary);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all var(--swim-transition);
}

.cat-links a:hover {
  background: var(--swim-primary);
  color: var(--swim-white);
}

/* ---- WPBakery Rows & Columns ---- */
.entry-content .wpb_column {
  transition: transform var(--swim-transition), box-shadow var(--swim-transition);
}

.entry-content .vc_column_container > .vc_column-inner {
  padding: 0;
}

/* ---- Formulare modern ---- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="number"],
textarea,
select,
.um-field input,
.um-field textarea,
.um-field select {
  border: 2px solid var(--swim-gray-300) !important;
  border-radius: var(--swim-radius) !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
  transition: all var(--swim-transition);
  background: var(--swim-white);
  font-family: 'Roboto Condensed', sans-serif;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus,
.um-field input:focus,
.um-field textarea:focus {
  border-color: var(--swim-primary) !important;
  box-shadow: 0 0 0 3px rgba(5,122,212,0.15) !important;
  outline: none;
}

/* CF7 Labels */
.wpcf7 label {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--swim-gray-700);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
  display: block;
}

/* CF7 Submit */
.wpcf7-submit {
  background: linear-gradient(135deg, var(--swim-primary), var(--swim-primary-dark)) !important;
  color: var(--swim-white) !important;
  border: none !important;
  padding: 14px 36px !important;
  font-size: 15px !important;
  cursor: pointer;
  width: auto;
}

.wpcf7-submit:hover {
  background: linear-gradient(135deg, var(--swim-primary-dark), var(--swim-dark)) !important;
}

/* CF7 Bestätigungsmeldung */
.wpcf7-response-output {
  border-radius: var(--swim-radius) !important;
  padding: 16px 20px !important;
  font-weight: 600;
}

.wpcf7-mail-sent-ok,
.wpcf7 form.sent .wpcf7-response-output {
  background: #ecfdf5 !important;
  border-color: var(--swim-success) !important;
  color: #065f46 !important;
}

/* Acceptance Checkboxen */
.wpcf7-acceptance label {
  text-transform: none;
  font-weight: 400;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

/* ---- Kündigungsseite ---- */
.page-id-3298 .entry-content {
  max-width: 680px;
  margin: 0 auto;
}

.page-id-3298 .wpcf7 {
  background: var(--swim-white);
  border: 1px solid var(--swim-gray-300);
  border-radius: var(--swim-radius-lg);
  padding: 32px;
  box-shadow: var(--swim-shadow-md);
}

/* ---- Aufnahmeantrag (UM) ---- */
.um-form {
  border-radius: var(--swim-radius-lg) !important;
  box-shadow: var(--swim-shadow-md) !important;
  border: 1px solid var(--swim-gray-300) !important;
}

.um .um-form .um-button {
  border-radius: var(--swim-radius) !important;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all var(--swim-transition);
}

/* ---- Partner-Logos ---- */
.widget-area img,
.entry-content img[src*="partner"],
.entry-content img[src*="Logo"],
.entry-content img[src*="logo"],
footer img {
  filter: grayscale(30%);
  opacity: 0.8;
  transition: all var(--swim-transition);
}

.widget-area img:hover,
.entry-content img[src*="partner"]:hover,
.entry-content img[src*="Logo"]:hover,
.entry-content img[src*="logo"]:hover,
footer img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* ---- Footer ---- */
.site-footer {
  border-top: none;
  position: relative;
}

.site-footer::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--swim-primary), var(--swim-accent), var(--swim-primary));
}

.ast-footer-copyright {
  font-size: 13px;
  color: var(--swim-gray-500);
}

.site-footer a {
  transition: color var(--swim-transition);
}

.site-footer a:hover {
  color: var(--swim-accent) !important;
}

/* ---- Scroll-to-Top ---- */
#ast-scroll-top {
  background: var(--swim-primary) !important;
  border-radius: 50% !important;
  box-shadow: var(--swim-shadow-md);
  transition: all var(--swim-transition);
}

#ast-scroll-top:hover {
  background: var(--swim-primary-dark) !important;
  transform: translateY(-3px);
  box-shadow: var(--swim-shadow-lg);
}

/* ---- Links ---- */
.entry-content a:not(.wp-block-button__link):not(.ast-button):not(.um-button) {
  color: var(--swim-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all var(--swim-transition);
}

.entry-content a:not(.wp-block-button__link):not(.ast-button):hover {
  border-bottom-color: var(--swim-primary);
}

/* ---- Tabellen modern ---- */
.entry-content table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--swim-radius);
  overflow: hidden;
  border: 1px solid var(--swim-gray-300);
  width: 100%;
}

.entry-content table th {
  background: var(--swim-primary);
  color: var(--swim-white);
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 12px 16px;
}

.entry-content table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--swim-gray-100);
}

.entry-content table tr:nth-child(even) td {
  background: var(--swim-gray-100);
}

.entry-content table tr:hover td {
  background: var(--swim-primary-light);
}

/* ---- Breadcrumbs ---- */
.ast-breadcrumbs .trail-items a {
  color: var(--swim-gray-500);
  transition: color var(--swim-transition);
}

.ast-breadcrumbs .trail-items a:hover {
  color: var(--swim-primary);
}

/* ---- Cookie Banner ---- */
#cookie-law-info-bar {
  font-family: 'Roboto Condensed', sans-serif;
  border-radius: var(--swim-radius-lg) var(--swim-radius-lg) 0 0 !important;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.15) !important;
}

/* ---- Bilder allgemein ---- */
.entry-content .wp-block-image img,
.entry-content .wpb_single_image img {
  border-radius: var(--swim-radius);
}

/* ---- Blockquotes ---- */
.entry-content blockquote {
  border-left: 4px solid var(--swim-primary);
  background: var(--swim-primary-light);
  padding: 20px 24px;
  border-radius: 0 var(--swim-radius) var(--swim-radius) 0;
  margin: 24px 0;
  font-style: italic;
}

/* ---- Smooth Scroll ---- */
html {
  scroll-behavior: smooth;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.entry-content > *:first-child {
  animation: fadeInUp 0.5s ease;
}

/* ---- Responsive ---- */
@media (max-width: 921px) {
  .main-header-menu > .menu-item > a::after {
    display: none;
  }
  
  .page-id-3298 .wpcf7 {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .entry-content .wpb_row {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  
  .page-id-3298 .entry-content {
    max-width: 100%;
  }
}

/* ---- Print ---- */
@media print {
  .main-header-bar, .site-footer, #ast-scroll-top, #cookie-law-info-bar { display: none; }
  body { color: #000; }
  a { text-decoration: underline; }
}

/* ---- WPBakery Button Fix: Peacock + alle Farben ---- */
.vc_btn3-color-peacoc,
a.vc_btn3-color-peacoc,
.vc_btn3-style-modern.vc_btn3-color-peacoc,
a.vc_btn3-style-modern.vc_btn3-color-peacoc,
.vc_btn3-color-peacoc:visited {
  background: linear-gradient(135deg, var(--swim-primary) 0%, var(--swim-primary-dark) 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--swim-radius-lg) !important;
  text-transform: uppercase !important;
  font-family: 'Roboto Condensed', sans-serif !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  letter-spacing: 0.1em !important;
  padding: 16px 40px !important;
  box-shadow: 0 6px 20px rgba(5, 122, 212, 0.35) !important;
  transition: all var(--swim-transition) !important;
  text-shadow: none !important;
}
.vc_btn3-color-peacoc:hover,
a.vc_btn3-color-peacoc:hover,
.vc_btn3-style-modern.vc_btn3-color-peacoc:hover {
  background: linear-gradient(135deg, var(--swim-accent) 0%, var(--swim-primary) 100%) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(5, 122, 212, 0.45) !important;
}

/* ---- Button Icon Spacing Fix ---- */
.vc_btn3 .vc_btn3-icon {
  margin-right: 10px !important;
  font-size: 18px;
}

/* ---- WPBakery Icon-Left Button Fix v1.2.1 ---- */
.vc_btn3.vc_btn3-icon-left {
  padding-left: 50px !important;
  position: relative !important;
}
.vc_btn3.vc_btn3-icon-left .vc_btn3-icon {
  position: absolute !important;
  left: 18px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 18px !important;
}


/* ================================================================
   STARTSEITE LAYOUT v1.3.1
   Parent: .wpb-content-wrapper
   Row 1: Slider  |  Row 2: Motto/CTA  |  Row 3: Aktuelles+Events  |  Row 4: Banner
   ================================================================ */

/* ---- Hero Section (Row 2: Motto + CTA) ---- */
.page-id-641 .wpb-content-wrapper > .vc_row:nth-child(2) {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 40%, #dff0ff 100%) !important;
  padding: 55px 20px 45px !important;
  margin-bottom: 0 !important;
  position: relative;
  overflow: hidden;
}
.page-id-641 .wpb-content-wrapper > .vc_row:nth-child(2)::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(5,122,212,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-id-641 .wpb-content-wrapper > .vc_row:nth-child(2)::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(0,194,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Hero Headlines */
.page-id-641 .wpb-content-wrapper > .vc_row:nth-child(2) .vc_custom_heading {
  position: relative;
  z-index: 1;
}
.page-id-641 .wpb-content-wrapper > .vc_row:nth-child(2) h5.vc_custom_heading {
  font-size: 16px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  opacity: 0.75;
  margin-bottom: 8px !important;
}
.page-id-641 .wpb-content-wrapper > .vc_row:nth-child(2) h3.vc_custom_heading {
  font-size: clamp(24px, 4vw, 34px) !important;
  margin-bottom: 30px !important;
}

/* ---- Section-Trennung: Alternierende Backgrounds ---- */
.page-id-641 .wpb-content-wrapper > .vc_row:nth-child(odd) {
  background-color: #ffffff;
}
.page-id-641 .wpb-content-wrapper > .vc_row:nth-child(even) {
  background-color: #f8fafb;
}
/* Hero-Gradient überschreibt den even-Background */
.page-id-641 .wpb-content-wrapper > .vc_row:nth-child(2) {
  background-color: transparent !important;
}

/* Alle Sections: einheitliches Padding */
.page-id-641 .wpb-content-wrapper > .vc_row {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}
/* Row 1 (Slider) braucht kein Extra-Padding */
.page-id-641 .wpb-content-wrapper > .vc_row:first-child {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* ---- Aktuelles Section (Row 3) ---- */
.page-id-641 .wpb-content-wrapper > .vc_row:nth-child(3) .tpg-widget-heading,
.page-id-641 .wpb-content-wrapper > .vc_row:nth-child(3) .wpem-heading-text {
  text-align: center;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--swim-primary, #057ad4);
}

/* ---- Interaktive Banner (Row 4) ---- */
.page-id-641 .wpb-content-wrapper > .vc_row:nth-child(4) {
  padding-top: 30px !important;
  padding-bottom: 50px !important;
}

/* ---- Dezente Section-Trennlinie ---- */
.page-id-641 .wpb-content-wrapper > .vc_row + .vc_row {
  border-top: 1px solid rgba(5, 122, 212, 0.08);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .page-id-641 .wpb-content-wrapper > .vc_row:nth-child(2) {
    padding: 35px 15px 30px !important;
  }
  .page-id-641 .wpb-content-wrapper > .vc_row {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }
}

/* ---- Mobile Menü: Blauer Hintergrund ---- */
.ast-header-break-point .main-header-menu,
.ast-header-break-point .main-header-menu .sub-menu,
.ast-mobile-popup-drawer .main-header-menu,
.ast-mobile-popup-drawer .main-header-menu .sub-menu,
.ast-mobile-popup-inner,
.ast-mobile-popup-content {
  background-color: var(--swim-primary-dark) !important;
}
.ast-header-break-point .main-header-menu a,
.ast-header-break-point .main-header-menu .sub-menu a,
.ast-mobile-popup-drawer .main-header-menu a,
.ast-mobile-popup-drawer .main-header-menu .sub-menu a,
.ast-mobile-popup-content a {
  color: #ffffff !important;
}
.ast-header-break-point .ast-menu-toggle,
.ast-mobile-popup-drawer .ast-menu-toggle,
.ast-header-break-point .dropdown-menu-toggle,
.ast-mobile-popup-drawer .dropdown-menu-toggle,
.ast-mobile-popup-content .ast-header-navigation-arrow {
  color: #ffffff !important;
}
.ast-mobile-popup-drawer .menu-item,
.ast-mobile-popup-content .menu-item {
  border-color: rgba(255,255,255,0.12) !important;
}
.ast-mobile-popup-header .menu-toggle-close {
  color: #ffffff !important;
}

/* ---- Trainer-Karten ---- */
.trainer-page .wp-block-group.has-border-color {
  box-shadow: var(--swim-shadow-sm);
  transition: transform var(--swim-transition), box-shadow var(--swim-transition);
}
.trainer-page .wp-block-group.has-border-color:hover {
  transform: translateY(-4px);
  box-shadow: var(--swim-shadow-hover);
}
.trainer-page .wp-block-image img {
  border: 3px solid var(--swim-primary-light) !important;
  transition: border-color var(--swim-transition);
}
.trainer-page .wp-block-group.has-border-color:hover .wp-block-image img {
  border-color: var(--swim-primary) !important;
}
.trainer-page a {
  color: var(--swim-primary) !important;
  text-decoration: none;
}
.trainer-page a:hover {
  text-decoration: underline;
}

/* Download-Button weiss */
.wp-block-file__button.wp-element-button { color: #ffffff !important; }

/* ---- Mobile Submenu: Nicht abschneiden ---- */
.ast-mobile-popup-content .ast-builder-menu-mobile .main-header-menu .sub-menu,
.ast-mobile-popup-content .main-header-menu .sub-menu {
  max-height: none !important;
  overflow: visible !important;
  height: auto !important;
}

/* ---- Trainerteam Seite: Hellblauer Hintergrund ---- */
.page-id-2127 .site-content {
  background-color: #e8f4fd;
}
.page-id-2127 .wp-block-group.has-border-color {
  background-color: #ffffff !important;
}

/* ---- Vorstand Seite: Hellblauer Hintergrund ---- */
.page-id-1555 .site-content {
  background-color: #e8f4fd;
}
.page-id-1555 .wp-block-group.has-border-color {
  background-color: #ffffff !important;
}
