/* Admin-spezifische Ergänzungen (nutzt sonst die app.css der Plattform) */

/* Login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #f5f8fb; padding: 1rem; }
.login-card { background: #fff; border: 1px solid var(--lpe-line); border-radius: 14px; padding: 1.8rem 2rem; width: 100%; max-width: 380px; box-shadow: 0 8px 30px rgba(11,37,69,.1); }
.login-card h1 { color: var(--lpe-navy); margin-bottom: .3rem; }
.login-card label { display: block; font-weight: 600; color: var(--lpe-navy); margin: .9rem 0 .2rem; font-size: .9rem; }
.login-card input { width: 100%; padding: .6rem .7rem; border: 1px solid var(--lpe-line); border-radius: 8px; font-size: 1rem; }
.login-card button { width: 100%; margin-top: 1.2rem; justify-content: center; }
.login-err { background: #fbe9e7; border: 1px solid #e6b0a8; color: var(--lpe-bad); border-radius: 8px; padding: .6rem .8rem; font-size: .9rem; }

/* Tabellen & Formulare */
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--lpe-line); border-radius: 10px; overflow: hidden; }
.admin-table th, .admin-table td { text-align: left; padding: .55rem .8rem; border-bottom: 1px solid var(--lpe-line); font-size: .92rem; vertical-align: top; }
.admin-table th { background: var(--lpe-sky); color: var(--lpe-navy); font-size: .8rem; text-transform: uppercase; letter-spacing: .3px; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table td.truncate { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.admin-form { background: #fff; border: 1px solid var(--lpe-line); border-radius: 12px; padding: 1.2rem 1.4rem; max-width: 820px; }
.admin-form label { display: block; font-weight: 600; color: var(--lpe-navy); margin: .9rem 0 .25rem; font-size: .9rem; }
.admin-form .hint { font-weight: 400; color: #8a97a5; font-size: .82rem; }
.admin-form input[type=text], .admin-form input[type=number], .admin-form input[type=password], .admin-form textarea, .admin-form select {
    width: 100%; padding: .5rem .7rem; border: 1px solid var(--lpe-line); border-radius: 8px; font-size: .95rem; font-family: inherit;
}
.admin-form textarea { min-height: 4.5rem; resize: vertical; }
.admin-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.2rem 0 0; }
.badge-role { display: inline-block; background: var(--lpe-sky); color: var(--lpe-navy); border-radius: 999px; padding: .1rem .6rem; font-size: .8rem; font-weight: 600; }
.badge-role.teacher { background: #e6f6ec; color: var(--lpe-ok); }
.flash { border-radius: 8px; padding: .6rem .9rem; margin-bottom: 1rem; font-size: .92rem; }
.flash.ok { background: #e6f6ec; color: var(--lpe-ok); border: 1px solid #b7e0c5; }
.flash.err { background: #fbe9e7; color: var(--lpe-bad); border: 1px solid #e6b0a8; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 1rem; }
.pic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 1rem; }
.pic-card { background: #fff; border: 1px solid var(--lpe-line); border-radius: 10px; padding: .5rem; text-align: center; font-size: .82rem; }
.pic-card img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; }
.btn-danger { border: 1px solid var(--lpe-bad); background: #fff; color: var(--lpe-bad); border-radius: 8px; padding: .4rem .8rem; font-weight: 600; cursor: pointer; }
.btn-danger:hover { background: var(--lpe-bad); color: #fff; }
