/* ==========================================================================
   HSG Strohgäu - Optimierte Custom CSS
   Joomla 5/6 kompatibel | Optimiert für Performance & SEO
   ========================================================================== */

/* ==========================================================================
   1. CSS Custom Properties (Variablen)
   - Zentrale Definition aller wiederkehrenden Werte
   - Bessere Wartbarkeit und konsistentes Design
   ========================================================================== */
:root {
  /* Farben */
	--maincolor: #15991b;
	--firstcolor: #9ECAB3;
	--seccolor: #70006C; 
	--third_color: #aaa9ad;
	--color-text: #0f0d1d;
	--color-text-muted: #726f84;
	--color-white: #fff;
	--color-bg-light: #f7f7f7;
	--color-border: #e9ecef;
	--color-success: #198754;
  
  /* Typografie */
  --font-family: 'Barlow Semi Condensed', sans-serif;
  --font-size-base: 18px;
  --line-height-base: 24px;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2.5rem;
  
  /* Transitions */
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  
  /* Border Radius */
  --radius-sm: 2px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-full: 50%;
}

/* ==========================================================================
   2. Base Typography
   - Font-Family wird nur einmal definiert und vererbt
   ========================================================================== */
body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: var(--line-height-base);
  color: var(--color-text);
}

/* Headings - gemeinsame Eigenschaften */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: inherit;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 0;
  margin-bottom: 0.06rem;
}

/* Heading-spezifische Größen */
h1 { font-size: 32px; line-height: 40px; }
h2 { font-size: 21px; line-height: 28px; font-weight: 700; color: var(--maincolor); }
h3 { font-size: 18px; line-height: 26px; font-weight: 600; color: var(--maincolor); text-transform: none !important; }
h4 { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--maincolor); text-transform: none !important; }
h5 { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--maincolor); text-transform: none !important; }
h6 { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--maincolor); text-transform: none !important; }

/* ==========================================================================
   3. Navigation & Menü
   ========================================================================== */
   
/* Hauptmenü */
.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span {
  font-size: 18px;
  color: var(--color-text);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Sekundäres Menü */
.menu.nav-pills > li > a,
.menu.nav-pills > li > span {
  font-size: 16px;
  color: var(--maincolor);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Dropdown/Submenu */
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item span:not(.sp-menu-badge) {
  font-size: 16px;
  line-height: 20px;
  color: var(--color-text);
  display: flex;
  padding: 10px 20px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-slow);
}

.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:hover {
  color: var(--color-white);
  background: var(--maincolor);
}

.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
  padding: 0;
}
	
/* ==========================================================================
   4. Header & Page Title
   ========================================================================== */

header#sp-header.menu
 {
    padding-left: 45px;
    padding-right: 45px;
}

.sp-page-title {
  padding: 200px 0;
}

/* ==========================================================================
   5. Offcanvas/Mobile Menü
   ========================================================================== */
.offcanvas-menu .offcanvas-inner ul.menu > li > a,
.offcanvas-menu .offcanvas-inner ul.menu > li > span {
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  text-transform: uppercase;
  padding: 5px 0;
}

.offcanvas-menu .offcanvas-inner ul.menu li.active a {
  color: var(--maincolor);
}

.burger-icon > span {
  background-color: var(--maincolor);
}
/* ==========================================================================
   6. Buttons
   ========================================================================== */
.btn-primary,
.sppb-btn.sppb-btn-primary, .btn-outline-primary {
  display: inline-block;
  vertical-align: middle;
  appearance: none;
  border: none;
  border-radius: 0;
  outline: 1px solid var(--maincolor);
  background-color: var(--maincolor);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 10px 30px;
  letter-spacing: 0.05em;
  line-height: 28px;
  cursor: pointer;
  transition: var(--transition-slow);
}

.btn-primary:hover,
.sppb-btn.sppb-btn-primary:hover, .btn-outline-primary:hover {
  background: var(--color-white);
  color: var(--maincolor);
  outline: 1px solid var(--maincolor);
}

.btn-secondary,
.sppb-btn.sppb-btn-secondary {
  display: inline-block;
  vertical-align: middle;
  appearance: none;
  border: none;
  border-radius: 0;
  outline: 1px solid var(--maincolor);
  background-color: var(--color-white);
  color: var(--maincolor);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 10px 30px;
  letter-spacing: 0.05em;
  line-height: 28px;
  cursor: pointer;
  transition: var(--transition-slow);
  margin-left: 7px !important;
}

.btn-secondary:hover,
.sppb-btn.sppb-btn-secondary:hover {
  background: var(--maincolor);
  color: var(--color-white);
  outline: 1px solid var(--maincolor);
}

.form-control {
    padding: 0.75rem .75rem;
    border: 1px solid var(--maincolor);
    border-radius: 0;
}
label.me-2 {
    display: none;
}

/* ==========================================================================
   7. Footer
   ========================================================================== */
#sp-footer {
  font-size: 18px;
}

/* ==========================================================================
   8. News/Blog Komponente (SP Page Builder)
   ========================================================================== */
.news-one__img {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: var(--color-text);
}

.news-one__img > img {
  width: 100%;
  transform: scale(1);
  transition: transform var(--transition-slow);
  will-change: transform;
}

.sppb-addon-article:hover .news-one__img > img {
  transform: scale(1.05);
}

.news-one__img > a {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(15, 13, 29, 0.9);
  font-size: 30px;
  color: var(--color-white);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-30%);
  transition: opacity var(--transition-slow), 
              visibility var(--transition-slow), 
              transform var(--transition-slow);
}

.sppb-addon-article:hover .news-one__img > a {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.news-one__img > a > span {
  position: relative;
  display: block;
  margin-top: -100px;
}

/* Plus-Icon mit Pseudo-Elementen */
.news-one__img > a > span::before,
.news-one__img > a > span::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--color-white);
  transition: var(--transition-slow);
}

.news-one__img > a > span::before {
  width: 20px;
  height: 2px;
}

.news-one__img > a > span::after {
  width: 2px;
  height: 20px;
}

/* News Content */
.news-one__content {
  position: relative;
  display: block;
  background-color: var(--color-white);
  padding: 10px 15px 15px;
  transition: var(--transition-slow);
}

.sppb-addon-article:hover .news-one__content {
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.05);
}

/* News Meta */
.news-one__meta {
  display: flex;
  align-items: center;
  margin: 0 0 11px;
}

.news-one__meta span {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--transition-slow);
}

.news-one__meta span + span {
  margin-left: 12px;
}

.news-one__meta span i {
  color: var(--maincolor);
}

/* News Title */
.news-one__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 11px;
}

.news-one__title > a {
  color: var(--color-text);
  transition: var(--transition-slow);
  background: linear-gradient(currentcolor, currentcolor) 0 97% / 0 2px no-repeat;
}

.news-one__title > a:hover {
  color: var(--maincolor);
  background-size: 100% 2px;
}

/* News Text & Button */
.news-one__text {
  font-size: 18px;
  margin: 0;
  padding-bottom: 14px;
}

.news-one__btn {
  position: relative;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text);
  letter-spacing: 0.1em;
  transition: var(--transition-slow);
}

.news-one__btn::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 10px;
  background-color: currentColor;
  transition: width var(--transition-slow);
}

.news-one__btn:hover {
  color: var(--maincolor);
}

.news-one__btn:hover::before {
  width: 100%;
}

/* News Date Box */
.news-one__date-box {
  position: absolute;
  top: -24px;
  left: 0;
  background-color: var(--seccolor);
  padding: 0 20px;
}

.news-one__date-box > p {
  font-size: 12px;
  color: var(--maincolor);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.sppb-addon-content > a:hover {
  background-color: var(--color-text);
  color: var(--color-white);
}

/* ==========================================================================
   9. Joomla Blog/Article Styles
   ========================================================================== */
.article-list .article {
  padding: 0;
  border: none;
  position: relative;
}

.article-list .row > .col-md-12 + .col-md-12 {
  margin-top: 70px;
}

/* Article Images */
.article-list .article .article-intro-image,
.article-list .article .article-featured-video,
.article-list .article .article-featured-audio,
.article-list .article .article-feature-gallery {
  margin: 0;
  overflow: hidden;
  position: relative;
}

.article-list .article .article-intro-image img,
.article-list .article .article-featured-video img,
.article-list .article .article-featured-audio img,
.article-list .article .article-feature-gallery img {
  width: 100%;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.article-list .article:hover .article-intro-image img,
.article-list .article:hover .article-featured-video img,
.article-list .article:hover .article-featured-audio img,
.article-list .article:hover .article-feature-gallery img {
  transform: scale(1.2);
}

.article-body {
  padding: 0;
}

/* Article Header */
.article-list .article .article-header h1,
.article-list .article .article-header h2 {
  margin: 20px 0 10px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.article-list .article .article-header h1 a,
.article-list .article .article-header h2 a {
  color: var(--secondcolor);
  transition: color var(--transition-base);
}

.article-list .article .article-header h1 a:hover,
.article-list .article .article-header h2 a:hover {
  color: var(--maincolor);
}

/* Article Info */
.article-info > span {
  color: #3d3d3d;
  font-weight: 400;
  font-size: 13px;
}

.article-info > span a {
  color: inherit;
  transition: color var(--transition-base);
}

.article-info > span a:hover {
  color: var(--maincolor);
}

.article-info > span + span::before {
  content: "|";
  display: inline-block;
  padding: 0 0.2rem;
}

.article-info > span i {
  font-size: 16px;
  margin-right: 5px;
}

.article-details .article-info {
  margin-bottom: 0.15rem;
}

/* Readmore Button */
.readmore-bottom {
  margin-top: 30px;
}

.readmore-bottom .sppb-btn.sppb-btn-primary {
  background: var(--secondcolor);
  border-color: var(--secondcolor);
}

.readmore-bottom .sppb-btn.sppb-btn-primary:hover {
  background: var(--maincolor);
  border-color: var(--maincolor);
}
/* ==========================================================================
   10. Sidebar Menu
   ========================================================================== */
.sidebar-menu .sppb-addon-content .menu {
  overflow: hidden;
  margin-bottom: 50px;
  padding: 0;
}

.sidebar-menu .sppb-addon-content .menu li {
  margin-top: 5px;
}

.sidebar-menu .sppb-addon-content .menu li a {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  background: var(--color-bg-light);
  color: #222;
  font-size: 18px;
  font-weight: 500;
  padding: 17px 20px 15px;
  border-left: 5px solid var(--color-bg-light);
  transition: var(--transition-slow);
  transition-delay: 0.15s;
}

.sidebar-menu .sppb-addon-content .menu li a::before {
  content: ">";
  position: absolute;
  top: 0;
  right: 0;
  width: 37px;
  height: 56px;
  font-family: "Font Awesome 5 Free";
  color: var(--color-white);
  line-height: 58px;
  font-size: 18px;
  transform: translateX(-30px);
  opacity: 0;
  transition: var(--transition-slow);
  transition-delay: 0.5s;
}

.sidebar-menu .sppb-addon-content .menu li a:hover,
.sidebar-menu .sppb-addon-content .menu li.current a {
  color: var(--color-white);
  background: var(--maincolor);
  border-color: #1f1f1f;
}

.sidebar-menu .sppb-addon-content .menu li a:hover::before,
.sidebar-menu .sppb-addon-content .menu li.current a::before {
  transform: translateX(0);
  opacity: 1;
}

/* Sidebar Module */
#sp-left .sp-module,
#sp-right .sp-module {
  border: none;
  padding: 0;
}

#sp-left .sp-module ul, .list-unstyled, #sp-right .sp-module ul {
    font-size: 13px;
}

#sp-left .sp-module .sp-module-title,
#sp-right .sp-module .sp-module-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
}

/* ==========================================================================
   11. Third-Party Integrations
   ========================================================================== */
   
/* eRecht24 Shariff */
.shariff .orientation-horizontal {
  margin-top: 20px;
}

/* ==========================================================================
   16. Web Fonts - Barlow Semi Condensed
   - Optimiert: Nur benötigte Gewichte laden
   - font-display: swap für besseren CLS-Score
   ========================================================================== */

/* Regulär (400) - Fließtext */
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/barlow-semi-condensed-v16-latin-regular.woff2') format('woff2');
}

/* Medium (500) - Menüs, Labels */
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/barlow-semi-condensed-v16-latin-500.woff2') format('woff2');
}

/* Semi-Bold (600) - H3-H6 */
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-semi-condensed-v16-latin-600.woff2') format('woff2');
}

/* Bold (700) - H1, H2, wichtige Elemente */
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlow-semi-condensed-v16-latin-700.woff2') format('woff2');
}

/* ==========================================================================
   HINWEIS: Nicht verwendete Font-Gewichte wurden entfernt:
   - 100, 200, 300 (zu dünn für gute Lesbarkeit)
   - 800, 900 (nicht im Design verwendet)
   - Alle Italic-Varianten (nicht im Design verwendet)
   
   Falls diese benötigt werden, können sie wieder hinzugefügt werden.
   ========================================================================== */