:root {
    --bg-page: #111418;
    --bg-container: #1c2128;
    --sidebar-bg: #15191e;
    --accent-red: #e50914;
    --text-main: #c9d1d9;
    --text-muted: #8b949e;
}

body { 
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

.container {
    display: grid;
    grid-template-columns: 300px 1fr;
    grid-template-rows: auto 1fr auto;
    max-width: 1440px;
    margin: 20px auto;
    background: var(--bg-container);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border-radius: 12px;
    overflow: hidden;
}

a[data-url] {
    cursor: pointer;
}

/* === LAYOUT & NAVIGATION === */
.main-header { 
    background-color: #0d1117;
    background-image: linear-gradient(rgba(34, 34, 34, 0.4), rgba(34, 34, 34, 0.4)), url('images/filmstreifen.avif');
    background-size: auto 100%;
    background-position: right 0 center;
    background-repeat: no-repeat;
    padding: 1.0rem 3%;
    border-bottom: 3px solid var(--accent-red);
    grid-column: 1 / span 2;
    grid-row: 1;
}

.logo {
    font-family: 'Bangers', cursive;
    font-display: swap;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-red);
    letter-spacing: 3px;
    margin-bottom: 5px;
    margin-left: -3px;
    text-transform: uppercase;
    display: inline-block;
    transform: scaleX(1.50);
    transform-origin: left;
}

.logo a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.1s ease-in-out, text-shadow 0.3s ease-in-out;
}

.logo a:hover,
.logo a:focus { 
    text-shadow: 
        0 0 1px #aaa,
        0 0 4px #aaa; 
    outline: none;
}

.logo a:active {
    text-shadow: 
        0 0 2px #aaa, 
        0 0 6px #aaa;
}

.sub-logo {
    margin: 0;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

aside { 
    background: var(--sidebar-bg);
    padding: 30px 20px;
    border-right: 1px solid #30363d;
}

aside h3 { 
    color: #fff;
    font-size: 1rem;
    border-bottom: 2px solid var(--accent-red);
    padding-bottom: 10px;
    margin-top: 30px;
}

.nav-list { 
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list li a { 
    display: block;
    padding: 8px 12px;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.nav-list li a:hover { 
    background: rgba(229, 9, 20, 0.1);
    color: #fff;
    padding-left: 20px;
    border-left: 3px solid var(--accent-red);
}

main { 
    padding: 50px 15px;
}

footer { 
    grid-column: 1 / span 2;
    text-align: center;
    padding: 20px;
    background: #0d1117;
    border-top: 1px solid #30363d;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.copyright {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* === SUCHFELD === */
.search-box input, 
.search-box button { 
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.search-box input { 
    background: #0d1117;
    border: 1px solid #30363d;
    color: #fff;
}

.search-box button { 
    background: var(--accent-red);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.search-box button:hover { 
    background: #b80710;
}

/* === HOME === */
.home-wrapper { 
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.hero-section { 
    background: #15191e;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 50px 60px;
    text-align: center;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.hero-section::before { 
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-red);
}

.hero-section h1 { 
    margin-top: 0;
    font-size: 2.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle { 
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #30363d;
}

.hero-subtitle strong { 
    color: var(--accent-red);
    font-size: 1.4rem;
}

.hero-text { 
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.highlight-text { 
    color: #fff;
    font-weight: bold;
    font-size: 1.15rem;
    margin-top: 20px;
}

.hero-logo { 
    max-width: 250px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.hero-logo:hover { 
    opacity: 1;
}

/* === ÜBERSICHT & LISTENANSICHT === */
.uebersicht-wrapper { 
    padding: 0 20px;
}

.uebersicht-header { 
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent-red);
    margin-bottom: 30px;
    padding-bottom: 15px;
}

.uebersicht-header h2 { 
    margin: 0;
    font-size: 1.8rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.movie-count { 
    background: #0d1117;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #30363d;
    font-size: 0.9rem;
}

.no-results { 
    background: #0d1117;
    border: 1px dashed #30363d;
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    border-radius: 8px;
    font-size: 1.1rem;
}

.header-controls { 
    display: flex;
    align-items: center;
    gap: 20px;
}

.view-toggle { 
    display: flex;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    overflow: hidden;
}

.view-btn { 
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.view-btn:hover { 
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.view-btn.active { 
    background: #30363d;
    color: var(--accent-red);
}

/* === GRID ANSICHT === */
.view-mode-grid { 
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

.view-mode-grid .list-item { 
    display: none !important;
}

.view-mode-grid .grid-item { 
    display: block;
}

.movie-card { 
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    background: #0d1117;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
	cursor: pointer;
}

.movie-card:hover { 
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.8);
    outline: 2px solid var(--accent-red);
    outline-offset: -2px;
}

.poster-container { 
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

.movie-poster { 
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    transition: filter 0.3s ease;
}

.movie-overlay { 
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 60%, transparent 100%);
    padding: 40px 15px 15px 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-card:hover .movie-overlay { 
    opacity: 1;
}

.movie-card:hover .movie-poster { 
    filter: brightness(0.6);
}

.movie-title { 
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.2;
}

.movie-year { 
    color: var(--accent-red);
    font-size: 0.85rem;
    font-weight: bold;
}

.movie-media { 
    display: block;
    margin-top: 12px;
    color: var(--accent-red);
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.media-info-container { 
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.movie-media-item { 
    margin-top: 0;
    margin-right: 6px;
}

/* === LISTEN ANSICHT === */
.view-mode-list { 
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.view-mode-list .grid-item { 
    display: none !important;
}

.view-mode-list .list-item { 
    display: flex;
}

.movie-list-item { 
    display: flex;
    text-decoration: none;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 10px;
    align-items: center;
    transition: all 0.2s ease;
}

.movie-list-item:hover { 
    background: #161b22;
    border-color: var(--accent-red);
    transform: translateX(5px);
}

.list-poster { 
    width: 50px;
    height: 75px;
    object-fit: cover;
    object-position: right center;
    border-radius: 4px;
    margin-right: 20px;
}

.list-details { 
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-title { 
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
}

.list-meta { 
    display: flex;
    gap: 15px;
    align-items: center;
}

.list-year { 
    color: var(--text-muted);
    font-size: 0.9rem;
}

.list-media { 
    color: var(--accent-red);
    font-size: 0.85rem;
    font-weight: bold;
    background: rgba(229, 9, 20, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.list-item-container { 
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.movie-list-item.main-row { 
    cursor: pointer;
    z-index: 2;
}

.list-item-children { 
    display: none;
    flex-direction: column;
    gap: 8px;
    padding-left: 40px;
    border-left: 2px solid #30363d;
    margin-left: 25px;
    margin-bottom: 10px;
}

.list-item-container.open .list-item-children { 
    display: flex;
}

.dropdown-icon { 
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.list-item-container.open .dropdown-icon { 
    transform: rotate(180deg);
    color: var(--accent-red);
}

.child-row { 
    background: #15191e;
    border-color: #30363d;
    padding: 6px 10px;
}

.child-poster { 
    width: 35px;
    height: 52px;
}

.sub-title { 
    font-size: 0.95rem;
    color: var(--text-muted);
}

.specific-media { 
    background: transparent;
    border: 1px solid var(--accent-red);
}

.grid-edition-links { 
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.edition-badge { 
    background: rgba(229, 9, 20, 0.75);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.2s;
}

.edition-badge:hover { 
    background: var(--accent-red);
    transform: scale(1.05);
}

/* === ZENTRALISIERTE PLATZHALTER === */
.no-cover-placeholder, 
.no-cover-placeholder-grid, 
.list-no-cover { 
    background: #161b22;
    border: 2px dashed #30363d;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
    font-weight: bold;
}

.no-cover-placeholder { 
    width: 100%;
    aspect-ratio: 2 / 3;
    max-height: calc(100% - 35px);
    border-radius: 8px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.no-cover-placeholder-grid { 
    width: 100%;
    height: 100%;
    min-height: 250px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.list-no-cover { 
    width: 50px;
    height: 75px;
    border-width: 1px;
    border-radius: 4px;
    font-size: 0.6rem;
    margin-right: 20px;
}

/* === DETAILSEITE === */
.details-wrapper { 
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.details-main { 
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.details-poster-col { 
    flex: 0 0 350px;
}

.poster-wrapper { 
    width: 100%;
    aspect-ratio: 2 / 3;
    background: transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.details-poster-img { 
    max-width: 100%;
    height: auto;
    max-height: calc(100% - 35px);
    object-fit: contain;
    object-position: top center;
    display: block;
    border-radius: 8px;
}

.details-poster-wrapper { 
    height: auto;
    aspect-ratio: unset;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.details-poster-img-full { 
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: initial;
}

.details-poster-gallery { 
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    width: 100%;
    justify-content: center;
}

#media-badge.current-media-indicator { 
    margin-top: 10px;
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
}

.poster-gallery { 
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.gallery-thumb { 
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid #30363d;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.gallery-thumb:hover, 
.gallery-thumb.active { 
    opacity: 1;
    border-color: var(--accent-red);
}

.gallery-thumb.active { 
    box-shadow: 0 0 8px rgba(229, 9, 20, 0.6);
}

/* === INFOS & WERTUNG === */
.details-info-col { 
    flex: 1;
}

.details-title { 
    margin: 0 0 15px 0;
    font-size: 2.5rem;
    color: #fff;
    line-height: 1.1;
}

.details-year { 
    color: var(--text-muted);
    font-weight: 300;
}

.details-genres-text { 
    color: var(--accent-red);
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.rating-box { 
    margin-top: 20px;
    background: #15191e;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #30363d;
}

.rating-label { 
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.rating-bar-bg { 
    width: 100%;
    height: 12px;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.rating-bar-fill { 
    height: 100%;
    background: linear-gradient(90deg, #e50914, #ff4b4b);
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.6);
}

/* === BADGES === */
.meta-badges { 
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.badge { 
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    padding: 8px 12px;
}

.badge-fsk { 
    background: #f1c40f;
    color: #000;
}

.badge-time { 
    background: #2c3e50;
    color: #fff;
}

.badge-country { 
    background: #34495e;
    color: #fff;
}

.badge-neu { 
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-red);
    color: #fff;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0,0,0,0.6);
    letter-spacing: 1px;
}

.flag-icon { 
    height: 1em;
    width: auto;
    vertical-align: -0.15em;
    margin-right: 4px;
    display: inline;
}

/* === TECHNISCHE DATEN & INHALT === */
.details-plot h3 { 
    font-size: 1.1rem;
    color: var(--accent-red);
    text-transform: uppercase;
    border-bottom: 1px solid #30363d;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.details-plot p {
    max-height: 230px;
    overflow-y: auto;
    background: #15191e;
    padding: 8px 15px 15px 15px;
    border-radius: 6px;
    border: 1px solid #30363d;
    line-height: 1.7;
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 30px;
    text-align: justify;
}

.tech-grid { 
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    background: #15191e;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #30363d;
}

.tech-item { 
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tech-label { 
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: bold;
}

.tech-value { 
    font-size: 1rem;
    color: #fff;
}

.tech-group { 
    margin-bottom: 8px;
    line-height: 1.5;
}

.tech-group:last-child { 
    margin-bottom: 0;
}

.media-tag { 
    display: inline-block;
    color: var(--text-muted);
    background: #21262d;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #30363d;
    margin-right: 8px;
    margin-left: 0;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.70rem;
    letter-spacing: 0.5px;
    vertical-align: text-bottom;
}

/* === DARSTELLER === */
.details-actors { 
    border-top: 2px solid var(--accent-red);
    padding-top: 20px;
}

.details-actors h3 { 
    font-size: 1.2rem;
    color: #fff;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 20px;
}

.actor-list { 
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.actor-name { 
    background: #15191e;
    border: 1px solid #30363d;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}

.actor-name:hover { 
    background: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
}

/* === LIGHTBOX / MODAL === */
.image-modal { 
    border: none;
    outline: none;
    padding: 0;
    margin: auto;
    background: #1c2128;
    border-radius: 12px;
    overflow: hidden;
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 0 0 1px #30363d, 15px 15px 25px rgba(0, 0, 0, 0.9);
}

.image-modal::backdrop { 
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);
}

.modal-title { 
    background: #0d1117; 
    color: #fff;
    padding: 12px 20px; 
	font: bold 1.1rem 'Segoe UI', Arial, sans-serif;
    border-bottom: 2px solid #30363d; 
	text-align: left; 
    text-transform: uppercase;
    letter-spacing: 1px;
}

#lightbox-img { 
    max-width: 100%;
    max-height: calc(95vh - 80px);
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    object-fit: contain;
	cursor: zoom-out;
}

.media-logo {
    height: auto;
    max-height: 18px;
    width: auto;
    vertical-align: middle;
    margin-right: 6px;
    filter: brightness(0) saturate(100%) invert(73%) sepia(57%) saturate(541%) hue-rotate(186deg) brightness(103%) contrast(98%) drop-shadow(0 2px 4px rgba(0,0,0,0.5));
	transition: filter 0.3s ease, transform 0.2s ease;
}

.media-logo:hover {
    filter: brightness(0) saturate(100%) invert(73%) sepia(57%) saturate(541%) hue-rotate(186deg) brightness(103%) contrast(98%) drop-shadow(0 0 12px rgba(0, 210, 210, 0.9));
    transform: scale(1.1); 
    cursor: pointer;
}

.tech-value .media-logo {
    max-height: 15px;
    margin-right: 0;
}

.tech-link-simple {
    color: #00b4b4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tech-link-simple:hover {
    color: var(--accent-red);
}

#scroll-to-top,
#scroll-to-bottom {
    position: fixed;
    right: 30px;
    width: 34px;
    height: 34px;
    background: var(--bg-container);
    border: none;
    border-radius: 8px;
    color: var(--accent-red);
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.95);
    border: 1px solid #30363d;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.2s, color 0.2s;
    will-change: opacity, visibility;
    cursor: pointer;
}

#scroll-to-bottom {
    bottom: 30px;
}

#scroll-to-top {
    bottom: 70px; 
}

#scroll-to-top.visible,
#scroll-to-bottom.visible {
    opacity: 1;
    visibility: visible;
}

#scroll-to-top:hover,
#scroll-to-bottom:hover {
    color: #ff4b4b;
}

.admin-btn-icon {
    background: transparent;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
    color: var(--text-muted); 
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    transition: color 0.15s ease-in-out, transform 0.4s ease;
    transform: scale(1.4);
    cursor: pointer;
}

.admin-btn-icon:hover {
    color: var(--accent-red); 
    transform: scale(1.4) rotate(45deg);
}

#admin-trigger {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 50;
}

/* === ADMIN BEREICH (Anmeldung & Kontrollzentrum) === */
.admin-modal {
    padding: 0;
    min-width: 320px;
}

.admin-modal input[type="text"],
.admin-modal input[type="password"] {
    background-color: #0d1117;
    color: #fff;
    border: 2px solid #30363d; 
    border-radius: 6px;
    padding: 4px 10px;
    font-family: inherit;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    width: 100%;
}

.admin-modal input[type="text"]:focus,
.admin-modal input[type="password"]:focus {
    outline: none;
    border-color: var(--text-muted);
}

.admin-modal label {
    color: var(--text-main);
}

.admin-btn {
    display: inline-block;
    padding: 8px 18px; /* Reduziert von 10px 18px */
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.admin-btn:active {
    transform: translateY(1px);
}

.admin-btn-primary {
    background: var(--accent-red);
    color: #fff;
}

.admin-btn-primary:hover {
    background: #b80710;
}

.admin-btn-secondary {
    background: #21262d;
    border: 1px solid #30363d;
    color: var(--text-main);
}

.admin-btn-secondary:hover {
    background: #30363d;
    color: #fff;
    border-color: #8b949e;
}

.admin-btn-danger {
    background: #d63031;
    border: 1px solid #b32424;
    color: #fff;
}

.admin-btn-danger:hover {
    background: #b32424;
    border-color: #901d1d;
    color: #fff;
}

.admin-text-link {
    display: block;
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: bold;
    padding: 12px 15px;
    border-radius: 8px;
    background: #0d1117;
    border: 1px solid #30363d;
    transition: all 0.2s ease;
    cursor: pointer;
}

.admin-text-link:hover {
    background: #161b22;
    color: #fff;
    border-color: var(--accent-red);
    transform: translateX(5px);
}

.admin-text-link.status-red {
    color: #ff4b4b;
}

.admin-text-link.status-green {
    color: #2ecc71;
}

.admin-menu-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-text-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    background: transparent;
    border: none;
    transition: background-color 0.2s, color 0.2s, padding-left 0.2s;
    cursor: pointer;
}

.admin-text-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-red);
    padding-left: 15px;
    border-color: transparent;
    transform: none;
}

.admin-modal-form {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-modal-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.admin-modal-form label {
    font-weight: bold;
    font-size: 0.9rem;
}

.admin-modal-form .checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.admin-modal-form .checkbox-group input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.admin-modal-form .checkbox-group label {
    font-size: 0.85rem;
    cursor: pointer;
}

.admin-modal-form .button-group {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 10px;
}

.admin-menu-modal {
    width: 400px;
}

.admin-menu-content {
    padding: 25px;
    position: relative;
}

.admin-menu-footer {
    margin-top: 25px;
    border-top: 1px solid #30363d;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logout-modal {
    width: 320px;
}

.logout-content {
    padding: 25px;
    text-align: center;
}

.logout-text {
    margin: 0 0 25px 0;
    font-weight: 600;
    color: var(--text-main);
}

.logout-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* === WARTUNGSMODUS (MAINTENANCE) === */
.maintenance-container {
    grid-template-columns: 1fr;
}

.maintenance-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.maintenance-hero {
    max-width: 600px;
    width: 100%;
    padding: 40px 30px;
}

.maintenance-title {
    margin-top: 0;
    text-transform: uppercase;
    border-bottom: 1px solid #30363d;
    padding-bottom: 15px;
    color: #fff;
    font-size: 1.5rem;
}

.maintenance-text-block {
    padding: 25px 0;
}

.maintenance-desc {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-main);
}

.maintenance-highlight {
    margin: 0;
    font-weight: bold;
    color: var(--accent-red);
    font-size: 1.2rem;
}

.maintenance-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #30363d;
}

.maintenance-code {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================
   ADMIN BEREICH & STAMMDATEN-VERWALTUNG
   ========================================== */

/* Container & Header Anpassungen */
.admin-container {
    display: flex;
    flex-direction: column;
}

.inner-nav {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #30363d;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.inner-nav .nav-link {
    background: #0d1117;
    border: 1px solid #30363d;
    color: var(--text-muted);
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.inner-nav .nav-link:hover {
    color: #fff;
    background: #161b22;
    border-color: #8b949e;
}

.inner-nav .nav-link.active {
    background: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
}

.hide-element {
    display: none !important;
}

/* Sections & Ueberschriften */
.section-title-underlined {
    font-size: 1.4rem;
    color: #fff;
    border-bottom: 2px solid var(--accent-red);
    padding-bottom: 8px;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.item-list {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

/* Accordions (Stammdaten & Marken) */
.product-card.collapsible {
    background: #15191e;
    border: 1px solid #30363d;
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.product-card.collapsible:hover {
    border-color: #8b949e;
}

.product-card.collapsible.open {
    border-color: var(--accent-red);
}

.product-card .card-header {
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #161b22;
    user-select: none;
}

.product-card .card-header h2 {
    margin: 0;
    font-size: 1.05rem;
    color: #fff;
}

.toggle-icon {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.product-card.open .toggle-icon {
    transform: rotate(90deg);
    color: var(--accent-red);
}

.product-card .card-body {
    display: none;
    padding: 20px;
    border-top: 1px solid #30363d;
    background: #0d1117;
}

.product-card.open .card-body {
    display: block;
}

/* Zeilen & Listen-Items */
.list-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #15191e;
    border: 1px solid #30363d;
    border-radius: 6px;
    margin-bottom: 8px;
}

.list-item-row:last-child {
    margin-bottom: 0;
}

.flex-gap-fourteen {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Input-Felder & Buttons im Adminbereich */
.item-list input[type="text"],
.item-list input[type="search"],
.item-list select {
    background-color: #15191e;
    color: #fff;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.item-list input[type="text"]:focus,
.item-list input[type="search"]:focus,
.item-list select:focus {
    outline: none;
    border-color: var(--accent-red);
}

.td-delete-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 5px;
    transition: color 0.2s ease;
}

.td-delete-btn:hover {
    color: var(--accent-red);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

/* Toggle Switcher (Konfiguration) */
.switch-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #15191e;
    border: 1px solid #30363d;
    border-radius: 6px;
    margin-bottom: 12px;
}

.switch-label {
    font-weight: bold;
    color: #fff;
    margin-bottom: 4px;
}

.switch-description {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.retro-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-red);
    cursor: pointer;
}

/* Status-Farben */
.color-success { color: #2ecc71; }
.color-warning { color: #f39c12; }