body {
	max-width: 100%;
	margin: 0 auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f4f6fa;
    color: #222;
}

hr {
    width: 100%; border: 3px solid #495057; border-radius:2px;
}

.thumb {
    width: auto !important;
    height: 60px !important;
    max-width: none !important;
}


/* --- ZENTRIERUNG ALLER SEITEN --- */
.page-rating,
.page-results,
.page-admin {
	display: flex;
    flex-direction: column;
    align-items: center;      /* horizontal zentriert */
    justify-content: flex-start;
    min-height: 100vh;
    padding-top: 40px;       /* Platz für die Kopfzeile */
    box-sizing: border-box;
}

.page-wrapper {
    padding: 20px;
}

#adminbereich, #adminmail, #neuesmitglied, #mitgliederliste, #rating-editor, #bewerter-editor, #bewertungsordneranlegen, #bewertungsordnerloeschen, #bilderhochladen, #bilderloeschen, #cssdatei, #csshilfedatei, #logo { scroll-margin-top: 140px; /* Höhe deiner Topbar */ }

.warn {
    background: #ffa8a8;
    border-left: 5px solid #ff0000;
    padding: 10px;
    margin: 20px 0;
    border-radius: 5px;
}

/* ------------------------------ */
/* TOPBAR                         */
/* ------------------------------ */

.topbar {
    width: 100%;
    background: #333;
    color: #fff;
    padding: 12px 20px;

    display: flex;                 /* NEU: Flexbox statt Grid */
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;             /* nebeneinander bei großen Fenstern */

    margin-bottom: 20px;
}

/* Linker Bereich */
.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-left h2 {
    margin-left: 10px;
}

/* Mittlerer Bereich */
.topbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.topbar-title {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

.topbar-left h2 {
    margin-left: 10px;
}

.topbar-logo {
    height: 60px;
    width: auto;
    padding:5px 10px;
}

/* Rechter Bereich */
.topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-right: 50px;
}

/* Benutzerinfo */
.topbar-user {
    font-weight: bold;
    text-align: right;
    line-height: 1.2;
    white-space: nowrap;
}

/* ------------------------------ */
/* RESPONSIVE BREAKPOINT */
/* ------------------------------ */

@media (max-width: 800px) {

    .topbar {
        flex-direction: column;     /* untereinander */
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .topbar-left,
    .topbar-center,
    .topbar-right {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .topbar-user {
        text-align: center;
        width: 100%;
    }
}


.topbar-btn {
    color: #fff;
    text-decoration: none;
    padding: 6px 12px;
    background: #555;
    border-radius: 5px;
    transition: background 0.2s;
}

.topbar-btn:hover {
    background: #777;
}

#nachname-block {
    transition: opacity 0.2s ease;
}

.pw-wrapper {
    position: relative;
    width: 100%;
}

.pw-wrapper input {
    width: 100%;
}

.pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    cursor: pointer;
    opacity: 0.6;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 5c-7.633 0-11 7-11 7s3.367 7 11 7 11-7 11-7-3.367-7-11-7zm0 12c-2.761 0-5-2.239-5-5s2.239-5 5-5 5 2.239 5 5-2.239 5-5 5zm0-8c-1.654 0-3 1.346-3 3s1.346 3 3 3 3-1.346 3-3-1.346-3-3-3z"/></svg>');
	color:#000;
}

.pw-toggle.shown {
    opacity: 1;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M1.393 4.21l2.404 2.404C2.57 8.21 1 12 1 12s3.367 7 11 7c2.063 0 3.868-.42 5.42-1.086l2.187 2.187 1.414-1.414L2.807 2.796 1.393 4.21zM12 17c-2.761 0-5-2.239-5-5 0-.795.186-1.545.512-2.215l1.53 1.53A2.99 2.99 0 0 0 9 12c0 1.654 1.346 3 3 3 .498 0 .964-.123 1.377-.332l1.53 1.53A4.948 4.948 0 0 1 12 17zm10-5s-.52-1.082-1.613-2.355l-3.51 3.51c.046-.37.073-.748.073-1.155 0-2.761-2.239-5-5-5-.407 0-.785.027-1.155.073l-1.51-1.51C10.918 5.52 12 5 12 5c7.633 0 11 7 11 7z"/></svg>');
}

.pw-toggle:hover {
    opacity: 1;
}


.btn-admin {
    background: #db3a15;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
		font-weight:bold;
}

.btn-admin:hover {
    background: #fc6242;
}

.btn-adminhilfe {
    background: #FC2847;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
		font-weight:bold;
}

.btn-adminhilfe u { 
    text-decoration: underline;
    text-decoration-color: #ffffff;
}

.btn-adminhilfe:hover {
    background: #898E8C;
    color: #000000;
}

.btn-adminhilfe:hover u {
    text-decoration-color: #000000;
}

.btn-ergebnisse{
    background: #66cd00;
    color: #000000;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
		font-weight:bold;
}

.btn-ergebnisse:hover {
    background: #7fff00;
}

.btn-pw{
    background: #fff85b;
    color: #000000;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
		font-weight:bold;
}

.btn-pw:hover {
    background: #898E8C;
}

.btn-hilfe {
    background: #d8dee9;
    color: #000000;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
		font-weight:bold;
}

.btn-hilfe:hover {
    background: #8fbcbb;
}


.btn-logout {
    background: #cc0000;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
		font-weight:bold;
}

.btn-logout:hover {
    background: #aa0000;
}

.center-box{
    max-width: auto;
    margin: 0 auto 30px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.center {
    max-width: auto;
    margin: 60px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.btn-primary {
    background: #003366;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
		font-weight:bold;
}

.btn-primary:hover {
    background: #0081c6;
}

input[type="text"],
select {
    padding: 6px 10px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.error {
    color: #cc0000;
    margin-top: 10px;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 100vh;
    border: 2px solid #444;
    border-radius: 8px;
    margin: 20px 0;
}

.rating-form {
    margin-top: 20px;
}

.rating-block {
    margin-bottom: 20px;
}

.rating-block label {
    margin: 0 4px;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.result-table th,
.result-table td {
    border: 1px solid #ccc;
    padding: 8px 10px;
    text-align: left;
}

.result-table th {
    background: #003366;
    color: #ffffff;
}

.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #222;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 16px;
    font-family: Arial, sans-serif;
    z-index: 9999;
}

.rotate-header {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    padding: 4px;
    white-space: nowrap;
    text-align: left;
}

.user-locked {
    background-color: #ffdddd !important;
}

.locked-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
}
.locked-popup-box {
    background: #fff;
    border: 4px solid #c00;
    padding: 25px;
    width: 350px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}


#infoButton {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #1e6bd6;
    background: #1e6bd6;
    color: #ffffff;
    font-weight: bold;
    font-size:20px;
    font-style: italic;
    cursor: pointer;
}

#infoOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#infoPopup {
    background: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    min-width: 260px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    font-family: sans-serif;
    color: #000000;
}

#infoPopup h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
}

#infoPopup p {
    margin: 5px 0;
}

#infoClose {
    margin-top: 15px;
    padding: 6px 14px;
    border: none;
    background: #1e6bd6;
    color: #ffffff;
    border-radius: 4px;
    cursor: pointer;
}