/* ======================
   Startseite – Page-specific styles
   ====================== */

/* Zielgruppen Section */
.zielgruppen-section {
  background: var(--bg-tint);
}

.zg-tabs {
  display: flex;
  gap: 8px;
  margin-top: 32px;
  margin-bottom: 40px;
}

.zg-tab {
  padding: 10px 24px;
  border-radius: 100px;
  background: white;
  border: 1.5px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  color: var(--text);
}

.zg-tab.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.zg-tab:hover:not(.active) {
  border-color: var(--blue);
  color: var(--blue);
}

.zg-content {
  display: none;
}

.zg-content.active {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.zg-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.28s;
}

.zg-card:hover {
  border-color: rgba(28, 131, 191, 0.22);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.zg-card-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 20px;
}

.zg-card-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 8px;
}

.zg-card-desc {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 16px;
}

.zg-card-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}

.zg-card-link:hover {
  color: var(--blue-dark, #1a7aa3);
}

/* Logo Carousel (arrow-based) */
.carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 100%;
}
.carousel-viewport {
  overflow: hidden;
  flex: 1;
}
.carousel-track {
  display: flex;
  align-items: center;
  gap: 48px;
  transition: transform 0.4s ease;
}
.carousel-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.carousel-arrow:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.7);
}

@media (max-width: 768px) {
  .carousel-track { gap: 24px; }
  .carousel-arrow { width: 36px; height: 36px; }
}

/* Blog Highlights */
.blog-section {
  background: white;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}

.blog-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.28s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card-img {
  height: 180px;
  background: var(--bg-tint2, var(--bg-tint));
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-body {
  padding: 24px;
}

.blog-card-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 10px;
  display: block;
}

.blog-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 8px;
}

.blog-card-date {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-bottom: 10px;
  display: block;
}

.blog-card-excerpt {
  font-size: 0.86rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* Podcast Widget oben rechts im Hero (ausklappbar) */
.podcast-widget {
  position: absolute;
  top: 90px;
  right: 5%;
  width: 460px;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  z-index: 2;
  overflow: hidden;
}

.podcast-widget-toggle {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  background: none;
  border: 0;
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: background 0.2s ease;
}
.podcast-widget-toggle:hover {
  background: var(--bg-tint);
}
.podcast-widget-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.podcast-widget-head {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.podcast-widget-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-light);
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.podcast-widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
  line-height: 1.3;
}

.podcast-widget-sub {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.5;
  margin: 0;
}

.podcast-widget-chevron {
  flex-shrink: 0;
  color: var(--blue);
  margin-top: 2px;
  transition: transform 0.25s ease;
}
.podcast-widget-toggle[aria-expanded="true"] .podcast-widget-chevron {
  transform: rotate(180deg);
}

.podcast-widget {
  max-height: calc(100vh - 110px);
  display: flex;
  flex-direction: column;
}

.podcast-widget-body {
  padding: 0 20px 18px;
  border-top: 1px solid var(--border);
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.podcast-widget-body[hidden] {
  display: none;
}
.podcast-widget-body iframe {
  display: block;
  border-radius: 8px;
  margin-top: 14px;
  width: 100%;
  height: 420px;
  overflow: auto;
}

/* Responsive */
@media (max-width: 1280px) {
  .podcast-widget {
    width: 400px;
  }
}

@media (max-width: 1100px) {
  .podcast-widget {
    position: static;
    width: auto;
    max-width: 560px;
    margin: 16px auto 32px;
  }
}

@media (max-width: 768px) {
  .zg-content.active {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .zg-tabs {
    flex-wrap: wrap;
  }
}