/**
 * ProjectPlayCore – Admin- und Bereichs-Styles für httpdocs (deine Website)
 * Backend, User-Dashboard, Login, Registrierung, Logout – inkl. zentrierter .wrap-Container
 */
:root {
    --wp-blue: #2271b1;
    --wp-blue-hover: #135e96;
    --wp-gray: #f0f0f1;
    --wp-gray-dark: #646970;
    --wp-border: #c3c4c7;
    --wp-text: #1d2327;
    --wp-error: #d63638;
    --wp-error-bg: #fcf0f1;
}

/* Dark Mode – gleicher Key wie Theme (ppc_theme in localStorage) */
html.ppc-theme-dark {
    --wp-gray: #1d2327;
    --wp-gray-dark: #b4b9be;
    --wp-border: #3c434a;
    --wp-text: #f0f0f1;
    --wp-error-bg: rgba(214, 54, 56, 0.15);
}
html.ppc-theme-dark body.wp-body { background: #1d2327; color: var(--wp-text); }
html.ppc-theme-dark .wp-header { background: #23282d; border-bottom-color: var(--wp-border); }
html.ppc-theme-dark .wp-welcome-box,
html.ppc-theme-dark .wp-widget { background: #23282d; border-color: var(--wp-border); }
html.ppc-theme-dark .wp-widget-header { background: #2c3338; border-bottom-color: var(--wp-border); color: var(--wp-text); }
html.ppc-theme-dark .wp-form-input { background: #2c3338; border-color: var(--wp-border); color: var(--wp-text); }
html.ppc-theme-dark .wp-button-secondary { background: #2c3338; color: var(--wp-text); border-color: var(--wp-border); }
html.ppc-theme-dark .wp-button-secondary:hover { background: #3c434a; }
html.ppc-theme-dark .wp-footer { background: #23282d; border-top-color: var(--wp-border); color: var(--wp-gray-dark); }
html.ppc-theme-dark .wp-theme-toggle { color: var(--wp-text); border-color: var(--wp-border); background: transparent; }

* { box-sizing: border-box; }

body.wp-body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--wp-text);
    background: var(--wp-gray);
}

/* Header */
.wp-header {
    background: #fff;
    border-bottom: 1px solid var(--wp-border);
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}
.wp-header-left { display: flex; align-items: center; gap: 20px; }
.wp-header-logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--wp-blue);
    text-decoration: none;
}
.wp-header-logo:hover { color: var(--wp-blue-hover); }
.wp-header-link-dashboard {
    color: var(--wp-blue);
    text-decoration: none;
    font-size: 13px;
}
.wp-header-link-dashboard:hover { text-decoration: underline; }
.wp-header-right { display: flex; align-items: center; gap: 15px; }
.wp-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--wp-gray-dark);
}
.wp-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--wp-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

/* Buttons */
.wp-button {
    padding: 8px 16px;
    border-radius: 3px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    line-height: 1.4;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.wp-button-primary {
    background: var(--wp-blue);
    color: #fff;
}
.wp-button-primary:hover { background: var(--wp-blue-hover); color: #fff; }
.wp-button-secondary {
    background: #f6f7f7;
    color: var(--wp-text);
    border: 1px solid var(--wp-border);
}
.wp-button-secondary:hover { background: #f0f0f1; }
.wp-button-admin {
    background: rgba(219, 166, 23, 0.15);
    color: #94660c;
    border: 1px solid rgba(219, 166, 23, 0.5);
}
.wp-button-admin:hover { background: rgba(219, 166, 23, 0.25); }

/* Container & Boxes – zentriert (httpdocs-weit) */
.wp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.wp-main { width: 100%; }
.wp-main .wp-content { max-width: 100%; box-sizing: border-box; }
.wp-main .wrap {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}
.wp-container.wp-container-narrow {
    max-width: 520px;
}
.wp-welcome-box {
    background: #fff;
    border: 1px solid var(--wp-border);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}
.wp-welcome-box h1 {
    margin: 0 0 10px 0;
    font-size: 23px;
    font-weight: 400;
    line-height: 1.3;
}
.wp-welcome-box p {
    margin: 0 0 15px 0;
    color: var(--wp-gray-dark);
}
.wp-welcome-box p:last-child { margin-bottom: 0; }

/* Widgets / Cards */
.wp-widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.wp-widget {
    background: #fff;
    border: 1px solid var(--wp-border);
    border-radius: 4px;
    overflow: hidden;
}
.wp-widget-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--wp-border);
    background: #f6f7f7;
    font-weight: 600;
    font-size: 14px;
}
.wp-widget-body {
    padding: 16px;
}
.wp-widget-body p { margin: 0 0 12px 0; color: var(--wp-gray-dark); }
.wp-widget-body p:last-child { margin-bottom: 0; }
.wp-widget-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

/* Forms (Login, Register) */
.wp-form-group {
    margin-bottom: 16px;
}
.wp-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--wp-text);
}
.wp-form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--wp-border);
    border-radius: 3px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: var(--wp-text);
}
.wp-form-input:focus {
    border-color: var(--wp-blue);
    outline: none;
    box-shadow: 0 0 0 1px var(--wp-blue);
}
.wp-form-input::placeholder {
    color: var(--wp-gray-dark);
}
.wp-form-checkbox {
    margin-right: 8px;
}
.wp-form-submit {
    width: 100%;
    margin-top: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
}
.wp-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
}
.wp-message-error {
    background: var(--wp-error-bg);
    border: 1px solid var(--wp-error);
    color: var(--wp-error);
}
.wp-message-info {
    background: #f0f6fc;
    border: 1px solid var(--wp-blue);
    color: var(--wp-blue-hover);
}
.wp-muted {
    color: var(--wp-gray-dark);
    font-size: 13px;
    text-align: center;
    margin-top: 16px;
}
.wp-muted a {
    color: var(--wp-blue);
    text-decoration: none;
}
.wp-muted a:hover { text-decoration: underline; }

/* Footer */
.wp-footer {
    text-align: center;
    padding: 20px;
    color: var(--wp-gray-dark);
    font-size: 13px;
    border-top: 1px solid var(--wp-border);
    margin-top: 20px;
    background: #fff;
}
