/* Team Pro Bewerber-Middleware – Administrationsoberflaeche */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1f2933;
    background: #f4f6f8;
    line-height: 1.5;
}
a { color: #0b5fff; }

/* Kopf / Navigation */
.kopf { background: #0f2540; color: #fff; }
.kopf-inhalt {
    max-width: 1140px; margin: 0 auto; padding: 0 1rem;
    display: flex; align-items: center; gap: 1.5rem; min-height: 60px; flex-wrap: wrap;
}
.marke { color: #fff; text-decoration: none; font-weight: 700; display: flex; flex-direction: column; line-height: 1.1; }
.marke span { font-weight: 400; font-size: .72rem; opacity: .75; }
.nav-schalter { display: none; margin-left: auto; background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 1.2rem; line-height: 1; border-radius: 6px; padding: .35rem .6rem; cursor: pointer; }
.nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav > a, .nav-gruppe-knopf { color: #cdd8e6; text-decoration: none; padding: .5rem .7rem; border-radius: 6px; font-size: .95rem; background: transparent; border: 0; cursor: pointer; font-family: inherit; white-space: nowrap; }
.nav > a:hover, .nav-gruppe-knopf:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav > a.aktiv { background: #0b5fff; color: #fff; }
.pfeil { font-size: .7rem; opacity: .8; }

.nav-gruppe { position: relative; }
.nav-gruppe.aktiv > .nav-gruppe-knopf { color: #fff; background: rgba(255,255,255,.08); }
.nav-benutzer .nav-gruppe-knopf { border: 1px solid rgba(255,255,255,.2); }
.nav-untermenue { display: none; position: absolute; top: 100%; left: 0; min-width: 210px; background: #12304f; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.25); padding: .3rem; z-index: 20; margin-top: .2rem; }
.nav-untermenue.rechts { left: auto; right: 0; }
.nav-gruppe.offen > .nav-untermenue,
.nav-gruppe:focus-within > .nav-untermenue { display: block; }
.nav-untermenue a, .untermenue-knopf { display: block; width: 100%; text-align: left; color: #cdd8e6; text-decoration: none; padding: .5rem .7rem; border-radius: 6px; background: transparent; border: 0; cursor: pointer; font-size: .92rem; font-family: inherit; }
.nav-untermenue a:hover, .untermenue-knopf:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-untermenue a.aktiv { background: #0b5fff; color: #fff; }
.logout-form { margin: 0; }

/* Inhalt */
.inhalt { max-width: 1140px; margin: 1.5rem auto; padding: 0 1rem; }
.fuss { max-width: 1140px; margin: 2rem auto; padding: 1rem; color: #7b8794; font-size: .82rem; text-align: center; }
h1 { font-size: 1.5rem; margin: .2rem 0 1rem; }
h2 { font-size: 1.1rem; margin: 0 0 .8rem; }

/* Knoepfe */
.knopf, .knopf-sekundaer, .knopf-klein {
    display: inline-block; border: 0; border-radius: 6px; cursor: pointer;
    text-decoration: none; font-size: .95rem; text-align: center;
}
.knopf { background: #0b5fff; color: #fff; padding: .6rem 1.1rem; }
.knopf:hover { background: #0a53df; }
.knopf-sekundaer { background: #e4e7eb; color: #1f2933; padding: .6rem 1.1rem; }
.knopf-klein { background: #0b5fff; color: #fff; padding: .35rem .7rem; font-size: .85rem; }

/* Blitzmeldungen */
.blitz { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.blitz-fehler { background: #fdecea; border: 1px solid #f5b7b1; color: #922b21; }
.blitz-erfolg { background: #e6f4ea; border: 1px solid #a7d7b5; color: #1e6b3a; }
.blitz-hinweis { background: #e8f0fe; border: 1px solid #b3ccff; color: #1a3f8b; }

/* Login */
.login-karte {
    max-width: 380px; margin: 8vh auto; background: #fff; padding: 2rem;
    border-radius: 12px; box-shadow: 0 6px 24px rgba(15,37,64,.12);
}
.login-karte h1 { text-align: center; margin: 0 0 .2rem; }
.login-untertitel { text-align: center; color: #7b8794; margin: 0 0 1.4rem; font-size: .9rem; }

/* Formulare */
label { display: block; margin: .8rem 0 .3rem; font-weight: 600; font-size: .9rem; }
input[type=text], input[type=email], input[type=password], input[type=date], select {
    width: 100%; padding: .55rem; border: 1px solid #b0bec5; border-radius: 6px; font-size: 1rem;
}
.schmal { max-width: 420px; }
form .knopf { margin-top: 1.1rem; }

/* Kacheln (Dashboard) */
.kacheln { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1rem; }
.kachel { background: #fff; border-radius: 10px; padding: 1.1rem; box-shadow: 0 1px 3px rgba(15,37,64,.08); }
.kachel-zahl { font-size: 1.9rem; font-weight: 700; color: #0f2540; }
.kachel-titel { font-size: .82rem; color: #7b8794; margin-top: .2rem; }
.kachel-neu { border-left: 4px solid #0b5fff; }
.kachel-warnung { border-left: 4px solid #d9822b; }
.hinweis-text { color: #52616b; font-size: .9rem; }

/* Filter */
.filter { background: #fff; border-radius: 10px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 1px 3px rgba(15,37,64,.08); }
.filter-zeile { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: .6rem; align-items: end; }
.filter-zeile > * { flex: 1 1 150px; }
.filter .datum { flex: 0 0 auto; font-weight: 400; font-size: .82rem; color: #52616b; }
.filter .datum input { width: auto; }
.ergebnis-info { color: #52616b; font-size: .9rem; }

/* Tabelle */
.tabelle-umbruch { overflow-x: auto; background: #fff; border-radius: 10px; box-shadow: 0 1px 3px rgba(15,37,64,.08); }
.tabelle { width: 100%; border-collapse: collapse; min-width: 820px; }
.tabelle th, .tabelle td { padding: .6rem .75rem; text-align: left; border-bottom: 1px solid #eceff1; font-size: .9rem; }
.tabelle th { background: #f0f3f6; color: #52616b; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
.tabelle tr:hover td { background: #f8fafc; }
.zentriert { text-align: center; }
.leer { text-align: center; color: #7b8794; padding: 1.5rem; }

/* Status-Kennzeichnung */
.status { display: inline-block; padding: .2rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.status-neu { background: #e3ecff; color: #0b41b0; }
.status-angesehen { background: #fff2d9; color: #91630f; }
.status-heruntergeladen { background: #e2f3e7; color: #1e6b3a; }

/* Pagination */
.seiten { display: flex; gap: 1rem; align-items: center; justify-content: center; margin: 1.2rem 0; }
.seiten a { text-decoration: none; padding: .45rem .8rem; background: #fff; border-radius: 6px; box-shadow: 0 1px 3px rgba(15,37,64,.08); }
.seiten span { color: #52616b; font-size: .9rem; }

/* Detailansicht */
.detail-kopf { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.karte { background: #fff; border-radius: 10px; padding: 1.2rem; margin-bottom: 1rem; box-shadow: 0 1px 3px rgba(15,37,64,.08); }
.feld-gitter { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.feld-titel { display: block; font-size: .75rem; color: #7b8794; text-transform: uppercase; letter-spacing: .03em; }
.anschreiben { white-space: normal; }
.frage-block { padding: .6rem 0; border-bottom: 1px solid #eceff1; }
.frage { font-weight: 600; }
.antwort { color: #3e4c59; }
.datei-liste { list-style: none; padding: 0; margin: 0; }
.datei-liste li { display: flex; gap: 1rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid #eceff1; }
.datei-typ { flex: 0 0 110px; font-size: .78rem; text-transform: uppercase; color: #7b8794; }
.datei-name { flex: 1; }
.datei-groesse { color: #7b8794; font-size: .85rem; }
.zurueck { text-decoration: none; font-size: .9rem; }
.zentriert-block { text-align: center; }

/* Toolbar (Aktualisieren / Test-Import) */
.toolbar { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.toolbar-form { margin: 0; }
.zeit { color: #7b8794; font-size: .85rem; }

/* Inline-Formulare (Tabellenaktionen) */
.inline-form { display: inline; margin: 0; }
.knopf-klein.loeschen { background: #c0392b; }
.knopf-klein.loeschen:hover { background: #a93226; }
.tabelle td .meta { color: #52616b; font-size: .82rem; }
input[readonly] { background: #f0f3f6; }
textarea { font-family: inherit; }

/* Detail-Aktionen */
.detail-aktionen { margin-left: auto; display: flex; gap: .6rem; flex-wrap: wrap; }
.knopf-loeschen { display: inline-block; background: #c0392b; color: #fff; text-decoration: none; border-radius: 6px; padding: .6rem 1.1rem; font-size: .95rem; }
.knopf-loeschen:hover { background: #a93226; }

@media (max-width: 820px) {
    .kacheln { grid-template-columns: repeat(2, 1fr); }
    .feld-gitter { grid-template-columns: 1fr; }
    .detail-aktionen { margin-left: 0; width: 100%; }

    .nav-schalter { display: inline-block; }
    .nav { display: none; order: 3; width: 100%; flex-direction: column; align-items: stretch; margin-left: 0; gap: .1rem; padding-top: .5rem; }
    .nav.offen { display: flex; }
    .nav-gruppe { position: static; }
    .nav-untermenue { position: static; box-shadow: none; background: rgba(255,255,255,.06); min-width: 0; margin: .2rem 0 .4rem .8rem; }
    .nav-untermenue.rechts { right: auto; }
}
