:root {
    --default-background-H: 221;
    --default-background-S: 33%;
    --default-background-L: 20%;
    --primary-color: #00C4B4;
    --primary-hover: #00A89A;
    --error-color: #FF5555;
    --text-color: #FFFFFF;
    --secondary-text: #A0A0A0;
    --default-bkg: hsl(221, 33%, 20%);
}

body {
    margin: 0;
    min-height: 100vh;
    background: hsl(var(--default-background-H), var(--default-background-S), var(--default-background-L));
    font-family: Verdana, Arial, sans-serif;
}

.center-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* Ensures the wrapper takes up full viewport height */
}

.login-container {
    width: 300px;
    padding: 40px;
    border-radius: 20px;
    border: 8px solid hsl(var(--default-background-H), var(--default-background-S), var(--default-background-L));
    box-shadow: -5px -5px 15px rgba(255, 255, 255, 0.1), 5px 5px 15px rgba(0, 0, 0, 0.35),
        inset -5px -5px 15px rgba(255, 255, 255, 0.1), inset 5px 5px 15px rgba(0, 0, 0, 0.35);
    background: hsl(var(--default-background-H), var(--default-background-S), var(--default-background-L));
    text-align: center;
}

h2 {
    color: var(--text-color);
    font-size: 24px;
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 12px 10px 12px 48px;
    border-radius: 25px;
    background: hsl(var(--default-background-H), var(--default-background-S), var(--default-background-L));
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    font-size: 16px;
    box-shadow: -5px -5px 15px rgba(255, 255, 255, 0.1), 5px 5px 15px rgba(0, 0, 0, 0.35);
    transition: 0.5s;
    outline: none;
    box-sizing: border-box;
}

.input-group input:focus {
    border: 2px solid var(--primary-color);
}

.input-group input:invalid:not(:focus):not(:placeholder-shown) {
    border: 2px solid var(--error-color);
}

/* Hide the placeholder visually but keep it for accessibility */
.input-group input::placeholder {
    opacity: 0;
}

.input-group input:focus~.label,
.input-group input:not(:placeholder-shown)~.label {
    border: 1px solid var(--primary-color);
    background: hsl(var(--default-background-H), var(--default-background-S), var(--default-background-L));
    transform: translateX(25px) translateY(-15px);
    font-size: 0.8em;
    padding: 0 8px;
    border-radius: 10px;
    letter-spacing: 0.1em;
}

.input-group .icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1em;
    padding-right: 0.5em;
    border-right: 1px solid var(--primary-color);
}

.input-group .label {
    position: absolute;
    left: 5px;
    top: 5px;
    padding: 12px 10px 12px 48px;
    pointer-events: none;
    font-size: 1em;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: hsla(0, 100%, 100%, 0.5);
    border-radius: 25px;
    transition: 0.5s;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 25px;
    color: hsl(var(--default-background-H), var(--default-background-S), var(--default-background-L));
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-btn:hover,
.login-btn:focus {
    background-color: var(--primary-hover);
}

.login-btn:focus {
    outline: 3px solid var(--primary-hover);
    outline-offset: 2px;
}

.register-link {
    margin-top: 20px;
    color: var(--secondary-text);
    font-size: 14px;
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
}

.register-link a:hover,
.register-link a:focus {
    text-decoration: underline;
}

.register-link a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.error-container {
    margin-bottom: 15px;
}

.error {
    color: var(--error-color);
    font-size: 14px;
    margin-bottom: 10px;
    animation: shake 0.5s;
}

.language-switcher {
    position: relative;
    color: gold;  
   z-index: 500;
}

.language-switcher a.lang-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 4px 8px;
    transition: color 0.3s ease;
}

.language-switcher a.lang-link:hover,
.language-switcher a.lang-link:focus {
    color: var(--primary-color);
    text-decoration: underline;
}


.language-toggle { 
background: none; 
border: none; 
color: var(--text-color); 
font-size: 20px; 
cursor: pointer; 
padding: 5px; 
transition: color 0.3s; 
z-index: 600;
}


.language-toggle:hover,
.language-toggle:focus {
    color: var(--primary-color);
}

.language-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: hsl(var(--default-background-H), var(--default-background-S), calc(var(--default-background-L) - 5%));
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 10px 0;
}

.language-dropdown.active {
    display: block;
}

.language-dropdown .lang-link {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.language-dropdown .lang-link:hover,
.language-dropdown .lang-link:focus {
    background-color: rgba(255, 255, 255, 0.1);
}

.language-dropdown .lang-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.flag-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* Responsive design */
@media (max-width: 400px) {
    .login-container {
        width: 90%;
        padding: 20px;
    }

    .input-group input {
        font-size: 14px;
    }

    .login-btn {
        font-size: 14px;
    }
}

/* Warning message */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal {
    background: hsl(var(--default-background-H), var(--default-background-S), var(--default-background-L));
    border-radius: 15px;
    padding: 20px;
    width: 60%;
    min-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-color);
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--primary-color);
}

.modal-message {
    color: var(--text-color);
    font-size: 16px;
    margin-bottom: 20px;
}

.modal-ok {
    padding: 10px 20px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 25px;
    color: hsl(var(--default-background-H), var(--default-background-S), var(--default-background-L));
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-ok:hover,
.modal-ok:focus {
    background-color: var(--primary-hover);
}

.modal-ok:focus {
    outline: 3px solid var(--primary-hover);
    outline-offset: 2px;
}

.modal-overlay.active {
    display: flex;
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal h3 {
    color: var(--text-color);
    font-size: 20px;
    margin-bottom: 10px;
}


.modal .input-group label {
    color: var(--text-color);
    margin-bottom: 5px;
    display: block;
}

.modal .input-group input[type="radio"] {
    margin-right: 5px;
}

.modal .input-group label:not(.sr-only) {
    display: inline;
    margin-right: 15px;
    color: var(--text-color);
    font-size: 14px;
}

.dashboard-container {
    width: 1200px;
    /* Default width set to max-width */
    max-width: 1200px;
    min-width: 800px;
    margin: 0 auto;
    margin-top: 80px;
    /* Space for the fixed header (80px height + 20px extra) */
    padding: 20px;
    border-radius: 20px;
    background: hsl(var(--default-background-H), var(--default-background-S), var(--default-background-L));
    box-shadow: -5px -5px 15px rgba(255, 255, 255, 0.1), 5px 5px 15px rgba(0, 0, 0, 0.35);
    color: var(--text-color);
    position: relative;
}

.dashboard-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    /* Fixed height for the header */
    background: hsl(var(--default-background-H), var(--default-background-S), calc(var(--default-background-L) - 5%));
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 200;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dashboard-header img {
    height: 60px;
    /* Logo height */
}

.dashboard-body {
    display: flex;
    gap: 20px;
    /* Space between sidebar and content */
}

.dashboard-section {
    margin-bottom: 20px;
}

.dashboard-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.dashboard-section p {
    margin: 5px 0;
}

/* Sidebar Navigation */

.sidebar {
    width: 200px;
    background: hsl(var(--default-background-H), var(--default-background-S), calc(var(--default-background-L) - 5%));
    padding-top: 20px;
    transition: transform 0.3s ease;
    border-radius: 15px;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 10px;
}

.nav-item a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s;
}

.nav-item a:hover,
.nav-item a:focus {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-item a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.nav-item.active a {
    background-color: var(--primary-color);
    color: hsl(var(--default-background-H), var(--default-background-S), var(--default-background-L));
}

.nav-item a i {
    margin-right: 10px;
    font-size: 18px;
}

.hamburger {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 24px;
    color: var(--text-color);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 300;
    /* Above the header and sidebar */
}

.hamburger:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Main content area within dashboard-container */
.dashboard-content {
    flex: 1;
    /* Take up remaining space */
    min-width: 0;
    /* Prevent overflow */
}

/* Responsive design for sidebar */
@media (max-width: 1000px) {
    .dashboard-container {
        flex-direction: column;
        /* Stack sidebar and content vertically */
        min-width: 0;
        /* Allow container to shrink below min-width on small screens */
        width: 100%;
        /* Full width on small screens */
        margin-top: 120px;
        /* Space for the fixed header (80px) and hamburger button (approx 40px) */
    }

    .dashboard-header {
        padding: 0 60px;
        /* Extra padding to avoid overlap with hamburger button */
    }

    .sidebar {
        width: 100%;
        position: fixed;
        top: 80px;
        /* Below the fixed header */
        left: 0;
        z-index: 100;
        transform: translateY(calc(-100% - 80px));
        /* Move up by its height plus the header height */
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateY(0);
        /* Slide down to just below the header */
    }

    .hamburger {
        display: block;
    }

    .dashboard-content {
        margin-top: 0;
        /* No extra margin needed since sidebar is positioned absolutely */
    }
}

@media (max-width: 400px) {
    .dashboard-container {
        padding: 10px;
        margin-top: 100px;
        /* Adjust for smaller screens */
    }

    .dashboard-header {
        padding: 0 40px;
    }

    .hamburger {
        top: 10px;
        left: 10px;
    }
}

/* End of sidebar Navigation */

/* Tab Menu */
.tab-menu {
    display: flex;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 20px;
}

.tab-link {
    background: none;
    border: none;
    padding: 10px 20px;
    color: var(--text-color);
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s;
}

.tab-link:hover,
.tab-link:focus {
    color: var(--primary-color);
}

.tab-link.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.tab-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.tab-content {
    margin-top: 20px;
    overflow-y: auto;                /* aktiviert vertikales Scrollen */
    max-height: calc(100vh - 180px); /* begrenzt Höhe auf sichtbaren Bereich */
    padding-right: 10px;             /* verhindert, dass Text an der Scrollbar klebt */
}


.tab-pane {
    display: none;
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.admin-table th,
.admin-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table th {
    background: hsl(var(--default-background-H), var(--default-background-S), calc(var(--default-background-L) - 5%));
    color: var(--primary-color);
}

.admin-table tr {
    transition: background-color 0.3s;
}

.admin-table tr:hover {
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

/* Protocols Tab */

.protocol-container {
    margin: 20px;
    border: 1px solid var(--primary-color);
    padding: 20px;
    border-radius: 10px;
}

#protocol-form {
    /*border: 1px solid var(--primary-color);*/
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 5px;
}

.add-btn {
    padding: 10px 20px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 25px;
    color: hsl(var(--default-background-H), var(--default-background-S), var(--default-background-L));
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.add-btn:hover,
.add-btn:focus {
    background-color: var(--primary-hover);
}

.protocol-form {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.form-left {
    flex: 1;
    max-width: 50%;
}

.form-right {
    flex: 1;
    max-width: 50%;
    padding-left: 20px;
}

.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-group label {
    display: block;
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 14px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
}

.form-right .input-group input[type="file"] {
    padding: 8px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    background: hsl(var(--default-background-H), var(--default-background-S), var(--default-background-L));
    box-shadow: -5px -5px 15px rgba(255, 255, 255, 0.1), 5px 5px 15px rgba(0, 0, 0, 0.35);
}

.exclude-group {
    margin: 20px 0;
    text-align: center;
}

/* Subgroups block */
.checkbox-group.subgroups {
    margin-top: 10px;
    margin-left: 20px;       /* optisch eingerückt unter "Standard" */
    padding: 10px 15px;
    border-left: 3px solid var(--accent-color, #007bff);
    background-color: rgba(0, 0, 0, 0.03); /* leicht abgesetzter Hintergrund */
    border-radius: 4px;
}

/* Subgroups Labels */
.checkbox-group.subgroups label {
    font-size: 13px;
    color: #B8860B !important;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

/* Checkboxen in Subgroups */
.checkbox-group.subgroups input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--accent-color, #007bff); /* moderne Browser */
}


.exclude-label {
    color: var(--error-color);
    font-weight: bold;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.update-btn {
    background-color: var(--primary-color);
    color: hsl(var(--default-background-H), var(--default-background-S), var(--default-background-L));
}

.update-btn:hover,
.update-btn:focus {
    background-color: var(--primary-hover);
}

.cancel-btn {
    background-color: var(--secondary-text);
    color: var(--text-color);
}

.cancel-btn:hover,
.cancel-btn:focus {
    background-color: #888;
}

.modal-flex {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.modal-left {
    flex: 1;
    max-width: 50%;
}

.modal-right {
    flex: 1;
    max-width: 50%;
}

.modal-right .input-group textarea {
    width: 100%;
    padding: 8px 0px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: hsl(var(--default-background-H), var(--default-background-S), var(--default-background-L));
    box-shadow: -5px -5px 15px rgba(255, 255, 255, 0.1), 5px 5px 15px rgba(0, 0, 0, 0.35);
    resize: vertical;
    color: var(--text-color);
}

/* Protocol cards management */
.protocol-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.protocol-cards h2 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: var(--primary-color);
    width: 100%;
    text-align: justify;
}

.protocol-card {
    width: 285px;
    background: hsl(var(--default-background-H), var(--default-background-S), var(--default-background-L));
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    box-shadow: -5px -5px 15px rgba(255, 255, 255, 0.1), 5px 5px 15px rgba(0, 0, 0, 0.35);
    padding: 10px;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    /* Ensures consistent height */
}

.protocol-header {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: var(--primary-color);
    text-align: center;
    width: 100%;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--primary-color);
}

.protocol-icon {
    font-size: 18px;
    /* Adjust size as needed */
    margin-right: 8px;
    /* Space between icon and title */
    vertical-align: middle;
    /* Aligns icon with text */
    color: var(--primary-color);
    /* Matches your theme, optional */
}

.protocol-body {
    display: flex;
    width: 100%;
    align-items: flex-start;
    flex: 1;
    /* Allows body to stretch and push footer down */
    margin-bottom: 10px;
}

.protocol-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 10px;
}

.protocol-description {
    flex: 1;
    margin: 0;
    font-size: 14px;
    color: var(--text-color);
}

.protocol-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto;
    /* Pushes footer to bottom */
}

.audio-tracker {
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-color);
}
.audio-progress-container {
    position: relative;
    width: 100%;
    height: 10px;
}
.audio-progress,
.buffer-progress {
    position: absolute;
    width: 100%;
    margin-top: 5px;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    -webkit-appearance: none;
    appearance: none;
}

.audio-progress::-webkit-progress-bar {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.audio-progress::-webkit-progress-value {
    background: var(--primary-color);
    border-radius: 4px;
}

.audio-progress::-moz-progress-bar {
    background: var(--primary-color);
    border-radius: 4px;
}

.buffer-progress::-webkit-progress-bar {
    background: #e0e0e0;
    /* Light gray background */
}

.buffer-progress::-webkit-progress-value {
    background: #808080;
    /* Dark gray for buffered portion */
}

.melody-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.melody-selector label {
    font-weight: bold;
}

.melody-selector select {
    padding: 8px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
    width: 300px;
    max-width: 100%;
}

.melody-selector {
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 1px solid var(--primary-color);
    /* Assumes --primary-color is defined */
    padding-bottom: 10px;
}

.melody-radio-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.melody-radio {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: var(--default-bkg);
    transition: background-color 0.3s;
}

.melody-radio input[type="radio"] {
    display: none;
    /* Hide the default radio button */
}

.melody-radio span {
    font-size: 16px;
}

.melody-radio input[type="radio"]:checked+span {
    font-weight: bold;
    color: #007BFF;
    /* Highlight selected option */
}

.melody-radio:hover {
    color: #007BFF;
    background-color: #e9e9e9;
}




.melody-selector h2 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: var(--primary-color);
    width: 100%;
    text-align: justify;
}

.melody-radio-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.protocol-card.disabled {
    border: 2px solid #ccc;
    /* Gray border for disabled protocols */
    opacity: 0.7;
    /* Slight fade to indicate disabled state */
}

.protocol-card.disabled .play-btn {
    cursor: not-allowed;
    background-color: #ddd;
}

.news-container {
    margin: 20px;
    border: 1px solid var(--primary-color);
    padding: 20px;
    border-radius: 10px;
}

.news-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.subtitle-section {
    border: 1px dashed var(--secondary-text);
    padding: 10px;
    margin: 10px 0;
}

.remove-subtitle {
    background-color: var(--error-color);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.remove-subtitle:hover {
    background-color: #cc4444;
}

/* News Feed Styles */
.news-feed {
    margin-top: 20px;
}

.news-item {
    margin-bottom: 20px;
}

.news-title-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 10px;
    /* Centered with bottom margin */
}

.news-title {
    text-align: center;
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.news-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 15px;
    text-align: justify;
}

.news-content-image {
    float: left;
    max-width: 200px;
    /* Adjust as needed */
    height: auto;
    margin-right: 15px;
    margin-bottom: 10px;
    border-radius: 15px;
}

.news-content p {
    flex: 1;
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
    text-align: justify;
}

.news-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--primary-color);
    margin: 1.5em 0 10px;
}

.news-footer {
    font-size: 12px;
    color: var(--secondary-text);
    text-align: right;
    margin-top: 10px;
}

.news-divider {
    border: 0;
    height: 2px;
    background: var(--primary-color);
    margin: 20px 0;
}

/* Clearfix for floated images */
.news-content::after {
    content: "";
    display: table;
    clear: both;
}

.modal-subtitle-image-preview {
    max-width: 200px;
    height: auto;
    margin-top: 10px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--default-bkg);
    padding: 0;
    /* Remove padding to handle it in sections */
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    /* Limit modal height to 90% of viewport */
    display: flex;
    flex-direction: column;
    position: relative;
}

.modal-header {
    padding: 15px;
    border-bottom: 1px solid var(--secondary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
}

.modal-scrollable {
    padding: 15px;
    overflow-y: auto;
    /* Enable vertical scrolling */
    flex-grow: 1;
    /* Allow it to take available space */
    max-height: calc(90vh - 120px);
    /* Adjust based on header and footer height */
}

.modal-footer {
    padding: 15px;
    border-top: 1px solid var(--secondary-color);
    text-align: right;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.update-btn {
    background: var(--primary-color);
    color: white;
}

.cancel-btn {
    background: var(--secondary-color);
    color: var(--text-color);
}

/* Existing modal styles (ensure consistency) */
.modal-flex {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.modal-left,
.modal-right {
    flex: 1;
    min-width: 300px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
}

.input-group input[type="text"],
.input-group input[type="number"],
.input-group textarea,
.input-group input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    background: var(--input-bg);
    color: var(--text-color);
}

.subtitle-section {
    border: 1px solid var(--secondary-color);
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.remove-subtitle {
    background: var(--secondary-color);
    color: var(--text-color);
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.add-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin: 10px 0;
}

h4 {
    font-size: 12px;
    color: #FFFFFF !important;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 30px;
}


h5 {
    font-size: 18px;
    color: #FFFFFF !important;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 30px;
}

.social-link a {
    color: #B8860B !important;
    font-size: 18px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    transition: color 0.3s;
}

.social-link a:hover {
    text-decoration: underline;
    color: #B8860B !important;
}


.link {
    color: #B8860B !important;
    text-decoration: none;
    transition: color 0.3s;
}

.link:hover {
    text-decoration: underline;
    color: #B8860B !important;
} 



.shop .dashboard-body {
  display: flex;
  align-items: flex-start;
}

.shop .sidebar {
  width: 250px;
  background: #222;
  color: #fff;
  min-height: 100vh;
  position: sticky;
  top: 0;
}

.shop .dashboard-content {
  flex: 1;
  padding: 20px;
}
/* &#9989; Mobile-Layout – Sidebar ausblendbar */
@media (max-width: 1000px) {
  .shop .dashboard-body {
    flex-direction: column; /* Sidebar & Content untereinander */
  }

  .shop .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    transform: translateX(-100%); /* Sidebar standardmäßig versteckt */
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  .shop .sidebar.active {
    transform: translateX(0); /* Eingeblendet, wenn aktiv */
  }

  .shop .dashboard-content {
    width: 100%;
    padding: 20px;
  }
}




.center-wrapper.wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px;
}


.shop-container {
    width: 1200px;
    padding: 40px;
    border-radius: 20px;
    border: 8px solid hsl(var(--default-background-H), var(--default-background-S), var(--default-background-L));
    box-shadow: -5px -5px 15px rgba(255, 255, 255, 0.1), 5px 5px 15px rgba(0, 0, 0, 0.35),
        inset -5px -5px 15px rgba(255, 255, 255, 0.1), inset 5px 5px 15px rgba(0, 0, 0, 0.35);
    background: hsl(var(--default-background-H), var(--default-background-S), var(--default-background-L));
    text-align: center;
}


.store-melody a.mail-link {
    color: #e63946;
}



.language-bar {
    margin: 15px 0 25px 0;
    text-align: center;
    font-size: 16px;
}

.language-bar a {
    color: #FFFFFF;              /* Weiß */
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.language-bar a:hover {
    color: #B8860B;              /* Gold beim Hover */
}

.active-lang {
    font-weight: 700;
    color: #B8860B;              /* Aktive Sprache dauerhaft Gold */
    text-decoration: underline;
}


