/* Tablet Styles für LumiVitae */

/* Importiere die gemeinsamen Styles */
@import url('styles.css');

/* Tablet-spezifische Stile */
@media (min-width: 769px) and (max-width: 1023px) {
  /* Tablet-Hintergrundbilder mit weicherem Übergang - Wird später durch spezifischere Regeln überschrieben */
  body.tablet-view {
    position: relative;
    overflow-x: hidden;
  }
  
  /* Lade-Animation */
  body.loading {
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  
  body:not(.loading) {
    opacity: 1;
  }
  
  /* Video-Container für Hero-Section - an Tablet angepasst */
  .hero-section .video-container {
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    max-width: 90%;
    background-color: #000;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Hero Section mit Video */
  .hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Special Title für Tablet-Ansicht */
  body.tablet-view .special-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  }
  
  /* Scroll-Indicator Styles */
  body.tablet-view .mobile-scroll-indicator {
    position: relative;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
  }
  
  body.tablet-view .scroll-text {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: white;
  }
  
  body.tablet-view .arrow-down {
    animation: bounce 2s infinite;
  }
  
  /* Content Section Visibility */
  .content-section {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }
  
  .content-section.visible {
    opacity: 1;
    visibility: visible;
  }
  
  /* Feature Section Layout */
  .feature-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  
  /* Hauptvideo über den Feature-Boxen */
  .video-container.main-video {
    width: 100%;
    max-width: none;
    margin-bottom: 30px;
    padding-top: 48%; /* Angepasstes Seitenverhältnis für Tablets */
  }
  
  .feature-item {
    width: 48%;
    background: rgba(0, 30, 60, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  }
  
  /* Zentrierte Feature-Box */
  .centered-feature {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Feature Images */
  .feature-image-container {
    height: 180px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
  }
  
  .feature-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  /* Feature Info Text */
  .feature-info {
    padding: 15px;
    color: white;
    text-align: center;
  }
  
  .feature-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--accent-color);
    letter-spacing: 1px;
    position: relative;
  }
  
  .feature-info h3:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--accent-color);
  }
  
  .feature-info h4 {
    font-size: 1.05rem;
    color: white;
    margin-bottom: 8px;
  }
  
  .feature-info p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.85);
  }
  
  /* Revolutionary Content Section */
  .revolutionary-content, .studies-content {
    background: rgba(0, 30, 60, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    color: white;
    margin-bottom: 25px;
  }
  
  /* Überschriften in dunklen Boxen */
  .revolutionary-content .section-title,
  .studies-content .section-title {
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    width: 100%;
    font-size: 2rem;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  }
  
  /* Study Cards */
  .study-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
  }
  
  .study-card {
    background: rgba(0, 30, 60, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
  }
  
  .study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  .study-icon {
    font-size: 30px;
    color: var(--accent-color);
    margin-bottom: 15px;
    text-align: center;
  }
  
  .study-card h3 {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-align: center;
  }
  
  .study-source {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-top: 10px;
    text-align: right;
  }
  
  /* Website Link */
  body.tablet-view .website-link {
    text-align: center;
    margin: 20px auto;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  body.tablet-view .website-link a {
    display: inline-block;
    padding: 8px 16px;
    background-color: transparent;
    color: white;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-size: 1rem;
  }
  
  body.tablet-view .website-link a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* Mini Player für Tablet */
  .mini-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 180px;
    height: 101px; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
    display: none;
    transition: all 0.3s ease;
  }
  
  .mini-player:hover {
    transform: scale(1.05);
  }
  
  .mini-player-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 12px;
    padding: 4px;
    text-align: center;
  }
  
  /* AI Assistant Box */
  .ai-assistant-box {
    background: rgba(0, 30, 60, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  }
  
  /* Antwortbereich für KI auf Tablets anpassen */
  body.tablet-view .response-box .response-text p,
  body.tablet-view .response-box .response-text li {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.95);
  }
  
  /* Bei Landscape-Ausrichtung etwas größere Schrift */
  @media (orientation: landscape) and (min-width: 769px) and (max-width: 1023px) {
    body.tablet-view .response-box .response-text p,
    body.tablet-view .response-box .response-text li {
      font-size: 1rem;
    }
  }
  
  .ai-assistant-intro-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
  }
  
  .ai-info {
    flex: 1;
    min-width: 280px;
  }
  
  .ai-cta {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .ai-cta-image {
    max-width: 220px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .question-banner {
    display: none; /* Versteckt auf Tablet */
  }
  
  /* Fragen-Banner in der unteren rechten Ecke */
  .question-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 90px;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
  }
  
  .question-banner:hover {
    transform: scale(1.05);
  }
  
  /* Spezifische Anpassungen für Tablet-Layouts */
  @media (orientation: landscape) and (min-width: 769px) and (max-width: 1023px) {
    /* Landscape-spezifischer Hintergrund mit lumi-sabine-breit.jpeg */
    body.tablet-view {
      background-image: 
        url('../images/green.webp'),
        linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent),
        url('../images/lumi-sabine-breit.jpeg');
      background-size: auto 100%, 30% 100%, auto 100%;
      background-position: left center, 50% center, right center;
      background-repeat: no-repeat, no-repeat, no-repeat;
      background-attachment: fixed, fixed, fixed;
    }
    
    .hero-section {
      min-height: 80vh;
    }
    
    .feature-row {
      display: flex;
      justify-content: space-between;
    }
    
    .feature-item {
      width: 48%;
    }
    
    .centered-feature {
      width: 60%;
    }
  }
  
  @media (orientation: portrait) and (min-width: 769px) and (max-width: 1023px) {
    /* Portrait-spezifischer Hintergrund - ähnlich wie in der Mobile-Ansicht */
    body.tablet-view {
      background-color: #041a42 !important;
      background-image: none !important;
      background-attachment: scroll !important;
      position: relative;
    }
    
    /* Pseudo-Element für fixiertes Hintergrundbild - wie in mobile.css */
    body.tablet-view::before {
      content: "";
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      width: 100%;
      height: 100%;
      z-index: -10;
      background-image: url('../images/green.webp') !important;
      background-size: cover !important;
      background-position: center center !important;
      background-repeat: no-repeat !important;
      opacity: 0.9;
      pointer-events: none;
      transform: translateZ(0);
      -webkit-transform: translateZ(0);
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
      will-change: transform;
    }

    /* Explizit die .bg-left Klasse in der Tablet-Portrait-Ansicht verstecken */
    body.tablet-view .bg-left,
    body.tablet-view .bg-gradient,
    body.tablet-view .bg-right {
      display: none !important;
      opacity: 0 !important;
      visibility: hidden !important;
    }
    
    /* Zusätzliche Regeln, um jegliche Hintergrundbilder auf dem body zu entfernen */
    html body.tablet-view {
      background: #041a42 !important;
      background-image: none !important;
      background-color: #041a42 !important;
    }
    
    /* Besondere Anpassung für iPad Pro */
    @supports (-webkit-touch-callout: none) {
      body.tablet-view {
        background: #041a42 !important;
        background-image: none !important;
        background-color: #041a42 !important;
      }
      
      /* Entfernt alle möglichen Hintergrundbilder auf allen Ebenen */
      body.tablet-view * {
        background-image: none !important;
      }
      
      body.tablet-view::after {
        display: none !important;
      }
    }
    
    .hero-section {
      min-height: 50vh;
    }
    
    .feature-item {
      width: 100%;
      margin-bottom: 15px;
    }
    
    .centered-feature {
      width: 100%;
    }
    
    .study-grid {
      grid-template-columns: 1fr;
    }
  }
}

/* Animation für den Pfeil nach unten */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
} 