/* Cloud-Dateien — File-Explorer — Ritter-Systems.de (25.09.2026) */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start !important;
    min-height: 100vh;
    padding: 20px;
}

.app-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 860px;
    margin: auto;
}

h1 { color: #333; margin-bottom: 8px; font-size: 1.7em; }
#cloud-intro { color: #666; margin-bottom: 14px; }

.hidden { display: none !important; }
.btn {
    display: inline-block; padding: 9px 16px; margin: 2px 4px 2px 0;
    font-size: .95em; border: none; border-radius: 6px;
    background-color: #1a73e8; color: #fff; text-decoration: none; cursor: pointer;
}
.btn:hover { background-color: #1558b0; }
.btn-sec { background-color: #6b7a8d; }
.btn-danger { background-color: #c0392b; }
.login-box { text-align: center; padding: 10px 0 20px; }
.login-box .warning-box { margin-bottom: 14px; text-align: left; }
.warning-box {
    background: #fff4e5; border-left: 4px solid #e67e22;
    padding: 10px 14px; border-radius: 6px; margin: 10px 0; text-align: left;
}

.toolbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.stats { font-size: .88em; color: #555; margin-left: auto; }

.dropzone {
    border: 2px dashed #9fb4cc; border-radius: 8px; padding: 22px;
    text-align: center; color: #5a6b80; background: #f7fafd;
    margin-bottom: 12px; transition: background .2s, border-color .2s;
}
.dropzone.drag { background: #e8f0fe; border-color: #1a73e8; }

.breadcrumb { margin: 6px 0 10px; font-size: .95em; word-break: break-all; }
.breadcrumb a { color: #1a73e8; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.list-row {
    display: grid;
    grid-template-columns: 56px 1fr 90px 140px 140px;
    gap: 6px; align-items: center;
    padding: 7px 8px; border-bottom: 1px solid #eceff3;
    cursor: pointer; font-size: .93em;
}
.list-row:hover { background: #f2f6fb; }
.list-row.selected { background: #e8f0fe; }
.list-header { font-weight: 700; color: #444; background: #fafbfc; border-radius: 6px; }
.col-check { display: none; }
.col-icon img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; border: 1px solid #e3e6ea; background: #fff; }
.col-name { word-break: break-all; }
.col-size, .col-date { color: #667; font-size: .88em; }
.filelist { list-style: none; }
.hint { font-size: .82em; color: #889; margin-top: 10px; }

.ctxmenu {
    position: fixed; z-index: 1000; background: #fff;
    border: 1px solid #d5dbe3; border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0,0,0,.18);
    min-width: 230px; padding: 6px; display: flex; flex-direction: column;
}
.ctxmenu button {
    text-align: left; padding: 8px 12px; border: none; background: none;
    cursor: pointer; border-radius: 5px; font-size: .92em;
}
.ctxmenu button:hover { background: #eef3fa; }
.ctxmenu button.danger { color: #c0392b; }

/* Admin 28.09: heller Backdrop zwischen Overlay-Schrift und Bildschirminhalt */
.modal {
    position: fixed; inset: 0; z-index: 1100;
    background: rgba(255,255,255,.72);
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal-card {
    background: #fff; border-radius: 10px; padding: 20px;
    width: 100%; max-width: 560px; box-shadow: 0 10px 40px rgba(20,30,45,.35);
}
.modal-card h3 { margin-bottom: 10px; }
.modal-card label { display: block; font-size: .9em; color: #555; margin-bottom: 6px; }
.modal-card input[type=text] {
    width: 100%; padding: 9px 10px; border: 1px solid #ccd3dc;
    border-radius: 6px; font-size: 1em; margin-top: 4px;
}
.modal-card textarea {
    width: 100%; padding: 10px; border: 1px solid #ccd3dc; border-radius: 6px;
    font-family: ui-monospace, Consolas, monospace; font-size: .9em; margin: 6px 0;
}
.modal-btns { text-align: right; margin-top: 12px; }
table.props { width: 100%; border-collapse: collapse; font-size: .93em; }
table.props th { text-align: left; color: #667; padding: 4px 8px 4px 0; white-space: nowrap; vertical-align: top; }
table.props td { padding: 4px 0; word-break: break-all; }

.toast {
    position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
    background: #2c3e50; color: #fff; padding: 11px 20px; border-radius: 8px;
    font-size: .93em; z-index: 1300; max-width: 90vw; white-space: pre-line;
    box-shadow: 0 6px 18px rgba(0,0,0,.3);
}

@media (max-width: 640px) {
    .list-row { grid-template-columns: 44px 1fr 70px; }
    .col-date { display: none; }
    .list-header .col-date { display: none; }
}
/* harness 28.09: sortierbare Spalten */
.sort-col { cursor: pointer; user-select: none; }
.sort-col:hover { color: #1a73e8; }

/* Admin 28.09: Steuerelemente fest unterhalb des Anzeigefensters */
.modal { display: flex; flex-direction: column; max-height: 88vh; }
.modal-body { flex: 1 1 auto; min-height: 0; overflow: auto; }
.modal .modal-btns { flex-shrink: 0; margin-top: 12px; }

/* Admin 28.09: unsichtbar gemachte Dateien — leicht abgedunkelter Text */
.list-row.invisible-row { opacity: .55; }

/* Admin 29.09: Pricing-Seite (Cloud-Dateien) */
.pricing-grid { display: flex; gap: 16px; flex-wrap: wrap; margin: 20px 0; }
.pricing-box { flex: 1 1 260px; background: #fff; border: 1px solid #dde3ec; border-radius: 10px; padding: 18px 20px; }
.pricing-box h2 { margin: 0 0 12px; font-size: 1.15em; }
.pricing-box ul { margin: 0 0 12px 18px; padding: 0; color: #334; }
.pricing-box li { margin: 5px 0; }
.pricing-box.premium { background: #f0f6ff; border-color: #9cc0f0; }
.btn { display: inline-block; padding: 9px 14px; border-radius: 8px; background: #eef1f5; color: #334; text-decoration: none; border: 1px solid #ccd3dc; }
