@font-face {
  font-family: 'Array';
  src: url('../assets/Array-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Array';
  src: url('../assets/Array-Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Array';
  src: url('../assets/Array-BoldWide.otf') format('opentype');
  font-weight: bold;
   font-stretch: expanded;
  font-style: normal;
}

@font-face {
  font-family: 'Array';
  src: url('../assets/Array-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Array';
  src: url('../assets/Array-SemiboldWide.otf') format('opentype');
  font-weight: 600;
  font-stretch: expanded;
  font-style: normal;
}

@font-face {
  font-family: 'Array';
  src: url('../assets/Array-Wide.otf') format('opentype');
  font-weight: normal;
  font-stretch: expanded;
  font-style: normal;
}

:root {
  --bg-color: #0a0a0a;
  --card-bg: rgba(25, 25, 25, 0.8);
  --text-color: #fff;
  --secondary-text: #ccc;
  --accent-color: #007bff;
  --border-color: #2a2a2a;
}

[data-theme="light"] {
    --bg-color: #f0f2f5;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-color: #333;
    --secondary-text: #666;
    --accent-color: #0056b3;
    --border-color: #e0e0e0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

body {
  font-family: 'Array', sans-serif;
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 0.9em;
    background-color: var(--bg-color);
    overflow: hidden;
    position: relative;
  }
  .container {
  display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

.reflection-container {
  position: absolute;
    top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  perspective: 1000px;
  width: 100%;
  max-width: 600px;
  cursor: default;
    z-index: 2;
  }

 .profile-cards-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Abstand zwischen den Karten */
    position: relative;
    z-index: 4;
}

    .profile-card {
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 0px;
        padding: 10px 15px;
        text-align: left;
        max-width: 600px;
        width: 580px;
        height: 180px;
        transform-style: preserve-3d;
        transition: transform 0.3s ease-out, box-shadow 0.4s ease;
        position: relative;
        z-index: 3;
        pointer-events: initial;
        display: flex;
        align-items: center;
        gap: 15px;
      justify-content: space-between;
        display: inline-block;
         flex-direction: row-reverse;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

.profile-card-small {
      width: 480px;
        height: 100px;
    }

  .profile-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        transform: translateY(-0px);
  }

.profile-image {
    width: 100px; /* Geänderte Breite */
    height: 100px; /* Geänderte Höhe */
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
    position: relative;
    margin-top: 0;
}

.profile-image:hover {
  transform: scale(1.05);
}

.name-and-logo {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  width: 100%;
  flex-direction: row;
 }

.name {
  margin: 0;
  font-size: 1.5em;
  color: #000;
    font-weight: bold;
    white-space: nowrap;
    position: relative;
    top: 0;
    margin-left: 10px;
    text-shadow: none;
     font-family: 'Array', sans-serif;
}

.title {
  margin: 0 0 15px 0;
  color: #444;
    font-size: 1em;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
      display: none;
}

.bio {
    margin: 0;
    font-size: 1.4em;
    line-height: 1.3;
    color: #000;
    white-space: nowrap;
    margin-top: -5px;  /* Negativer Wert für die Verschiebung nach oben */
    text-align: center;
    text-shadow: none;
  }


.social-links {
    display: flex;
    width: 100%;
    position: relative;
    top: 0;
     justify-content: flex-end;
  }

.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1em;
    color: #fff;
    margin: 0 5px;
    text-decoration: none;
    transition: color 0.3s ease;
    border-radius: 5px;
    width: 25px;
    height: 25px;
    position: relative;
    z-index: 5;
    pointer-events: auto;
    text-shadow: none;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    color: red;
  border-color: red;
}

 /* Accessibility Improvements */
.skill:focus-within,
.social-icon:focus,
.view-button:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Audio Controls */
.audio-controls {
    top: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    position: fixed;
    border: none;
    border-radius: 10px;
    padding: 5px 8px;
    background-color: transparent; /* Hintergrund auf transparent gesetzt */
    flex-direction: row;
        justify-content: center;
    color: #fff; /* Schriftfarbe auf weiß gesetzt */
}

#audio-controls input[type="range"],
#volume-slider {
  -webkit-appearance: none;
  appearance: none;
    width: 100px;
  height: 6px;
  background: #2a2a2a;
  border-radius: 3px;
    outline: none;
    cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
  background: #fff;
    cursor: pointer;
}

#play-btn {
  background-color: transparent;
  border: none;
    border-radius: 50%;
    width: 35px;
  height: 35px;
  cursor: pointer;
  text-align: center;
    font-size: 1em;
    line-height: 35px;
  transition: all 0.3s ease;
      border-color: #fff;
}

#play-btn:hover {
  border-color: var(--accent-color);
  color: black;
}


#volume-slider {
  order: 2;
}

/* 3D Hover Effect */
.reflection-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

.reflection-grid-cell {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.reflection-grid-cell:hover ~ .profile-card {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Stelle sicher, dass interaktive Elemente über dem Grid liegen */
.social-icon,
.skill,
.view-button,
button,
a,
input {
  position: relative;
    z-index: 5;
    pointer-events: auto;
}

/* Fixed elements get highest z-index */
.audio-controls{
    z-index: 1000;
    position: fixed;
}

#background-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    object-fit: cover;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

    .profile-card-button {
          cursor: pointer;
          border: none;
       background-color: transparent;
          pointer-events: auto;
          z-index: 4;
           margin-top: 10px;
    }

  .play-icon{
        width: 20px;
         height: 20px;
      filter: invert(1);
      opacity: 0.6;
         display: block;
          margin: auto;
    background-color: transparent; /* Hinzugefügt */
     }