/* ── Grundlayout ─────────────────────────────────── */
body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background-color: #f0f0f0;
    font-family: 'Roboto', sans-serif;
}

main { flex: 1 0 auto; }

/* ── Navigation ──────────────────────────────────── */
nav .brand-logo { font-weight: 700; letter-spacing: 1px; }
nav .brand-logo span { color: #ffcc02; }

/* ── Hero-Bereich ────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, #b71c1c 0%, #7f0000 100%);
    color: #fff;
    padding: 10px 0;          /* nur 10px oben/unten */
}
.hero-section .container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}
.hero-text {
    flex: 1;
    min-width: 0;
}
.hero-section h1 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 2px 0;       /* kein extra Abstand */
    line-height: 1.3;
}
.hero-section p {
    font-size: .83rem;
    opacity: .92;
    margin: 0;
    line-height: 1.4;
}
.hero-btn {
    height: 32px !important;
    line-height: 32px !important;
    font-size: .8rem !important;
    padding: 0 12px !important;
    white-space: nowrap;
    flex-shrink: 0;
}
.hero-btn i.material-icons {
    font-size: .9rem !important;
    line-height: 32px !important;
}

/* ── Info-Banner ─────────────────────────────────── */
.info-banner {
    background: #fff8e1;
    border-left: 4px solid #f9a825;
    padding: 10px 16px;
    margin: 14px 0;
    border-radius: 2px;
}
.info-banner p { margin: 0; color: #5d4037; font-size: .88rem; }

/* ── DataTable-Karte (prominent) ─────────────────── */
.table-card {
    border-radius: 4px;
    margin-top: 10px;
}

.table-card .card-title {
    font-size: 1.35rem !important;
    font-weight: 700;
    padding-bottom: 6px;
}

table.dataTable {
    font-size: 1rem;
}

table.dataTable thead th {
    background-color: #b71c1c;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    font-size: .95rem;
    padding: 14px 10px;
}

table.dataTable tbody td {
    padding: 12px 10px;
    vertical-align: middle;
}

table.dataTable tbody tr:hover { background-color: #ffeaea !important; }

/* DataTable Top-Bar: Länge + Suche nebeneinander */
.dt-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.dt-length-wrap,
.dt-search-wrap { display: flex; align-items: center; }

.dataTables_length label { margin: 0; display: flex; align-items: center; }

/* Materialize-Kapselung verhindern */
.dataTables_length .select-wrapper { display: none !important; }
.dataTables_length select {
    display: inline-block !important;
    opacity: 1 !important;
    position: static !important;
    width: auto !important;
    pointer-events: auto !important;
}

.badge-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: .82rem;
    font-weight: 600;
    background: #ffcdd2;
    color: #b71c1c;
}
.url-link  { color: #b71c1c; font-weight: 500; word-break: break-all; }
.desc-cell { max-width: 360px; white-space: normal; font-size: .93rem; }

/* ── Modal / Formular ────────────────────────────── */
.modal { max-height: 90vh !important; overflow-y: auto; }
.modal .modal-content h4 { color: #b71c1c; font-weight: 700; }

.input-field label { color: #555; }
.input-field input:focus,
.input-field textarea:focus {
    border-bottom: 1px solid #b71c1c !important;
    box-shadow: 0 1px 0 0 #b71c1c !important;
}
.input-field input:focus + label,
.input-field textarea:focus + label { color: #b71c1c !important; }
.char-counter { font-size: .75rem; color: #999; text-align: right; }

/* ── Footer ──────────────────────────────────────── */
footer.page-footer { background-color: #212121; }
footer.page-footer .footer-copyright { background-color: #111; }

/* ── Ladeanimation ───────────────────────────────── */
#loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
#loading-overlay.active { display: flex; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 700px) {
    .hero-section .container { flex-wrap: wrap; gap: 6px; }
    .hero-section h1  { font-size: 1rem; }
    .hero-section p   { font-size: .78rem; }
    .hero-btn         { display: none; }   /* auf Mobil per Sidenav erreichbar */
    table.dataTable   { font-size: .85rem; }
    .dt-top-bar       { flex-direction: column; align-items: flex-start; }
}
