﻿* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-family);
}

a {
    color: inherit;
}

.page-container {
    width: 100%;
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding: 20px;
}


/* Complain Exist */

.complaint-existing-info {
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
}

    .complaint-existing-info h2 {
        margin-top: 0;
        margin-bottom: 12px;
    }

    .complaint-existing-info p {
        line-height: 1.55;
    }

/* Complain Modal */

.complaint-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.45);
}

.complaint-modal-box {
    width: 100%;
    max-width: 430px;
    padding: 26px;
    background: #ffffff;
    color: #111827;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

    .complaint-modal-box h2 {
        margin: 0 0 16px 0;
        font-size: 1.35rem;
    }

    .complaint-modal-box p {
        margin: 0 0 14px 0;
        line-height: 1.55;
    }

.complaint-modal-mail {
    color: #4b5563;
}

.complaint-modal-button {
    width: 100%;
    margin-top: 10px;
    padding: 11px 16px;
    border: 0;
    border-radius: 9px;
    background: #111827;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

/* HEADER */

.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

/*
.site-header-inner {
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 28px;
}
*/

.site-header-inner {
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding: 14px 20px;
    gap: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-nav-left,
.site-nav-right {
    display: flex;
    align-items: center;
}

.site-nav-left {
    gap: 30px;
}

.site-nav-right {
    gap: 14px;
    white-space: nowrap;
}

.nav-separator {
    width: 1px;
    height: 20px;
    background: #d7dce1;
}

.balance-link {
    font-weight: 600;
    text-decoration: none;
}

.logout-form {
    margin: 0;
}

@media (max-width: 600px) {
    .site-nav-left {
        gap: 20px;
    }

    .site-nav-right {
        gap: 9px;
    }

    .nav-separator {
        height: 18px;
    }

    .nav-capture img {
        width: 32px;
        object-fit: contain;
    }
    
}


.site-logo {
    font-size: 30px;
    font-weight: 900;
    text-decoration: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

    .site-nav a {
        text-decoration: none;
    }

.logout-form {
    margin: 0;
}

.logout-button {
    border: 0;
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    font: inherit;
}


/* ITEM-WAND */

.items-wall {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 18px;
}

/* Market */

.marketplace-image-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.marketplace-image-card {
    display: block;
    position: relative;
    cursor: pointer;
}

    .marketplace-image-card input {
        position: absolute;
        top: 8px;
        left: 8px;
        z-index: 2;
        width: 20px;
        height: 20px;
    }

.marketplace-image-thumbnail {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
}

.marketplace-image-card:has(input:checked)
.marketplace-image-thumbnail {
    border-color: #222;
}

.marketplace-image-card {
    position: relative;
}

.marketplace-image-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 24px;
    cursor: pointer;
}


.marketplace-form-section {
    background: #fff;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.marketplace-form-field {
    margin-bottom: 18px;
}

    .marketplace-form-field:last-child {
        margin-bottom: 0;
    }

    .marketplace-form-field > label {
        display: block;
        font-weight: 600;
        margin-bottom: 6px;
    }

    .marketplace-form-field input[type="text"],
    .marketplace-form-field input[type="number"],
    .marketplace-form-field textarea {
        box-sizing: border-box;
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #d7dce2;
        border-radius: 7px;
        font: inherit;
    }

    .marketplace-form-field textarea {
        min-height: 220px;
        resize: vertical;
    }

.marketplace-market-value {
    margin-top: 7px;
    font-size: 0.95rem;
}

.marketplace-help-text {
    margin-top: 6px;
    font-size: 0.9rem;
    color: #5f6873;
}

/* ADMN COMPLAIN*/
.admin-page {
    max-width: 1400px;
    margin: 0 auto;
}

.admin-page-header {
    margin-bottom: 24px;
}

    .admin-page-header h1 {
        margin-bottom: 6px;
    }

    .admin-page-header p {
        margin: 0;
        color: #666;
    }

.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

    .admin-table th,
    .admin-table td {
        padding: 12px 14px;
        text-align: left;
        vertical-align: top;
        border-bottom: 1px solid #ddd;
    }

    .admin-table th {
        font-weight: 600;
        white-space: nowrap;
    }

.admin-table-actions {
    text-align: right;
    white-space: nowrap;
}

.admin-link {
    text-decoration: none;
}

.complaint-reason {
    max-width: 350px;
}

.complaint-status {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 12px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.complaint-status-open {
    background: #fff3cd;
}

.complaint-status-inprogress {
    background: #cff4fc;
}

.complaint-status-credited {
    background: #d1e7dd;
}

.complaint-status-rejected {
    background: #e2e3e5;
}

.admin-empty-state {
    padding: 24px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Complain */

.complaint-detail-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 20px;
    margin-bottom: 20px;
}

.complaint-detail-list dd {
    overflow-wrap: anywhere;
}

.complaint-detail-card {
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

    .complaint-detail-card h2 {
        margin-top: 0;
        margin-bottom: 18px;
        font-size: 1.15rem;
    }

.complaint-detail-list {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 8px 16px;
    margin: 0;
}

    .complaint-detail-list dt {
        font-weight: 600;
    }

    .complaint-detail-list dd {
        margin: 0;
        overflow-wrap: anywhere;
    }

.complaint-customer-text {
    white-space: pre-wrap;
    line-height: 1.5;
}

@media (max-width: 800px) {

    .complaint-detail-grid {
        grid-template-columns: 1fr;
    }

    .complaint-detail-list {
        grid-template-columns: 1fr;
    }

        .complaint-detail-list dd {
            margin-bottom: 10px;
        }
}

/* Complant.cshtmal*/

.complaint-form-group {
    margin-bottom: 20px;
}

    .complaint-form-group label {
        display: block;
        margin-bottom: 7px;
        font-weight: 600;
    }

.complaint-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font: inherit;
    resize: vertical;
}

.complaint-actions {
    margin-top: 24px;
}

.complaint-credit-button {
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.complaint-reject-button {
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.complaint-message {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.complaint-message-success {
    background: #d1e7dd;
}

.complaint-message-error {
    background: #f8d7da;
}

/* Pages Item Complaint */
.complaint-user-page {
    max-width: 700px;
    margin: 0 auto;
}

.complaint-user-intro {
    margin-bottom: 20px;
    color: #666;
}

.complaint-user-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

.complaint-cancel-link {
    text-decoration: none;
}

.complaint-submit-button {
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.complaint-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.complaint-image {
    width: 140px;
    height: 105px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
}


.complaint-capture-analysis {
    margin-top: 28px;
}

    .complaint-capture-analysis h3 {
        margin-bottom: 4px;
    }

    .complaint-capture-analysis h4 {
        margin-top: 22px;
        margin-bottom: 10px;
    }

.complaint-analysis-date {
    margin-bottom: 18px;
    font-size: 13px;
    color: #666;
}


.complaint-valuation-input {
    margin-bottom: 28px;
}

    .complaint-valuation-input h3 {
        margin-bottom: 16px;
    }

.complaint-valuation-result {
    margin-top: 20px;
    padding: 20px;
    border-radius: 12px;
    background: #ecfdf5;
    border: 1px solid #86efac;
}

.complaint-market-value {
    margin: 8px 0;
    color: #166534;
    font-size: 34px;
    font-weight: bold;
}

.complaint-valuation-reasoning {
    margin-top: 18px;
    line-height: 1.5;
}


/* KI Check*/

.complaint-ai-review-form {
    margin-bottom: 22px;
}

.complaint-ai-review-button {
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.complaint-ai-review {
    white-space: pre-wrap;
    line-height: 1.55;
}

/* Item Complain Link on Item Details */
.item-complaint-link {
    margin-top: 28px;
    font-size: 0.9rem;
}

    .item-complaint-link a {
        color: #666;
        text-decoration: underline;
    }


/* LOGIN */

.login-page {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 32px 20px 60px;
    box-sizing: border-box;
}

    .login-page h1 {
        margin: 0 0 28px;
    }

.login-field {
    margin-bottom: 18px;
}

    .login-field label {
        display: block;
        margin-bottom: 6px;
        font-weight: 600;
    }

    .login-field input {
        width: 100%;
        min-height: 44px;
        padding: 0 12px;
        box-sizing: border-box;
        border: 1px solid #d7dce1;
        border-radius: 8px;
        background: #fff;
        font: inherit;
    }

        .login-field input:focus {
            outline: none;
            border-color: #7b8490;
        }

.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 20px;
    cursor: pointer;
}

    .login-remember input {
        width: 18px;
        height: 18px;
    }

.login-button {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: #1f2937;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

    .login-button:hover {
        background: #111827;
    }

.login-links {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #d7dce1;
}

    .login-links p {
        margin: 8px 0;
    }

.login-error {
    margin-bottom: 18px;
    padding: 10px 12px;
    border: 1px solid #f0b4b4;
    border-radius: 8px;
    background: #fff5f5;
    color: #a40000;
}



.account-page {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 32px 20px 60px;
    box-sizing: border-box;
}

    .account-page h1 {
        margin: 0 0 28px;
    }

.account-field {
    margin-bottom: 18px;
}

    .account-field label {
        display: block;
        margin-bottom: 6px;
        font-weight: 600;
    }

    .account-field input {
        width: 100%;
        min-height: 44px;
        padding: 0 12px;
        box-sizing: border-box;
        border: 1px solid #d7dce1;
        border-radius: 8px;
        background: #fff;
        font: inherit;
    }

        .account-field input:focus {
            outline: none;
            border-color: #7b8490;
        }

.account-button {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: #1f2937;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

    .account-button:hover {
        background: #111827;
    }

.account-links {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #d7dce1;
}

    .account-links p {
        margin: 8px 0;
    }

.account-message {
    margin-bottom: 18px;
    padding: 10px 12px;
    border: 1px solid #d7dce1;
    border-radius: 8px;
    background: #fff;
}


.account-error {
    margin-bottom: 18px;
    padding: 10px 12px;
    border: 1px solid #f0b4b4;
    border-radius: 8px;
    background: #fff5f5;
    color: #a40000;
}

    .account-error div + div {
        margin-top: 4px;
    }


.account-confirmation {
    padding: 18px 20px;
    border: 1px solid #d7dce1;
    border-radius: 10px;
    background: #fff;
}

    .account-confirmation p {
        margin: 0 0 14px;
        line-height: 1.5;
    }

        .account-confirmation p:last-child {
            margin-bottom: 0;
        }

.account-button-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

    .account-button-link:hover {
        color: #fff;
        text-decoration: none;
    }

.account-confirmation-action {
    margin-top: 20px;
}


.waitlist-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}


/* Messages Menue */

.layout-message-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
}

.layout-message-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #d5eddb;
    color: #174d2b;
    font-size: 0.78rem;
    font-weight: 700;
}


/* ITEM-KARTEN */

.item-card {
    flex: 0 0 auto;
    padding: 18px;
    background: var(--color-item);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-card);
}


/* Unterschiedliche Breiten auf größeren Bildschirmen */

.item-card-small {
    width: 290px;
}

.item-card-medium {
    width: 350px;
}

.item-card-large {
    width: 420px;
}


/* Marktanalysiertes Item */

.item-card-valuated {
    background: var(--color-item-valuated);
    color: var(--color-item-valuated-text);
    border-color: var(--color-item-valuated-border);
}


/* Titel */

.item-card h2 {
    margin-top: 0;
    overflow-wrap: anywhere;
}


/* Bilder dürfen ihre Karte niemals verbreitern */

.item-card img {
    max-width: 100%;
    border-radius: var(--radius-small);
}


/* Formulare und Eingaben dürfen ebenfalls
   niemals aus der Karte herauslaufen */

.item-card input,
.item-card textarea,
.item-card select {
    max-width: 100%;
}

/* Button */

.item-valuation-button {
    display: inline-block;
    padding: 7px 10px;
    border-radius: var(--radius-small);
    background: var(--color-button);
    color: var(--color-button-text);
    text-decoration: none;
    font-size: 0.9rem;
}

/* MOBILE */

@media (max-width: 700px) {

    .page-container {
        padding: 14px;
    }

    .site-header-inner {
        padding: 12px 14px;
        gap: 15px;
        flex-wrap: wrap;
    }

    .site-nav {
        gap: 15px;
    }

    .items-wall {
        display: block;
    }

    .item-card,
    .item-card-small,
    .item-card-medium,
    .item-card-large {
        width: 100%;
        max-width: none;
        margin-bottom: 14px;
    }

    

}


/* NAVIGATION */

.nav-capture {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

    .nav-capture img {
        height: 27px;
        display: block;
    }


/* ITEM-DETAILSEITE */

.item-details {
    max-width: 900px;
    margin: 0 auto;
}

.item-details-header {
    margin-bottom: 22px;
}

    .item-details-header h1 {
        margin-bottom: 0;
    }

.item-details-images {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

    .item-details-images img {
        width: 150px;
        height: 120px;
        object-fit: cover;
        border-radius: var(--radius-medium);
        border: 1px solid var(--color-border);
    }

.item-details-form {
    padding: 22px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-card);
}

.item-details-field {
    margin-bottom: 20px;
}

    .item-details-field label {
        display: block;
        margin-bottom: 7px;
        font-weight: 600;
    }

    .item-details-field input,
    .item-details-field textarea,
    .item-details-field select {
        width: 100%;
        padding: 11px 12px;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-small);
        background: var(--color-surface);
        color: var(--color-text);
        font: inherit;
    }

    .item-details-field textarea {
        resize: vertical;
    }

.item-details-readonly {
    padding: 11px 12px;
    background: var(--color-surface-soft);
    border-radius: var(--radius-small);
}

.item-details-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

    .item-details-actions button,
    .item-details-actions a {
        padding: 11px 16px;
        border: 0;
        border-radius: var(--radius-small);
        background: var(--color-button);
        color: var(--color-button-text);
        text-decoration: none;
        cursor: pointer;
        font: inherit;
    }

@media (max-width: 700px) {

    .item-details-images img {
        width: calc(50% - 6px);
        height: 120px;
    }

    .item-details-form {
        padding: 16px;
    }
}

/*TITEL EDIT KI*/

.item-restore-info {
    margin-top: 10px;
    padding: 10px 12px;
    background: var(--color-surface-soft);
    border-radius: var(--radius-small);
}

.item-restore-value {
    margin-bottom: 7px;
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.item-restore-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-text);
    text-decoration: underline;
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
}



/* IXNOX ITEM-INFORMATIONEN */

.item-analysis-info {
    margin-top: 28px;
    padding: 22px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-card);
}

.item-analysis-header {
    margin-bottom: 24px;
}

    .item-analysis-header h2 {
        margin: 0;
    }

.item-analysis-date {
    margin-top: 5px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.item-analysis-section {
    margin-top: 26px;
}

    .item-analysis-section:first-of-type {
        margin-top: 0;
    }

    .item-analysis-section h3 {
        margin: 0 0 12px 0;
        font-size: 1rem;
    }

    .item-analysis-section p {
        line-height: 1.5;
    }

    .item-analysis-section ul {
        margin: 0;
        padding-left: 20px;
    }

    .item-analysis-section li {
        margin-bottom: 7px;
        line-height: 1.45;
    }


/* Technische Eigenschaften */

.item-property-list {
    border-top: 1px solid var(--color-border);
}

.item-property-row {
    display: grid;
    grid-template-columns: minmax(160px, 0.8fr) 1.5fr;
    gap: 18px;
    padding: 9px 0;
    border-bottom: 1px solid var(--color-border);
}

.item-property-name {
    color: var(--color-text-muted);
}

.item-property-value {
    font-weight: 500;
}


/* Unsicherheiten */

.item-analysis-uncertain {
    padding: 15px;
    background: var(--color-surface-soft);
    border-radius: var(--radius-small);
}

/* Bookmark Space */

.item-card {
    scroll-margin-top: 90px;
}

@media (max-width: 700px) {

    .item-analysis-info {
        padding: 16px;
    }

    .item-property-row {
        display: block;
    }

    .item-property-value {
        margin-top: 3px;
    }
}

/* Payment */


.service-payment-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.45);
}

.service-payment-box {
    width: 100%;
    max-width: 420px;
    padding: 24px;
    background: white;
    color: #222;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

    .service-payment-box h2 {
        margin: 0 0 18px 0;
        font-size: 1.2rem;
    }

    .service-payment-box p {
        margin: 0;
    }

.service-payment-info {
    margin-top: 10px !important;
}

.service-payment-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 22px;
}

.service-payment-cancel,
.service-payment-start {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 7px;
    font-weight: 600;
    cursor: pointer;
}

.service-payment-cancel {
    border: 1px solid #d1d5db;
    background: white;
    color: #1f2937;
}

.service-payment-start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1f2937;
    background: #1f2937;
    color: white;
    text-decoration: none;
}

    .service-payment-start:hover {
        color: white;
        opacity: 0.9;
    }


/* LÖSCH-DIALOG */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

    .modal-overlay.visible {
        display: flex;
    }

.modal-box {
    width: min(420px, calc(100% - 30px));
    padding: 24px;
    background: var(--color-surface);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-card);
}

    .modal-box h2 {
        margin-top: 0;
    }

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

    .modal-actions form {
        margin: 0;
    }

.modal-cancel,
.modal-delete,
.item-delete-button {
    padding: 10px 15px;
    border: 0;
    border-radius: var(--radius-small);
    font: inherit;
    cursor: pointer;
}

.modal-cancel {
    background: var(--color-surface-soft);
    color: var(--color-text);
}

.modal-delete,
.item-delete-button {
    background: #991b1b;
    color: white;
}

.unsaved-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

    .unsaved-actions button {
        padding: 9px 14px;
        border-radius: var(--radius-small);
        font: inherit;
        cursor: pointer;
    }

.unsaved-cancel {
    background: var(--color-surface-soft);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.unsaved-discard {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.unsaved-save {
    background: var(--color-button);
    color: var(--color-button-text);
    border: 1px solid var(--color-button);
}

/* BILD-GALERIE */

.gallery-thumbnail {
    cursor: pointer;
}

.gallery-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

    .gallery-overlay.visible {
        display: flex;
    }

.gallery-image {
    max-width: 88vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: var(--radius-medium);
}

.gallery-close {
    position: absolute;
    top: 18px;
    right: 24px;
    border: 0;
    background: transparent;
    color: white;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    width: 48px;
    height: 64px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 2.4rem;
    cursor: pointer;
    border-radius: var(--radius-small);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-counter {
    position: absolute;
    bottom: 20px;
    color: white;
    font-size: 0.95rem;
}

@media (max-width: 700px) {
    .gallery-image {
        max-width: 94vw;
        max-height: 82vh;
    }

    .gallery-nav {
        width: 42px;
        height: 58px;
    }

    .gallery-prev {
        left: 8px;
    }

    .gallery-next {
        right: 8px;
    }
}


