.audio-header {
    text-align: left;
    margin-bottom: 1px;
    font-size: 14px;
    font-family: 'Josefin Sans'; 
    font-weight: 600; 
}


.audio-player-container {
    display: flex;
    align-items: center;
    border-radius: 8px;
    background-color: #f2f2f2;
    padding: 0px; 
    border: 1px solid #d3d3d3; 
}

.audio-play-icon {
    width: 60px; 
    height: 60px; 
    background-color: #C62641;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px 0 0 8px;
    color: white;
    margin-right: 15px; 
}
 
.audio-info {
    flex-grow: 1;
    display: flex;
    align-items: center;
    font-family: 'Josefin Sans'; 
    font-weight: 600; 
    font-size: 18px; 
    font-weight: bold; 
    justify-content: space-between;
}

.audio-progress-bar {
    background-color: #747474;
    flex-grow: 1;
    height: 5px;
    border-radius: 5px;
    margin: 0 20px;
    /*margin: 0 25px;*/
    position: relative;
    width: calc(100% - 120px); 
    z-index: 1;
    position: relative;
    cursor: pointer;
}

.audio-progress {
    background-color: #C62641;
    width: 20%;
    height: 100%;
    border-radius: 5px;

}


.volume-slider {
    display: none; /* Versteckt den Lautstärke-Slider standardmäßig */
    -webkit-appearance: none;
    width: 100px;
    height: 5px;
    background: #505050;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s; 
    margin-right: 10px;
}




.volume-slider:hover {
    opacity: 1;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: #C62641; /* Rot */
    cursor: pointer;
    border-radius: 50%;
}

.volume-slider::-moz-range-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: #C62641; /* Rot */
    cursor: pointer;
    border-radius: 50%;
}



.audio-container {
    width: 100%;
    /*margin-bottom: 10px !important;*/
    /*margin-bottom: 40px;*/
    /*margin-bottom: calc(40px - (12.5px/2));*/
    margin-bottom: calc(50px - 5px);
}

.volume-control i.fa {
    font-size: 28px; 
    margin-right: 10px;
}

.fa {
 
    font-size: 28px !important;

}

.audio-pointer {
    background-color: #C62641; /* Rote Farbe für den Pointer */
    width: 15px; /* Breite des Pointers */
    height: 15px; /* Höhe des Pointers */
    position: absolute; /* Absolute Positionierung innerhalb des Fortschrittsbalkens */
    left: -1.5%; /* Startposition des Pointers */
    top: -5.5px; /* Zentriert den Pointer vertikal */
    border-radius: 50%; /* Macht den Pointer kreisförmig */
    z-index: 2; /* Stellt sicher, dass der Pointer über dem Fortschrittsbalken liegt */
}

.volume-control .fa-volume-up {
    color: #535353; 
}

.volume-control i {
    vertical-align: middle;
}

.volume-control i:before {
    width: 26px;
    display: inline-block;
}




.audio-info span:not(.slash) {
    /*width: 45px;*/
    /*line-height: 100%;*/
    flex-basis: 7%;
    text-align: center;
}

.audio-info span {
    line-height: 100%;
}

.audio-info .slash {
    margin: 0 5px;
}

@media screen and (max-width: 768px) {
    .audio-info span:not(.slash) {
        flex-basis: 12%;
    }

    .audio-container {
        margin-bottom: calc(40px - 5px);
    }

}

@media screen and (max-width: 430px){
    .audio-header {
        font-size: 12px;
    }
    .audio-play-icon {
        width: 50px;
        height: 50px;
        margin-right: 7px;
    }

    .audio-play-icon i  {
        font-size: 25px !important;
    }

    .audio-info {
        font-size: 14px;
    }

    .audio-info span {
        margin-top: 1px;
    }

    .audio-progress-bar {
        margin: 0 10px 0 12px;
    }


    .audio-pointer {
        left: -5.5%;
    }

    .audio-info .slash {
        margin: 0 2px;
    }

}
/* Abstand zwischen dem gesamten .audio-info-Block und dem Volume-Icon */
.audio-player-container .audio-info {
    margin-right: 12px;
}

/* Download-Link im .audio-info: saubere Zentrierung */
.audio-player-container .audio-info .download-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 0;
}

/* Icon im Link in Chrome/Safari sichtbar nach unten schieben */
.audio-player-container .audio-info .download-control .fa-download {
    display: block;
    font-size: 28px;
    color: #535353;
    transform: translateY(6px); /* bei Bedarf 4–8px justieren */
}
.download-icon {
    cursor: pointer !important;
    color: #535353;
    font-size: 28px;
    line-height: 0;           /* vermeidet zusätzliche Zeilenhöhe */
    transform: translateY(6px); /* optische Verschiebung nach unten (Safari/Chrome stabil) */
}
.download-icon:hover { opacity: .8; }


/* HYPERMADE desktop controls v1.0.1 — 15px spacing; mobile layout retained. */
.audio-container .hp-audio-rewind,
.audio-container .audio-info .hp-audio-speed {
  display: none;
}
@media screen and (min-width: 769px) {
  .audio-container .hp-audio-desktop .audio-play-icon {
    flex: 0 0 60px;
    margin-right: 0;
  }
  .audio-container .hp-audio-desktop .hp-audio-rewind {
    appearance: none;
    display: inline-flex;
    position: relative;
    align-items: center;
    justify-content: center;
    flex: 0 0 25px;
    width: 25px;
    height: 44px;
    min-width: 0;
    padding: 0;
    margin: 0 13px 0 15px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    box-shadow: none;
    color: #535353;
    cursor: pointer;
    line-height: 1;
  }
  .audio-container .hp-audio-rewind svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .audio-container .hp-audio-rewind span {
    position: absolute;
    top: 17px;
    left: 0;
    width: 100%;
    font: 600 11px/1 Arial, sans-serif;
  }
  .audio-container .hp-audio-rewind::after {
    content: '';
    position: absolute;
    inset: 0 -10px;
  }
  .audio-container .hp-audio-desktop .audio-info {
    min-width: 0;
    flex: 1 1 0;
    justify-content: flex-start;
    margin-right: 15px;
    font-size: 0;
  }
  .audio-container .hp-audio-desktop .audio-info > span:not(.hp-audio-speed) {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 18px;
  }
  .audio-container .hp-audio-desktop .audio-progress-bar {
    flex: 1 1 0;
    min-width: 30px;
    width: auto;
    margin: 0 15px 0 19px;
    margin-right: 15px !important; /* Overrides the previous inline theme correction. */
  }
  .audio-container .hp-audio-desktop .audio-info > .hp-audio-speed {
    display: inline-flex;
    align-items: center;
    position: relative;
    flex: 0 0 62px;
    width: 62px;
    height: 32px;
    margin: 0 15px 0 0;
    line-height: 1;
  }
  .audio-container .hp-audio-speed select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0 21px 0 4px;
    box-sizing: border-box;
    border: 2px solid #aaa;
    border-radius: 7px;
    box-shadow: none;
    background: transparent;
    color: #535353;
    font: 600 14px/1 Arial, sans-serif;
    text-align: center;
    cursor: pointer;
  }
  .audio-container .hp-audio-speed select {
    color: transparent;
  }
  .audio-container .hp-audio-speed select option {
    color: #535353;
    background: #fff;
  }
  .audio-container .hp-audio-speed .hp-audio-speed-label {
    position: absolute;
    left: 6px;
    right: 22px;
    top: -2px;
    bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    flex: 0 0 auto;
    color: #535353;
    font: 600 14px/1 Arial, sans-serif;
    pointer-events: none;
  }
  .audio-container .hp-audio-speed .hp-audio-speed-number {
    flex: 0 0 auto;
    line-height: 1;
  }
  .audio-container .hp-audio-speed-label svg {
    position: relative;
    top: 2.5px;
    left: 1px;
    display: block;
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: butt;
  }
  .audio-container .hp-audio-speed::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 11px;
    width: 13px;
    height: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 10'%3E%3Cpath d='M1.3 1.8L6.5 7.8L11.7 1.8' fill='none' stroke='%23535353' stroke-width='2.4' stroke-linecap='butt' stroke-linejoin='miter'/%3E%3C/svg%3E") center / 13px 10px no-repeat;
    pointer-events: none;
  }
  .audio-container .hp-audio-desktop .download-icon {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    left: 0;
    right: auto;
    margin-right: 15px;
    transform: none;
  }
  .audio-container .hp-audio-desktop .download-icon::after {
    -webkit-mask-size: 39px 39px;
    mask-size: 39px 39px;
  }
  .audio-container .hp-audio-desktop .volume-control {
    flex: 0 0 auto;
    left: 0;
    right: auto;
  }
  .audio-container .hp-audio-desktop .volume-control i.fa {
    margin-right: 0;
    font-size: 26px !important;
  }
  .audio-container .hp-audio-desktop .volume-control i::before {
    width: 24px;
  }
  .audio-container .hp-audio-rewind:hover { color: #c62641; }
  .audio-container .hp-audio-rewind:focus-visible,
  .audio-container .hp-audio-speed select:focus-visible {
    outline: 2px solid #c62641;
    outline-offset: 2px;
  }
}

/* Temporary presentation switch: keep both controls and their logic intact. */
.audio-container .hp-audio-desktop .hp-audio-rewind,
.audio-container .hp-audio-desktop .audio-info > .hp-audio-speed {
  display: none;
}
@media screen and (min-width: 769px) {
  .audio-container .hp-audio-desktop .audio-play-icon {
    margin-right: 15px;
  }
}
