/* =========================================
   1. GLOBAL & VARIABLES
   ========================================= */
:root {
    --na-primary: #e67e22;
    --na-bg-body: #f4f6f8;
    --na-bg-card: #ffffff;
    --na-text-main: #2c3e50;
    --na-radius: 12px;
    --na-shadow: 0 4px 20px rgba(0,0,0,0.04);
    --na-border: #e1e4e8;
}

.na-wrapper, .na-single-wrapper { 
    width: 100%; max-width: 1100px; margin: 40px auto; padding: 0 20px; box-sizing: border-box; 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--na-text-main); 
}

/* Buttons */
.na-btn, .na-btn-pill { 
    background: #fff; border: 1px solid var(--na-border); padding: 6px 16px; border-radius: 30px; 
    font-size: 13px; font-weight: 600; color: #555; cursor: pointer; transition: all 0.2s; 
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; 
}
.na-btn:hover, .na-btn-pill:hover { border-color: var(--na-primary); color: var(--na-primary); transform: translateY(-1px); }
.na-btn-pill.primary { background: var(--na-primary); color: #fff; border-color: var(--na-primary); }
.na-btn-pill.primary:hover { opacity: 0.9; transform: translateY(-1px); }

/* =========================================
   2. DETAILANSICHT (LOGIK & LAYOUT)
   ========================================= */
.na-single-card { background: transparent; padding: 0; border: none; box-shadow: none; position: relative; }

/* Blocks */
.na-block { background: var(--na-bg-card); border-radius: var(--na-radius); padding: 35px; margin-bottom: 30px; box-shadow: var(--na-shadow); border: 1px solid #f0f0f0; position: relative; overflow: hidden; }
.na-block-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid #f0f0f0; }
.na-block-header h3 { margin: 0; font-size: 18px; font-weight: 800; color: #333; }

/* Header Elements */
.na-edit-pos-wrapper { position: absolute; top: 35px; right: 35px; z-index: 10; }
.na-header-flex { display: flex; gap: 30px; align-items: flex-start; }
.na-single-icon-box { width: 90px !important; height: 90px !important; background: #f8f9fa; border-radius: 22px; border: 1px solid #eee; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.na-single-icon-box img { width: 50px !important; height: 50px !important; object-fit: contain; margin: 0 !important; }
.na-single-title-group h1 { margin: 0 0 5px 0; font-size: 36px; line-height: 1.1; color: #2c3e50; font-weight: 800; }
.na-meta-tag { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--na-primary); display: block; margin-bottom: 5px; }

/* Info Grid */
.na-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-top: 35px; padding-top: 25px; border-top: 1px solid #f5f5f5; }
.na-label { font-size: 10px; text-transform: uppercase; color: #aaa; font-weight: 700; display: block; margin-bottom: 6px; }
.na-value { font-size: 16px; font-weight: 700; color: #333; }
.na-bars-large .na-bar { width: 30px; height: 6px; margin-right: 3px; display: inline-block; background: #e0e0e0; border-radius: 3px; }
.na-bar.active { background: var(--na-primary); }

/* --- LOGIK: LEERE FELDER VERSTECKEN --- */
.na-hide-if-empty { display: none !important; }
/* Im Bearbeiten-Modus anzeigen (ausgegraut) */
.na-mode-edit .na-hide-if-empty { 
    display: block !important; 
    opacity: 0.6; 
    border: 1px dashed #ccc; 
    background: #fafafa;
    padding: 10px; 
    border-radius: 8px; 
    margin-bottom: 15px;
}
.na-mode-edit .na-hide-if-empty::before {
    content: "+ Inhalt hinzufügen"; display: block; font-size: 10px; color: var(--na-primary); font-weight: bold; margin-bottom: 5px; text-transform: uppercase;
}

/* Besetzung & Instrumente */
/* Toolbar ist standardmäßig unsichtbar */
.na-inst-toolbar { display: none; background: #fff8f0; border: 1px dashed var(--na-primary); padding: 15px; border-radius: 6px; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; align-items: center; }
/* Toolbar erscheint NUR im Edit Mode */
.na-mode-edit .na-inst-toolbar { display: flex; }

.na-add-inst-btn, .na-btn-guest {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    color: #374151;
    transition: all .15s;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}
.na-add-inst-btn:hover, .na-btn-guest:hover {
    border-color: var(--na-primary, #e67e22);
    color: var(--na-primary, #e67e22);
    background: color-mix(in srgb, var(--na-primary, #e67e22) 6%, #fff);
}
.na-add-inst-btn img { width: 16px !important; height: 16px !important; min-width: 16px; object-fit: contain; margin: 0 !important; display: block !important; border: none; box-shadow: none; }

.na-fe-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px; align-items: start; }
.na-fe-slot-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; transition: all 0.2s; }
.na-fe-slot-header { background: #fcfcfc; padding: 10px 12px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.na-slot-title { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #333; }
.na-slot-title img.na-mini-icon, .na-add-inst-btn img.na-mini-icon { width: 20px !important; height: 20px !important; object-fit: contain; margin: 0 !important; filter: grayscale(100%); opacity: 0.7; }

/* Remove Button nur im Edit Mode */
.na-remove-slot { display: none; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 50%; background: #fff; border: 1px solid #eee; color: #999; cursor: pointer; margin-left: auto; font-size: 14px; }
.na-mode-edit .na-remove-slot { display: flex; }
.na-remove-slot:hover { background: #fee; color: #e74c3c; border-color: #e74c3c; }
/* Versteckte Slots */
.na-slot-hidden { display: none !important; }
.na-fe-remove { 
    margin-left: 6px; 
    color: #ccc; 
    cursor: pointer; 
    font-weight: bold; 
    display: inline-block; /* Wichtig */
}
.na-fe-remove:hover { 
    color: #e74c3c; 
}

/* Entferne Instrument-Slot: Nur im Edit Mode */
.na-remove-slot { 
    display: none; 
    /* ... weitere styles ... */
}
.na-mode-edit .na-remove-slot { 
    display: flex; 
}
.na-fe-sortable-list { padding: 10px; min-height: 50px; display: flex; flex-wrap: wrap; gap: 5px; background: #fff; flex-grow: 1; }
.na-fe-pill { background: #f0f2f5; border: 1px solid #e1e4e8; padding: 4px 10px 4px 4px; border-radius: 20px; font-size: 12px; display: inline-flex; align-items: center; cursor: grab; position: relative; }
.na-fe-avatar { width: 22px; height: 22px; border-radius: 50%; background: #ccc; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10px; margin-right: 6px; }
.na-fe-remove { margin-left: 6px; color: #ccc; cursor: pointer; font-weight: bold; }
.na-fe-pool-wrapper { margin-top: 40px; background: #fafafa; border: 1px solid #eee; border-radius: 12px; padding: 20px; }
.na-pool-group-title { font-size: 10px; font-weight: bold; text-transform: uppercase; color: #999; border-bottom: 1px solid #eee; margin-bottom: 8px; padding-bottom: 4px; }

/* Media, Video, Downloads Grid */
.na-media-grid { display: grid; grid-template-columns: 1fr 1fr; gap:30px; margin-bottom:30px; }
.na-player-wrapper {
    background: #fafbfc;
    border: 1.5px solid #f1f5f9;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.na-player-ui {
    display: flex;
    align-items: center;
    gap: 14px;
}
#na-play-btn {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--na-primary, #e67e22);
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--na-primary,#e67e22) 40%, transparent);
    transition: all .2s;
    -webkit-tap-highlight-color: transparent;
}
#na-play-btn:hover { opacity: .88; transform: translateY(-1px); }
#na-play-btn:active { transform: scale(.94); }
.na-wave-container {
    flex: 1;
    min-height: 56px;
}
.na-audio-tools {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 2px;
}
.na-vol-wrap {
    display: flex; align-items: center; gap: 8px;
    flex: 1;
}
.na-vol-wrap span { font-size: 14px; color: #94a3b8; }
#na-volume-slider {
    flex: 1; height: 5px; border-radius: 3px;
    outline: none; cursor: pointer;
    accent-color: var(--na-primary, #e67e22);
    -webkit-appearance: none;
    background: linear-gradient(to right, var(--na-primary,#e67e22) 0%, var(--na-primary,#e67e22) 100%, #e2e8f0 100%, #e2e8f0 100%);
    max-width: 120px;
}
#na-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--na-primary, #e67e22);
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
    cursor: pointer;
}
.na-speed-wrap { position: relative; }
.na-speed-btn {
    padding: 6px 12px;
    background: #fff; color: #374151;
    border: 1.5px solid #e2e8f0; border-radius: 50px;
    font-size: 12px; font-weight: 700; font-family: inherit;
    cursor: pointer; transition: all .15s;
}
.na-speed-btn:hover { border-color: var(--na-primary,#e67e22); color: var(--na-primary,#e67e22); }
.na-speed-menu {
    display: none;
    position: absolute; bottom: calc(100% + 6px); right: 0;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 100;
    min-width: 80px;
}
.na-speed-item {
    display: block;
    padding: 6px 12px;
    font-size: 13px; font-weight: 600; color: #374151;
    cursor: pointer; border-radius: 7px;
    transition: background .1s;
}
.na-speed-item:hover { background: color-mix(in srgb, var(--na-primary,#e67e22) 10%, #fff); color: var(--na-primary,#e67e22); }

/* ── Professional Metronome ──────────────────────────────────────────────────── */
.na-metro-pro {
    background: #fff;
    border: 1.5px solid var(--na-border, #e4e4e7);
    border-radius: 18px;
    padding: 22px 20px 18px;
    font-family: inherit;
    transition: box-shadow .25s;
    position: relative;
    overflow: hidden;
}
.na-metro-pro.running {
    border-color: var(--na-primary, #e67e22);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--na-primary, #e67e22) 12%, transparent),
                0 8px 32px rgba(0,0,0,.08);
}
/* Header */
.na-mp-header {
    display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.na-mp-icon { font-size: 22px; line-height: 1; }
.na-mp-title { font-size: 14px; font-weight: 700; color: #18181b; line-height: 1; }
.na-mp-subtitle { font-size: 11px; color: #94a3b8; margin-top: 2px; font-style: italic; }

/* Beat indicators */
.na-mp-beats {
    display: flex; justify-content: center; gap: 10px;
    margin-bottom: 20px;
    min-height: 32px;
    align-items: center;
}
.na-mp-beat {
    width: 28px; height: 28px; border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    transition: all .08s ease;
    position: relative;
}
.na-mp-beat.beat-1 {
    width: 34px; height: 34px;
    background: color-mix(in srgb, var(--na-primary, #e67e22) 8%, #fff);
    border-color: color-mix(in srgb, var(--na-primary, #e67e22) 30%, #e2e8f0);
}
.na-mp-beat.active {
    background: var(--na-primary, #e67e22) !important;
    border-color: var(--na-primary, #e67e22) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--na-primary, #e67e22) 25%, transparent),
                0 4px 12px rgba(0,0,0,.15);
    transform: scale(1.18);
}
.na-mp-beat.beat-1.active {
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--na-primary, #e67e22) 30%, transparent),
                0 4px 16px rgba(0,0,0,.2);
    transform: scale(1.28);
}

/* Pendulum */
.na-mp-pendulum-wrap {
    height: 100px; display: flex; justify-content: center; align-items: flex-start;
    margin-bottom: 16px; overflow: hidden;
}
.na-mp-pendulum {
    position: relative; width: 4px; height: 80px;
    transform-origin: top center;
    transform: rotate(0deg);
    transition: none;
}
.na-mp-pendulum-line {
    width: 3px; height: 100%; background: linear-gradient(to bottom, #e2e8f0, var(--na-primary, #e67e22));
    border-radius: 2px; margin: 0 auto;
}
.na-mp-pendulum-ball {
    position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
    width: 20px; height: 20px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff, var(--na-primary, #e67e22));
    box-shadow: 0 3px 10px rgba(0,0,0,.2);
}
.na-metro-pro.running .na-mp-pendulum {
    animation: na-pendulum-swing var(--pendulum-dur, 600ms) ease-in-out infinite alternate;
}
@keyframes na-pendulum-swing {
    from { transform: rotate(-22deg); }
    to   { transform: rotate(22deg); }
}

/* BPM section */
.na-mp-bpm-section {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-bottom: 12px;
}
.na-mp-adj {
    padding: 8px 14px; border: 1.5px solid #e2e8f0; border-radius: 10px;
    background: #fafbfc; color: #374151; font-size: 13px; font-weight: 700;
    cursor: pointer; font-family: inherit; transition: all .15s; white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.na-mp-adj:hover { border-color: var(--na-primary, #e67e22); color: var(--na-primary, #e67e22); background: #fff; }
.na-mp-adj:active { transform: scale(.94); }
.na-mp-adj-sm { padding: 8px 10px; font-size: 18px; }

.na-mp-bpm-display {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 90px;
}
.na-mp-bpm-val {
    width: 90px; text-align: center;
    font-size: 42px; font-weight: 900; line-height: 1;
    color: var(--na-primary, #e67e22);
    border: none !important; outline: none; background: transparent;
    font-family: inherit; -moz-appearance: textfield;
    padding: 0;
}
.na-mp-bpm-val::-webkit-inner-spin-button,
.na-mp-bpm-val::-webkit-outer-spin-button { -webkit-appearance: none; }
.na-mp-bpm-label {
    font-size: 11px; font-weight: 800; letter-spacing: .1em; color: #94a3b8;
    text-transform: uppercase; margin-top: 2px;
}

/* Slider */
.na-mp-slider-wrap {
    display: flex; align-items: center; gap: 8px;
}
.na-mp-slider-label { font-size: 11px; color: #94a3b8; font-weight: 600; min-width: 28px; text-align: center; }
.na-mp-slider {
    flex: 1; height: 5px; border-radius: 3px; outline: none; cursor: pointer;
    accent-color: var(--na-primary, #e67e22);
    -webkit-appearance: none;
    background: linear-gradient(to right, var(--na-primary,#e67e22) 0%, var(--na-primary,#e67e22) var(--slider-pct,40%), #e2e8f0 var(--slider-pct,40%), #e2e8f0 100%);
}
.na-mp-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--na-primary, #e67e22);
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    cursor: pointer;
}

/* Buttons */
.na-mp-start {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 32px;
    background: var(--na-primary, #e67e22); color: #fff;
    border: none; border-radius: 50px;
    font-size: 15px; font-weight: 700; font-family: inherit;
    cursor: pointer; letter-spacing: .02em;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--na-primary,#e67e22) 40%, transparent);
    transition: all .2s; -webkit-tap-highlight-color: transparent;
}
.na-mp-start:hover { opacity: .88; transform: translateY(-1px); }
.na-mp-start:active { transform: scale(.96); }
.na-mp-start.running {
    background: #ef4444;
    box-shadow: 0 4px 16px rgba(239,68,68,.4);
    animation: na-mp-pulse 1s ease-in-out infinite;
}
@keyframes na-mp-pulse {
    0%,100% { box-shadow: 0 4px 16px rgba(239,68,68,.4); }
    50% { box-shadow: 0 4px 24px rgba(239,68,68,.6); }
}

.na-mp-tap {
    padding: 13px 18px;
    background: #fff; color: #374151;
    border: 1.5px solid #e2e8f0; border-radius: 50px;
    font-size: 14px; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: all .15s; -webkit-tap-highlight-color: transparent;
}
.na-mp-tap:hover { border-color: var(--na-primary,#e67e22); color: var(--na-primary,#e67e22); }
.na-mp-tap:active { background: color-mix(in srgb, var(--na-primary,#e67e22) 8%, #fff); transform: scale(.96); }
/* keep legacy compat */
.na-metro-modern { display: none; }
.na-dl-grid-full { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }
.na-dl-item { background: #fff; border: 1px solid #eee; border-radius: 12px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; position: relative; height: 100%; min-height: 160px; }
.na-dl-thumb { height: 100px; background: #fcfcfc; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #f0f0f0; font-size: 32px; color: #ddd; }
.na-dl-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.na-dl-info { padding: 12px; text-align: center; flex-grow: 1; }
.na-dl-name { font-size: 13px; font-weight: 600; color: #333; margin-bottom: 4px; line-height: 1.4; word-break: break-word; }
.na-dl-ext { font-size: 10px; color: #aaa; text-transform: uppercase; font-weight: 800; }
.na-dl-add-card { border: 2px dashed #ddd; background: #fafafa; border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; min-height: 160px; color: #ccc; font-size: 40px; font-weight: 100; flex-direction: column; }
.na-dl-remove { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; background: #fff; border-radius: 50%; color: #e74c3c; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0,0,0,0.1); cursor: pointer; font-weight: bold; opacity: 0; transition: opacity 0.2s; z-index: 10; }
.na-mode-edit .na-dl-item:hover .na-dl-remove { opacity: 1; }
.na-video-container { background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.na-video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; }
.na-video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* UTILS: Inputs verstecken */
.na-hidden-control, .na-hidden-control-block, #na-dl-upload-input, #na-audio-upload-input { display: none !important; }
.na-mode-edit .na-hidden-control { display: inline-flex !important; }
.na-mode-edit .na-hidden-control-block { display: block !important; }
.na-mode-edit #na-audio-upload-input { display: block !important; margin-top: 10px; }
.na-inline-input { width: 100%; padding: 6px; border: 1px solid var(--na-primary); border-radius: 4px; font-family: inherit; font-size: inherit; }
.na-editable:hover, .na-editable-select:hover, .na-editable-area:hover { cursor: default; }
.na-mode-edit .na-editable:hover, .na-mode-edit .na-editable-select:hover, .na-mode-edit .na-editable-area:hover { background: rgba(230, 126, 34, 0.05); cursor: text; outline: 1px dashed var(--na-primary); border-radius: 4px; }
/* =========================================
   3. ARCHIV / ÜBERSICHT (MODERN CARDS)
   ========================================= */

/* --- Filter & Controls --- */
.na-archive-controls { 
    display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 40px; 
    align-items: center; justify-content: space-between; 
    background: #fff; padding: 20px; border-radius: 16px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); border: 1px solid #f0f0f0; 
}
.na-filter-bar { display: flex; flex-wrap: wrap; gap: 12px; flex-grow: 1; align-items: center; }

.na-search-group input, .na-filter-group select { 
    padding: 10px 16px; border: 1px solid #e1e4e8; border-radius: 50px; 
    font-size: 14px; outline: none; background: #fcfcfc; color: #555; 
    font-weight: 500; transition: all 0.2s; min-height: 42px; cursor: pointer;
}
.na-search-group input { min-width: 200px; cursor: text; }
.na-search-group input:focus, .na-filter-group select:focus { 
    border-color: var(--na-primary); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--dca-primary,#e67e22) 40%, transparent); 
}

/* Multi Select */
.na-multi-select-wrapper { position: relative; }
.na-multi-select-btn { background: #fcfcfc; border: 1px solid #e1e4e8; padding: 10px 16px; border-radius: 50px; font-size: 14px; color: #555; font-weight: 500; cursor: pointer; min-height: 42px; min-width: 160px; text-align: left; }
.na-multi-dropdown { display: none; position: absolute; top: 110%; left: 0; background: #fff; border: 1px solid #e1e4e8; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); padding: 10px; z-index: 100; min-width: 200px; max-height: 300px; overflow-y: auto; }
.na-multi-dropdown.show { display: block; }
.na-multi-option { display: flex; align-items: center; gap: 8px; padding: 6px 8px; cursor: pointer; font-size: 13px; border-radius: 6px; }
.na-multi-option:hover { background: #f9f9f9; }

/* View Switcher */
/* view switch - unified in shared section below */

.na-archive-grid { display: grid; gap: 20px; }

/* ================== LIST VIEW (Compact Row) ================== */
.na-view-list .na-archive-grid { display: flex; flex-direction: column; gap: 10px; }
.na-view-list .na-card-item { 
    display: grid; 
    grid-template-columns: 60px 2.2fr 1fr 2fr 0.8fr 60px 180px; 
    align-items: center; gap: 20px; 
    background: #fff; padding: 15px 25px; border-radius: 12px; 
    border: 1px solid #eef0f2; box-shadow: 0 2px 5px rgba(0,0,0,0.02); 
    transition: all 0.2s ease; 
}
.na-view-list .na-card-item:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); border-color: #e0e0e0; }
.na-view-list .na-card-image { width: 50px; height: 50px; background: #f8f9fa; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.na-view-list .na-card-image img { width: 28px !important; height: 28px !important; object-fit: contain; opacity: 0.8; }
.na-view-list .na-card-title h3 { margin: 0; font-size: 15px; font-weight: 700; color: #2c3e50; }
.na-view-list .na-card-title span { font-size: 12px; color: #95a5a6; }
.na-view-list .na-card-meta { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.na-view-list .na-card-inst-icons { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.na-view-list .na-inst-mini-icon { width: 24px; height: 24px; object-fit: contain; filter: grayscale(100%); opacity: 0.6; }
.na-view-list .na-card-rep { font-size: 13px; font-weight: 600; color: var(--na-primary); }
.na-view-list .na-card-diff { display: flex; justify-content: center; }
.na-view-list .na-card-actions { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }

/* ================== GRID VIEW (BIG CARDS) ================== */
.na-view-grid .na-archive-grid { 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 25px; 
}

.na-view-grid .na-card-item { 
    background: #fff; 
    border: 1px solid #eef0f2; 
    border-radius: 20px; 
    padding: 30px 25px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; /* ZENTRIERT ALLES */
    text-align: center;  /* ZENTRIERTER TEXT */
    gap: 15px; 
    position: relative; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    height: 100%; 
    box-sizing: border-box; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.na-view-grid .na-card-item:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.08); 
    border-color: transparent; 
}

/* Grosses Icon Oben */
.na-view-grid .na-card-image { 
    width: 80px; height: 80px; 
    background: #fff8f0; /* Leichter Accent Background */
    border-radius: 50%; /* Rund */
    display: flex; align-items: center; justify-content: center; 
    margin-bottom: 10px;
    border: 1px solid #fcefdc;
}
.na-view-grid .na-card-image img { 
    width: 45px !important; height: 45px !important; 
    object-fit: contain; 
}

/* Titel Zentral */
.na-view-grid .na-card-title h3 { margin: 0 0 5px 0; font-size: 18px; font-weight: 800; color: #2c3e50; }
.na-view-grid .na-card-title span { font-size: 13px; color: #999; font-weight: 500; display: block; }

/* Meta Zentral */
.na-view-grid .na-card-meta { display: flex; gap: 8px; justify-content: center; }

/* Repertoire & Instrumente */
.na-view-grid .na-card-rep { font-size: 12px; color: var(--na-primary); font-weight: 700; margin-top: 5px; }
.na-view-grid .na-card-inst-icons { display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; padding: 0 20px; }
.na-view-grid .na-inst-mini-icon { width: 22px; height: 22px; opacity: 0.5; filter: grayscale(100%); }

/* Footer Actions (Breit) */
.na-view-grid .na-card-actions { 
    margin-top: auto; 
    padding-top: 20px; 
    width: 100%;
    border-top: 1px solid #f5f5f5; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

/* Schwierigkeit oben rechts schwebend */
.na-view-grid .na-card-diff { 
    position: absolute; top: 20px; right: 20px; 
    background: #fff; padding: 5px 8px; border-radius: 8px; border: 1px solid #eee;
}
.na-view-grid .na-bars { height: 10px; gap: 2px; }
.na-view-grid .na-bar { width: 3px; }

/* --- Globale Elemente --- */
.na-badge { font-size: 10px; text-transform: uppercase; background: #f0f2f5; padding: 4px 10px; border-radius: 6px; font-weight: 700; color: #636e72; }
.na-btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; padding: 8px 20px; border-radius: 50px; background: #fff; border: 1px solid #e1e4e8; color: #555; transition: all 0.2s; }
.na-btn:hover { border-color: var(--na-primary); color: var(--na-primary); background: #fff; box-shadow: 0 3px 10px color-mix(in srgb, var(--dca-primary,#e67e22) 40%, transparent); }
.na-fav-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; border: 1px solid #e1e4e8; color: #ccc; font-size: 18px; cursor: pointer; transition: all 0.2s; }
.na-fav-icon:hover, .na-fav-icon.active { border-color: #e74c3c; color: #e74c3c; background: #fff; }
.na-fav-icon.active { background: #e74c3c; color: #fff; }

.na-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.na-page-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: #fff; border: 1px solid #e1e4e8; cursor: pointer; }
.na-page-btn.active { background: var(--na-primary); color: #fff; border-color: var(--na-primary); }

/* MOBILE RESPONSIVE (Deutliche Unterscheidung) */
@media (max-width: 900px) {
    /* Liste wird kompakt */
    .na-view-list .na-card-item { grid-template-columns: 60px 1fr; gap: 10px; align-items: start; padding-bottom: 60px; }
    .na-view-list .na-card-meta, .na-view-list .na-card-inst-icons, .na-view-list .na-card-rep { grid-column: 1 / -1; margin-top: 5px; }
    .na-view-list .na-card-diff { display: none; }
    .na-view-list .na-card-actions { position: absolute; bottom: 15px; right: 15px; width: 100%; justify-content: flex-end; }
    
    /* Grid bleibt Boxy, aber 1 Spalte */
    .na-view-grid .na-archive-grid { grid-template-columns: 1fr; }
    /* Wichtig: Auf Mobile auch im Grid genug Platz lassen */
    .na-view-grid .na-card-item { padding: 25px; }
    
    .na-filter-bar { flex-direction: column; align-items: stretch; }
}
/* =========================================
   2. ARCHIV / ÜBERSICHT (BEAUTIFIED)
   ========================================= */

/* --- Main Control Box --- */
.na-archive-controls { 
    background: #fff; padding: 25px; border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #f0f0f0; 
    margin-bottom: 30px;
}

/* Row 1: Search & Sort */
.na-control-row-top { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }

/* Modern Search Input */
.na-search-wrapper { position: relative; flex-grow: 1; min-width: 250px; }
.na-search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #ccc; font-size: 16px; }
#na-search-input {
    width: 100%; padding: 12px 12px 12px 45px; /* Platz für Icon */
    border: 1px solid #e1e4e8; border-radius: 50px; font-size: 15px; 
    background: #fdfdfd; transition: all 0.3s;
}
#na-search-input:focus { border-color: var(--na-primary); background: #fff; box-shadow: 0 4px 15px color-mix(in srgb, var(--dca-primary,#e67e22) 40%, transparent); outline: none; }

/* Sort Select */
.na-sort-wrapper { display: flex; align-items: center; background: #f9f9f9; padding: 5px 15px; border-radius: 50px; border: 1px solid #eee; }
#na-sort-select { border: none; background: transparent; font-size: 13px; font-weight: 600; color: #555; cursor: pointer; padding: 5px 0; outline: none; }

/* Row 2: Filters */
.na-filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Filter Dropdowns */
.na-filter-group select, .na-multi-select-btn { 
    padding: 8px 16px; border: 1px solid #e1e4e8; border-radius: 8px; 
    font-size: 13px; background: #fff; color: #555; font-weight: 500;
    transition: all 0.2s; min-height: 38px; cursor: pointer;
}
.na-filter-group select:hover, .na-multi-select-btn:hover { border-color: #ccc; background: #fafafa; }
.na-filter-group select:focus { border-color: var(--na-primary); outline: none; }

/* Multi Select */
.na-multi-select-wrapper { position: relative; }
.na-multi-select-btn { min-width: 150px; text-align: left; display: flex; justify-content: space-between; align-items: center; }
.na-multi-dropdown {
    display: none; position: absolute; top: 110%; left: 0; background: #fff;
    border: 1px solid #e1e4e8; border-radius: 12px; box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    padding: 10px; z-index: 100; min-width: 220px; max-height: 300px; overflow-y: auto;
}
.na-multi-dropdown.show { display: block; }
.na-multi-option { display: flex; align-items: center; gap: 10px; padding: 8px 10px; cursor: pointer; font-size: 13px; border-radius: 6px; transition: background 0.1s; }
.na-multi-option:hover { background: #f5f7fa; }
.na-multi-option input { margin: 0; accent-color: var(--na-primary); transform: scale(1.1); }

/* Favorites Toggle */
.na-fav-toggle { margin-left: 10px; border-left: 1px solid #eee; padding-left: 15px; }
.na-fav-label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #555; cursor: pointer; }
.na-fav-label input { accent-color: #e74c3c; width: 16px; height: 16px; }

/* Reset Button */
.na-btn-text { background: none; border: none; color: #94a3b8; font-size: 12px; font-weight: 600; cursor: pointer; margin-left: auto; transition: all .15s; padding: 6px 12px; border-radius: 8px; font-family: inherit; }
.na-btn-text:hover { color: var(--na-primary, #e67e22); background: color-mix(in srgb, var(--na-primary, #e67e22) 8%, transparent); text-decoration: none; }

/* View Switcher - unified in shared section below */

/* --- GRID SYSTEM --- */
.na-archive-grid { display: grid; gap: 15px; margin-top: 20px; }

/* LIST VIEW */
.na-view-list .na-archive-grid { display: flex; flex-direction: column; gap: 10px; }
.na-view-list .na-card-item { 
    display: grid; 
    grid-template-columns: 60px 2.2fr 1fr 2fr 0.8fr 60px 180px; 
    align-items: center; gap: 20px; background: #fff; padding: 15px 25px; 
    border-radius: 12px; border: 1px solid #eef0f2; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.02); transition: all 0.2s ease; 
}
.na-view-list .na-card-item:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); border-color: #e0e0e0; }
.na-view-list .na-card-image { width: 50px; height: 50px; background: #f8f9fa; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.na-view-list .na-card-image img { width: 28px !important; height: 28px !important; object-fit: contain; margin: 0; filter: opacity(0.8); }
.na-card-title { display: flex; flex-direction: column; gap: 4px; }
.na-card-title h3 { margin: 0; font-size: 15px; font-weight: 700; color: #2c3e50; line-height: 1.2; }
.na-card-title span { font-size: 12px; color: #95a5a6; font-weight: 500; }
.na-card-meta { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.na-badge { font-size: 10px; text-transform: uppercase; background: #f0f2f5; padding: 2px 8px; border-radius: 4px; font-weight: 700; color: #636e72; white-space: nowrap; }
.na-card-inst-icons { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.na-inst-mini-icon { width: 24px; height: 24px; object-fit: contain; filter: grayscale(100%); opacity: 0.6; transition: all 0.2s; }
.na-card-item:hover .na-inst-mini-icon { filter: grayscale(0%); opacity: 1; }
.na-inst-text-fallback { font-size: 10px; background: #eee; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #777; font-weight: bold; }
.na-inst-more { font-size: 10px; color: #999; font-weight: bold; margin-left: 2px; }
.na-card-rep { font-size: 13px; font-weight: 600; color: var(--na-primary); white-space: nowrap; }
.na-card-diff { display: flex; justify-content: center; }
.na-bars { display: flex; align-items: flex-end; height: 16px; gap: 3px; }
.na-bar { width: 5px; height: 100%; background: #e0e0e0; border-radius: 3px; transition: height 0.3s; }
.na-bar.active { background: var(--na-primary); }
.na-card-actions { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.na-fav-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; border: 1px solid #e1e4e8; color: #ccc; font-size: 18px; cursor: pointer; transition: all 0.2s; }
.na-fav-icon:hover { border-color: #e74c3c; color: #e74c3c; }
.na-fav-icon.active { background: #e74c3c; border-color: #e74c3c; color: #fff; }

/* GRID VIEW */
.na-view-grid .na-archive-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.na-view-grid .na-card-item { background: #fff; border: 1px solid #eef0f2; border-radius: 16px; padding: 25px; display: flex; flex-direction: column; gap: 15px; position: relative; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); height: 100%; box-sizing: border-box; }
.na-view-grid .na-card-item:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-color: transparent; }
.na-view-grid .na-card-header { display: flex; gap: 15px; align-items: flex-start; }
.na-view-grid .na-card-image { width: 50px; height: 50px; background: #f8f9fa; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.na-view-grid .na-card-image img { width: 30px !important; height: 30px !important; object-fit: contain; }
.na-view-grid .na-card-meta { flex-direction: row; gap: 5px; }
.na-view-grid .na-card-inst-icons { margin-top: auto; padding-top: 15px; border-top: 1px solid #f5f5f5; }
.na-view-grid .na-card-rep { font-size: 11px; color: #888; font-weight: 500; margin-top: 5px; }
.na-view-grid .na-card-actions { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; }
.na-view-grid .na-card-diff { display: flex; position: absolute; top: 25px; right: 25px; }
.na-view-grid .na-bars { height: 12px; gap: 2px; }
.na-view-grid .na-bar { width: 4px; }

.na-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.na-page-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: #fff; border: 1px solid #e1e4e8; cursor: pointer; font-size: 14px; font-weight: 600; color: #555; transition: all 0.2s; }
.na-page-btn:hover { border-color: var(--na-primary); color: var(--na-primary); }
.na-page-btn.active { background: var(--na-primary); color: #fff; border-color: var(--na-primary); }

@media (max-width: 900px) {
    .na-view-list .na-card-item { grid-template-columns: 60px 1fr; gap: 10px; align-items: start; position: relative; padding-bottom: 60px; }
    .na-view-list .na-card-meta, .na-view-list .na-card-inst-icons, .na-view-list .na-card-rep { grid-column: 1 / -1; margin-top: 5px; }
    .na-view-list .na-card-diff { display: none; }
    .na-view-list .na-card-actions { position: absolute; bottom: 15px; right: 15px; width: 100%; justify-content: flex-end; }
    .na-filter-bar { flex-direction: column; align-items: stretch; }
    .na-control-row-top { flex-direction: column; align-items: stretch; }
}

/* LIST VIEW */
.na-view-list .na-archive-grid { display: flex; flex-direction: column; gap: 10px; background: transparent; border: none; overflow: visible; }
.na-view-list .na-card-item { display: grid; grid-template-columns: 60px 2.2fr 1fr 2fr 0.8fr 60px 180px; align-items: center; gap: 20px; background: #fff; padding: 15px 25px; border-radius: 12px; border: 1px solid #eef0f2; box-shadow: 0 2px 5px rgba(0,0,0,0.02); transition: all 0.2s ease; }
.na-view-list .na-card-item:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); border-color: #e0e0e0; }
.na-view-list .na-card-image { width: 50px; height: 50px; background: #f8f9fa; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.na-view-list .na-card-image img { width: 28px !important; height: 28px !important; object-fit: contain; margin: 0; filter: opacity(0.8); }
.na-card-title { display: flex; flex-direction: column; gap: 4px; }
.na-card-title h3 { margin: 0; font-size: 15px; font-weight: 700; color: #2c3e50; line-height: 1.2; }
.na-card-title span { font-size: 12px; color: #95a5a6; font-weight: 500; }
.na-card-meta { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.na-badge { font-size: 10px; text-transform: uppercase; background: #f0f2f5; padding: 2px 8px; border-radius: 4px; font-weight: 700; color: #636e72; white-space: nowrap; }
.na-card-inst-icons { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.na-inst-mini-icon { width: 24px; height: 24px; object-fit: contain; filter: grayscale(100%); opacity: 0.6; transition: all 0.2s; }
.na-card-item:hover .na-inst-mini-icon { filter: grayscale(0%); opacity: 1; }
.na-inst-text-fallback { font-size: 10px; background: #eee; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #777; font-weight: bold; }
.na-inst-more { font-size: 10px; color: #999; font-weight: bold; margin-left: 2px; }
.na-card-rep { font-size: 13px; font-weight: 600; color: var(--na-primary); white-space: nowrap; }
.na-card-diff { display: flex; justify-content: center; }
.na-bars { display: flex; align-items: flex-end; height: 16px; gap: 3px; }
.na-bar { width: 5px; height: 100%; background: #e0e0e0; border-radius: 3px; transition: height 0.3s; }
.na-bar.active { background: var(--na-primary); }
.na-card-actions { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.na-fav-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; border: 1px solid #e1e4e8; color: #ccc; font-size: 18px; cursor: pointer; transition: all 0.2s; }
.na-fav-icon:hover { border-color: #e74c3c; color: #e74c3c; }
.na-fav-icon.active { background: #e74c3c; border-color: #e74c3c; color: #fff; }

/* ================== GRID VIEW (CARDS) ================== */
.na-view-grid .na-archive-grid { 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
}

.na-view-grid .na-card-item { 
    background: #fff; 
    border: 1px solid #eef0f2; 
    border-radius: 16px; 
    padding: 25px; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    position: relative; /* Wichtig für absolute Positionierung der Balken */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    height: 100%; 
    box-sizing: border-box; 
}

.na-view-grid .na-card-item:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
    border-color: transparent; 
}

/* Oben: Icon & Titel */
.na-view-grid .na-card-header { display: flex; gap: 15px; align-items: flex-start; }

.na-view-grid .na-card-image { 
    width: 50px; height: 50px; 
    background: #f8f9fa; border-radius: 12px; 
    display: flex; align-items: center; justify-content: center; 
    flex-shrink: 0; 
}
.na-view-grid .na-card-image img { width: 30px !important; height: 30px !important; object-fit: contain; }

/* Meta (Klasse/Typ) */
.na-view-grid .na-card-meta { flex-direction: row; gap: 5px; }

/* Instrumente Icons im Grid anzeigen */
.na-view-grid .na-card-inst-icons { 
    margin-top: auto; 
    padding-top: 15px; 
    border-top: 1px solid #f5f5f5; 
}

/* Repertoire */
.na-view-grid .na-card-rep { 
    font-size: 11px; color: #888; font-weight: 500; margin-top: 5px; 
}

/* Actions */
.na-view-grid .na-card-actions { 
    margin-top: 10px; display: flex; justify-content: space-between; align-items: center; 
}

/* --- NEU: Schwierigkeitsbalken oben rechts --- */
.na-view-grid .na-card-diff { 
    display: flex; 
    position: absolute; 
    top: 25px; 
    right: 25px; 
}
/* Optional: Balken im Grid etwas kleiner machen */
.na-view-grid .na-bars { height: 12px; gap: 2px; }
.na-view-grid .na-bar { width: 4px; }
/* UPLOAD WIZARD */
.na-upload-card { background: #fff; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); padding: 40px; border: 1px solid #fff; }
.na-wizard-steps { display: flex; justify-content: center; margin-bottom: 40px; position: relative; gap: 40px; }
.na-step { position: relative; z-index: 2; font-size: 14px; font-weight: 600; color: #b0b0b0; cursor: default; transition: all 0.3s; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.na-step-circle { width: 36px; height: 36px; border-radius: 50%; background: #f0f2f5; color: #999; display: flex; align-items: center; justify-content: center; font-weight: bold; transition: all 0.3s; border: 2px solid #f0f2f5; }
.na-step.active { color: var(--na-text-main); }
.na-step.active .na-step-circle { background: var(--na-primary); color: #fff; border-color: var(--na-primary); box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.na-wizard-page { display: none; animation: fadeIn 0.3s ease; }
.na-wizard-page.active { display: block; }
.na-form-group { margin-bottom: 20px; }
.na-form-label { font-size: 12px; letter-spacing: 0.5px; margin-bottom: 8px; color: #7f8c8d; font-weight: 700; text-transform: uppercase; display: block; }
.na-form-input, .na-form-select, .na-form-textarea { background: #f8f9fa; border: 1px solid #eef0f2; padding: 14px; border-radius: 10px; font-size: 15px; transition: all 0.2s ease; width: 100%; box-sizing: border-box; }
.na-form-input:focus, .na-form-select:focus, .na-form-textarea:focus { background: #fff; border-color: var(--na-primary); outline: none; }
.na-check-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.na-check-item input { display: none; }
.na-check-pill { display: inline-block; padding: 8px 16px; background: #f0f2f5; border-radius: 30px; font-size: 13px; color: #555; transition: all 0.2s; border: 1px solid transparent; }
.na-check-item input:checked + .na-check-pill { background: var(--na-primary); color: #fff; box-shadow: 0 2px 10px color-mix(in srgb, var(--dca-primary,#e67e22) 40%, transparent); }
.na-dropzone { border: 2px dashed #dce4ec; border-radius: 16px; padding: 50px 20px; text-align: center; cursor: pointer; transition: all 0.2s; background: #fafbfc; }
.na-dropzone:hover { border-color: var(--na-primary); background: #fffcf9; }
.na-file-list { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
.na-up-card { background: #fff; border: 1px solid #eee; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.05); position: relative; }
.na-up-thumb { height: 80px; background: #fcfcfc; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #ddd; border-bottom: 1px solid #f0f0f0; }
.na-up-info { padding: 10px; }
.na-up-input { width: 100%; border: 1px solid transparent; background: transparent; font-weight: bold; font-size: 12px; color: #333; padding: 2px; }
.na-up-input:focus { border-bottom-color: var(--na-primary); outline: none; }
.na-up-meta { font-size: 10px; color: #aaa; margin-top: 4px; }
.na-up-remove { position: absolute; top: 5px; right: 5px; width: 20px; height: 20px; background: #fff; border-radius: 50%; color: #e74c3c; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0,0,0,0.1); cursor: pointer; font-weight: bold; font-size: 14px; }
.na-preview-box { margin-top: 15px; animation: fadeIn 0.3s; }
.na-form-actions { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid #f0f0f0; }

@media (max-width: 900px) {
    .na-media-grid { grid-template-columns: 1fr !important; }
    .na-header-flex { flex-direction: column; }
    .na-edit-pos-wrapper { top: 20px; right: 20px; }
    .na-upload-card { padding: 20px; }
    .na-wizard-steps { gap: 15px; }
    .na-step-text { display: none; }
    .na-view-list .na-card-item { grid-template-columns: 60px 1fr; gap: 10px; align-items: start; position: relative; padding-bottom: 60px; }
    .na-view-list .na-card-meta, .na-view-list .na-card-inst-icons, .na-view-list .na-card-rep { grid-column: 1 / -1; margin-top: 5px; }
    .na-view-list .na-card-diff { display: none; }
    .na-view-list .na-card-actions { position: absolute; bottom: 15px; right: 15px; width: 100%; justify-content: flex-end; }
    .na-filter-bar { flex-direction: column; align-items: stretch; }
}

/* =========================================
   6. ELEMENTOR WIDGET: REPERTOIRE
   ========================================= */
.na-rep-widget {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid #f1f5f9;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Filter Header ──────────────────────────────────────────────────── */
.na-rep-filter {
    background: #fafbfc;
    padding: 14px 20px;
    border-bottom: 1.5px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.na-rep-filter::-webkit-scrollbar { display: none; }
.na-rep-label {
    font-size: 10px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .08em; color: #94a3b8; white-space: nowrap;
}
.na-rep-years { display: flex; gap: 6px; }
.na-year-pill {
    padding: 5px 14px;
    border-radius: 50px;
    background: #fff;
    border: 1.5px solid #e4e4e7;
    color: #374151;
    font-size: 12px; font-weight: 700;
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
}
.na-year-pill:hover { border-color: var(--na-primary); color: var(--na-primary); }
.na-year-pill.active {
    background: var(--na-primary); color: #fff;
    border-color: var(--na-primary);
    box-shadow: 0 3px 10px color-mix(in srgb, var(--na-primary,#e67e22) 35%, transparent);
}
.na-year-pill.all-mode {
    background: #18181b; color: #fff; border-color: #18181b;
}
.na-year-pill.all-mode.active { background: #18181b; }

/* ── Liste ──────────────────────────────────────────────────────────── */
.na-rep-list { display: flex; flex-direction: column; }
.na-rep-item {
    display: flex;
    align-items: center;
    padding: 13px 20px;
    border-bottom: 1px solid #f8fafc;
    transition: background .1s;
    gap: 14px;
    text-decoration: none;
}
.na-rep-item:last-child { border-bottom: none; }
.na-rep-item:hover { background: #fafbfc; }

/* Icon */
.na-rep-icon {
    width: 42px; height: 42px;
    background: color-mix(in srgb, var(--na-primary,#e67e22) 10%, #fff);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    border: 1px solid color-mix(in srgb, var(--na-primary,#e67e22) 20%, #fff);
}
.na-rep-icon img { width: 22px !important; height: 22px !important; object-fit: contain; }

/* Content */
.na-rep-content { flex: 1; min-width: 0; }
.na-rep-title {
    display: block;
    font-size: 14px; font-weight: 700; color: #18181b;
    text-decoration: none;
    margin-bottom: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.na-rep-item:hover .na-rep-title { color: var(--na-primary); }
.na-rep-komp { font-size: 11px; color: #94a3b8; }

/* «Du spielst» Badge */
.na-rep-personal { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.na-rep-badge-label { font-size: 9px; text-transform: uppercase; color: #cbd5e1; font-weight: 700; }
.na-rep-badge-inst {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    padding: 3px 9px;
    border-radius: 50px;
    font-size: 11px; font-weight: 700;
}

/* Arrow */
.na-rep-arrow { color: #e2e8f0; font-size: 16px; flex-shrink: 0; transition: all .15s; }
.na-rep-item:hover .na-rep-arrow { color: var(--na-primary); transform: translateX(3px); }

@media (max-width: 600px) {
    .na-rep-item { flex-wrap: wrap; }
    .na-rep-personal { align-items: flex-start; width: 100%; margin-top: 5px; margin-left: 56px; }
    .na-rep-arrow { display: none; }
}
.na-rep-badge-inst {
    background: #eafaf1; 
    color: #27ae60;
    border: 1px solid #d5f5e3;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex; /* Wichtig für Ausrichtung */
    align-items: center;
    gap: 5px; /* Abstand zwischen Icon und Text */
}

/* Das kleine Icon im Badge */
.na-mini-inst-icon-badge {
    width: 14px !important;
    height: 14px !important;
    object-fit: contain;
    /* Optional: Icon einfärben damit es zum grünen Text passt (geht nur bei SVG Masken oder Filter) */
    /* filter: hue-rotate(90deg); */ 
}

/* =========================================
   IMPORT LOADING OVERLAY
   ========================================= */
.na-import-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7); /* Helles, transparentes Overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100; /* Muss über allen anderen Elementen liegen */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    border-radius: var(--na-radius); /* Aus admin.css/style.css entnommen */
}

/* Wird von JS gesetzt, um sichtbar zu werden */
.na-import-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.na-import-loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    background: var(--na-bg-card); /* Weiß */
    border: 1px solid var(--na-border);
    border-radius: var(--na-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Spinner (simpler WordPress/Admin Stil) */
.na-import-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: na-spin 1s linear infinite;
}

@keyframes na-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================================
   MODERN REPERTOIRE STYLES (Fixes)
   ========================================= */

/* --- Detail Seite (single-noten.php) --- */
.na-rep-detail-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.na-rep-detail-row {
    display: flex;
    flex-direction: column; /* Jahr oben, Tags darunter */
    align-items: flex-start;
    gap: 4px;
    border-left: 2px solid #eee;
    padding-left: 8px;
}

.na-rep-year {
    font-size: 12px;
    font-weight: 800;
    color: #2c3e50;
}

.na-rep-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.na-rep-tag {
    font-size: 10px;
    background: #f4f6f8;
    color: #555;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #e1e4e8;
    white-space: nowrap;
}

/* --- Dashboard Widget (elementor-widgets.php) --- */
.na-rep-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end; /* Rechtsbündig */
    align-items: center;
    gap: 6px; /* Abstand zwischen Badges */
    max-width: 50%;
    text-align: right;
}

.na-badge-role {
    font-size: 10px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

/* Farben für die Badges */
.na-badge-role.all {
    background: #f1f2f6;
    color: #747d8c;
    border: 1px solid #dfe4ea;
}

.na-badge-role.specific {
    background: #e3f2fd; /* Ganz helles Blau */
    color: #1976d2;      /* Dunkleres Blau für Text */
    border: 1px solid #bbdefb;
}

.na-badge-role.mine {
    background: #e8f5e9; /* Ganz helles Grün */
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* Mobile Optimierung für Widget */
@media(max-width:600px) { 
    .na-rep-badges { 
        width: 100%; 
        justify-content: flex-start; 
        margin-top: 8px; 
        max-width: 100%; 
    } 
}




/* ── Unified View Switch & Reset Button (all modules) ──────────────────────── */
.na-view-switch, .da-view-switch, .wnm-view-switch {
    display: flex; gap: 4px;
    background: #f0f2f5; padding: 3px; border-radius: 9px;
}
.na-view-btn, .da-view-btn, .wnm-view-btn {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 7px; border: none;
    background: transparent;
    color: #aaa; cursor: pointer; font-size: 15px;
    transition: all .15s; -webkit-tap-highlight-color: transparent;
}
.na-view-btn:hover:not(.active), .da-view-btn:hover:not(.active), .wnm-view-btn:hover:not(.active) {
    background: rgba(255,255,255,.7); color: #555;
}
.na-view-btn.active, .da-view-btn.active, .wnm-view-btn.active {
    background: #fff;
    color: var(--dca-primary, var(--na-primary, #e67e22));
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
/* Reset / Filter zurücksetzen buttons */
.na-btn-text, .da-btn-text, .wnm-btn-text {
    background: none; border: 1.5px solid #e2e8f0;
    color: #64748b; font-size: 12px; font-weight: 600;
    padding: 5px 12px; border-radius: 7px;
    cursor: pointer; font-family: inherit; transition: all .15s;
    display: inline-flex; align-items: center; gap: 5px;
    text-decoration: none;
}
.na-btn-text:hover, .da-btn-text:hover, .wnm-btn-text:hover {
    border-color: var(--dca-primary, #e67e22);
    color: var(--dca-primary, #e67e22); background: #fff;
}

/* ── Metronom Mobile ─────────────────────────────────────────── */
@media (max-width: 480px) {
    .dca-bpm-grid { grid-template-columns: 1fr !important; }
    .dca-metro-grid-3 { grid-template-columns: 1fr 1fr !important; }
    #dca-m-overlay { padding: 8px !important; align-items: flex-end !important; }
    #dca-metro {
        border-radius: 20px 20px 0 0 !important;
        max-width: 100% !important;
        max-height: 92dvh !important;
        padding: 16px 14px calc(16px + env(safe-area-inset-bottom)) !important;
    }
    #dca-mf-bpm { font-size: 38px !important; }
}
