/* Hessische Wakeword Sammlung - Corporate Design */
/* Farben: Dunkelblau #515f7f, Hellblau #91a0bf, Gelb #ffc038 */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #515f7f 0%, #91a0bf 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    /* background: linear-gradient(135deg, #515f7f, #91a0bf); */
    background: linear-gradient(210deg, #ffc038, #515f7f);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header p {
    font-size: 1.2em;
    opacity: 0.9;
}

.thorsten-logo {
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0.3;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    line-height: 1.2;
}

.thorsten-logo:hover {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.content {
    padding: 40px;
}

.intro {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 5px solid #ffc038;
}

.intro h2 {
    color: #515f7f;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.intro p {
    line-height: 1.6;
    color: #666;
    margin-bottom: 10px;
}

.wakeword-selection {
    margin-bottom: 30px;
}

.wakeword-selection h3 {
    margin-bottom: 20px;
    color: #515f7f;
    font-size: 1.3em;
}

.wakeword-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.wakeword-btn {
    padding: 15px 25px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
}

.wakeword-btn:hover {
    border-color: #91a0bf;
    background: #f0f8ff;
}

.wakeword-btn.selected {
    background: #515f7f;
    color: white;
    border-color: #515f7f;
}

.recording-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.recording-section h3 {
    color: #515f7f;
    margin-bottom: 20px;
}

.recording-controls {
    margin-bottom: 25px;
}

.control-btn {
    padding: 15px 30px;
    margin: 0 10px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.record-btn {
    background: linear-gradient(45deg, #515f7f, #91a0bf);
    color: white;
}

.record-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(81, 95, 127, 0.4);
}

.record-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.stop-btn {
    background: linear-gradient(45deg, #ffc038, #ffb000);
    color: white;
}

.stop-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 192, 56, 0.4);
}

.play-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.play-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.save-btn {
    background: linear-gradient(45deg, #515f7f, #91a0bf);
    color: white;
}

.save-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(81, 95, 127, 0.4);
}

.save-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.visualizer {
    width: 100%;
    height: 150px;
    border: 2px solid #ddd;
    border-radius: 10px;
    margin: 20px 0;
    background: #fff;
}

.status {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
}

.status.recording {
    background: #ffe6e6;
    color: #dc3545;
    border-left: 5px solid #dc3545;
}

.status.success {
    background: #e6ffe6;
    color: #28a745;
    border-left: 5px solid #28a745;
}

.status.warning {
    background: #fff3cd;
    color: #856404;
    border-left: 5px solid #ffc038;
}

.status.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 5px solid #dc3545;
}

.recording-timer {
    font-size: 1.2em;
    font-weight: bold;
    color: #515f7f;
    margin: 15px 0;
}

.duration-warning {
    color: #ffc038;
    font-weight: bold;
}

.duration-danger {
    color: #dc3545;
    font-weight: bold;
}

.statistics {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.statistics h3 {
    margin-bottom: 20px;
    color: #515f7f;
}

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

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

.form-group select,
.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #91a0bf;
}

.consent {
    background: #fff3cd;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 5px solid #ffc038;
}

.consent label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    line-height: 1.6;
}

.consent input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 4px;
    transform: scale(1.2);
}

.consent-required {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.recordings-list {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
}

.recordings-list h3 {
    margin-bottom: 20px;
    color: #515f7f;
}

.recording-item {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 5px solid #91a0bf;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
    }

    .content {
        padding: 20px;
    }

    .control-btn {
        padding: 12px 20px;
        margin: 5px;
        font-size: 1em;
    }

    .wakeword-buttons {
        grid-template-columns: 1fr;
    }

    .thorsten-logo {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 15px;
        opacity: 0.5;
    }

    .header h1 {
        font-size: 2em;
    }

    .header p {
        font-size: 1em;
    }
}

/* Progress Bar für Recording Timer */
.recording-progress {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin: 10px 0;
    overflow: hidden;
}

.recording-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #ffc038, #dc3545);
    border-radius: 4px;
    transition: width 0.1s ease;
}

/* Trimming Status */
.trimming-status {
    background: #e3f2fd;
    color: #1565c0;
    border-left-color: #2196f3;
    margin: 10px 0;
    padding: 10px 15px;
    border-radius: 5px;
    border-left: 4px solid;
    font-size: 0.9em;
}