/* Zentrale Farbvariable für Blockhintergrund */
:root {
  --block-bg: #f3f4f6;
}
/* 
 * Dreigestirn-spezifisches CSS für Club des Frohsinns
 * Layout für die Dreigestirn-Seite mit Banner, Profilen und Terminplan
 */

/* Grundlegendes Responsive Layout */
body {
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Dreigestirn Hero Banner */
.dreigestirn-hero {
  position: relative;
  width: 100%;
  padding: 40px 0;
  margin-bottom: 50px;
  background: linear-gradient(135deg, rgba(47, 35, 207, 0.9) 0%, rgba(180, 8, 32, 0.9) 100%);
  border-radius: 12px;
  color: white;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.dreigestirn-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/img/konfetti-bg.svg');
  background-size: cover;
  opacity: 0.1;
  mix-blend-mode: overlay;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  margin-bottom: 30px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
}

/* Dreigestirn Silhouettes - wie auf der Hauptseite */
.dreigestirn-silhouettes {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 30px 0;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  padding: 20px;
}

.silhouette {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
  height: 120px;
  position: relative;
  transition: transform 0.3s ease;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin: 0 10px;
}

.silhouette:hover {
  transform: translateY(-5px);
}

.prinz {
  background-color: rgba(255, 215, 0, 0.15);
}

.bauer {
  background-color: rgba(0, 128, 0, 0.15);
}

.jungfrau {
  background-color: rgba(255, 255, 255, 0.2);
}

.silhouette-title {
  position: absolute;
  bottom: 10px;
  font-weight: bold;
  font-size: 1rem;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.silhouette-question {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  font-weight: bold;
  color: white;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  opacity: 0.8;
}

/* Terminplan und Schedule Styles */
.schedule-info {
  background: linear-gradient(to right, #f8f9fa, #e9ecef);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  text-align: center;
}

.schedule-preview {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  position: relative;
}



.schedule-preview h3 {
  color: #003399;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.schedule-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 600px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}

/* Custom Scrollbar für bessere Optik */
.schedule-table::-webkit-scrollbar {
  width: 8px;
  background: transparent;
}

.schedule-table::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
  margin: 2px;
}

.schedule-table::-webkit-scrollbar-thumb {
  background: #B40820;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.schedule-table::-webkit-scrollbar-thumb:hover {
  background: #003399;
}

.schedule-table::-webkit-scrollbar-corner {
  background: transparent;
}

.schedule-row {
  display: flex;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.schedule-row:hover {
  background-color: #f8f9fa;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  border-radius: 8px;
}

.schedule-row:last-child {
  border-bottom: none;
}

.schedule-date-column {
  font-weight: bold;
  color: #B40820;
  width: 120px;
  max-width: 120px;
  margin-right: 25px;
  flex-shrink: 0;
  font-size: 1rem;
  word-break: break-word;
}

.schedule-details-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.schedule-event {
  font-weight: bold;
  color: #003399;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.schedule-time {
  color: #666;
  font-size: 0.95rem;
  font-style: italic;
}

.schedule-location {
  color: #888;
  font-size: 0.9rem;
}

/* Profile Cards */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.profile-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-top: 5px solid #003399;
}

.profile-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.profile-card.prinz-profile {
  border-top-color: #FFD700;
}

.profile-card.bauer-profile {
  border-top-color: #228B22;
}

.profile-card.jungfrau-profile {
  border-top-color: #FFB6C1;
}

.profile-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 30px 25px 20px;
  text-align: center;
  position: relative;
}

.profile-image-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(0, 51, 153, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 15px;
  border: 4px solid rgba(0, 51, 153, 0.2);
  transition: all 0.3s ease;
}

.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 15px;
  border: 4px solid rgba(0, 51, 153, 0.3);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.profile-card:hover .profile-image-placeholder {
  transform: scale(1.1);
}

.profile-card:hover .profile-image {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.profile-card:hover .profile-photo {
  transform: scale(1.1);
}

.profile-crown {
  font-size: 3rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.profile-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #003399;
  margin: 0;
}

.profile-content {
  padding: 25px;
}

.profile-name {
  font-size: 1.3rem;
  color: #B40820;
  margin-bottom: 20px;
  text-align: center;
  font-style: italic;
}

.profile-details p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.profile-details strong {
  color: #003399;
}

.profile-bio {
  font-style: italic;
  color: #666;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #003399;
}

/* Historische Dreigestirne - Horizontales Karussell */
.history-section {
  text-align: center;
}

.history-carousel-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 70px;
  box-sizing: border-box;
}

@media screen and (max-width: 1024px) {
  .history-carousel-container {
    padding: 0 56px;
  }
}

@media screen and (max-width: 768px) {
  .history-carousel-container {
    padding: 0 48px;
  }
}

@media screen and (max-width: 600px) {
  .history-carousel-container {
    padding: 0 40px;
  }
}

.carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  width: 100%;
  left: 0;
  z-index: 100;
  pointer-events: none;
  padding: 0 10px;
}

.carousel-btn {
  width: 60px;
  height: 60px;
  border: 3px solid white;
  background: linear-gradient(135deg, #2F23CF, #B40820);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  pointer-events: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 1000;
  position: relative;
  outline: none;
}



.carousel-btn:hover {
  background: linear-gradient(135deg, #B40820, #2F23CF);
  border-color: #FFD700;
  transform: scale(1.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.carousel-btn:disabled {
  background: rgba(204, 204, 204, 0.3);
  border-color: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  opacity: 0.4;
}

/* Platzhalter-Styling */
.placeholder-item .history-info {
  opacity: 0.8;
}

.placeholder-item .history-image {
  opacity: 0.9;
  filter: grayscale(20%);
}

.placeholder-text {
  color: #888 !important;
  font-style: italic;
}

.placeholder-link-wrapper {
  cursor: default;
  pointer-events: none;
}

.history-carousel {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 20px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-width: 100%;
  width: 100%;
}

.history-carousel::-webkit-scrollbar {
  display: none;
}

.history-item {
  flex: 0 0 350px;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: auto;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.history-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.history-link-wrapper {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s ease;
}

.history-link-wrapper:hover {
  color: inherit;
}

.history-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.history-item:hover .history-image {
  transform: scale(1.05);
}

.history-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.history-info h4 {
  margin: 0 0 15px 0;
  color: #003399;
  font-size: 1.4rem;
  font-weight: bold;
  text-align: center;
}

.history-info p {
  margin: 0 0 15px 0;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.5;
  padding-left: 10px;
}

.history-info strong {
  color: #003399;
}

.view-flyer {
  display: inline-block;
  background: #003399;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  margin-top: 10px;
  transition: all 0.3s ease;
  align-self: center;
}

.history-link-wrapper:hover .view-flyer {
  background: #B40820;
  transform: translateY(-2px);
}

.history-link {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: #003399;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.history-link:hover {
  background: #B40820;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Sponsoren-Sektion */
.sponsors-section {
  text-align: center;
}

.sponsor-intro {
  max-width: 680px;
  margin: 0 auto 32px auto;
  font-size: 1.05rem;
  color: #555;
}

.sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
}

.sponsor-card {
  background: white;
  border-radius: 14px;
  padding: 24px 28px;
  width: 240px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.sponsor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.15);
}

.sponsor-logo {
  max-width: 160px;
  max-height: 80px;
  object-fit: contain;
}

.sponsor-name {
  font-size: 1rem;
  font-weight: 600;
  color: #003399;
}

/* Buchungs-Sektion */
.booking-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  border: 2px solid rgba(0, 51, 153, 0.1);
}

.booking-section p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #555;
}

.contact-info {
  background: white;
  padding: 25px;
  border-radius: 10px;
  display: inline-block;
  margin-top: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-info p {
  margin-bottom: 10px;
  font-size: 1rem;
}

.contact-info a {
  color: #003399;
  text-decoration: none;
  font-weight: 500;
}

.contact-info a:hover {
  color: #B40820;
  text-decoration: underline;
}

/* Responsive Design */
@media screen and (min-width: 769px) and (max-height: 900px) {
  /* Für Tablets und kleinere Desktop-Bildschirme */
  .schedule-table {
    max-height: 400px;
  }
}

/* Container-Overflow-Fix für alle Bildschirmgrößen */
@media screen and (max-width: 1000px) {
  .history-carousel-container {
    margin: 30px auto;
    max-width: 100%;
    padding: 0 56px;
  }
  
  .carousel-btn {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }
}

@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .dreigestirn-silhouettes {
    gap: 20px;
    padding: 15px;
  }
  
  .silhouette {
    width: 90px;
    height: 90px;
  }
  
  .silhouette-question {
    font-size: 2.5rem;
    top: 35%;
  }
  
  .silhouette-title {
    font-size: 0.85rem;
    bottom: 8px;
  }
  
  .profiles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .history-carousel-container {
    padding: 0 36px;
  }
  
  .carousel-controls {
    position: static;
    transform: none;
    justify-content: center;
    gap: 12px;
    margin: 10px 0 15px;
    padding: 0;
    pointer-events: auto;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  
  .history-carousel {
    padding: 15px 5px;
  }
  
  .history-item {
    flex: 0 0 280px;
    height: auto;
    min-height: 300px;
  }
  
  .history-image {
    height: 160px;
  }
  
  .history-info {
    padding: 15px;
  }
  
  .history-info h4 {
    font-size: 1.2rem;
  }
  
  .history-info p {
    font-size: 0.85rem;
  }
  
  .booking-section {
    padding: 25px;
  }
  
  /* Mobile: Kleinere maximale Höhe für die Terminliste */
  .schedule-table {
    max-height: 350px;
  }
  
  .schedule-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 0;
  }
  
  .schedule-date-column {
    margin-bottom: 8px;
    margin-right: 0;
    min-width: auto;
  }
  
  .schedule-details-column {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .dreigestirn-silhouettes {
    gap: 10px;
  }

  .history-carousel-container {
    padding: 0 28px;
  }
  
  .silhouette {
    width: 80px;
    height: 80px;
  }
  
  .silhouette-question {
    font-size: 2.5rem;
    top: 35%;
  }
  
  .silhouette-title {
    font-size: 0.85rem;
    bottom: 8px;
  }
  
  .schedule-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 0;
  }
  
  .schedule-date-column {
    margin-bottom: 8px;
    margin-right: 0;
    min-width: auto;
  }
  
  .schedule-details-column {
    width: 100%;
  }
  
  .profile-content,
  .profile-header {
    padding: 20px;
  }
  
  .history-carousel {
    padding: 10px 5px;
  }
  
  .history-item {
    flex: 0 0 250px;
    height: auto;
    min-height: 280px;
  }
  
  .history-image {
    height: 140px;
  }
  
  .history-info {
    padding: 12px;
  }
  
  .history-info h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  
  .history-info p {
    font-size: 0.8rem;
    line-height: 1.4;
  }
  
  .view-flyer {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .sponsor-grid {
    gap: 16px;
  }

  .sponsor-card {
    width: 220px;
    padding: 20px 24px;
    min-height: 160px;
  }

  .sponsor-intro {
    font-size: 0.98rem;
  }
}

/* Section Titles - Shared Styles */
.section-title {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
  color: #003399;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #B40820;
}

.content-section {
  margin-bottom: 60px;
  background: var(--block-bg);
  border-radius: 12px;
  padding: 2.5rem 1rem 2rem 1rem;
  box-shadow: 0 2px 16px 0 rgba(0,40,120,0.04);
  border: 1px solid #e0e6f0;
}

.info-section {
  background: transparent;
  padding: 0;
  border-radius: 0;
  margin: 0;
}
.social-feeds-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
}

.instagram-embed-wrapper,
.facebook-embed-wrapper {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px 0 rgba(0,40,120,0.07);
  border: 1px solid #e0e6f0;
  max-width: 400px;
  flex: 1 1 320px;
  min-width: 280px;
  padding: 1rem;
}

/* Animation für Hover-Effekte */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.profile-card:hover .profile-crown {
  animation: bounce 0.6s ease-in-out;
}