/*
Theme Name: STC-Verena Konz
Theme URI: https://wpastra.com/
Author: Ursula Wollmetshäußer
Author URI: https://uwdesigns.de
Description: Child Theme für Astra mit lokaler Schriftart-Einbindung
Template: astra
Version: 1.0.0
*/

/* ----------------------------------------------------
  1. Schriftarten laden
----------------------------------------------------- */
@font-face {
  font-family: 'Sisterhood';
  src: url('/wp-content/themes/astra-child/fonts/Sisterhood-Regular.woff2') format('woff2'),
       url('/wp-content/themes/astra-child/fonts/Sisterhood-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------------------------------
  2. Basis-Schriftart & globale Elemente
----------------------------------------------------- */
body,
.site-header,
.main-header-menu,
.ast-site-identity,
.ast-footer-copyright,
.widget-title,
.widget-area,
.ast-footer-widget {
  font-family: 'Verdana', sans-serif !important;
}

body {
  overflow-x: hidden;
}

/* ----------------------------------------------------
  3. Kontaktleiste (oben)
----------------------------------------------------- */
.kontakt-block {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.kontakt-label {
  font-family: 'Sisterhood';
  font-size: 18px;
  color: #216477;
  margin-right: 12px;
}

.kontakt-infos {
  font-family: 'Verdana', sans-serif;
  font-size: 15px;
  color: #165661;
  display: flex;
  align-items: center;
  gap: 12px;
}

.kontakt-infos i {
  margin-right: 5px;
  color: #165661;
}

.kontakt-infos a {
  color: #165661;
  text-decoration: none;
}

.kontakt-infos a:hover {
  color: #068080;
}

/* ----------------------------------------------------
  3.2 Kontaktleiste (oben) mobile
----------------------------------------------------- */
.mobile-kontakt-link a {
  font-family: 'Sisterhood', cursive;
  font-size: 18px;
  color: #216477;
  text-decoration: none;
  display: inline-block;
  padding: 8px 12px;
}

.mobile-kontakt-link a:hover {
  color: #165661;
  text-decoration: underline;
}

/* ----------------------------------------------------
  4. Footer-Styling
----------------------------------------------------- */
.footer-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-family: 'Verdana', sans-serif;
  font-size: 16px;
  padding: 10px 20px;
}

.footer-links a {
  color: #216477;
  text-decoration: none;
}

.footer-links a:hover {
  color: #165661;
}
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Verdana', sans-serif;
  font-size: 16px;
  padding: 10px 20px;
  gap: 4px; /* reduziert vertikalen Abstand */
  text-align: center;
}

.footer-kontakt {
  color: #216477;
  font-family: 'Verdana', sans-serif;
  font-size: 17px;
}

.footer-kontakt i {
  margin-right: 6px;
  color: #216477;
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-kontakt a {
  display: inline-block;
  color: #216477;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-kontakt a:hover {
  color: #165661;
  transform: scale(1.05);
}
/* Haupt-Footer-Container kompakt machen */
.site-footer,
.ast-footer-copyright,
.footer-links,
.ast-builder-layout-element {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  min-height: 0 !important;
  line-height: 1.2 !important;
}

/* Gitterstruktur enger machen */
.ast-builder-grid-row-container-inner,
.ast-builder-footer-grid-columns {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  min-height: 0 !important;
}

/* Footer-Text und Logo */
.footer-links {
  display: flex;
  flex-direction: row; /* wichtig: horizontal statt column */
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 10px;
  flex-wrap: wrap; /* damit es bei wenig Platz umbricht */
  line-height: 1.4;
}

.footer-links img {
  max-height: 34px;
  transition: transform 0.3s ease;
}
.footer-links img:hover {
  transform: scale(1.1);
}
.footer-links br {
  display: none;
}
/* ----------------------------------------------------
  5. Typografie: Überschriften
----------------------------------------------------- */
h2.h2-sisterhood {
  font-family: 'Sisterhood';
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.3;
  color: #216477;
  font-weight: normal;
  margin-bottom: 15px;
}

h2.h2-tahoma {
  font-family: 'Verdana', sans-serif;
  font-size: 28px;
  font-weight: bold;
  line-height: 1.4;
  color: #165661;
  margin-bottom: 15px;
}

/* Container (z. B. dein Hero-Block) */
.hero-container {
  position: relative;
}

/* ----------------------------------------------------
  6. Scroll-Pfeil zentriert am unteren Rand
----------------------------------------------------- */
.scroll-indicator {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 1.5s ease-out forwards;
}

.scroll-indicator img {
  width: 40px;
  height: auto;
  display: block;
  margin: 0 auto;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ----------------------------------------------------
  Scroll-indicator: Nur auf Startseite & nur Desktop
----------------------------------------------------- */
body.home .scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 50px;
  transform: translateX(-50%);
  z-index: 99;
  pointer-events: none;
}

body.home .scroll-indicator img {
  width: 60px;
  height: auto;
}

@media (max-width: 1024px) {
  body.home .scroll-indicator {
    display: none !important;
  }
}
/* ----------------------------------------------------
   Leistungen: 4-Spalten-Block → Slider auf Tablet & Mobile
----------------------------------------------------- */

/* Standard: Desktop – normal 4 Spalten */
.slider-mobile {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Tablet & Mobile: Horizontal-Scroll */
@media (max-width: 1024px) {
  .slider-mobile.wp-block-columns {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    flex-direction: row !important;
  }

  .slider-mobile > .wp-block-column {
    flex: 0 0 45%;
    max-width: 45%;
    scroll-snap-align: start;
    margin-right: 16px;
    min-width: 240px;
  }
}

@media (max-width: 768px) {
  .slider-mobile > .wp-block-column {
    flex: 0 0 80%;
    max-width: 80%;
  }
}

/* ----------------------------------------------------
   Leistungen Link mit SVG-Pfeilen
----------------------------------------------------- */
.kontakt-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #216477;
  transition: color 0.3s ease;
}

.kontakt-link strong {
  font-family: 'Verdana', sans-serif;
  font-size: 20px;
  transition: color 0.3s ease;
}

.svg-wrapper {
  display: flex;
  align-items: center;
}

.svg-arrow {
  width: 35px;
  height: auto;
  fill: #216477;
  transition: transform 0.3s ease, fill 0.3s ease;
}

.kontakt-link:hover .svg-arrow {
  transform: translateX(5px);
  fill: #c4d5d9;
}

.kontakt-link:hover strong {
  color: #165661;
}
/* ----------------------------------------------------
   Leistungen: Scroll-Hinweis (Chevron)
----------------------------------------------------- */
.scroll-hint {
  display: none;
}

@media (max-width: 1024px) {
  .scroll-hint {
    position: relative;
    display: block;
    width: 100%;
    text-align: right;
    padding-right: 10px;
    margin-top: -10px;
    margin-bottom: 10px;
  }

  .scroll-hint i {
    font-size: 20px;
    color: #216477;
    opacity: 0.4;
    animation: hint-bounce 1.5s ease-in-out infinite;
  }

  @keyframes hint-bounce {
    0%, 100% {
      transform: translateX(0);
    }
    50% {
      transform: translateX(6px);
    }
  }
}
/* ----------------------------------------------------
   Google reCaptcha fix im Footer
----------------------------------------------------- */
.grecaptcha-badge {
  display: none !important;
}
/* ----------------------------------------------------
   Referenzen Logos
----------------------------------------------------- */

/* Basis */
.referenz-logo img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}
.referenz-logo:hover img { transform: scale(1.1); }

/* Mobile & Tablet */
@media (max-width: 1024px) {
  .referenz-slider {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;  /* niemals zentrieren */
    align-items: stretch;

    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;               /* muss zum padding links passen */
    scroll-snap-stop: always;

    gap: 20px;
    padding: 10px 16px;                      /* innenabstand */
    margin: 0 !important;                    /* Full-Bleed entfernt */
    width: 100% !important;                  /* kein 100vw */
    max-width: 100% !important;

    touch-action: pan-x;
    overscroll-behavior-x: contain;
    direction: ltr;                          /* falls global RTL aktiv ist */
  }

  .referenz-slider .referenz-logo {
    flex: 0 0 calc(50% - 10px);              /* 2 nebeneinander */
    scroll-snap-align: start;                /* Item beginnt immer links */
  }

  /* Sicherheitsnetz gegen erzwungene Zentrierung durch Builder-Container */
  .referenz-slider > * { margin: 0; }
}

/* Desktop: Grid mit 9 Spalten, 2 Reihen (automatisch) */
@media (min-width: 1025px) {
  .referenz-slider {
    display: grid !important;
    grid-template-columns: repeat(9, 1fr);
    gap: 20px;
    padding: 10px 0;
    width: 100%;
    max-width: 100%;
  }

  .referenz-slider .referenz-logo {
    width: 100%;
  }

/* DSGVO-Link im Formular */
.uw-dsgvo a {
  color: #ffffff;
  text-decoration: underline;
}

.uw-dsgvo a:hover,
.uw-dsgvo a:focus {
  color: #02b3ab;
}