/* ─── SUBPAGE SHARED STYLES ─── */

.subpage-hero {
  background: var(--bg);
  padding: 60px 0 80px;
}
.subpage-hero .container {
  max-width: 800px;
}
.back-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 24px;
  transition: var(--transition);
}
.back-link:hover { color: var(--dark); }

.subpage-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--dark);
  margin: 16px 0 20px;
}
.subpage-lead {
  font-size: 18px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 600px;
}

.subpage-section { padding: 80px 0; }
.subpage-section.bg-alt { background: var(--bg-alt); }

/* ─── DETAIL CARDS ─── */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.detail-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  border: 1px solid var(--gray-light);
  transition: var(--transition);
}
.detail-card:hover {
  border-color: var(--dark);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.detail-icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
}
.detail-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.detail-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
}

/* ─── VERSICHERUNG LIST ─── */
.versicherung-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--white);
}
.versicherung-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--gray-light);
  transition: var(--transition);
}
.versicherung-item:last-child { border-bottom: none; }
.versicherung-item:hover { background: var(--bg-alt); }
.versicherung-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  min-width: 280px;
  flex-shrink: 0;
}
.versicherung-desc {
  font-size: 14px;
  color: var(--gray);
}

/* ─── HIGHLIGHT BOX (Azubi / Angestellte / Selbstständige) ─── */
.highlight-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.highlight-item {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 36px 24px;
  text-align: center;
  border-top: 4px solid var(--dark);
  box-shadow: var(--shadow);
}
.highlight-number {
  display: block;
  font-size: 40px;
  font-weight: 900;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 12px;
}
.highlight-label {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.5;
}

/* ─── VIDEO THUMBNAIL (Fallback wenn Embedding gesperrt) ─── */
.video-thumb-link {
  display: block;
  max-width: 720px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.video-thumb-link:hover .video-thumb img {
  transform: scale(1.03);
  opacity: 0.75;
}
.video-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(13, 27, 75, 0.35);
  transition: background 0.3s ease;
}
.video-thumb-link:hover .video-thumb-overlay {
  background: rgba(13, 27, 75, 0.55);
}
.video-thumb-play {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--dark);
  padding-left: 4px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}
.video-thumb-link:hover .video-thumb-play {
  transform: scale(1.1);
}
.video-thumb-overlay p {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ─── VIDEO EMBED ─── */
.video-wrapper {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  aspect-ratio: 16 / 9;
  position: relative;
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ─── VIDEO PLACEHOLDER ─── */
.video-placeholder {
  max-width: 720px;
  margin: 0 auto;
  background: var(--dark);
  border-radius: 20px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-hover);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,35,64,0.9) 0%, rgba(36,48,96,0.95) 100%);
}
.video-inner {
  text-align: center;
  color: var(--white);
  position: relative;
  z-index: 1;
}
.video-icon {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.15);
  border: 3px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
  transition: var(--transition);
}
.video-placeholder:hover .video-icon {
  background: rgba(255,255,255,0.25);
  border-color: var(--white);
  transform: scale(1.1);
}
.video-label {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.video-sub {
  font-size: 14px;
  opacity: 0.55;
}

/* ─── CTA SECTION ─── */
.subpage-cta {
  background: var(--dark);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}
.subpage-cta h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 16px;
}
.subpage-cta p {
  font-size: 17px;
  opacity: 0.65;
  margin-bottom: 36px;
}
.subpage-cta .btn-primary-lg {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}
.subpage-cta .btn-primary-lg:hover {
  background: var(--bg-alt);
  border-color: var(--bg-alt);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .subpage-hero { padding: 40px 0 56px; }
  .subpage-hero h1 { font-size: clamp(32px, 8vw, 52px); letter-spacing: -1px; }
  .subpage-lead { font-size: 16px; }

  .subpage-section { padding: 52px 0; }

  .detail-grid { grid-template-columns: 1fr; gap: 16px; }
  .detail-card { padding: 24px 20px; }

  .highlight-box { grid-template-columns: 1fr; gap: 16px; }
  .highlight-item { padding: 24px 20px; }
  .highlight-number { font-size: 32px; }

  .versicherung-item { flex-direction: column; gap: 4px; padding: 16px 20px; }
  .versicherung-name { min-width: unset; }

  .video-placeholder { border-radius: 14px; }
  .video-icon { width: 56px; height: 56px; font-size: 22px; }
  .video-label { font-size: 15px; }

  .subpage-cta { padding: 56px 0; }
  .subpage-cta h2 { font-size: 26px; }
}

@media (max-width: 480px) {
  .subpage-hero h1 { font-size: clamp(28px, 9vw, 44px); }
  .back-link { font-size: 13px; }
  .subpage-cta .btn-primary-lg { width: 100%; text-align: center; }
}
