/* ============================================================
   style.css  –  Zentrales Stylesheet
   Seitenbreite 90% zentriert, Navigation mit Submenü,
   Präfixe: login.* / admin.* / mod.*
   ============================================================ */

/* ---------- Grundlayout ------------------------------------ */
.my-content {display: flex;flex-direction: column;min-height: 100vh;width:90%;border:2px groove #aaaadd;margin-left:auto;margin-right:auto;}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    background: #000010;
    color: #222;
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Seitenbreite 90%, zentriert, links/rechts Rand */
.site-header,
.site-nav,
.site-main,
.site-footer {
    width: 100%;
}

.site-header {
    background: #1f2937;
    color: #000;
    text-align:center;
    border-radius: 0 0 10px 10px;
    font-size: 1.5rem;
    height: 100px;
    line-height:100px;
}

.site-brand {
    font-size: 2rem;
    font-weight: 900;
    #letter-spacing: 1px;
    background-image: url('./images/logo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.site-main {
    flex: 1;
    background: #fff;
    padding: 28px 24px;
    #margin-top: 1px;
    #margin-bottom: 1px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.site-footer {
    background: #002244;
    color: #cbd5e1;
    text-align: center;
    padding: 14px;
    border-radius: 10px 10px 0 0;
    font-size: 0.85rem;
}

/* ---------- Navigation ------------------------------------- */
.site-nav {
    #max-width:100%;
    background: #002244;
    border-radius: 10px;
    #margin-top: 1px;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    #align-items: center;
    border: 1px solid #446688;
    margin-left:auto;
}

.nav-item {
    position: relative;
    align-items: center;
    background: #224466;
    border-radius: 10px;
    border: 1px solid #446688;
    margin-top:5px;
    margin-bottom:5px;
    margin-left:2px;
    margin-right:2px;
}

.nav-link {
    display: block;
    padding: 5px 5px;
    height:35px;
    #min-width: 90px;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 1.05em;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-item:hover > .nav-link,
.nav-item.active > .nav-link {
    background: #446688;
    color: #fff;
    border: 1px solid #6688aa;
    border-radius: 10px;
}

/* Submenü */
.nav-submenu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: -2px;
    right:-2px;
    min-width: 90px;
    background: #002244;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    display: none;
    z-index: 100;
}

.nav-item.has-submenu:hover .nav-submenu {
    display: block;
}

.nav-sublink {
    display: block;
    padding: 10px 5px;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 1.0rem;
    border: 1px solid #336699;
    border-radius: 10px;
    margin:2px;
    background: #224466;

}

.nav-sublink:hover {
    background: #446688;
    color: #fff;
    border: 1px solid #6688aa;
    border-radius: 10px;
    #padding:5px 5px;
}

/* ---------- Seiten-Inhalt ----------------------------------- */
.page-title {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: #111827;
}

.page-text {
    line-height: 1.6;
    margin-bottom: 8px;
}

.site-error {
    color: #b91c1c;
    font-weight: 600;
}

/* ============================================================
   login.*  –  Login / Profil / Logout
   ============================================================ */
.login-wrapper {
    width: 90%;
    max-width: 460px;
    margin: 20px auto;
}

.login-form {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.login-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.login-title {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: #111827;
}

.login-subtitle {
    font-size: 1.05rem;
    margin: 18px 0 8px;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 6px;
}

.login-label {
    display: block;
    margin: 12px 0 4px;
    font-size: 0.9rem;
    color: #374151;
}

.login-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
}

.login-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.login-button {
    width: 100%;
    margin-top: 18px;
    padding: 12px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.login-button:hover {
    background: #1d4ed8;
}

.login-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.login-success {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.login-info p {
    margin: 6px 0;
    font-size: 0.95rem;
}

.login-text {
    line-height: 1.6;
    margin-bottom: 8px;
}

.login-captcha-row {
    display: flex;
    align-items: center;
   #gap: 8px;
    margin-top: 4px;
}

.login-captcha-img {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    height: 60px;
}

.login-captcha-refresh {
    padding: 8px 12px;
    background: #e5e7eb;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
}

.login-captcha-refresh:hover {
    background: #d1d5db;
}

/* ============================================================
   mod.*  –  Moderator-Panel
   ============================================================ */
.mod-wrapper {
    width: 90%;
    max-width: 760px;
    margin: 20px auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
}

.mod-title {
    font-size: 1.4rem;
    color: #7c3aed;
    margin-bottom: 12px;
}

.mod-subtitle {
    font-size: 1.05rem;
    color: #1f2937;
    margin-bottom: 8px;
}

.mod-text {
    line-height: 1.6;
    margin-bottom: 8px;
}

.mod-card {
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
}

/* ============================================================
   admin.*  –  Admin-Panel
   ============================================================ */
.admin-wrapper {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
}

.admin-title {
    font-size: 1.5rem;
    color: #111827;
    margin-bottom: 16px;
}

.admin-subtitle {
    font-size: 1.1rem;
    color: #1f2937;
    margin-bottom: 10px;
}

.admin-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.admin-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 14px;
}

.admin-success {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 14px;
}

.admin-form {
    margin: 0;
}

.admin-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.admin-input {
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    flex: 1 1 160px;
    outline: none;
}

.admin-input:focus {
    border-color: #2563eb;
}

.admin-button {
    padding: 9px 16px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.admin-button:hover {
    background: #1d4ed8;
}

.admin-button-small {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.admin-button-danger {
    background: #dc2626;
}

.admin-button-danger:hover {
    background: #b91c1c;
}

.admin-inline {
    display: inline-block;
    margin-left: 6px;
}

.admin-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #374151;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.admin-table th,
.admin-table td {
    border: 1px solid #e5e7eb;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.admin-table thead th {
    background: #f3f4f6;
    color: #111827;
    font-weight: 600;
}

.admin-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.admin-edit-row td {
    background: #f0f7ff;
}

.admin-mono {
    font-family: "Courier New", monospace;
    font-size: 0.78rem;
    word-break: break-all;
}

/* ---------- Responsive -------------------------------------- */
@media (max-width: 100%;) {
    .nav-list {
        flex-direction: column;
    }
    .nav-submenu {
        position: static;
        display: block;
        box-shadow: none;
        border-radius: 0;
        padding-left: 16px;
    }
    .site-header, .site-nav, .site-main, .site-footer {
        #width: 96%;
    }
}
