/* ==============================================================
   BENUTZERBEREICH – GALERIE-LAYOUT / BASIS
   ============================================================== */
.gallery-user-body {
    background: #f2f6f8;
    color: #253c49;
    min-height: 100vh;
}

.gallery-user-site-header {
    background: #ffffff;
    border-bottom: 1px solid #dfe8ed;
}

.gallery-user-header-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.gallery-user-top-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.gallery-user-top-nav a {
    color: #52758a;
    text-decoration: none;
    font-weight: 650;
}

.gallery-user-top-nav a:hover,
.gallery-user-top-nav a:focus-visible {
    color: #274e62;
    text-decoration: underline;
}

.gallery-user-language-switch {
    display: flex;
    gap: 6px;
    margin-left: 8px;
}

.gallery-user-language-switch a {
    padding: 4px;
    font-size: 12px;
}

.gallery-user-language-switch a[aria-current="page"] {
    color: #244d62;
    border-bottom: 2px solid #628494;
}

.gallery-user-main {
    width: min(1320px, calc(100% - 40px));
    max-width: none;
    margin: 46px auto 70px;
    min-height: 58vh;
}

/* ==============================================================
   BENUTZERBEREICH – SEITENLEISTE UND NAVIGATION
   ============================================================== */
.gallery-user-app {
    display: grid;
    grid-template-columns: minmax(230px, 270px) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.gallery-user-sidebar,
.gallery-user-panel,
.gallery-user-card,
.gallery-user-auth-intro {
    border: 1px solid #dfe8ee;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(33, 63, 79, 0.045);
}

.gallery-user-sidebar {
    padding: 20px;
    position: sticky;
    top: 22px;
}

.gallery-user-identity {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 8px 5px 22px;
    border-bottom: 1px solid #e7eef2;
}

.gallery-user-identity strong,
.gallery-user-identity small {
    display: block;
    overflow-wrap: anywhere;
}

.gallery-user-identity small {
    color: #718996;
    margin-top: 3px;
}

.gallery-user-avatar {
    display: grid;
    place-items: center;
    width: 49px;
    height: 49px;
    border-radius: 14px;
    background: #e0ecf1;
    color: #52768a;
    font-weight: 800;
    font-size: 22px;
    flex: none;
}

.gallery-user-side-nav {
    display: grid;
    gap: 7px;
    padding-top: 20px;
}

.gallery-user-side-nav a {
    padding: 13px 14px;
    border-radius: 10px;
    font-weight: 650;
    text-decoration: none;
    color: #526d7c;
}

.gallery-user-side-nav a[aria-current="page"],
.gallery-user-side-nav a:hover {
    background: #e8f1f5;
    color: #335d72;
}

.gallery-user-logout {
    margin-top: 28px;
    border-top: 1px solid #e7eef2;
    padding-top: 18px;
}

.gallery-user-logout button {
    width: 100%;
    background: #f4f7f8;
    color: #405d6d;
    border: 1px solid #dce5e9;
}

/* ==============================================================
   BENUTZERBEREICH – ÜBERSCHRIFTEN, DASHBOARD UND KARTEN
   ============================================================== */
.gallery-user-page-heading {
    margin-bottom: 22px;
}

.gallery-user-page-heading span,
.gallery-user-eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #61889c;
}

.gallery-user-page-heading h1 {
    margin: 7px 0 0;
    font-size: clamp(26px, 3vw, 34px);
}

.gallery-user-hero {
    padding: 33px 36px;
    margin-bottom: 24px;
    border-radius: 20px;
    background: linear-gradient(115deg, #547f92, #789aa9);
    color: #ffffff;
}

.gallery-user-hero .gallery-user-eyebrow {
    color: #e3eff3;
}

.gallery-user-hero h2 {
    margin: 10px 0 8px;
    color: #ffffff;
    font-size: clamp(24px, 3vw, 32px);
}

.gallery-user-hero p {
    margin: 0;
    color: #f3f8fa;
}

.gallery-user-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.gallery-user-card,
.gallery-user-panel {
    padding: 26px;
}

.gallery-user-card-symbol {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #eaf2f5;
    color: #527b8d;
    font-size: 22px;
    margin-bottom: 16px;
}

.gallery-user-card h3,
.gallery-user-panel h2 {
    margin: 0 0 12px;
    color: #263d49;
}

.gallery-user-card p {
    line-height: 1.6;
    color: #667d89;
}

.gallery-user-action-link {
    font-weight: 750;
    text-decoration: none;
    color: #4c7488;
}

.gallery-user-overview dl {
    margin: 0;
}

.gallery-user-overview dl > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid #edf1f4;
}

.gallery-user-overview dt {
    color: #667d89;
}

.gallery-user-overview dd {
    margin: 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* ==============================================================
   BENUTZERBEREICH – EINSTELLUNGEN UND FORMULARE
   ============================================================== */
.gallery-user-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.gallery-user-panel form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery-user-panel label {
    font-weight: 650;
    color: #354e5c;
}

.gallery-user-panel input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cbdbe2;
    border-radius: 10px;
    padding: 10px 13px;
    background: #ffffff;
    color: #233b47;
    font: inherit;
}

.gallery-user-panel input:focus-visible {
    outline: 3px solid #bdd5df;
    border-color: #628494;
}

.gallery-user-panel input:disabled {
    background: #f3f6f8;
}

.gallery-user-panel button {
    min-height: 44px;
    padding: 11px 16px;
    border: 0;
    border-radius: 10px;
    background: #628494;
    color: #ffffff;
    font-weight: 750;
    cursor: pointer;
    font: inherit;
}

.gallery-user-panel button:hover {
    background: #456d80;
}

.gallery-user-panel a {
    color: #426b81;
}

.gallery-user-error,
.gallery-user-message {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
}

.gallery-user-error {
    background: #fff0f1;
    color: #922936;
}

.gallery-user-message {
    background: #eaf6ee;
    color: #2b6841;
}

/* ==============================================================
   BENUTZERBEREICH – LOGIN, REGISTRIERUNG, PASSWORT
   ============================================================== */
.gallery-user-auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(350px, 490px);
    gap: 26px;
    max-width: 1050px;
    margin: 25px auto;
    align-items: stretch;
}

.gallery-user-auth-intro {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    background: linear-gradient(145deg, #416d81, #7ba3b2);
    color: #ffffff;
    padding: clamp(28px, 4vw, 48px);
}

.gallery-user-auth-intro h1 {
    max-width: 420px;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.2;
    margin: 15px 0;
}

.gallery-user-auth-intro p {
    max-width: 360px;
    line-height: 1.7;
    color: #f4f9fa;
}

.gallery-user-intro-emblem {
    position: absolute;
    right: -55px;
    bottom: -160px;
    font-size: 400px;
    line-height: 1;
    opacity: 0.10;
    pointer-events: none;
}

.gallery-user-auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(26px, 4vw, 42px);
}

.gallery-user-auth-panel h2 {
    margin-bottom: 23px;
    font-size: 28px;
}

.gallery-user-auth-panel form {
    margin-bottom: 20px;
}

.gallery-user-auth-panel p {
    line-height: 1.65;
}

/* ==============================================================
   BENUTZERBEREICH – RESPONSIVE ANPASSUNGEN
   ============================================================== */
@media (max-width: 1020px) {
    .gallery-user-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-user-settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .gallery-user-main {
        width: calc(100% - 24px);
        margin: 24px auto 45px;
    }

    .gallery-user-app,
    .gallery-user-auth-layout {
        grid-template-columns: 1fr;
    }

    .gallery-user-sidebar {
        position: static;
    }

    .gallery-user-card-grid {
        grid-template-columns: 1fr;
    }

    .gallery-user-auth-intro {
        min-height: 230px;
    }

    .gallery-user-header-inner {
        padding: 16px;
    }
}
