/* H5Transfer Custom Styles */

img,video{

    max-width: 100%;
    height: auto;

}

/* Simple Top Navigation (Impressum / Datenschutz) */
.topnav-simple {
    background: #111827;
    padding: 12px 0;
    display: flex;
    align-items: center;
}

.topnav-simple .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.topnav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
}

.topnav-logo img {
    display: block;
    max-height: 44px;
    max-width: 200px;
    width: auto;
    object-fit: contain;
}

.topnav-back {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    white-space: nowrap;
}

.topnav-back:hover {
    color: #fff;
}

/* Site Footer */
.site-footer {
    background: #111827;
    color: #9ca3af;
    padding: 14px 0;
    font-size: 0.82rem;
    margin-top: auto;
}

.site-footer a {
    color: #9ca3af;
    text-decoration: none;
    margin-left: 1rem;
}

.site-footer a:hover {
    color: #fff;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Fullscreen pages: body verhält sich normal, kein flex */
body:has(.page-shell) {
    display: block;
    overflow: hidden;
}

/* dead class kept for reference only */
body.home-fullscreen {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body.home-fullscreen.logged-in {
    overflow: auto;
}

footer {
    margin-top: auto;
}

/* ── Page Shell (Hintergrundbild/-video + containing block) ── */
.page-shell {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.page-bg {
    position: fixed;
    inset: 0;
    background-color: #0d6efd;
    overflow: hidden;
    z-index: 0;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.page-bg.drag-active {
    transform: scale(1.06);
    filter: blur(6px) brightness(0.85);
}

/* Rückwärtskompatibilität */
.page-bg.hero-with-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-bg.hero-with-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.page-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
}

/* ── Slideshow ────────────────────────────────────────────── */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    overflow: hidden;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-slide.active {
    opacity: 1;
}

/* ── Page Layout (header / main-content / footer) ─────────── */
.page-layout {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.upload-card-overlay,
.transfers-sidebar {
    position: relative;
    z-index: 10;
}

/* Header Login Button (rechts oben) */
.btn-header-login {
    padding: 10px 28px;
    background: white;
    color: #111827;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-header-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Old Hero Section (for other pages) */
.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background-color: #0d6efd;
    position: relative;
    overflow: hidden;
}

.hero-section.hero-with-image {
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    background: rgba(13, 110, 253, 0.8);
    width: 100%;
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

/* Feature Boxes */
.feature-box {
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-icon {
    transition: transform 0.3s ease;
}

.feature-box:hover .feature-icon {
    transform: scale(1.1);
}

/* Step Numbers */
.step-number {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: #0d6efd;
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto;
}

/* Minimaler Header für Impressum/Datenschutz */
.minimal-header {
    border-bottom: 1px solid #e5e7eb;
}

.minimal-header a {
    color: #111827;
    text-decoration: none;
}

/* Login Modal - Modern Style */
.modern-modal {
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: none;
}

.modern-modal .modal-header {
    padding: 24px 24px 12px;
}

.modern-modal .modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.modern-modal .modal-body {
    padding: 12px 24px 24px;
}

.form-group-modal {
    margin-bottom: 16px;
}

.form-label-modal {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

.form-control-modal {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
}

.form-control-modal:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-modal-primary {
    width: 100%;
    padding: 12px 24px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
    position: relative;
}

.btn-modal-primary:hover {
    background: #1d4ed8;
}

.btn-modal-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.alert-sm {
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.hero-logo img {
    height: 80px;
    width: auto;
    display: block;
}

@media (max-width: 600px) {


    .hero-logo img {
        height: 60px;
    }
}

/* Hero Header & Footer */
.hero-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 11;
    padding: 20px 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent);
}

.hero-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 20px 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

/* Upload Card - WeTransfer Style */
.upload-card-overlay {
    position: absolute;
    left: 1.5rem;
    top: 60px;
    bottom: 60px;
    z-index: 10;
    max-width: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.upload-card {
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.8);
    overflow-y: auto;
    max-height: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.15) transparent;
}

.upload-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.upload-card-header h5 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
}

.upload-card-tabs {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.upload-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.45);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.upload-tab:hover {
    color: rgba(0, 0, 0, 0.7);
}

.upload-tab.active {
    color: #1a1a2e;
    border-bottom-color: #1a1a2e;
}

.upload-tab.disabled {
    color: rgba(0, 0, 0, 0.2);
    cursor: not-allowed;
    pointer-events: auto;
}

.upload-tab.disabled:hover {
    color: rgba(0, 0, 0, 0.2);
}

.upload-card-body {
    padding: 24px;
}

/* Compact Dropzone */
.dropzone-compact {
    border: 2px dashed rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(0, 0, 0, 0.04);
}

.dropzone-compact:hover,
.dropzone-compact.dragover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.4);
}

.dropzone-icon {
    font-size: 2.5rem;
    color: rgba(0, 0, 0, 0.4);
    margin-bottom: 8px;
}

.dropzone-text {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* Selected Files Header */
.selected-files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.selected-files-count {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

/* Selected Files List */
.selected-files-list {
    max-height: 220px;
    overflow-y: auto;
    margin: 16px 0;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.selected-files-list::-webkit-scrollbar {
    width: 4px;
}

.selected-files-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.selected-files-list .list-group-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    font-size: 14px;
    gap: 12px;
}

#fileList.drop-active {
    outline: 2px dashed #2563eb;
    outline-offset: 4px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.04);
}

.selected-files-list .list-group-item > div:first-child {
    display: flex;
    align-items: center;
    min-width: 0;
}

.file-item-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item-size {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Folder accordion in file list */
.folder-group-item {
    padding: 0 !important;
    overflow: hidden;
}
.folder-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    user-select: none;
}
.folder-group-header:hover {
    background: #f9fafb;
}
.folder-group-header > div:first-child {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;
}
.folder-chevron {
    font-size: 11px;
    color: #9ca3af;
    transition: transform 0.15s;
}
.folder-group-body {
    border-top: 1px solid #f3f4f6;
    padding: 4px 0;
}
.folder-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 12px 7px 32px;
    font-size: 13px;
}
.folder-file-row:hover {
    background: #f9fafb;
}
.folder-file-row > div:first-child {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;
}

/* Form Controls - Compact */
.form-group-compact {
    margin-bottom: 12px;
}

.form-label-sm {
    font-size: 13px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.65);
    margin-bottom: 6px;
    display: block;
}

.form-control-sm {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.5);
    color: #1a1a2e;
    transition: border-color 0.2s, background 0.2s;
}

.form-control-sm::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

.form-control-sm:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.recipient-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.recipient-row .form-control-sm {
    flex: 1;
    margin-bottom: 0;
}

.recipient-remove-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #9ca3af;
    padding: 4px 6px;
    cursor: pointer;
    border-radius: 6px;
    line-height: 1;
    font-size: 13px;
    transition: color 0.15s, background 0.15s;
}

.recipient-remove-btn:hover {
    color: #ef4444;
    background: #fee2e2;
}

.form-check-sm {
    margin: 12px 0;
}

.form-check-sm .form-check-input {
    margin-top: 2px;
}

.form-check-sm .form-check-label {
    font-size: 14px;
    color: #374151;
}

/* Buttons */
.btn-upload-primary {
    width: 100%;
    padding: 12px 24px;
    background: #16a34a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 16px;
}

.btn-upload-primary:hover {
    background: #15803d;
}

.btn-link-sm {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.btn-link-sm:hover {
    text-decoration: underline;
}

/* Upload Progress */
.upload-progress-bar {
    height: 20px;
    background: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 14px;
    box-sizing: border-box;
}

.upload-progress-fill {
    height: 100%;
    background: #6366f1;
    border-radius: 99px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 12px;
    position: relative;
    overflow: hidden;
}

.upload-progress-fill::after {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    border-radius: 99px;
    animation: shimmer 1.8s infinite;
}

.upload-progress-fill.is-done::after {
    display: none;
}

@keyframes shimmer {
    0%   { left: -60%; }
    100% { left: 120%; }
}

.upload-progress-fill.is-done {
    background: #16a34a !important;
    transition: background 0.4s ease, width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-progress-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.upload-progress-pct {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.upload-progress-eta {
    font-size: 13px;
    color: #9ca3af;
    margin: 0 auto 0 8px;
}

/* Copy-Tooltip Popup */
.copy-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #1a1a2e;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 9999;
}
.copy-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1a1a2e;
}
.copy-tooltip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.upload-details-toggle {
    background: none;
    border: none;
    font-size: 12px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.upload-details-toggle:hover { color: #6b7280; }

.upload-details-body {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.6;
    padding: 8px 0 0;
    border-top: 1px solid #f3f4f6;
    margin-top: 8px;
}

.upload-detail-filename {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.upload-detail-meta {
    color: #9ca3af;
    font-size: 12px;
}

.upload-detail-sizes {
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 1px;
}

.upload-progress-text {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    margin: 0;
}

.upload-progress-meta {
    font-size: 12px;
    font-weight: 400;
    color: #9ca3af;
    margin-left: 4px;
}

.upload-progress-counter {
    font-size: 11px;
    color: #9ca3af;
    margin-left: 4px;
}

.upload-progress-detail {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-progress-size {
    font-size: 12px;
    color: #9ca3af;
}

/* Transfers Sidebar */
.transfers-sidebar {
    position: fixed;
    right: -450px;
    top: 0;
    width: 450px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    z-index: 100;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.transfers-sidebar.active {
    right: 0;
}

.transfers-sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.transfers-sidebar-header h5 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.btn-close-sidebar {
    background: none;
    border: none;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.btn-close-sidebar:hover {
    background: #f3f4f6;
}

/* Quota-Balken */
.quota-bar-wrap {
    padding: 10px 16px 8px;
    border-bottom: 1px solid #e5e7eb;
}

.quota-bar-track {
    height: 6px;
    background: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
}

.quota-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.4s ease;
}

.quota-bar-ok      { background: #22c55e; }
.quota-bar-warning { background: #f59e0b; }
.quota-bar-danger  { background: #ef4444; }

.quota-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #6b7280;
    margin-top: 4px;
}

/* Filter-Zeile */
.transfers-filter {
    padding: 10px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    position: sticky;
    top: 61px;
    z-index: 9;
}

/* Statistik-Block */
.stats-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 0 0 8px 0;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
}
.stats-toggle-btn:hover { color: #374151; }
.stats-chevron { font-size: 10px; transition: transform 0.2s; }
.stats-chevron.open { transform: rotate(180deg); }

.stats-panel { padding-bottom: 10px; }

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 8px;
}
.stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 10px;
    text-align: center;
}
.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
}
.stat-label {
    font-size: 10px;
    color: #9ca3af;
    margin-top: 2px;
}

.stats-types {
    font-size: 11px;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.stats-type-chip {
    background: #f3f4f6;
    border-radius: 99px;
    padding: 2px 8px;
    font-size: 11px;
    color: #374151;
    white-space: nowrap;
}

.transfers-filter-search {
    margin-bottom: 10px;
}

.transfers-filter-row.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.transfers-filter-search .form-control {
    font-size: 12px;
    border-color: #d1d5db;
    border-radius: 6px 0 0 6px;
}

.transfers-filter-search .btn {
    border-color: #d1d5db;
    border-radius: 0 6px 6px 0;
    color: #9ca3af;
}

.transfers-filter-row {
    display: flex;
    gap: 6px;
}

.filter-select {
    flex: 1;
    font-size: 12px;
    padding: 4px 6px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #374151;
    cursor: pointer;
    min-width: 0;
}

.transfer-internal-note {
    font-size: 11px;
    color: #92400e;
    background: #fef9c3;
    border-left: 3px solid #fbbf24;
    border-radius: 0 4px 4px 0;
    padding: 4px 8px;
    margin-bottom: 8px;
    white-space: pre-line;
    word-break: break-word;
}

.filter-select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 2px rgba(255,107,53,.15);
}

/* Pagination */
.transfers-pagination {
    padding: 10px 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: sticky;
    bottom: 0;
    background: white;
    z-index: 9;
}

.pagination-info {
    font-size: 12px;
    color: #6b7280;
    min-width: 48px;
    text-align: center;
}

.transfers-sidebar-body {
    padding: 16px;
}

.transfer-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 3px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

.transfer-item.transfer-expired {
    opacity: 0.55;
    border-left-color: #fca5a5;
}

.transfer-actions {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.extend-popup {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px;
    display: flex;
    gap: 4px;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    z-index: 50;
    white-space: nowrap;
}

.files-list-wrapper {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 8px;
}

.files-list-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.files-list-items li {
    font-size: 11px;
    color: #374151;
    padding: 2px 0;
    border-bottom: 1px solid #f0f0f0;
}

.files-list-items li:last-child {
    border-bottom: none;
}

.files-list-link {
    color: #374151;
    text-decoration: none;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.files-list-thumb {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 3px;
    flex-shrink: 0;
    background: #f1f5f9;
}

/* Download-Log Tabelle */
.download-log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.download-log-table thead th {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9ca3af;
    font-weight: 600;
    padding: 2px 6px 4px 0;
    border-bottom: 1px solid #e5e7eb;
}

.download-log-table tbody td {
    padding: 4px 6px 4px 0;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

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

.files-list-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.transfer-inactive {
    opacity: 0.5;
}

.transfer-item h6 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    word-break: break-word;
    flex: 1;
    min-width: 0;
    padding-right: 6px;
}

.transfer-item small {
    font-size: 12px;
    color: #6b7280;
}

/* Status-Badges in der Sidebar */
.transfer-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}
.badge-downloaded { background: #dcfce7; color: #166534; }
.badge-pending    { background: #fef9c3; color: #854d0e; }
.badge-expired    { background: #f3f4f6; color: #6b7280; }

/* Modus-Toggle: Link / E-Mail */
.transfer-mode-toggle {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    background: #f3f4f6;
    border-radius: 24px;
    padding: 4px;
}
.transfer-mode-btn {
    flex: 1;
    padding: 5px 10px;
    font-size: 13px;
    border: none;
    border-radius: 20px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s;
}
.transfer-mode-btn:hover {
    color: #374151;
    background: #f3f4f6;
}
.transfer-mode-btn.active {
    background: #e0e7ff;
    color: #3730a3;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   DOWNLOAD PAGE
   ════════════════════════════════════════════════════════════ */

.dl-center {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: calc(100% - 40px);
    max-width: 520px;
    padding: 0 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .upload-card-overlay {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .transfers-sidebar {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 600px) {
    /* Mobile: body darf scrollen */
    body:has(.page-shell) {
        overflow: auto;
    }

    /* Shell: no height constraint, no overflow clipping */
    .page-shell {
        height: auto;
        overflow: visible;
    }

    /* Background: fixed in viewport so it stays put while content scrolls */
    .page-bg {
        position: fixed;
        inset: 0;
        z-index: 0;
    }

    /* Layout: flex column, grows with content */
    .page-layout {
        height: auto;
        min-height: 100dvh;
        justify-content: flex-start;
    }

    /* Footer pushed to bottom when content is short */
    .page-layout > .hero-footer {
        margin-top: auto;
    }

    /* Header & Footer: aus dem absoluten Flow */
    .hero-header {
        position: relative;
        flex-shrink: 0;
    }

    

    .hero-footer {
        position: relative;
        flex-shrink: 0;
    }

    .hero-footer .d-flex {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .hero-footer small:first-child {
        display: none;
    }

    /* Homepage: Upload-Card am unteren Rand */
    .upload-card-overlay {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        transform: none;
        max-width: 100%;
        width: 100%;
        flex: 1;
        display: flex;
        align-items: flex-end;
        padding: 0 16px;
    }

    .upload-card {
        border-radius: 20px;
        max-height: 80dvh;
        overflow-y: auto;
        width: 100%;
        margin-bottom: 16px;
    }

    /* Download-Seite: Karte im Flow */
    .dl-center {
        position: relative;
        left: auto;
        top: auto;
        bottom: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        padding: 0;
        flex: 1;
    }

    .dl-card {
        border-radius: 20px;
        max-height: none;
        overflow-y: visible;
        padding-bottom: 2rem;
        width: calc(100% - 2rem);
        margin: 1rem;
    }
}

/* Upload Dropzone - Old (keep for backward compat) */
.dropzone {
    border: 3px dashed #0d6efd;
    border-radius: 10px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.dropzone:hover,
.dropzone.dragover {
    background: #e7f3ff;
    border-color: #0a58ca;
}

.dropzone .upload-icon {
    font-size: 4rem;
    color: #0d6efd;
    margin-bottom: 1rem;
}

/* Progress Bar */
.upload-progress {
    margin-top: 20px;
}

.progress {
    height: 30px;
}

.progress-bar {
    font-size: 14px;
    line-height: 30px;
}

/* File List */
.file-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-item i {
    font-size: 24px;
    margin-right: 15px;
    color: #0d6efd;
}

/* Transfer Card */
.transfer-card {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.transfer-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Slider */
.expiry-slider {
    margin: 20px 0;
}

.slider-value {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #0d6efd;
    margin-top: 10px;
}

/* Copy Button */
.copy-button {
    cursor: pointer;
}

.copy-button:hover {
    background: #0a58ca !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
    }
    
    .hero-overlay {
        padding: 60px 0;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
}

.dl-card {
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 2.5rem 2rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.8);
    text-align: center;
}

.dl-card-ready {
    text-align: left;
}

/* Icon Kreis */
.dl-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.25rem;
}

.dl-icon-ready   { background: #d1fae5; color: #059669; }
.dl-icon-expired { background: #fef3c7; color: #d97706; }
.dl-icon-error   { background: #fee2e2; color: #dc2626; }
.dl-icon-lock    { background: #e0e7ff; color: #4f46e5; }

.dl-headline {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.dl-subline {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.dl-message {
    background: #f0f9ff;
    border-left: 3px solid #0ea5e9;
    border-radius: 0 8px 8px 0;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #374151;
    text-align: left;
    margin-bottom: 1.25rem;
}

/* Meta-Zeile */
.dl-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.82rem;
    color: #6b7280;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.dl-transfer-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
    word-break: break-all;
    overflow-wrap: break-word;
}

/* Dateiliste */
.dl-files {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    max-height: 370px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f9fafb;
    padding-right: 2px;
}

.dl-file-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    color: #111827;
    transition: background 0.15s, border-color 0.15s;
}

/* Ordner-Akkordeon auf Download-Seite */
.dl-folder-group {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: clip;
    background: #f9fafb;
}
.dl-folder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    cursor: pointer;
    user-select: none;
    gap: 0.75rem;
}
.dl-folder-header:hover { background: #f3f4f6; }
.dl-folder-header-left {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;
    gap: 0;
}
.dl-folder-chevron {
    font-size: 11px;
    color: #9ca3af;
    transition: transform 0.15s;
    flex-shrink: 0;
}
.dl-folder-group.open .dl-folder-chevron { transform: rotate(180deg); }
.dl-folder-body { display: none; border-top: 1px solid #e5e7eb; }
.dl-folder-group.open .dl-folder-body { display: block; }
.dl-folder-file-row {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #f3f4f6;
    padding-left: 2.5rem;
    background: #fff;
}
.dl-folder-file-row:last-child { border-bottom: none; }
.dl-folder-file-row:hover { background: #f9fafb; }


.dl-file-row:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.dl-file-icon {
    width: 30px;
    height: 30px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #4f46e5;
    flex-shrink: 0;
    overflow: hidden;
}

.dl-file-icon:has(.dl-file-thumb) {

    width: 80px;
    height: 80px;

}

.dl-file-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    background: #f8fafc;
}

.dl-file-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.dl-file-name {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #111827;
}

.dl-file-size {
    display: block;
    font-size: 0.78rem;
    color: #9ca3af;
}

.dl-file-btn {
    color: #9ca3af;
    font-size: 1rem;
    flex-shrink: 0;
    transition: color 0.15s;
}

.dl-file-row:hover .dl-file-btn {
    color: #1d4ed8;
}

.dl-zip-hint {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.btn-dl-zip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
    background: #f0f9ff;
    border: 1.5px solid #bae6fd;
    color: #0369a1;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s;
}

.btn-dl-zip:hover {
    background: #e0f2fe;
    border-color: #7dd3fc;
    color: #0369a1;
}

/* Zurück-Button */
.btn-dl-back {
    display: inline-block;
    padding: 0.65rem 1.75rem;
    background: #111827;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-dl-back:hover {
    background: #1d4ed8;
    color: white;
}

/* Passwort-Formular */
.dl-password-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.dl-password-input {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.dl-password-input:focus {
    border-color: #4f46e5;
}

.btn-dl-primary {
    padding: 0.65rem 1.75rem;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-dl-primary:hover {
    background: #4338ca;
}

.dl-error-msg {
    background: #fee2e2;
    color: #b91c1c;
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
}

#previewModalBody img{

    display: block;
    margin: 0 auto;

}