:root {
    --primary-red: #e63946;
    --primary-blue: #457b9d;
    --dark-blue: #1d3557;
    --light-bg: #f1faee;
    --accent: #a8dadc;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light-bg);
    color: var(--dark-blue);
    min-height: 100vh;
    padding-bottom: 320px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-blue));
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

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

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Startseite - Gruppenauswahl */
.group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.group-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.group-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.group-card.gesang { border-top: 5px solid var(--primary-red); }
.group-card.keyboard { border-top: 5px solid var(--primary-blue); }
.group-card.drums { border-top: 5px solid #f4a261; }
.group-card.xylophon { border-top: 5px solid #2a9d8f; }

.group-card .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.group-card h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.group-card p {
    color: #666;
}

/* Video Container */
.video-container {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.video-container h2 {
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
}

/* Interaktive Elemente */
.interactive-section {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.interactive-section h2 {
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

/* Keyboard */
.keyboard-container {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin: 1rem 0;
    overflow-x: auto;
    padding: 1rem;
}

.white-key {
    width: 50px;
    height: 180px;
    background: var(--white);
    border: 2px solid #333;
    border-radius: 0 0 8px 8px;
    cursor: pointer;
    transition: background 0.1s;
}

.white-key:hover, .white-key:active {
    background: #ddd;
}

.white-key.playing {
    background: var(--primary-red);
}

.black-key {
    width: 30px;
    height: 110px;
    background: #333;
    border-radius: 0 0 5px 5px;
    cursor: pointer;
    margin-left: -16px;
    margin-right: -16px;
    z-index: 10;
    transition: background 0.1s;
}

.black-key:hover, .black-key:active {
    background: #555;
}

.black-key.playing {
    background: var(--primary-blue);
}

/* Drum Pads */
.drum-pads {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 400px;
    margin: 1rem auto;
}

/* Pattern Legend */
.pattern-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-kick, .legend-snare, .legend-clap, .legend-hihat {
    width: 30px;
    height: 30px;
    border-radius: 5px;
}

.legend-kick {
    background: linear-gradient(135deg, #e63946, #c1121f);
}

.legend-snare {
    background: linear-gradient(135deg, #457b9d, #1d3557);
}

.legend-clap {
    background: linear-gradient(135deg, #f4a261, #e76f51);
}

.legend-hihat {
    background: linear-gradient(135deg, #a8dadc, #457b9d);
}

/* 16er Pattern Display */
.pattern-16-container {
    background: var(--dark-blue);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.pattern-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.row-icon {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.row-label {
    width: 80px;
    font-size: 0.75rem;
    font-weight: bold;
    text-align: right;
    padding-right: 0.5rem;
}

.kick-label { color: #e63946; }
.snare-label { color: #457b9d; }
.clap-label { color: #f4a261; }
.hihat-label { color: #a8dadc; }

.pattern-16-grid {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: 3px;
    flex: 1;
}

.step-16 {
    aspect-ratio: 1;
    background: #333;
    border-radius: 3px;
    transition: background 0.15s;
}

.step-16.kick {
    background: linear-gradient(135deg, #e63946, #c1121f);
}

.step-16.snare {
    background: linear-gradient(135deg, #457b9d, #1d3557);
}

.step-16.clap {
    background: linear-gradient(135deg, #f4a261, #e76f51);
}

.step-16.hihat {
    background: linear-gradient(135deg, #a8dadc, #457b9d);
}

.beat-numbers {
    display: grid;
    grid-template-columns: 110px repeat(16, 1fr);
    gap: 3px;
    margin-top: 0.5rem;
    padding-left: 1rem;
}

.beat-spacer {
    /* Platzhalter für Icon-Label Spalte */
}

.beat-numbers span {
    text-align: center;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: bold;
}

/* Pattern Overview */
.pattern-overview-section {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.pattern-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.pattern-card {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 1rem;
    border-left: 5px solid #ccc;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pattern-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.pattern-card.active {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px var(--primary-red);
}

.pattern-card:nth-child(1) { border-left-color: #666; }
.pattern-card:nth-child(2) { border-left-color: #2a9d8f; }
.pattern-card:nth-child(3) { border-left-color: #e63946; }

.pattern-card h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
}

.pattern-card p {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.pattern-desc {
    font-style: italic;
    color: #666;
}

/* Mini Pattern */
.mini-pattern {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: 2px;
    margin-top: 0.8rem;
}

.mini-pattern span {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    border-radius: 2px;
    background: #ddd;
}

.mini-kick {
    background: linear-gradient(135deg, #e63946, #c1121f) !important;
    color: white;
}

.mini-snare {
    background: linear-gradient(135deg, #457b9d, #1d3557) !important;
    color: white;
}

.mini-hihat {
    background: linear-gradient(135deg, #a8dadc, #457b9d) !important;
    color: white;
}

/* Melody Timeline (Xylophon) */
.melody-timeline {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: 3px;
}

.melody-beat {
    aspect-ratio: 1;
    background: #333;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 0.9rem;
    transition: transform 0.1s;
}

.melody-beat.has-note {
    transform: scale(1.1);
}

/* Pattern Selection */
.pattern-selection {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.pattern-selector-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.pattern-selector-wrapper label {
    font-weight: bold;
    color: var(--dark-blue);
}

.pattern-selector-wrapper select {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    background: var(--white);
    color: var(--dark-blue);
}

/* Chord Timeline */
.chord-timeline-container {
    background: var(--dark-blue);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.chord-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chord-timeline-row {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 10px;
}

.chord-timeline-row-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.chord-beat {
    aspect-ratio: 1;
    background: #333;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.2rem;
    transition: transform 0.1s;
}

.chord-beat.has-chord {
    transform: scale(1.05);
}

.beat-numbers-beats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

.beat-numbers-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 0 10px;
}

.beat-numbers-row span {
    text-align: center;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: bold;
}

.chord-legend {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.legend-chord {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Drum Machine Section */
.drum-machine-section {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.drum-machine {
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.machine-display {
    background: #333;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 3px solid #444;
}

.machine-screen {
    background: #001100;
    border-radius: 5px;
    padding: 1rem;
    min-height: 200px;
    border: 2px solid #004400;
    box-shadow: inset 0 0 20px rgba(0, 255, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.screen-pattern {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    gap: 0.5rem;
}

.screen-row {
    display: grid;
    grid-template-columns: 60px repeat(16, 1fr);
    gap: 2px;
    align-items: center;
}

.screen-row-label {
    font-size: 0.7rem;
    font-weight: bold;
    text-align: right;
    padding-right: 0.5rem;
}

.screen-step {
    width: 100%;
    aspect-ratio: 1;
    background: #003300;
    border-radius: 2px;
    transition: background 0.1s;
}

.screen-step.active {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

.screen-step.kick { background: #ff4444; }
.screen-step.kick.active { background: #ff0000; box-shadow: 0 0 10px #ff0000; }

.screen-step.snare { background: #4488ff; }
.screen-step.snare.active { background: #0066ff; box-shadow: 0 0 10px #0066ff; }

.screen-step.clap { background: #ffaa44; }
.screen-step.clap.active { background: #ff8800; box-shadow: 0 0 10px #ff8800; }

.screen-step.hihat { background: #44cccc; }
.screen-step.hihat.active { background: #00cccc; box-shadow: 0 0 10px #00cccc; }

.machine-pads {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.machine-pad {
    aspect-ratio: 1;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.machine-pad:active {
    transform: scale(0.95);
}

.machine-pad img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.pad-icon {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--white);
}

.kick-pad {
    background: linear-gradient(135deg, #e63946, #c1121f);
}

.snare-pad {
    background: linear-gradient(135deg, #457b9d, #1d3557);
}

.clap-pad {
    background: linear-gradient(135deg, #f4a261, #e76f51);
}

.hihat-pad {
    background: linear-gradient(135deg, #a8dadc, #457b9d);
}

/* Practice Controls */
.practice-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1rem;
    background: #222;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.pattern-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pattern-selector label {
    color: var(--accent);
    font-weight: bold;
}

.pattern-selector select {
    padding: 0.5rem;
    border-radius: 5px;
    border: none;
    background: #333;
    color: white;
    font-size: 0.9rem;
}

.tempo-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tempo-control label {
    color: var(--accent);
    font-weight: bold;
}

.tempo-control input[type="range"] {
    width: 100px;
}

#tempo-display {
    color: var(--accent);
    font-weight: bold;
    min-width: 60px;
}

.practice-buttons {
    display: flex;
    gap: 0.5rem;
}

.practice-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.practice-btn:hover {
    transform: scale(1.05);
}

.start-btn {
    background: linear-gradient(135deg, #2a9d8f, #264653);
    color: white;
}

.start-btn.active {
    background: linear-gradient(135deg, #e63946, #c1121f);
}

.stop-btn {
    background: #444;
    color: white;
}

.stop-btn:hover {
    background: #555;
}

/* Step Indicator */
.step-indicator {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: 2px;
    margin-top: 0.5rem;
}

.step-light {
    width: 100%;
    aspect-ratio: 1;
    background: #002200;
    border-radius: 2px;
    transition: background 0.05s;
}

.step-light.active {
    background: #00ff00;
    box-shadow: 0 0 15px #00ff00;
}

/* Instrument Toggles */
.instrument-toggles {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-switch {
    width: 50px;
    height: 26px;
    border-radius: 13px;
    position: relative;
    transition: background 0.3s;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.toggle-label input:checked + .toggle-switch::after {
    transform: translateX(24px);
}

.toggle-label input:not(:checked) + .toggle-switch {
    background: #444;
}

.kick-bg { background: #e63946; }
.snare-bg { background: #457b9d; }
.clap-bg { background: #f4a261; }
.hihat-bg { background: #a8dadc; }

.toggle-label {
    color: #ccc;
    font-size: 0.9rem;
}

.toggle-label input:checked + .toggle-switch + span {
    color: white;
}

.drum-pad {
    aspect-ratio: 1;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
    font-weight: bold;
    color: var(--white);
    font-size: 1.2rem;
}

.drum-pad:active, .drum-pad.active {
    transform: scale(0.95);
}

.drum-pad.kick {
    background: linear-gradient(135deg, #e63946, #c1121f);
}

.drum-pad.snare {
    background: linear-gradient(135deg, #457b9d, #1d3557);
}

.drum-pad.hihat {
    background: linear-gradient(135deg, #f4a261, #e76f51);
}

/* Xylophon */
.xylophon-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 1rem 0;
    padding: 1rem;
}

.xylophon-bar {
    width: 40px;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.1s;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
    color: var(--white);
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.xylophon-bar:active, .xylophon-bar.active {
    transform: scale(1.05);
}

/* Liedtext */
.lyrics-container {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.lyrics-container h2 {
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.lyrics {
    line-height: 2;
    font-size: 1.1rem;
}

.lyrics .highlight {
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent) 100%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 90%;
    padding: 0 4px;
    cursor: pointer;
    transition: background-size 0.3s;
}

.lyrics .highlight:hover {
    background-size: 100% 100%;
}

.lyrics .verse {
    margin-bottom: 1.5rem;
}

/* Akkorde */
.chords-display {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.chord-box {
    background: var(--dark-blue);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.chord-box:hover {
    transform: scale(1.1);
    background: var(--primary-blue);
}

/* Pattern Display */
.pattern-display {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    margin: 1rem 0;
}

.pattern-step {
    aspect-ratio: 1;
    background: #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.pattern-step.active {
    background: var(--primary-red);
    color: var(--white);
}

/* Mixer (unten fixiert) */
.mixer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-blue);
    color: var(--white);
    padding: 1rem;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.mixer.collapsed {
    transform: translateY(calc(100% - 40px));
}

.mixer-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.mixer-toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.mixer.collapsed .mixer-toggle-icon {
    transform: rotate(180deg);
}

.mixer h3 {
    margin: 0;
    font-size: 1rem;
}

.mixer-content {
    transition: opacity 0.3s ease;
}

.mixer.collapsed .mixer-content {
    opacity: 0;
    pointer-events: none;
}

/* Transport Buttons */
.transport-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.btn-transport {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-play {
    background: linear-gradient(135deg, #2a9d8f, #264653);
    color: var(--white);
}

.btn-play:hover, .btn-play.active {
    background: linear-gradient(135deg, #2a9d8f, #1a6b5f);
    transform: scale(1.1);
}

.btn-pause {
    background: linear-gradient(135deg, var(--primary-red), #c1121f);
    color: var(--white);
}

.btn-pause:hover, .btn-pause.active {
    background: linear-gradient(135deg, #c1121f, #8b0000);
    transform: scale(1.1);
}

/* Player Timeline */
.player-timeline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.time-display {
    font-size: 0.9rem;
    min-width: 45px;
    color: var(--accent);
}

.timeline-slider {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    background: #555;
    border-radius: 4px;
    outline: none;
}

.timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-red);
    border-radius: 50%;
    cursor: pointer;
}

/* Verse Buttons */
.verse-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.btn-verse {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #555;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.btn-verse:hover {
    background: var(--primary-blue);
    transform: scale(1.1);
}

.btn-verse.active {
    background: var(--primary-red);
    transform: scale(1.1);
}

/* Interlude Buttons */
.btn-interlude {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #333;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.btn-interlude:hover {
    background: #4a6fa5;
    transform: scale(1.1);
}

.btn-interlude.active {
    background: #2a9d8f;
    color: var(--white);
    transform: scale(1.1);
}

.mixer-channels {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.mixer-channel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 80px;
}

.mixer-channel label {
    font-size: 0.9rem;
    font-weight: bold;
}

.channel-controls {
    display: flex;
    gap: 0.5rem;
}

.btn-mute, .btn-solo {
    width: 40px;
    height: 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-mute {
    background: #666;
    color: var(--white);
}

.btn-mute:hover {
    background: #888;
}

.btn-mute.active {
    background: var(--primary-red);
}

.btn-solo {
    background: #666;
    color: var(--white);
}

.btn-solo:hover {
    background: #888;
}

.btn-solo.active {
    background: #2a9d8f;
}

input[type="range"] {
    width: 80px;
    height: 8px;
    -webkit-appearance: none;
    background: #555;
    border-radius: 4px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
}

/* Pitch Exercise */
.pitch-exercise {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
}

.pitch-btn {
    padding: 2rem 3rem;
    font-size: 1.5rem;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.2s;
}

.pitch-btn:hover {
    transform: scale(1.05);
}

.pitch-btn.high {
    background: linear-gradient(135deg, #f4a261, #e76f51);
    color: var(--white);
}

.pitch-btn.low {
    background: linear-gradient(135deg, #457b9d, #1d3557);
    color: var(--white);
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    color: var(--dark-blue);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.back-btn:hover {
    transform: translateX(-5px);
}

/* Intro Section */
.intro-section {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

/* Keyboard Explanation Section */
.keyboard-explanation-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.keyboard-explanation-section h2 {
    text-align: center;
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
}

.explanation-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.explanation-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mini-keyboard {
    position: relative;
    display: flex;
    background: #333;
    padding: 10px;
    border-radius: 10px;
}

.mini-white-key {
    width: 40px;
    height: 120px;
    background: white;
    border: 2px solid #ccc;
    border-radius: 0 0 5px 5px;
}

.mini-black-key-group-1,
.mini-black-key-group-2 {
    position: absolute;
    display: flex;
    top: 10px;
}

.mini-black-key-group-1 {
    left: 50px;
}

.mini-black-key-group-2 {
    left: 150px;
}

.mini-black-key {
    width: 20px;
    height: 70px;
    background: #333;
    border-radius: 0 0 3px 3px;
    margin-right: 15px;
}

.mini-black-key-group-2 .mini-black-key:last-child {
    margin-right: 0;
}

.explanation-text {
    flex: 2;
}

.explanation-text h3 {
    color: var(--dark-blue);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.explanation-text p {
    margin-bottom: 0.5rem;
}

.explanation-text ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.explanation-text li {
    padding: 0.3rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.tip-box {
    background: linear-gradient(135deg, #2a9d8f, var(--accent));
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    font-weight: bold;
}

/* Instructions Section */
.instructions-section {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.instruction-card {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-blue);
}

.instruction-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.instruction-card h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
}

.instruction-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.instruction-card ul {
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
}

.instruction-card li {
    padding: 0.3rem 0;
    font-size: 0.9rem;
}

/* Instruments Grid */
.instruments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.instrument-card {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s;
}

.instrument-card:hover {
    transform: translateY(-5px);
}

.instrument-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.instrument-card h3 {
    margin-bottom: 0.3rem;
    color: var(--dark-blue);
}

.instrument-card p {
    font-size: 0.85rem;
    color: #666;
}

.instruction-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 10px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* Difficulty Section */
.difficulty-section {
    margin-bottom: 2rem;
}

.difficulty-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.difficulty-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.difficulty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.difficulty-card.selected {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px var(--primary-red);
}

.difficulty-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    color: var(--white);
}

.difficulty-header.level-1 {
    background: linear-gradient(135deg, #2a9d8f, #264653);
}

.difficulty-header.level-2 {
    background: linear-gradient(135deg, #457b9d, #1d3557);
}

.difficulty-header.level-3 {
    background: linear-gradient(135deg, #f4a261, #e76f51);
}

.difficulty-header.level-4 {
    background: linear-gradient(135deg, #e63946, #c1121f);
}

.level-number {
    font-size: 2rem;
    font-weight: bold;
}

.level-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.stars {
    font-size: 1rem;
}

.difficulty-content {
    padding: 1.5rem;
}

.difficulty-content h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
}

.difficulty-content p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Practice Section */
.practice-section {
    background: linear-gradient(135deg, var(--accent), var(--primary-blue));
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--dark-blue);
}

.practice-section h2 {
    margin-bottom: 0.5rem;
}

/* Drum Pads Labels */
.drum-pad small {
    display: block;
    font-size: 0.7rem;
    margin-top: 0.3rem;
    opacity: 0.8;
}

/* Melodie-Noten */
.melody-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
}

.note-box {
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.note-box:hover {
    transform: scale(1.1);
    background: var(--dark-blue);
}

.note-box.active {
    transform: scale(1.1);
    background: var(--primary-red);
    box-shadow: 0 0 15px var(--primary-red);
}

/* Keyboard Key Highlighting */
.white-key.chord-highlight,
.black-key.chord-highlight {
    background: #e63946 !important;
    box-shadow: 0 0 15px #e63946, 0 0 20px #e63946 inset;
}

.white-key.chord-highlight {
    border: 2px solid #c1121f;
}

.black-key.chord-highlight {
    border: 2px solid #a02020;
}

/* Chord Keyboard Wrapper */
.chord-keyboard-wrapper {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.chord-keyboard-wrapper .chord-label {
    text-align: center;
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.chord-keyboard {
    background: var(--white);
    border-radius: 10px;
    padding: 1rem;
}

/* Hintergrundfarbe pro Akkord */
.chord-keyboard-wrapper[data-chord="F"] .chord-keyboard {
    background: rgba(230, 57, 70, 0.15);
    border: 2px solid #e63946;
}

.chord-keyboard-wrapper[data-chord="Gm"] .chord-keyboard {
    background: rgba(69, 123, 157, 0.15);
    border: 2px solid #457b9d;
}

.chord-keyboard-wrapper[data-chord="Bb"] .chord-keyboard {
    background: rgba(42, 157, 143, 0.15);
    border: 2px solid #2a9d8f;
}

.chord-keyboard-wrapper[data-chord="C"] .chord-keyboard {
    background: rgba(244, 162, 97, 0.15);
    border: 2px solid #f4a261;
}

.chord-keyboard .white-key {
    width: 40px;
    height: 140px;
    cursor: default;
}

.chord-keyboard .black-key {
    width: 24px;
    height: 85px;
    margin-left: -12px;
    margin-right: -12px;
    cursor: default;
}

.chord-keyboard .chord-highlight {
    background: #e63946 !important;
    box-shadow: 0 0 10px #e63946, 0 0 15px #e63946 inset;
}

.chord-keyboard .white-key.chord-highlight {
    background: #e63946 !important;
    box-shadow: 0 0 10px #e63946, 0 0 15px #e63946 inset;
    border: 2px solid #c1121f !important;
}

.chord-keyboard .black-key.chord-highlight {
    background: #e63946 !important;
    box-shadow: 0 0 10px #e63946, 0 0 15px #e63946 inset;
    border: 2px solid #a02020 !important;
}

/* Practice Keyboard Section */
.practice-keyboard-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.practice-keyboard {
    max-width: 500px;
    margin: 1rem auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
}

/* Keyboard Practice Section */
.keyboard-practice-section {
    background: linear-gradient(135deg, var(--accent), var(--primary-blue));
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--dark-blue);
}

.current-chord-display {
    margin-top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
}

#current-chord-name {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 2rem;
    border-radius: 10px;
}

/* Step Indicator Small */
.step-indicator-small {
    display: grid;
    grid-template-columns: repeat(32, 1fr);
    gap: 2px;
    margin: 1.5rem auto;
    max-width: 600px;
}

.step-light-small {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    transition: background 0.05s;
}

.step-light-small.active {
    background: var(--primary-red);
    box-shadow: 0 0 8px var(--primary-red);
}

/* Practice Strategy Diagram - Three Circles */
.practice-strategy-section {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.practice-strategy-section h2 {
    text-align: center;
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
}

.practice-circles {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.practice-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    color: var(--white);
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: transform 0.3s ease;
}

.practice-circle:hover {
    transform: scale(1.05);
}

.practice-circle.circle-1 {
    background: linear-gradient(135deg, #2a9d8f, #264653);
}

.practice-circle.circle-2 {
    background: linear-gradient(135deg, #457b9d, #1d3557);
}

.practice-circle.circle-3 {
    background: linear-gradient(135deg, #f4a261, #e76f51);
}

.circle-number {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.circle-text {
    font-size: 1rem;
    line-height: 1.4;
}

.circle-arrow {
    font-size: 2rem;
    color: var(--primary-blue);
    font-weight: bold;
}

/* Written Instructions */
.written-instructions {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.written-instructions h3 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.written-instructions p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.written-instructions ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.written-instructions li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.written-instructions li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2a9d8f;
    font-weight: bold;
}

/* Gesang - Song Scroll Container */
.song-scroll-container {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    max-height: 70vh;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.song-scroll-container h2 {
    margin-bottom: 1.5rem;
    color: var(--dark-blue);
    text-align: center;
}

/* Song Sections */
.song-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    transition: all 0.4s ease;
}

.song-section.active {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.song-section.dimmed {
    opacity: 0.3;
    transform: scale(0.95);
}

/* Verse Section */
.verse-section {
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.1), rgba(168, 218, 220, 0.1));
    border-left: 5px solid #2a9d8f;
}

.verse-section.active {
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.2), rgba(168, 218, 220, 0.2));
    border-left-width: 8px;
}

/* Chorus Section */
.chorus-section {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1), rgba(244, 162, 97, 0.1));
    border-left: 5px solid var(--primary-red);
}

.chorus-section.active {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.2), rgba(244, 162, 97, 0.2));
    border-left-width: 8px;
}

/* Interlude Section - Progress Bar */
.interlude-section {
    background: var(--dark-blue);
    border-left: 5px solid #f4a261;
}

.interlude-section.active {
    box-shadow: 0 0 30px rgba(244, 162, 97, 0.5);
    border-left-width: 8px;
}

.interlude-bar {
    position: relative;
    height: 100px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.interlude-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f4a261, #e76f51);
    transition: width 0.1s linear;
}

.interlude-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    height: 100%;
    color: var(--white);
}

.interlude-icon {
    font-size: 2.5rem;
}

.interlude-label {
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
}

.interlude-countdown {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.interlude-countdown.warning {
    background: var(--primary-red);
    animation: pulse-warning 0.5s ease-in-out infinite;
}

.countdown-seconds {
    font-weight: bold;
    font-size: 1.3rem;
}

/* Section Label */
.section-label {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

/* Verse Text */
.verse-text {
    line-height: 2;
    font-size: 1.1rem;
}

.verse-text .highlight {
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent) 100%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 90%;
    padding: 0 4px;
}

@keyframes pulse-warning {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    .group-grid {
        gap: 1rem;
    }

    .group-card {
        padding: 1.5rem;
    }

    .white-key {
        width: 35px;
        height: 140px;
    }

    .black-key {
        width: 22px;
        height: 85px;
        margin-left: -11px;
        margin-right: -11px;
    }

    .mixer-channel {
        min-width: 60px;
    }

    input[type="range"] {
        width: 60px;
    }
}
