/**
 * DHS Voting Styles
 * Minimalistisch, nüchtern, funktional
 */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #000;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.site-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.site-header .logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.site-header .tagline {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 5px;
}

/* Main Content */
main {
    background: #fff;
    padding: 40px 20px;
    margin: 30px auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Voting Intro */
.voting-intro {
    margin-bottom: 40px;
}

.voting-intro h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.voting-intro p {
    margin-bottom: 10px;
}

.time-indicator {
    font-size: 1.1rem;
    padding: 15px;
    background: #f0f0f0;
    border-left: 4px solid #000;
    margin-top: 20px;
}

.time-indicator span {
    font-weight: bold;
    font-size: 1.3rem;
}

.time-indicator.over-limit span {
    color: #c00;
}

/* Song List */
.song-list-container {
    position: relative;
    margin-bottom: 40px;
}

.song-list {
    list-style: none;
    border: 1px solid #ddd;
}

.song-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #fff;
    border-bottom: 1px solid #ddd;
    cursor: move;
    transition: background 0.2s;
}

.song-item:hover {
    background: #f9f9f9;
}

.song-item:last-child {
    border-bottom: none;
}

.song-item.within-limit {
    border-left: 4px solid #4CAF50;
}

.song-item.over-limit {
    border-left: 4px solid #f44336;
    background: #fff5f5;
}

.song-rank {
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 40px;
    color: #666;
}

.song-title {
    flex: 1;
    font-size: 1rem;
}

.song-duration {
    font-size: 0.9rem;
    color: #999;
    min-width: 50px;
    text-align: right;
    margin-right: 15px;
}

.song-points {
    font-size: 0.85rem;
    font-weight: bold;
    color: #4CAF50;
    min-width: 60px;
    text-align: right;
    margin-right: 15px;
}

.song-item.over-limit .song-points {
    color: #999;
}

.song-listen {
    font-size: 0.85rem;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    padding: 4px 12px;
    border: 1px solid #000;
    border-radius: 3px;
    transition: all 0.2s;
}

.song-listen:hover {
    background: #000;
    color: #fff;
}

.song-item-ghost {
    opacity: 0.4;
}

.song-item-drag {
    background: #e8e8e8;
}

/* LP Limit Marker */
.lp-limit-marker {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: #f44336;
    z-index: 10;
}

.lp-limit-marker span {
    display: inline-block;
    background: #f44336;
    color: #fff;
    padding: 5px 10px;
    font-size: 0.85rem;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* Form */
.voting-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: Arial, Helvetica, sans-serif;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
}

.form-help {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.checkbox-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
}

.form-note {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #333;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 3px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-success a {
    color: #155724;
    font-weight: bold;
    text-decoration: underline;
}

.alert-success a:hover {
    color: #0c3d14;
}

/* Footer */
.site-footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer p {
    margin-bottom: 10px;
}

.bandcamp-link {
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header h1 {
        font-size: 2rem;
    }
    
    .song-item {
        font-size: 0.9rem;
    }
    
    .song-rank {
        min-width: 30px;
    }
    
    .lp-limit-marker span {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
}

/* Privacy Page */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #000;
}

.privacy-content h2 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.privacy-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.privacy-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.privacy-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.privacy-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.back-link {
    color: #000;
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

/* Results Page */
.results-content {
    max-width: 900px;
    margin: 0 auto;
}

.results-content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #000;
}

.results-stats {
    background: #f0f0f0;
    padding: 20px;
    margin-bottom: 30px;
    border-left: 4px solid #000;
}

.results-stats p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.results-note {
    font-size: 0.95rem !important;
    color: #666;
    margin-top: 10px !important;
}

.results-table-container {
    overflow-x: auto;
    margin-bottom: 30px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #ddd;
}

.results-table thead {
    background: #000;
    color: #fff;
}

.results-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: bold;
    font-size: 0.95rem;
}

.results-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
}

.results-table tbody tr:last-child td {
    border-bottom: none;
}

.results-table tbody tr:hover {
    background: #f9f9f9;
}

/* Spaltenbreiten */
.col-rank {
    width: 80px;
    text-align: center;
}

.col-title {
    width: auto;
}

.col-duration {
    width: 100px;
    text-align: right;
}

.col-points {
    width: 100px;
    text-align: right;
    font-weight: bold;
}

.col-votes {
    width: 120px;
    text-align: right;
}

/* LP-Status */
.results-table tbody tr.on-lp {
    border-left: 4px solid #4CAF50;
}

.results-table tbody tr.off-lp {
    border-left: 4px solid #f44336;
    background: #fff5f5;
}

.lp-badge {
    display: inline-block;
    background: #4CAF50;
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

/* LP-Trennlinie */
.results-table tr.lp-divider td {
    padding: 0;
    border: none;
    background: transparent;
}

.lp-divider-content {
    background: #f44336;
    color: #fff;
    text-align: center;
    padding: 8px;
    font-size: 0.9rem;
    font-weight: bold;
}

.results-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.lp-explanation {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 3px solid #4CAF50;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .results-table {
        font-size: 0.9rem;
    }
    
    .results-table th,
    .results-table td {
        padding: 8px 10px;
    }
    
    .col-duration,
    .col-votes {
        display: none;
    }
}
