* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #111;
    color: #eee;
}
.box {
    width: min(760px, calc(100% - 32px));
    margin: 32px auto;
    padding: 24px;
    background: #1c1c1c;
    border: 1px solid #444;
    border-radius: 14px;
}
h1 { margin-top: 0; }
label { display: block; margin: 14px 0; }
input, textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid #666;
    border-radius: 8px;
    background: #101010;
    color: #fff;
    font: inherit;
}
button {
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    cursor: pointer;
}
.result { margin-top: 14px; min-height: 1.5em; }
.success { color: #9fe39f; }
.error { color: #ff9d9d; }
.hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
.admin-login { margin-top: 36px; }
.topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.smalllink { color: #ddd; }
.wish {
    margin: 12px 0;
    padding: 14px;
    border: 1px solid #444;
    border-radius: 10px;
    background: #151515;
}
.time, .meta {
    font-size: .85rem;
    opacity: .7;
}
.song {
    margin-top: 4px;
    font-size: 1.1rem;
}
.message {
    margin-top: 8px;
    white-space: normal;
}
.meta { margin-top: 10px; }


.admin-link {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid #444;
    text-align: right;
}
.admin-link a {
    color: #ddd;
}


.settings-panel {
    margin: 20px 0 28px;
    padding: 18px;
    border: 1px solid #444;
    border-radius: 10px;
    background: #151515;
}
.settings-panel h3 {
    margin-top: 0;
}


.tabs {
    display: flex;
    gap: 8px;
    margin: 22px 0 18px;
    border-bottom: 1px solid #444;
}
.tab {
    display: inline-block;
    padding: 10px 14px;
    color: #ddd;
    text-decoration: none;
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}
.tab.active {
    background: #151515;
    border-color: #444;
    color: #fff;
}
.wish-action {
    margin-top: 12px;
}
.wish-action button {
    width: auto;
}


/* Deutlich sichtbare Reiter */
.tabs {
    display: flex;
    gap: 0;
    margin: 24px 0 20px;
    border-bottom: 2px solid #666;
    align-items: flex-end;
}

.tabs .tab {
    display: inline-block;
    padding: 11px 18px;
    margin: 0 4px -2px 0;
    border: 1px solid #666;
    border-bottom: 2px solid #666;
    border-radius: 8px 8px 0 0;
    background: #262626;
    color: #f2f2f2;
    text-decoration: none;
    font-weight: 600;
}

.tabs .tab:visited {
    color: #f2f2f2;
}

.tabs .tab:hover {
    background: #303030;
}

.tabs .tab.active {
    background: #151515;
    color: #ffffff;
    border-bottom-color: #151515;
    position: relative;
    z-index: 1;
}

.tabs .tab.active:visited {
    color: #ffffff;
}

@media (max-width: 560px) {
    .tabs {
        flex-wrap: wrap;
        gap: 6px;
        border-bottom: 0;
    }

    .tabs .tab,
    .tabs .tab.active {
        margin: 0;
        border: 1px solid #666;
        border-radius: 8px;
    }
}


.toggle-setting {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #555;
    border-radius: 8px;
    background: #202020;
}
.toggle-setting input {
    display: inline-block;
    width: 22px;
    height: 22px;
    margin: 0;
}
.request-status {
    margin: 12px 0;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 700;
}
.request-status.open { background: #17351d; color: #b9efbf; }
.request-status.closed { background: #3a1d1d; color: #ffb7b7; }


.voice-message {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 8px;
    background: #202020;
}
.voice-label {
    margin-bottom: 6px;
    font-weight: 700;
}
.voice-message audio {
    display: block;
    width: 100%;
}

.stations-panel {
    margin: 20px 0 28px;
    padding: 18px;
    border: 1px solid #444;
    border-radius: 10px;
    background: #151515;
}
.stations-panel h3 { margin-top: 0; }
.station-admin-list { display: grid; gap: 8px; }
.station-admin-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #555;
    border-radius: 8px;
    background: #202020;
    color: #eee;
    text-decoration: none;
}
.station-admin-item span { opacity: .72; font-size: .9rem; }
.station-admin-item.active { border-color: #aaa; background: #303030; }
.add-station { margin-top: 16px; }
.add-station summary { cursor: pointer; font-weight: 700; }
select {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid #666;
    border-radius: 8px;
    background: #101010;
    color: #fff;
    font: inherit;
}

/* Aktives Frontend-Radio */
.station-admin-row{display:flex;align-items:stretch;gap:8px;margin-bottom:8px}
.station-admin-row .station-admin-item{flex:1;margin-bottom:0}
.station-activate-form{margin:0;display:flex;align-items:stretch}
.station-activate-form button{margin:0;white-space:nowrap}
.station-active-badge{display:flex;align-items:center;padding:0 12px;border-radius:8px;background:#245d34;color:#fff;font-weight:700}
