:root {
  --corporate-dark: #F8F9FB;
  --corporate-orange: #C6007E;
}

* {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  touch-action: pan-x pan-y;
}

input, textarea {
  -webkit-user-select: text;
  -khtml-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

body {
  margin: 0;
  padding: 20px;
  background: var(--corporate-dark);
  color: black;
  font-family: Arial, sans-serif;
  min-height: 100vh;
}

/* Verhindere Body-Scrolling wenn Intro angezeigt wird */
body.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  padding: 0; /* Entferne padding für Vollbild-Intro */
}

/* Media Sections */
.media-sections {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Verstecke Hauptinhalt während Intro */
body.no-scroll .media-sections {
  opacity: 0;
  pointer-events: none;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  margin: 0;
  color: var(--corporate-orange);
}

.media-section {
  margin-bottom: 40px;
  background: rgba(255, 255, 255, 1);
  border-radius: 8px;
  padding: 20px;
  position: relative;
}

.media-section h2 {
  color: var(--corporate-orange);
  margin-top: 0;
  margin-bottom: 20px;
  min-height: 1.5em; /* Gleiche Höhe wie im HTML für data-i18n */
  display: flex;
  align-items: center; /* Vertikale Zentrierung */
}

.media-container {
  position: relative;
}

/* Controls */
.control-button {
  background: white;
  border: 1px solid var(--corporate-orange);
  color: var(--corporate-orange);
  padding: 8px 0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 16px;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* Hover-Effekte für Desktop */
@media (hover: hover) and (pointer: fine) {
  .control-button:hover:not(:disabled) {
    /* Setze Hover-Hintergrund auf 30% corporate-orange */
    background: color-mix(in srgb, var(--corporate-orange) 30%, transparent);
    /* Ändere Textfarbe auf weiß */
    color: white;
  }
  
  /* Stelle sicher, dass auch das Icon im Button weiß wird */
  .control-button:hover:not(:disabled) i {
    color: white;
  }
}

.control-button i {
  color: var(--corporate-orange);
  font-size: 18px;
  line-height: 1;
}

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

/* Playlist */
.playlist {
  margin-top: 20px;
  background: var(--corporate-dark);
  border-radius: 8px;
  padding: 10px;
  height: calc((10px + 10px + 1px) * 8);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--corporate-orange) rgba(255, 170, 58, 0.1);
}

.playlist::-webkit-scrollbar {
  width: 8px;
  background: rgba(255, 170, 58, 0.1);
  border-radius: 4px;
}

.playlist::-webkit-scrollbar-thumb {
  background: var(--corporate-orange);
  border-radius: 4px;
  min-height: 40px;
}

.playlist::-webkit-scrollbar-track {
  background: rgba(255, 170, 58, 0.1);
  border-radius: 4px;
}

.playlist-item {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-item:hover {
  background: color-mix(in srgb, var(--corporate-orange) 10%, transparent);
  color: var(--corporate-orange);
}

.playlist-item.active {
  background: color-mix(in srgb, var(--corporate-orange) 20%, transparent);
  color: var(--corporate-orange);
}

/* Language Selector */
.language-selector {
  position: absolute;
  top: -50px; /* Positionierung über dem Container */
  right: 0;
  z-index: 10;
}

/* Gemeinsames Dropdown Styling */
.styled-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--corporate-orange);
  color: var(--corporate-orange);
  padding: 8px 12px;
  border-radius: 4px;
  width: 150px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C6007E' stroke='%23C6007E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 1em;
  padding-right: 2.5rem;
  text-align: left;
  padding-left: 16px;
}

.styled-select:focus {
  outline: none;
  border-color: var(--corporate-orange);
  box-shadow: 0 0 0 2px rgba(255, 170, 58, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C6007E' stroke='%23C6007E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' style='transform: rotate(180deg)'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Dropdown Options Styling - alle möglichen Selektoren */
select.custom-select option,
.language-select option,
.language-dropdown option,
.styled-select option {
  background: #FFFFFF !important; /* Weißer Hintergrund für besseren Kontrast */
  background-color: #FFFFFF !important;
  color: var(--corporate-orange) !important; /* Corporate Orange für konsistentes Design */
  text-align: left;
  padding: 8px 16px;
  font-size: inherit;
}

/* Browser-spezifische Fixes für option-Elemente - alle Selektoren */
select.custom-select option:hover,
.language-select option:hover,
.language-dropdown option:hover,
.styled-select option:hover,
select.custom-select option:focus,
.language-select option:focus,
.language-dropdown option:focus,
.styled-select option:focus,
select.custom-select option:checked,
.language-select option:checked,
.language-dropdown option:checked,
.styled-select option:checked {
  background: var(--corporate-orange) !important;
  background-color: var(--corporate-orange) !important;
  color: #FFFFFF !important;
}

/* PDF Section ausblenden */
.pdf-section {
  display: none !important;
}

/* Mobile Styles */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .section-header {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .language-selector {
    top: -50px;
    right: 0;
  }

  .styled-select {
    font-size: 14px;
    padding: 6px 10px;
    padding-right: 2.5rem;
    width: 120px;
  }

  /* Mobile Dropdown Options - alle Selektoren */
  select.custom-select option,
  .language-select option,
  .language-dropdown option,
  .styled-select option {
    font-size: 14px;
    padding: 8px;
    background: #FFFFFF !important; /* Weißer Hintergrund für besseren Kontrast */
    background-color: #FFFFFF !important;
    color: var(--corporate-orange) !important; /* Corporate Orange für konsistentes Design */
    text-align: left;
    min-height: 1.2em;
  }
  
  /* Browser-spezifische Fixes für Mobile - alle Selektoren */
  select.custom-select option:hover,
  .language-select option:hover,
  .language-dropdown option:hover,
  .styled-select option:hover,
  select.custom-select option:focus,
  .language-select option:focus,
  .language-dropdown option:focus,
  .styled-select option:focus,
  select.custom-select option:checked,
  .language-select option:checked,
  .language-dropdown option:checked,
  .styled-select option:checked {
    background: var(--corporate-orange) !important;
    background-color: var(--corporate-orange) !important;
    color: #FFFFFF !important;
  }

  .network-canvas {
    display: none;
  }

  /* Deaktiviere Hover-Effekte für mobile Geräte - setze Hintergrund auf weiß zurück */
  .control-button:hover:not(:disabled),
  .control-button:active:not(:disabled) {
    background: white; /* <-- Auf weiß ändern */
    color: var(--corporate-orange);
  }


    /* Stelle sicher, dass Icons IMMER blau bleiben auf Mobile */
    .control-button i,
    .control-button:hover i,
    .control-button:active i,
    .control-button:focus i {
      color: var(--corporate-orange) !important;
    }


}

/* Network Animation */
.network-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 0.5s ease;
}

.network-canvas.hidden {
  opacity: 0.5;
} 