/* ODS Admin – schlichte, ruhige Oberfläche in den Markenfarben */

:root {
    --navy: #0a2240;
    --blue: #1b65b3;
    --light: #4a90e2;
    --gold: #e6a100;
    --ink: #1c2b41;
    --body: #5d6f86;
    --bg: #eef3f9;
    --line: #dde7f2;
    --white: #fff;
    --danger: #c0392b;
    --ok: #1e8e5a;
    --radius: 14px;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.6;
}

a { color: var(--blue); }

/* ---------- Logo-Punkte ---------- */
.logo-dots { display: inline-flex; flex-direction: column; gap: 3px; }
.logo-dots i { width: 8px; height: 8px; border-radius: 50%; }
.logo-dots i:nth-child(1) { background: var(--light); }
.logo-dots i:nth-child(2) { background: var(--blue); }
.logo-dots i:nth-child(3) { background: var(--navy); }

/* ---------- Kopfleiste ---------- */
.topbar {
    background: var(--navy); color: #fff;
    display: flex; align-items: center; gap: 30px;
    padding: 0 24px; height: 62px;
    position: sticky; top: 0; z-index: 50;
    flex-wrap: wrap;
}
.topbar-brand {
    display: flex; align-items: center; gap: 11px;
    color: #fff; text-decoration: none; font-weight: 700; font-size: 1.2rem;
}
.topbar-brand small { font-weight: 400; opacity: 0.6; font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase; }
.topbar-brand .logo-dots i:nth-child(3) { background: #fff; }

.topnav { display: flex; gap: 4px; margin-right: auto; }
.topnav a {
    color: #c3d3e6; text-decoration: none; font-weight: 600; font-size: 0.9rem;
    padding: 8px 15px; border-radius: 999px; transition: 0.2s;
}
.topnav a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.topnav a.active { background: var(--blue); color: #fff; }

.topbar-right { display: flex; gap: 8px; }
.btn-ghost {
    color: #c3d3e6; text-decoration: none; font-size: 0.85rem; font-weight: 600;
    padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2);
    transition: 0.2s;
}
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- Seite ---------- */
.page { max-width: 900px; margin: 0 auto; padding: 30px 24px 120px; }

.page-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 20px; flex-wrap: wrap; margin-bottom: 24px;
}
.page-head h1 { font-size: 1.7rem; color: var(--navy); }
.page-head p { color: var(--body); font-size: 0.94rem; }

.lang-switch { display: flex; gap: 4px; background: #fff; padding: 5px; border-radius: 999px; border: 1px solid var(--line); }
.lang-switch a {
    text-decoration: none; color: var(--body); font-weight: 600; font-size: 0.86rem;
    padding: 7px 16px; border-radius: 999px; transition: 0.2s;
}
.lang-switch a:hover { background: var(--bg); }
.lang-switch a.active { background: var(--navy); color: #fff; }

/* ---------- Karten ---------- */
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px 26px; margin-bottom: 20px;
}
.card h2 {
    font-size: 1.02rem; color: var(--navy); margin-bottom: 18px;
    padding-bottom: 12px; border-bottom: 1px solid var(--line);
}

/* ---------- Felder ---------- */
.field { display: block; margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field-label {
    display: block; font-size: 0.76rem; font-weight: 700; color: var(--body);
    text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 6px;
}
input[type="text"], input[type="password"], textarea, select {
    width: 100%; font-family: var(--font); font-size: 0.94rem; color: var(--ink);
    padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px;
    background: #fff; transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
    outline: none; border-color: var(--light); box-shadow: 0 0 0 3px rgba(74,144,226,0.15);
}
textarea { resize: vertical; line-height: 1.55; }

.hint { font-size: 0.82rem; color: var(--body); margin-top: 6px; }

.check { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }

.row-box { padding: 16px; background: var(--bg); border-radius: 10px; margin-bottom: 14px; }
.row-box:last-child { margin-bottom: 0; }

.lang-block { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; }
.lang-block legend { font-size: 0.78rem; font-weight: 700; color: var(--blue); padding: 0 7px; text-transform: uppercase; letter-spacing: 0.8px; }

/* ---------- Knöpfe ---------- */
.btn-primary {
    background: var(--blue); color: #fff; border: 0; cursor: pointer;
    font-family: var(--font); font-size: 0.92rem; font-weight: 700;
    padding: 12px 26px; border-radius: 999px; transition: 0.2s;
}
.btn-primary:hover { background: var(--navy); }
.btn-primary:disabled { background: #9db3cb; cursor: not-allowed; }

button.danger {
    background: #fff; color: var(--danger); border: 1px solid #f0c9c4; cursor: pointer;
    font-family: var(--font); font-size: 0.82rem; font-weight: 600;
    padding: 7px 13px; border-radius: 8px; transition: 0.2s;
}
button.danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

/* ---------- Speicherleiste ---------- */
.save-bar {
    position: sticky; bottom: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px 20px; margin-top: 8px;
    box-shadow: 0 -6px 24px rgba(10,34,64,0.08);
}
.save-bar span { font-size: 0.88rem; color: var(--body); }

/* ---------- Meldungen ---------- */
.alert { padding: 13px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 0.92rem; font-weight: 600; }
.alert-ok { background: #e4f6ed; color: var(--ok); border: 1px solid #b9e4cf; }
.alert-error { background: #fdecea; color: var(--danger); border: 1px solid #f5c9c3; }

/* ---------- Leistungen ---------- */
.service-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.service-head h2 { border: 0; padding: 0; margin: 0; flex-grow: 1; }
.service-icon { width: 46px; height: 46px; background: var(--bg); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.service-icon img { width: 28px; height: 28px; }
.service-tools select { width: auto; min-width: 130px; }

.order-table { width: 100%; border-collapse: collapse; }
.order-table td { padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.order-table tr:last-child td { border-bottom: 0; }
.order-actions { display: flex; gap: 6px; justify-content: flex-end; }
.order-actions form { display: inline; }
.order-actions button:not(.danger) {
    background: #fff; border: 1px solid var(--line); cursor: pointer;
    width: 32px; height: 32px; border-radius: 8px; font-size: 1rem; color: var(--navy);
}
.order-actions button:not(.danger):hover:enabled { background: var(--navy); color: #fff; }
.order-actions button:disabled { opacity: 0.35; cursor: not-allowed; }

/* ---------- Bilder: ein Platz = eine Karte ---------- */
.slot-card { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.slot-info { flex: 1 1 200px; min-width: 0; }
.slot-info h2 { border: 0; padding: 0; margin: 0 0 4px; }

.slot-media { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.slot-thumb {
    width: 150px; height: 100px; flex-shrink: 0; border-radius: 10px; overflow: hidden;
    background: var(--bg); border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
}
.slot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.slot-thumb--video { width: 180px; background: #0a2240; }
.slot-thumb--video video { width: 100%; height: 100%; object-fit: cover; }
.slot-empty { font-size: 0.78rem; color: #93a7bf; }

.tag-optional {
    font-size: 0.6rem; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
    color: var(--body); background: var(--bg); border: 1px solid var(--line);
    padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 6px;
}

.slot-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.upload-inline { display: flex; gap: 10px; align-items: center; }

/* Datei-Auswahl als hübscher Knopf statt Systemfeld */
.file-btn { position: relative; overflow: hidden; cursor: pointer; }
.file-btn input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-btn span {
    display: inline-block; background: var(--bg); color: var(--navy); border: 1px solid var(--line);
    font-size: 0.85rem; font-weight: 700; padding: 10px 18px; border-radius: 999px; white-space: nowrap;
}
.file-btn:hover span { border-color: var(--light); }
.file-btn.has-file span { background: #e4f6ed; border-color: #b9e4cf; color: var(--ok); }

.section-split { max-width: 900px; margin: 34px auto 4px; color: var(--navy); font-size: 1.2rem; }
.hint-block { max-width: 900px; margin: 0 auto 16px; }

/* ---------- Anmeldung ---------- */
.login-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0a2240 0%, #123b6d 60%, #1b65b3 100%); padding: 24px;
}
.login-card {
    background: #fff; border-radius: 20px; padding: 40px 38px;
    width: 100%; max-width: 380px; box-shadow: 0 30px 70px rgba(0,0,0,0.3);
}
.login-logo { display: flex; align-items: center; gap: 12px; font-size: 1.9rem; font-weight: 800; color: var(--navy); }
.login-logo .logo-dots i { width: 9px; height: 9px; }
.login-sub { color: var(--body); font-size: 0.88rem; margin: 4px 0 26px; }
.login-card label { display: block; margin-bottom: 16px; font-size: 0.78rem; font-weight: 700; color: var(--body); text-transform: uppercase; letter-spacing: 0.6px; }
.login-card input { margin-top: 6px; }
.login-card .btn-primary { width: 100%; margin-top: 6px; }
.login-back { display: block; text-align: center; margin-top: 20px; font-size: 0.85rem; color: var(--body); text-decoration: none; }
.login-back:hover { color: var(--blue); }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 720px) {
    .topbar { height: auto; padding: 12px 16px; gap: 12px; }
    .topnav { order: 3; width: 100%; overflow-x: auto; }
    .page { padding: 22px 16px 100px; }
    .card { padding: 18px; }
    .slot-card { flex-direction: column; align-items: stretch; }
    .slot-media { flex-direction: column; align-items: stretch; }
    .slot-thumb { width: 100%; height: 160px; }
    .upload-inline { flex-direction: column; align-items: stretch; }
    .file-btn span { text-align: center; }
    .save-bar { flex-direction: column; align-items: stretch; gap: 10px; }
    .save-bar .btn-primary { width: 100%; }
}
