/*
Theme Name: RadioBase
Theme URI: https://example.com/radiobase
Author: Dein Name
Description: Ein modernes Verzeichnis für Webradios mit integriertem Player.
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: radiobase
*/

:root {
    --bg-main: #121212;
    --bg-card: #1e1e1e;
    --bg-secondary: #2a2a2a;
    --bg-hover: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #666;
    --accent: #1db954;
    --accent-hover: #1ed760;
    --border: #333333;
    --radius: 12px;
    --player-height: 80px;
    --transition: all 0.2s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* ============ HINTERGRUNDBILD BEREICH ============ */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
    background-color: var(--bg-main);
    background-image: none; /* Wird dynamisch per Customizer gesetzt */
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.5;
    padding-bottom: var(--player-height);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
    pointer-events: none;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ============ HEADER ============ */
.site-header {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap;
    gap: 1rem;
}

.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.logo span { color: var(--accent); }

.nav-menu { display: flex; gap: 2rem; list-style: none; }
.nav-menu a { color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; }
.nav-menu a:hover { color: var(--text-primary); }

/* ============ KOMPAKTER HEADER LOGIN ============ */
.rb-header-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rb-header-user {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 12px;
    background: var(--bg-secondary);
    border-radius: 50px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.rb-header-user:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.rb-header-logout {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rb-header-logout:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.rb-header-login-btn {
    background: var(--accent);
    color: black;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rb-header-login-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

/* ============ HERO ============ */
.hero { padding: 4rem 0 2rem; text-align: center; }
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.hero p { color: var(--text-secondary); margin-bottom: 2rem; }

.search-form { max-width: 500px; margin: 0 auto; }
.search-input {
    width: 100%; padding: 1rem 1.5rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 50px; color: white; font-size: 1rem;
}
.search-input:focus { outline: none; border-color: var(--accent); }

/* ============ GENRE STYLES (DROPDOWN, BAR & GRID) ============ */
.header-genre-dropdown {
    margin-left: 2rem;
}

.genre-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.genre-select:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
}

.genre-bar-icons {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem 0;
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.genre-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
    min-width: 80px;
}

.genre-icon-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
    border-color: var(--accent);
}

.genre-icon-item.active {
    background: var(--accent);
    color: black;
    border-color: var(--accent);
}

.genre-icon {
    font-size: 1.5rem;
}

.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
    margin-bottom: 3rem;
}

.genre-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.genre-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(29, 185, 84, 0.2);
}

.genre-card-icon {
    font-size: 3rem;
    line-height: 1;
}

.genre-card-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.genre-card-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ============ RADIO GRID ============ */
.radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0 4rem;
}

/* ============ RADIO CARD ============ */
.radio-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform 0.2s, background 0.2s;
    position: relative;
}

.radio-card:hover {
    background: var(--bg-hover);
    transform: translateY(-5px);
}

.card-image {
    width: 100%; aspect-ratio: 1/1;
    border-radius: 8px; overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
    background: #000;
    display: block;
}

.card-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }

.play-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: 0.3s;
}
.radio-card:hover .play-overlay { opacity: 1; }

.btn-play-card {
    width: 50px; height: 50px;
    background: var(--accent); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    transform: scale(0.9); transition: 0.2s;
}
.btn-play-card svg { fill: black; width: 20px; height: 20px; margin-left: 2px; }
.radio-card:hover .btn-play-card { transform: scale(1); }

.card-info { display: block; }
.card-info h3 { font-size: 1.1rem; margin-bottom: 0.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { font-size: 0.85rem; color: var(--text-secondary); display: flex; justify-content: space-between; }

.badge-live {
    background: #ef4444; color: white; font-size: 0.7rem;
    padding: 2px 6px; border-radius: 4px; font-weight: 700;
    text-transform: uppercase;
}

.btn-play-inline {
    position: absolute;
    bottom: 80px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: black;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

.btn-play-inline:hover {
    transform: scale(1.1);
    background: var(--accent-hover);
}

.btn-fav-card {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.btn-fav-card:hover { background: rgba(0,0,0,0.8); transform: scale(1.1); }
.btn-fav-card.is-favorite { color: #1db954; background: white; }

/* ============ GLOBAL PLAYER ============ */
.global-player {
    position: fixed; bottom: 0; left: 0; right: 0;
    height: var(--player-height);
    background: #181818;
    border-top: 1px solid var(--border);
    display: flex; align-items: center;
    padding: 0 2rem;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}

.player-info { display: flex; align-items: center; gap: 1rem; width: 30%; }
.player-thumb { width: 50px; height: 50px; border-radius: 4px; background: #333; }
.player-text h4 { font-size: 0.95rem; margin-bottom: 2px; }
.player-text p { font-size: 0.8rem; color: var(--accent); }

.player-controls { flex: 1; display: flex; justify-content: center; align-items: center; gap: 2rem; }
.btn-control { background: none; border: none; cursor: pointer; color: var(--text-secondary); }
.btn-control:hover { color: white; }
.btn-play-pause {
    width: 40px; height: 40px; background: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: black; transition: 0.2s;
}
.btn-play-pause:hover { transform: scale(1.05); }

.player-volume { width: 30%; display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.volume-slider { width: 100px; accent-color: var(--accent); }

/* ============ STATION PROFILE ============ */
.station-profile { max-width: 900px; margin: 3rem auto; }

.profile-header {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.profile-image {
    width: 250px;
    height: 250px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.profile-image img { width: 100%; height: 100%; object-fit: cover; }

.profile-info h1 { font-size: 2.5rem; margin-bottom: 1rem; line-height: 1.1; }

.profile-meta { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }

.meta-tag {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.4rem 0.8rem;
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.profile-actions { display: flex; gap: 1rem; }

.btn-play-large {
    background: var(--accent); color: black; border: none;
    padding: 1rem 2rem; border-radius: 50px;
    font-weight: 700; font-size: 1.1rem; cursor: pointer;
    transition: transform 0.2s;
}

.btn-play-large:hover { transform: scale(1.05); background: var(--accent-hover); }

.btn-website {
    display: inline-flex; align-items: center;
    padding: 1rem 2rem; border: 1px solid var(--border);
    border-radius: 50px; color: var(--text-primary);
    font-weight: 600; transition: background 0.2s;
}

.btn-website:hover { background: var(--bg-card); }

.profile-content h2 { font-size: 1.5rem; margin-bottom: 1rem; }

.entry-text { font-size: 1.1rem; line-height: 1.8; color: var(--text-secondary); }

.related-stations { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.related-stations h3 { margin-bottom: 1.5rem; }

/* ============ FOOTER ============ */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }

.footer-menu {
    display: flex; justify-content: center; gap: 2rem;
    list-style: none; flex-wrap: wrap;
}

.footer-menu li a {
    color: var(--text-secondary); font-size: 0.9rem;
    font-weight: 500; transition: color 0.2s;
}

.footer-menu li a:hover { color: var(--accent); }

.footer-copy {
    text-align: center; color: var(--text-muted);
    font-size: 0.85rem; padding-top: 1.5rem;
    border-top: 1px solid var(--border); width: 100%;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }
    
    .header-inner { 
        flex-direction: column; 
        align-items: stretch; 
    }
    .nav-menu { gap: 1rem; justify-content: center; }
    
    .rb-header-auth {
        justify-content: center;
        margin-top: 0.5rem;
    }

    /* Genre Mobile Anpassungen */
    .header-genre-dropdown {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
    }
    .genre-select {
        width: 100%;
    }
    .genre-bar-icons {
        gap: 0.5rem;
        padding: 1rem 0;
    }
    .genre-icon-item {
        padding: 0.6rem 1rem;
        min-width: 70px;
        font-size: 0.8rem;
    }
    .genre-icon {
        font-size: 1.2rem;
    }
    .genre-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }
    .genre-card {
        padding: 1.5rem 1rem;
    }
    .genre-card-icon {
        font-size: 2.5rem;
    }
    
    .global-player { flex-direction: column; height: auto; padding: 1rem; gap: 1rem; }
    .player-info, .player-controls, .player-volume { width: 100%; justify-content: center; }
    .profile-header { flex-direction: column; text-align: center; gap: 1.5rem; }
    .profile-image { width: 200px; height: 200px; }
    .profile-meta { justify-content: center; }
    .profile-actions { justify-content: center; flex-direction: column; }
    .footer-menu { gap: 1rem; font-size: 0.85rem; }
}

/* ============ PAGE CONTENT ============ */
.page-content {
    max-width: 800px;
    margin: 3rem auto;
}

.page-article {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem;
}

.page-article h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, #1db954 0%, #1ed760 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-text h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.page-text h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.page-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.page-text a {
    color: var(--accent);
    text-decoration: underline;
}

.page-text a:hover {
    color: var(--accent-hover);
}

.page-text ul,
.page-text ol {
    color: var(--text-secondary);
    margin: 1rem 0;
    padding-left: 2rem;
}

.page-text li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .page-article {
        padding: 1.5rem;
    }
    .page-article h1 {
        font-size: 1.8rem;
    }
}

/* ============ LISTENERS BADGE ============ */
.listeners-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(29, 185, 84, 0.2);
    color: var(--accent);
    padding: 0.25rem 0.6rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.listeners-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============ SOCIAL ICONS ============ */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    width: 100%;
}

.social-link {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.social-link:hover {
    color: white;
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.social-icon-facebook:hover { background: #1877F2; }
.social-icon-instagram:hover { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.social-icon-twitter:hover { background: #000000; }
.social-icon-discord:hover { background: #5865F2; }
.social-icon-paypal:hover { background: #003087; }

@media (max-width: 768px) {
    .social-icons { gap: 1rem; }
    .social-link { width: 38px; height: 38px; }
}

/* ============ USER SYSTEM STYLES ============ */
.rb-auth-form, .rb-profile-form, .rb-edit-form {
    max-width: 500px;
    margin: 2rem auto;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.rb-auth-form h2, .rb-profile-form h2, .rb-edit-form h2 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.rb-auth-form label, .rb-profile-form label, .rb-edit-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.rb-auth-form input, .rb-profile-form input, .rb-profile-form textarea, .rb-edit-form input, .rb-edit-form textarea {
    width: 100%;
    padding: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 6px;
    margin-bottom: 1rem;
    font-family: inherit;
}

.rb-auth-form button, .rb-profile-form button, .rb-edit-form button {
    background: var(--accent);
    color: black;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 0.5rem;
}

.rb-auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.rb-auth-switch a {
    color: var(--accent);
    text-decoration: none;
}

.rb-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.rb-checkbox input {
    width: auto;
    margin: 0;
}

.rb-dashboard {
    max-width: 1000px;
    margin: 2rem auto;
}

.rb-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.rb-dashboard-header h2 {
    color: var(--text-primary);
    margin: 0;
}

.rb-dashboard-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rb-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.rb-stat {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
}

.rb-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.rb-stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.rb-station-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rb-station-item {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.rb-station-item h4 {
    margin: 0 0 0.5rem;
    color: var(--text-primary);
}

.rb-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.rb-status-publish { background: rgba(29, 185, 84, 0.2); color: var(--accent); }
.rb-status-pending { background: rgba(255, 193, 7, 0.2); color: #ffc107; }
.rb-status-draft { background: rgba(150, 150, 150, 0.2); color: #999; }

.rb-station-actions {
    display: flex;
    gap: 0.5rem;
}

.rb-btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.rb-btn-primary { background: var(--accent); color: black; }
.rb-btn-primary:hover { background: var(--accent-hover); }

.rb-btn-secondary { background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border); }
.rb-btn-secondary:hover { background: var(--bg-hover); }

.rb-btn-logout { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.rb-btn-logout:hover { color: #ef4444; border-color: #ef4444; }

.rb-btn-small { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.rb-btn-danger { background: transparent; color: #ef4444; border: 1px solid #ef4444; }
.rb-btn-danger:hover { background: #ef4444; color: white; }

.rb-alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.rb-alert.rb-success { background: rgba(29, 185, 84, 0.2); color: var(--accent); border: 1px solid rgba(29, 185, 84, 0.3); }
.rb-alert.rb-error { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.rb-alert.rb-info { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.rb-alert.rb-info a { color: #60a5fa; text-decoration: underline; }

.rb-empty-state {
    text-align: center;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px dashed var(--border);
    color: var(--text-secondary);
}

.rb-empty-state .rb-btn { margin-top: 1rem; }

@media (max-width: 768px) {
    .rb-dashboard-header { flex-direction: column; align-items: flex-start; }
    .rb-station-item { flex-direction: column; align-items: flex-start; }
    .rb-station-actions { width: 100%; }
}

/* ============ VOTING BUTTON AUF KARTE ============ */
.btn-vote-inline {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(255, 215, 0, 0.9);
    color: black;
    border: none;
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.btn-vote-inline:hover {
    transform: scale(1.05);
    background: #FFD700;
}
.btn-vote-inline:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

/* ============ TOP 3 RANKING ============ */
.rb-ranking-container {
    max-width: 600px;
    margin: 3rem auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.rb-ranking-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.rb-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rb-ranking-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    transition: transform 0.2s;
}

.rb-ranking-item:hover {
    transform: translateX(5px);
}

.rb-rank-badge {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.9rem;
    min-width: 100px;
    text-align: center;
}

.rb-rank-info {
    flex: 1;
}

.rb-rank-info h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.rb-rank-info h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.rb-rank-info h3 a:hover {
    color: var(--accent);
}

.rb-rank-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rb-vote-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.rb-vote-btn-small {
    background: var(--accent);
    color: black;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.rb-vote-btn-small:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

@media (max-width: 640px) {
    .rb-ranking-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .rb-rank-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ============ TICKET SYSTEM STYLES ============ */
.rb-ticket-actions { margin-bottom: 1.5rem; }

.rb-ticket-form {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.rb-ticket-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.rb-ticket-form input, 
.rb-ticket-form select, 
.rb-ticket-form textarea {
    width: 100%;
    padding: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 6px;
    margin-bottom: 1rem;
}

.rb-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
}

.rb-table th, .rb-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.rb-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.rb-ticket-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-open { background: rgba(40, 167, 69, 0.2); color: #28a745; }
.status-admin_reply { background: rgba(0, 123, 255, 0.2); color: #007bff; }
.status-closed { background: rgba(220, 53, 69, 0.2); color: #dc3545; }

.rb-ticket-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.rb-ticket-station {
    background: var(--bg-secondary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.rb-ticket-message {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.rb-ticket-message.admin-msg {
    border-left: 4px solid #007bff;
    background: rgba(0, 123, 255, 0.05);
}

.rb-ticket-message.user-msg {
    border-left: 4px solid #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.msg-author { font-weight: 700; margin-bottom: 0.25rem; }
.msg-date { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.75rem; }
.msg-text { line-height: 1.6; }

.rb-ticket-reply-form {
    margin-top: 2rem;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

@media (max-width: 768px) {
    .rb-table { display: block; overflow-x: auto; }
    .rb-ticket-header { flex-direction: column; align-items: flex-start; }
}

.rb-ticket-form[style*="display: block"] {
    display: block !important;
}

.rb-ticket-form {
    transition: all 0.3s ease-in-out;
}

/* ============ PARTNER / UNTERSTÜTZER BADGE ============ */
.rb-partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    line-height: 1;
}

.card-meta .rb-partner-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
}

.profile-meta .rb-partner-badge {
    font-size: 0.85rem;
    padding: 0.35rem 0.8rem;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-meta > span {
    white-space: nowrap;
}

/* ============ NEWSLETTER FORMULAR ============ */
.rb-newsletter-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}

.rb-newsletter-form h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* ============ TOPLISTE FIX & GEWINNER ============ */
.rb-toplist-table .rb-vote-count-inline {
    display: none !important;
}

.rb-toplist-table .rb-single-vote-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.rb-vote-btn {
    background: var(--accent);
    color: #000000;
    border: none;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.rb-vote-btn:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.rb-vote-btn.voted, 
.rb-vote-btn:disabled {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
    border: 1px solid var(--border);
}

.rb-hall-of-fame {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2rem 0;
}

.rb-winners-list > div {
    transition: transform 0.2s ease;
}

.rb-winners-list > div:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@media (max-width: 600px) {
    .rb-winners-list > div {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .rb-winners-list > div .rb-btn {
        width: 100%;
        text-align: center;
    }
}

.station-profile .rb-single-vote-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.station-profile .rb-vote-btn {
    background: var(--accent);
    color: black;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.station-profile .rb-vote-btn:hover:not(:disabled) {
    transform: scale(1.05);
    background: var(--accent-hover);
}

.station-profile .rb-vote-btn.voted, 
.station-profile .rb-vote-btn:disabled {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
    border: 1px solid var(--border);
}

.station-profile .rb-vote-count-inline {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ============ KOMMENTARE ============ */
#comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

#comments h2,
#comments h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

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

.comment {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-author .avatar {
    border-radius: 50%;
    border: 2px solid var(--accent);
}

.comment-author .fn {
    font-weight: 700;
    color: var(--accent);
    font-size: 1rem;
}

.comment-metadata {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.comment-metadata a {
    color: var(--text-muted);
    text-decoration: none;
}

.comment-metadata a:hover {
    color: var(--accent);
}

.comment-content {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.comment-content p {
    margin-bottom: 0.75rem;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply a {
    color: var(--accent);
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
}

.reply a:hover {
    color: var(--accent-hover);
}

#respond {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

#respond h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 6px;
    margin-bottom: 1rem;
    font-family: inherit;
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.comment-form .form-submit {
    margin-top: 1rem;
}

.comment-form .submit,
#submit {
    background: var(--accent);
    color: black;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.comment-form .submit:hover,
#submit:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.logged-in-as {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.logged-in-as a {
    color: var(--accent);
    text-decoration: none;
}

.logged-in-as a:hover {
    text-decoration: underline;
}

.children {
    list-style: none;
    padding-left: 2rem;
    margin-top: 1rem;
    border-left: 2px solid var(--border);
}

.children .comment {
    background: var(--bg-secondary);
}

.nocomments {
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
}

@media (max-width: 768px) {
    .children {
        padding-left: 1rem;
    }
}

/* ============ FAVORITEN BUTTON ============ */
.rb-favorite-btn {
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.rb-favorite-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.15);
}

.rb-favorite-btn .fav-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.rb-favorite-btn.is-favorite {
    background: rgba(239, 68, 68, 0.2);
}

.rb-favorite-btn.is-favorite:hover {
    background: rgba(239, 68, 68, 0.4);
}

/* ============ PRIVATE NACHRICHTEN ============ */
.rb-messages-container {
    max-width: 800px;
    margin: 0 auto;
}

.rb-message-compose textarea,
.rb-message-compose select {
    font-family: inherit;
    transition: border-color 0.2s;
}

.rb-message-compose textarea:focus,
.rb-message-compose select:focus {
    outline: none;
    border-color: var(--accent);
}

.rb-messages-list {
    margin-top: 2rem;
}

/* Hover-Effekt für Nachrichten */
.rb-messages-list > div > div {
    transition: transform 0.2s, box-shadow 0.2s;
}

.rb-messages-list > div > div:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border-color: var(--accent);
}

/* ============ VERBESSERTES NACHRICHTEN-SYSTEM ============ */

/* Ungelesen Badge im Header */
.rb-msg-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    padding: 0 4px;
    margin-left: 4px;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
}

/* Ungelesen Badge in der Nachricht */
.rb-msg-unread-badge {
    display: inline-block;
    background: var(--accent);
    color: black;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
}

/* Nachrichtenelement Hover-Effekt */
.rb-msg-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: var(--accent);
}

/* Formular-Optimierung */
.rb-message-compose textarea:focus,
.rb-message-compose select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(29, 185, 84, 0.2);
}

/* Responsive Anpassung für Mobile */
@media (max-width: 600px) {
    .rb-msg-item {
        padding: 0.75rem;
    }
    .rb-msg-item > div:first-child {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}