/*
Theme Name: HB Tax Child
Theme URI: https://hb-tax.com/
Description: Child theme fuer Houbbani Bergmann Partnerschaft (HB Tax) auf Basis von Astra. Enthaelt Mobile-Optimierungen, Silbentrennung und SEO-Anpassungen.
Author: HB Tax
Template: astra
Version: 1.0.0
Text Domain: hb-tax-child
*/

/* ====== Mobile- und Optik-Verbesserungen (HB Tax) ====== */

/* 1) Kanzleiname im Header: verhindert Umbruch, der auf Mobilgeraeten die Startseite ueberlagert */
@media (max-width: 768px) {
  .site-header .site-title {
    font-size: 17px !important;
    line-height: 1.25 !important;
  }
  .site-header .ast-site-identity {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
}
@media (max-width: 400px) {
  .site-header .site-title {
    font-size: 15px !important;
  }
}

/* 2) Schwere Hintergrund-Videos auf Mobilgeraeten deaktivieren (Ladezeit, Datenvolumen, Akku) */
@media (max-width: 768px) {
  .uagb-container__video-wrap {
    display: none !important;
  }
  .uagb-block-a1fd1922,
  .uagb-block-8e900e2a {
    background-color: #05668D !important;
  }
}

/* 3) Mehr Abstand zwischen Hero-Ueberschrift und Unterzeile auf Mobilgeraeten */
@media (max-width: 768px) {
  .uagb-ifb-title {
    margin-bottom: 28px !important;
  }
  .uagb-ifb-desc {
    margin-bottom: 32px !important;
  }
}

/* 4) Bessere Lesbarkeit von weissem Text auf Foto-/Video-Hintergruenden */
.uagb-ifb-title,
.uagb-ifb-desc {
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

/* 5) Silbentrennung fuer lange deutsche Woerter in Ueberschriften */
.uagb-ifb-title,
.uagb-heading-text,
h1, h2, h3 {
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
  -webkit-hyphens: auto !important;
  -ms-hyphens: auto !important;
}

/* ============================================================
   MODERNES DESIGN-REFRESH (HB Tax) – Farben, Typografie, Buttons,
   Karten, Abstaende, Mikro-Interaktionen. Reine Optik, keine
   Struktur-/Layoutaenderung.
   ============================================================ */

/* Sanftes Scrollen */
html {
  scroll-behavior: smooth;
}

/* ---- Typografie-Feinschliff ---- */
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4,
.uagb-heading-text,
.uagb-ifb-title {
  letter-spacing: -0.01em;
  line-height: 1.15;
}

p, .uagb-ifb-desc, .entry-content p {
  line-height: 1.7;
}

/* Textauswahl-Farbe im Markenlook */
::selection {
  background-color: #0a749f;
  color: #ffffff;
}

/* ---- Links: sanfte Farbverlaeufe statt hartem Farbwechsel ---- */
a {
  transition: color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

/* ---- Buttons modernisieren (WordPress-Buttons & UAGB-CTA-Links) ---- */
.wp-block-button__link,
.uagb-infobox-cta-link,
.ast-button,
button.wp-block-search__button {
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 10px rgba(10, 116, 159, 0.15);
}

/* Gefuellte (dunkle) Buttons: sanftes Anheben + staerkerer Schatten beim Hover */
.wp-block-button__link:not([style*="background-color: transparent"]):hover,
.ast-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 116, 159, 0.28);
  filter: brightness(1.06);
}

/* Umriss-/Ghost-Buttons (z. B. "Jetzt entdecken" auf Bild-/Video-Hintergruenden) */
.uagb-infobox-cta-link.wp-block-button__link {
  backdrop-filter: blur(2px);
}
.uagb-infobox-cta-link.wp-block-button__link:hover {
  background-color: rgba(255, 255, 255, 0.95) !important;
  color: #05668d !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* Textlinks im Stil "WEITERLESEN"/"ALLE ANZEIGEN": kleiner Pfeil, der beim Hover wandert */
.uagb-infobox-cta a:not(.wp-block-button__link),
.entry-content > .wp-block-uagb-container a:not(.wp-block-button__link):not(.uagb-heading-text) {
  position: relative;
}

/* ---- Karten: die drei Leistungs-Kacheln auf der Startseite ---- */
.uagb-block-a1fd1922,
.uagb-block-8e900e2a,
.uagb-block-a86f2b31,
.uagb-block-7a3c7dcb,
.uagb-block-adf1d414 {
  border-radius: 14px !important;
  transition: transform 0.35s ease, box-shadow 0.35s ease !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.uagb-block-a86f2b31:hover,
.uagb-block-7a3c7dcb:hover,
.uagb-block-adf1d414:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

/* ---- Bilder im Inhalt: dezent abgerundet ---- */
.entry-content img,
.wp-block-image img {
  border-radius: 12px;
}

/* ---- Testimonial-/Zitat-Bereich: Sterne & Anfuehrungszeichen betonen ---- */
.uagb-container__wrap blockquote,
.entry-content blockquote {
  border-radius: 12px;
}

/* ---- Mehr Luft zwischen Hauptsektionen ---- */
.uagb-is-root-container {
  padding-top: calc(1em + 12px);
  padding-bottom: calc(1em + 12px);
}

/* ---- Header: dezenter Schatten + weichere Navigation ---- */
.site-header {
  transition: box-shadow 0.3s ease;
}
.main-header-menu .menu-item > a,
.ast-header-navigation a {
  position: relative;
  transition: color 0.25s ease;
}
.main-header-menu .menu-item > a::after,
.ast-header-navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.25s ease;
  opacity: 0.8;
}
.main-header-menu .menu-item > a:hover::after,
.ast-header-navigation a:hover::after {
  width: 100%;
}

/* ---- Checklisten (z. B. "Unser Versprechen") dezent aufwerten ---- */
.entry-content ul li {
  line-height: 1.6;
}

/* ---- Footer: klare Trennung ---- */
.site-footer,
.ast-small-footer {
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.06);
}

/* ---- Fokuszustaende fuer Barrierefreiheit, modern statt Standard-Outline ---- */
a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible {
  outline: 2px solid #0a749f;
  outline-offset: 3px;
  border-radius: 6px;
}
