/* ==========================================================================
   Homepage Styles — aktiengurus.com
   ========================================================================== */

.pt-0 {
  padding-top: 0 !important;
}

/* --------------------------------------------------------------------------
   News Ticker Overrides (gold label, dark bar)
   -------------------------------------------------------------------------- */
.news-ticker {
  background-color: #555;
  height: 44px;
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
}

.news-ticker-label {
  background-color: var(--gold);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 25px;
  text-transform: none;
}

.news-ticker-list {
  display: flex;
  align-items: center;
  height: 100%;
  animation: none;
}

.news-ticker-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
}

.news-ticker-list li a,
.ticker-typewriter {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  padding: 0 20px;
}

.ticker-typewriter::after {
  content: '_';
  color: #e74c3c;
  font-weight: 700;
  animation: tickerBlink 0.7s step-end infinite;
}

@keyframes tickerBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.news-ticker-list li a:hover,
.ticker-typewriter:hover {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Hero Mosaic Grid (5 articles: 3 cols × 2 rows, first spans full height)
   -------------------------------------------------------------------------- */
.hero-mosaic-section {
  padding: 0;
  margin-top: 15px;
}

.hero-mosaic {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 4px;
}

.hero-mosaic-item {
  position: relative;
  overflow: hidden;
}

.hero-mosaic-item:nth-child(1) {
  grid-row: 1 / 3;
}

.hero-mosaic-item a {
  display: block;
  height: 100%;
}

.hero-mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-mosaic-item:hover img {
  transform: scale(1.05);
}

.hero-mosaic-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
}

.hero-mosaic-overlay .category-badge {
  margin-bottom: 10px;
  background-color: var(--black);
  color: var(--white);
}

.hero-mosaic-overlay h2 {
  color: var(--white);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
}

.hero-mosaic-overlay h2 a {
  color: var(--white);
}

.hero-mosaic-overlay h2 a:hover {
  color: var(--gold);
}

.hero-mosaic-item:nth-child(1) .hero-mosaic-overlay h2 {
  font-size: 26px;
}

/* --------------------------------------------------------------------------
   Homepage article grid: 3 columns inside main content
   -------------------------------------------------------------------------- */
.main-content .article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* --------------------------------------------------------------------------
   Three-Card Overlay Row
   -------------------------------------------------------------------------- */
.three-card-section {
  padding: 30px 0;
  background-color: var(--light-gray, #f5f5f5);
}

.three-card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.three-card-item {
  position: relative;
  overflow: hidden;
  height: 280px;
}

.three-card-item a {
  display: block;
  height: 100%;
}

.three-card-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.three-card-item:hover img {
  transform: scale(1.05);
}

.three-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
}

.three-card-overlay .category-badge {
  margin-bottom: 10px;
  background-color: var(--black);
  color: var(--white);
}

.three-card-overlay h3 {
  color: var(--white);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
}

.three-card-overlay h3 a {
  color: var(--white);
}

.three-card-overlay h3 a:hover {
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Tabbed Section (Ausgewaehlte Artikel)
   -------------------------------------------------------------------------- */
.tabbed-section {
  padding: 30px 0;
}

.tabbed-section-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--border-color, #e0e0e0);
  padding-bottom: 12px;
  gap: 0;
}

.tabbed-section-label {
  background-color: var(--gold);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tabbed-section-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  flex: 1;
}

.tabbed-section-tab {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-gray, #888);
  padding: 8px 18px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: color 0.3s ease;
  font-family: inherit;
}

.tabbed-section-tab:hover {
  color: var(--black);
}

.tabbed-section-tab.active {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  margin-bottom: -14px;
  padding-bottom: 22px;
}

.tabbed-section-more {
  font-size: 13px;
  color: var(--text-gray, #888);
  font-weight: 500;
  padding: 0 12px;
  white-space: nowrap;
}

.tabbed-section-arrow {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-gray, #888);
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
  flex-shrink: 0;
}

.tabbed-section-arrow:hover {
  color: var(--black);
}

/* --------------------------------------------------------------------------
   Ausgewaehlte Artikel — Tab Content Layout
   -------------------------------------------------------------------------- */
.ausgewaehlte-wrapper {
  position: relative;
}

.aa-tab-content {
  display: none;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 4px;
}

.aa-tab-content.active {
  display: grid;
}

/* Featured article: spans 2 rows on the left */
.aa-featured {
  position: relative;
  overflow: hidden;
  grid-row: 1 / 3;
  grid-column: 1;
  min-height: 400px;
}

.aa-featured a {
  display: block;
  height: 100%;
}

.aa-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.aa-featured:hover img {
  transform: scale(1.05);
}

.aa-featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
}

.aa-featured-overlay .category-badge {
  margin-bottom: 10px;
  background-color: var(--black);
  color: var(--white);
}

.aa-featured-overlay h3 {
  color: var(--white);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
}

.aa-featured-overlay h3 a {
  color: var(--white);
}

.aa-featured-overlay h3 a:hover {
  color: var(--gold);
}

/* Smaller article cards in the grid */
.aa-card {
  background-color: var(--white);
  overflow: hidden;
  border: 1px solid var(--border-color, #e0e0e0);
}

.aa-card-image {
  position: relative;
  overflow: hidden;
  height: 140px;
}

.aa-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.aa-card:hover .aa-card-image img {
  transform: scale(1.05);
}

.aa-card-image .category-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
}

.aa-card-body {
  padding: 12px 15px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.aa-card-icon {
  flex-shrink: 0;
  color: var(--text-gray, #888);
  font-size: 14px;
  line-height: 1.4;
}

.aa-card-body h4 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

.aa-card-body h4 a {
  color: var(--black);
  transition: color 0.3s ease;
}

.aa-card-body h4 a:hover {
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Responsive — Homepage Specific
   -------------------------------------------------------------------------- */

/* Tablet */
@media (max-width: 1024px) {
  .news-ticker {
    width: 100%;
  }

  .hero-mosaic {
    grid-template-rows: 200px 200px;
  }

  .hero-mosaic-overlay h2 {
    font-size: 16px;
  }

  .hero-mosaic-item:nth-child(1) .hero-mosaic-overlay h2 {
    font-size: 22px;
  }

  .main-content .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .three-card-item {
    height: 220px;
  }

  .three-card-overlay h3 {
    font-size: 16px;
  }

  .aa-tab-content {
    grid-template-columns: 1fr 1fr;
  }

  .aa-featured {
    grid-column: 1 / 3;
    grid-row: auto;
    min-height: 300px;
  }

  .aa-featured-overlay h3 {
    font-size: 20px;
  }

  .tabbed-section-tab {
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .news-ticker {
    width: 100%;
    height: 38px;
  }

  .news-ticker-label {
    font-size: 12px;
    padding: 8px 14px;
  }

  .news-ticker-list li a,
  .ticker-typewriter {
    font-size: 13px;
    padding: 0 12px;
  }

  .hero-mosaic-section {
    margin-top: 8px;
  }

  .hero-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px 180px 180px;
    gap: 3px;
  }

  .hero-mosaic-item:nth-child(1) {
    grid-row: auto;
  }

  .hero-mosaic-overlay {
    padding: 12px;
  }

  .hero-mosaic-overlay .category-badge {
    font-size: 9px;
    padding: 3px 7px;
    margin-bottom: 6px;
  }

  .hero-mosaic-overlay h2 {
    font-size: 13px;
    line-height: 1.3;
  }

  .hero-mosaic-item:nth-child(1) .hero-mosaic-overlay h2 {
    font-size: 15px;
  }

  .main-content .article-grid {
    grid-template-columns: 1fr;
  }

  .three-card-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .three-card-item {
    height: 200px;
  }

  .three-card-overlay {
    padding: 12px;
  }

  .three-card-overlay h3 {
    font-size: 14px;
  }

  .tabbed-section-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .tabbed-section-label {
    font-size: 12px;
    padding: 6px 14px;
  }

  .tabbed-section-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tabbed-section-tab {
    font-size: 11px;
    padding: 6px 10px;
  }

  .aa-tab-content {
    grid-template-columns: 1fr;
  }

  .aa-featured {
    grid-column: auto;
    grid-row: auto;
    min-height: 240px;
  }

  .aa-featured-overlay h3 {
    font-size: 18px;
  }

  .aa-card-image {
    height: 120px;
  }

  .aa-card-body h4 {
    font-size: 13px;
  }
}

/* Small Phone */
@media (max-width: 480px) {
  .news-ticker {
    height: 34px;
  }

  .news-ticker-label {
    font-size: 11px;
    padding: 6px 10px;
  }

  .news-ticker-list li a,
  .ticker-typewriter {
    font-size: 12px;
    padding: 0 10px;
  }

  .hero-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 160px);
    gap: 2px;
  }

  .hero-mosaic-overlay h2,
  .hero-mosaic-item:nth-child(1) .hero-mosaic-overlay h2 {
    font-size: 14px;
  }

  .three-card-item {
    height: 180px;
  }

  .three-card-overlay h3 {
    font-size: 13px;
  }

  .three-card-section {
    padding: 15px 0;
  }

  .tabbed-section {
    padding: 20px 0;
  }

  .tabbed-section-label {
    font-size: 11px;
    padding: 5px 10px;
  }

  .aa-featured {
    min-height: 200px;
  }

  .aa-featured-overlay h3 {
    font-size: 16px;
  }
}
