/* Intro Overlay */
.intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--corporate-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1100;
  opacity: 1;
  transition: opacity 0.5s;
  /* Safe area support für Geräte mit Notches */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  box-sizing: border-box;
}

.intro-content {
  text-align: center;
  max-width: 600px;
  width: 90%;
  padding: 30px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--corporate-orange);
  position: relative;
  height: 600px; /* Feste Höhe */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.welcome-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.welcome-content h1 {
  color: var(--corporate-orange);
  margin-bottom: 20px;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.welcome-content .description-wrapper {
  max-height: 40vh; /* Dynamische Höhe basierend auf Viewport */
  min-height: 150px; /* Minimum Höhe für kleine Geräte */
  position: relative;
  overflow: hidden; /* Container selbst hat kein Overflow */
}

.welcome-content .description-text {
  height: 100%;
  overflow-y: auto; /* Auto statt scroll für iOS */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling auf iOS */
  padding: 0 20px 20px 20px; /* Extra padding unten für Gradient */
  margin: 0;
  line-height: 1.6;
  text-align: left;
  /* Scrollbar Styling */
  scrollbar-width: thin;
  scrollbar-color: var(--corporate-orange) rgba(255, 255, 255, 0.1);
}

.welcome-content .description-text::-webkit-scrollbar {
  width: 8px;
}

.welcome-content .description-text::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.welcome-content .description-text::-webkit-scrollbar-thumb {
  background-color: var(--corporate-orange);
  border-radius: 3px;
}

.welcome-content .description-text::-webkit-scrollbar-thumb:hover {
  background: #a00562; /* Dunklere Corporate-Farbe beim Hover */
}

/* Gradient am unteren Rand für Scroll-Indikator */
.welcome-content .description-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to bottom, transparent, white);
  pointer-events: none;
  z-index: 1;
}

.welcome-content p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.welcome-content .contact-info {
  margin-top: 20px;
  padding: 10px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.welcome-content .contact-info .contact-text {
  color: var(--corporate-orange);
}

.welcome-content .contact-info a {
  color: var(--corporate-orange);
  text-decoration: none;
}

.welcome-content .contact-info a:hover {
  text-decoration: underline;
}

/* Start Button */
.start-button {
  background: white;
  border: 1px solid var(--corporate-orange);
  color: var(--corporate-orange);
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  min-width: 200px;
  overflow: hidden;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem auto 0;
}

@media (hover: hover) {
  .start-button:hover {
    background: color-mix(in srgb, var(--corporate-orange) 30%, transparent);
    color: white;
  }
  .start-button:hover .circle {
    background: white;
  }
}

.start-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.loading-animation {
  position: absolute;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: all 0.3s;
  justify-content: center;
  align-items: center;
}

.circle {
  width: 8px;
  height: 8px;
  background: var(--corporate-orange);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
  transition: background 0.3s;
}

.circle:nth-child(2) {
  animation-delay: 0.2s;
}

.circle:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(0.5);
    opacity: 0.5;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

.button-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
  width: 100%;
}

.start-button.loading .button-content .button-text {
  opacity: 0;
  visibility: hidden;
}

.start-button.loading .loading-animation {
  opacity: 1;
}

.button-text {
  display: inline-block;
  transition: all 0.3s;
  opacity: 1;
}

/* Behalte die Positions-Styles für .language-dropdown, aber entferne Aussehens-Styles */
.language-dropdown {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  /* Entfernt: background, border, color, padding, width, font-size, cursor, transition, appearance, background-image, etc. */
  /* Behalte spezifische Eigenschaften, die nicht von .styled-select abgedeckt sind, falls nötig. z.B.: */
  text-transform: uppercase; /* War spezifisch hier, behalte es bei */
}

/* Behalte mobile Positions-Anpassungen */
@media (max-width: 768px) {
  .language-dropdown {
    top: 10px;
    right: 10px;
    /* Entfernt: font-size, padding, width, appearance */
  }
}

/* Entferne: :hover, :focus, :active, option Styles - werden von .styled-select gehandhabt */

/* Profile Image */
.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 20px auto;
  overflow: hidden;
  border: 2px solid var(--corporate-orange);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0; /* Verhindert das Quetschen */
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* Überschreibe Safe-Area padding für kleinere Screens */
  .intro-overlay {
    padding: 0;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  .start-button {
    background: white;
    color: var(--corporate-orange);
    border: 2px solid var(--corporate-orange);
    height: 56px; /* Größere Touch-Area für Mobile */
    min-width: 80%; /* Breiter auf Mobile */
    font-size: 18px; /* Größerer Text */
    margin: 0 auto; /* Kein top margin, nur zentriert */
    flex-shrink: 0; /* Verhindert Schrumpfen */
  }
  
  .start-button:active {
    background: var(--corporate-orange);
    color: var(--corporate-dark);
  }
  
  .start-button:active .circle {
    background: var(--corporate-dark);
  }

  .intro-content {
    width: 90%;
    height: calc(100% - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px);
    min-height: unset;
    max-height: 90%;
    padding: 20px;
    margin: 10px auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Inhalt oben starten */
  }

  .welcome-content {
    padding: 10px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Verhindert Überlauf */
  }

  .welcome-content h1 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .welcome-content p {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 15px;
  }

  .welcome-content .description-wrapper {
    flex: 1 1 auto; /* Nimmt verfügbaren Platz */
    min-height: 100px;
    max-height: none; /* Keine Begrenzung */
    overflow: hidden;
    margin-bottom: 15px; /* Abstand zum Button */
  }
  
  .welcome-content .description-text {
    font-size: 14px;
    padding: 0 15px 20px 15px;
  }

  .profile-image {
    width: 100px;
    height: 100px;
    min-height: 100px; /* Verhindert das Quetschen */
    margin: 15px auto;
    flex-shrink: 0; /* Verhindert das Quetschen */
  }
  
  .welcome-content .contact-info {
    margin-top: 10px; /* Weniger Abstand auf Mobile */
    padding: 5px;
    flex-shrink: 0; /* Verhindert Schrumpfen */
  }
}

/* Entferne die alten Sprachumschaltungs-Buttons */
.language-switch {
  display: none;
} 