/*
 * technik-24.com — GoodLife Override CSS
 * Datei: /css/goodlife-overrides.css
 * Zweck: Gezielte Überschreibung der GoodLife Theme-Styles
 * Version: 1.0 | Mai 2026
 */

/* ============================================================
   GOOGLE FONTS — Sora + Plus Jakarta Sans
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ============================================================
   CSS VARIABLEN
   ============================================================ */
:root {
  --t24-blue-900:  #0B1F3A;
  --t24-blue-800:  #0F2D55;
  --t24-blue-700:  #1A4A8A;
  --t24-blue-600:  #1E5FBF;
  --t24-blue-500:  #2B72D9;
  --t24-blue-300:  #8FB8F0;
  --t24-blue-100:  #D6E8FA;
  --t24-blue-50:   #EEF5FD;
  --t24-gray-900:  #18191C;
  --t24-gray-800:  #25272D;
  --t24-gray-700:  #3A3D47;
  --t24-gray-600:  #555868;
  --t24-gray-200:  #E2E4ED;
  --t24-gray-100:  #F0F1F5;
  --t24-gray-50:   #F7F8FC;
  --t24-white:     #FFFFFF;
  --t24-accent:    #FF6B2B;
  --font-display:  'Sora', 'Segoe UI', sans-serif;
  --font-body:     'Plus Jakarta Sans', 'Helvetica Neue', sans-serif;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.10);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   BASIS-TYPOGRAFIE
   ============================================================ */
body,
body.home,
body.single,
body.archive,
body.category {
  font-family: var(--font-body) !important;
  background-color: var(--t24-gray-50) !important;
  color: #1A1C22 !important;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.post-title,
.thb-slider .thb-slide-content h2,
.thb-slider .thb-slide-content h3 {
  font-family: var(--font-display) !important;
  letter-spacing: -0.02em !important;
}

/* ============================================================
   HEADER — Weißer, schlanker, moderner Header
   ============================================================ */

/* Obere Leiste (falls vorhanden) komplett ausblenden */
#thb-top-bar,
.thb-top-bar,
.top-bar {
  display: none !important;
}

/* Header-Wrapper */
#thb-header,
#thb-header-wrap,
.thb-header,
header#masthead,
#site-header {
  background: var(--t24-white) !important;
  border-bottom: 1px solid var(--t24-gray-200) !important;
  box-shadow: 0 1px 8px rgba(0,0,0,.06) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;
  padding: 0 !important;
}

/* Logo-Bereich */
#thb-header .thb-logo,
.thb-logo,
#thb-header .site-logo,
.site-branding {
  padding: 14px 0 !important;
}

/* Logo-Bild Höhe begrenzen */
#thb-header .thb-logo img,
.thb-logo img,
.custom-logo,
.site-logo img {
  max-height: 42px !important;
  width: auto !important;
}

/* Ad-Banner im Header ausblenden (graue Box) */
#thb-header .thb-ad,
#thb-header .widget_thb_ad_widget,
#thb-header .header-ad,
.thb-header-ad,
#thb-header .textwidget img[src=""],
#thb-header .widget {
  display: none !important;
}

/* ============================================================
   HAUPTNAVIGATION — Schwarz → Modern Weiß/Blau
   ============================================================ */

/* Nav-Wrapper */
#thb-sticky-header,
#thb-sticky-nav,
.thb-sticky-nav,
nav#site-navigation,
.main-navigation,
#thb-nav-wrap,
.thb-nav {
  background: var(--t24-white) !important;
  border-top: 1px solid var(--t24-gray-100) !important;
  border-bottom: 1px solid var(--t24-gray-200) !important;
  box-shadow: none !important;
}

/* Nav Links */
#thb-sticky-header ul li a,
#thb-sticky-nav ul li a,
.thb-sticky-nav ul li a,
nav#site-navigation ul li a,
.main-navigation ul li a,
.thb-nav ul li a,
#thb-nav-wrap ul li a {
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: var(--t24-gray-700) !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  padding: 14px 16px !important;
  transition: color var(--transition), background var(--transition) !important;
}

#thb-sticky-header ul li a:hover,
#thb-sticky-nav ul li a:hover,
.thb-sticky-nav ul li a:hover,
nav#site-navigation ul li a:hover,
.main-navigation ul li a:hover,
.thb-nav ul li a:hover,
#thb-nav-wrap ul li a:hover,
nav#site-navigation ul li.current-menu-item > a,
.main-navigation ul li.current-menu-item > a {
  color: var(--t24-blue-600) !important;
  background: var(--t24-blue-50) !important;
}

/* Schwarze Nav-Bar komplett überschreiben */
.thb-dark-nav,
#thb-nav.thb-dark-nav,
.nav-dark {
  background: var(--t24-white) !important;
}

.thb-dark-nav ul li a,
#thb-nav.thb-dark-nav ul li a {
  color: var(--t24-gray-700) !important;
}

/* Suchicon */
.thb-nav .thb-search-icon,
#thb-nav .thb-search-icon,
.nav-search-icon {
  color: var(--t24-gray-600) !important;
}

/* ============================================================
   KATEGORIE-BADGES — Modernes Pill-Design
   ============================================================ */
.thb-cat,
.thb-post-cat,
.post-cat,
.cat-label,
.thb-slider .thb-cat,
.thb-grid .thb-cat,
.post-cat a,
.thb-cat a,
.thb-post-cat a,
span.thb-cat a,
.cat-links a,
.entry-meta .cat-links a {
  display: inline-block !important;
  font-family: var(--font-body) !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  padding: 0.25rem 0.7rem !important;
  border-radius: var(--radius-full) !important;
  background: var(--t24-blue-600) !important;
  color: var(--t24-white) !important;
  border: none !important;
  line-height: 1.4 !important;
  transition: background var(--transition) !important;
}

.thb-cat a:hover,
.thb-post-cat a:hover,
.post-cat a:hover {
  background: var(--t24-blue-700) !important;
  color: var(--t24-white) !important;
}

/* ============================================================
   HERO SLIDER — Modernere Typografie
   ============================================================ */

/* Slider Titel */
.thb-slider .entry-title,
.thb-slider h2.entry-title,
.thb-hero .entry-title,
.thb-slide-content .entry-title,
.thb-slider .post-title {
  font-family: var(--font-display) !important;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.025em !important;
}

/* Slider Overlay dunkler & sauberer */
.thb-slider .thb-overlay,
.thb-hero .thb-overlay,
.thb-slide-overlay {
  background: linear-gradient(
    to top,
    rgba(10, 20, 40, 0.85) 0%,
    rgba(10, 20, 40, 0.4) 50%,
    rgba(10, 20, 40, 0.05) 100%
  ) !important;
}

/* Slider Kategorie-Badge */
.thb-slider .thb-cat,
.thb-slider .thb-cat a {
  background: var(--t24-blue-600) !important;
  color: var(--t24-white) !important;
}

/* ============================================================
   POST CARDS / GRID — Saubereres Design
   ============================================================ */

/* Card Wrapper */
.thb-grid-item,
.thb-post-item,
article.type-post,
.post-item,
.thb-list-item {
  background: var(--t24-white) !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-sm) !important;
  border: 1px solid var(--t24-gray-200) !important;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition) !important;
}

.thb-grid-item:hover,
.thb-post-item:hover,
article.type-post:hover,
.post-item:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--shadow-lg) !important;
  border-color: var(--t24-blue-300) !important;
}

/* Card Titel */
.thb-grid-item .entry-title a,
.thb-grid-item .post-title a,
.thb-post-item .entry-title a,
article.type-post .entry-title a,
.post-item .entry-title a {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  color: var(--t24-gray-900) !important;
  letter-spacing: -0.015em !important;
  line-height: 1.3 !important;
  transition: color var(--transition) !important;
}

.thb-grid-item .entry-title a:hover,
.thb-post-item .entry-title a:hover,
article.type-post .entry-title a:hover,
.post-item .entry-title a:hover {
  color: var(--t24-blue-600) !important;
}

/* Card Meta (Autor, Datum) */
.thb-grid-item .thb-post-meta,
.thb-post-item .thb-post-meta,
.entry-meta,
.thb-post-meta {
  font-family: var(--font-body) !important;
  font-size: 0.78rem !important;
  color: #9EA1B0 !important;
}

/* Card Thumbnail Hover-Zoom */
.thb-grid-item .thb-thumb img,
.thb-post-item .thb-thumb img,
.post-item .thb-thumb img,
.thb-grid-item .post-thumbnail img {
  transition: transform 0.4s ease !important;
}

.thb-grid-item:hover .thb-thumb img,
.thb-post-item:hover .thb-thumb img,
.post-item:hover .thb-thumb img {
  transform: scale(1.05) !important;
}

/* ============================================================
   SIDEBAR — Cleaner Widget-Stil
   ============================================================ */

#secondary,
.sidebar,
.widget-area {
  background: transparent !important;
}

/* Widget Wrapper */
#secondary .widget,
.sidebar .widget,
.widget-area .widget {
  background: var(--t24-white) !important;
  border: 1px solid var(--t24-gray-200) !important;
  border-radius: var(--radius-lg) !important;
  padding: 1.25rem !important;
  box-shadow: var(--shadow-sm) !important;
  margin-bottom: 1.25rem !important;
}

/* Widget Titel */
#secondary .widget-title,
.sidebar .widget-title,
.widget-area .widget-title,
#secondary h2.widget-title,
.sidebar h2.widget-title {
  font-family: var(--font-body) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--t24-blue-600) !important;
  border-bottom: 2px solid var(--t24-blue-100) !important;
  padding-bottom: 0.625rem !important;
  margin-bottom: 1rem !important;
  background: none !important;
  border-radius: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Widget Links */
#secondary .widget ul li a,
.sidebar .widget ul li a {
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  color: var(--t24-gray-700) !important;
  transition: color var(--transition) !important;
}

#secondary .widget ul li a:hover,
.sidebar .widget ul li a:hover {
  color: var(--t24-blue-600) !important;
}

/* ============================================================
   SINGLE POST — Artikel-Layout
   ============================================================ */

/* Artikel-Titel */
.single .entry-title,
body.single h1.entry-title,
.thb-post-header .entry-title {
  font-family: var(--font-display) !important;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.025em !important;
  color: var(--t24-gray-900) !important;
}

/* Artikel-Fließtext */
.single .entry-content,
.entry-content {
  font-family: var(--font-body) !important;
  font-size: 1.0625rem !important;
  line-height: 1.8 !important;
  color: #1A1C22 !important;
}

.entry-content h2 {
  font-family: var(--font-display) !important;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem) !important;
  font-weight: 700 !important;
  color: var(--t24-gray-900) !important;
  margin-top: 2.25rem !important;
  margin-bottom: 0.875rem !important;
  padding-bottom: 0.5rem !important;
  border-bottom: 2px solid var(--t24-blue-100) !important;
  letter-spacing: -0.02em !important;
}

.entry-content h3 {
  font-family: var(--font-display) !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: var(--t24-gray-800) !important;
  margin-top: 1.75rem !important;
  margin-bottom: 0.625rem !important;
}

.entry-content p {
  margin-bottom: 1.25rem !important;
}

/* Tabellen */
.entry-content table {
  border-radius: var(--radius-lg) !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-sm) !important;
  border-collapse: collapse !important;
  width: 100% !important;
}

.entry-content table thead tr {
  background: var(--t24-blue-700) !important;
  color: var(--t24-white) !important;
}

.entry-content table th {
  font-family: var(--font-display) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  padding: 0.875rem 1rem !important;
  color: var(--t24-white) !important;
}

.entry-content table td {
  padding: 0.75rem 1rem !important;
  border-bottom: 1px solid var(--t24-gray-100) !important;
  font-size: 0.9rem !important;
}

.entry-content table tbody tr:nth-child(even) {
  background: var(--t24-gray-50) !important;
}

.entry-content table tbody tr:hover {
  background: var(--t24-blue-50) !important;
}

/* ============================================================
   SECTION-HEADERS / WIDGET-TITLE im Content-Bereich
   ============================================================ */
.thb-block-title,
.thb-section-title,
.thb-title-wrap h2,
.thb-title-wrap h3,
.thb-posts-title {
  font-family: var(--font-display) !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--t24-gray-900) !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  border-left: 4px solid var(--t24-blue-600) !important;
  padding-left: 0.75rem !important;
  background: none !important;
}

/* Schwarzer Akzentstreifen neben Titeln → Blau */
.thb-block-title::before,
.thb-section-title::before,
.thb-title-wrap::before {
  background: var(--t24-blue-600) !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
#thb-footer,
#colophon,
.site-footer,
footer.thb-footer {
  background: var(--t24-gray-900) !important;
  color: #9EA1B0 !important;
}

#thb-footer a,
.site-footer a,
#colophon a {
  color: #9EA1B0 !important;
  transition: color var(--transition) !important;
}

#thb-footer a:hover,
.site-footer a:hover,
#colophon a:hover {
  color: var(--t24-blue-300) !important;
}

#thb-footer .widget-title,
.site-footer .widget-title,
#colophon .widget-title {
  font-family: var(--font-body) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--t24-white) !important;
  border-bottom: 1px solid #3A3D47 !important;
  padding-bottom: 0.625rem !important;
  margin-bottom: 1rem !important;
  background: none !important;
}

/* Footer Copyright */
#thb-footer-bottom,
.thb-footer-bottom,
.site-info {
  background: var(--t24-gray-950, #0D0E10) !important;
  border-top: 1px solid #25272D !important;
  color: #555868 !important;
  font-size: 0.78rem !important;
  font-family: var(--font-body) !important;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination .page-numbers,
.nav-links .page-numbers,
.thb-pagination .page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 0.5rem !important;
  border-radius: var(--radius-md) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: var(--t24-gray-700) !important;
  border: 1px solid var(--t24-gray-200) !important;
  background: var(--t24-white) !important;
  transition: all var(--transition) !important;
  margin: 0 2px !important;
}

.pagination .page-numbers:hover,
.nav-links .page-numbers:hover,
.thb-pagination .page-numbers:hover {
  background: var(--t24-blue-50) !important;
  border-color: var(--t24-blue-300) !important;
  color: var(--t24-blue-600) !important;
}

.pagination .page-numbers.current,
.nav-links .page-numbers.current,
.thb-pagination .page-numbers.current {
  background: var(--t24-blue-600) !important;
  border-color: var(--t24-blue-600) !important;
  color: var(--t24-white) !important;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.thb-read-more,
.read-more-btn,
a.more-link,
.btn,
.button,
input[type="submit"] {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  border-radius: var(--radius-md) !important;
  transition: all var(--transition) !important;
}

.thb-read-more:hover,
.read-more-btn:hover,
a.more-link:hover {
  background: var(--t24-blue-700) !important;
  color: var(--t24-white) !important;
}

/* ============================================================
   RESPONSIVE FIXES
   ============================================================ */
@media (max-width: 768px) {
  .thb-slider .entry-title,
  .thb-hero .entry-title {
    font-size: 1.35rem !important;
  }

  #thb-header,
  #thb-header-wrap {
    position: sticky !important;
    top: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
