*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f4f6;
    color: #111827;
}

a {
    color: #ea580c;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-header {
    background: #111827;
    color: #f9fafb;
    padding: 0.75rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.35);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #ea580c;
    color: #f9fafb;
    font-weight: 700;
    font-size: 1.1rem;
}

.logo-text {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nav a {
    color: #e5e7eb;
    font-size: 0.85rem;
}

.nav a:hover {
    color: #ffffff;
}

.nav-user {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-right: 0.4rem;
}

.main-content {
    padding: 1.5rem 0 3rem;
}

/* Hero */

.hero {
    background: radial-gradient(circle at top left, #ea580c 0, #111827 55%, #020617 100%);
    color: #f9fafb;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 18px 45px rgba(15,23,42,0.6);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 55%);
    opacity: 0.7;
    pointer-events: none;
}

.hero h1 {
    position: relative;
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 2.1rem;
    letter-spacing: -0.03em;
    z-index: 1;
}

.hero p {
    position: relative;
    margin-top: 0;
    margin-bottom: 1rem;
    max-width: 640px;
    font-size: 0.95rem;
    color: #e5e7eb;
    z-index: 1;
}

.hero-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    z-index: 1;
}

/* Buttons */

.btn-primary,
.btn-outline,
.btn-primary-small,
.btn-outline-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, background 0.12s;
}

.btn-primary,
.btn-primary-small {
    background: #ea580c;
    color: #f9fafb;
    box-shadow: 0 10px 25px rgba(234,88,12,0.45);
}

.btn-primary:hover,
.btn-primary-small:hover {
    background: #c2410c;
    box-shadow: 0 14px 32px rgba(234,88,12,0.6);
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-outline,
.btn-outline-small {
    background: transparent;
    color: #f9fafb;
    border: 1px solid rgba(249,250,251,0.6);
}

.btn-outline:hover,
.btn-outline-small:hover {
    background: rgba(15,23,42,0.35);
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary-small,
.btn-outline-small {
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    box-shadow: none;
}

/* Filter */

.search-filter {
    margin-bottom: 1rem;
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.6rem;
    background: #ffffff;
    padding: 0.9rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15,23,42,0.06);
    align-items: center;
}

.filter-form input[type="text"],
.filter-form select {
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    font-size: 0.85rem;
}

/* Listing grid */

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.listing-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(15,23,42,0.08);
    display: flex;
    flex-direction: column;
}

.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.45rem;
}

.listing-title {
    font-size: 1.05rem;
    margin: 0.25rem 0;
}

.listing-title a {
    color: #111827;
}

.listing-title a:hover {
    color: #ea580c;
}

.listing-company {
    font-size: 0.85rem;
    color: #4b5563;
    margin: 0.2rem 0 0.45rem;
}

.listing-meta {
    font-size: 0.8rem;
    color: #4b5563;
    margin-bottom: 0.45rem;
}

.listing-snippet {
    font-size: 0.86rem;
    color: #374151;
    margin-bottom: 0.7rem;
}

.listing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: auto;
}

.listing-location {
    font-size: 0.8rem;
    color: #6b7280;
}

.listing-date {
    opacity: 0.9;
}

/* Badges */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.badge-offer {
    background: #dcfce7;
    color: #166534;
}

.badge-wanted {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-active {
    background: #dcfce7;
    color: #15803d;
}

.badge-inactive {
    background: #e5e7eb;
    color: #4b5563;
}

/* Auth/general forms */

.auth-section,
.content-section {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(15,23,42,0.08);
    margin-bottom: 1.25rem;
}

.auth-section h1,
.content-section h1 {
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.auth-form {
    margin-top: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
}

.form-group label {
    font-size: 0.85rem;
    margin-bottom: 0.18rem;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.65rem;
    font-size: 0.9rem;
}

.form-group textarea {
    resize: vertical;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.86rem;
}

.auth-alt {
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Alert */

.alert {
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

/* Listing table/detail */

.listing-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.listing-table th,
.listing-table td {
    padding: 0.5rem 0.4rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.listing-table th {
    background: #f9fafb;
    font-weight: 600;
}

.inline-form {
    display: inline;
}

.listing-detail {
    max-width: 960px;
    margin: 0 auto;
}

.listing-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.listing-detail h1 {
    margin-top: 0.6rem;
    margin-bottom: 0.3rem;
}

.listing-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.1fr);
    gap: 1.4rem;
    margin-top: 1rem;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0.3rem 0 0;
    font-size: 0.9rem;
}

.detail-list li {
    margin-bottom: 0.25rem;
}

.listing-detail-contact {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1rem;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(15,23,42,0.05);
}

.small-text {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.6rem;
}

/* Footer */

.site-footer {
    border-top: 1px solid #e5e7eb;
    padding: 0.8rem 0;
    background: #f9fafb;
    font-size: 0.8rem;
    color: #6b7280;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a {
    margin-left: 0.75rem;
    color: #6b7280;
}

/* Responsive */

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        justify-content: flex-start;
    }

    .listing-detail-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 1.6rem 1.2rem;
    }
}


/* Registrierungs-/Partnerformulare */

.form-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 720px;
    background: #ffffff;
    padding: 1.2rem 1.4rem;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(15,23,42,0.06);
}

.form-vertical h3 {
    margin-top: 1rem;
    margin-bottom: 0.4rem;
    font-size: 1rem;
    color: #111827;
}

.form-vertical label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
}

.form-vertical input[type="text"],
.form-vertical input[type="email"],
.form-vertical input[type="password"],
.form-vertical input[type="number"],
.form-vertical select {
    width: 100%;
    padding: 0.5rem 0.55rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    font-size: 0.9rem;
}

.form-vertical input:focus,
.form-vertical select:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 1px rgba(249,115,22,0.2);
}

.form-section {
    margin-top: 0.6rem;
    padding: 0.8rem 0.9rem;
    border-radius: 0.9rem;
    background: #f9fafb;
    border: 1px dashed #e5e7eb;
}

.form-section legend {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
    padding: 0 0.25rem;
}

.form-section label {
    display: block;
    font-weight: 400;
    margin-top: 0.25rem;
}

.form-hint {
    font-size: 0.8rem;
    color: #6b7280;
    max-width: 640px;
}

.form-vertical button[type="submit"] {
    margin-top: 1rem;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    list-style: none;
    margin: 0;
    min-width: 200px;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 5px 0;
}

.dropdown-menu a {
    color: #333;
    text-decoration: none;
}

.nav-right {
    float: right;
}

.user-label {
    font-weight: bold;
    padding-left: 10px;
}
/* === Zusätzliche Buttons im Palettex CI === */

.btn-action {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    background: #f7931e; /* Palettex-Orange */
    color: #fff;
    text-decoration: none;
    border: none;
}
.btn-action:hover {
    background: #d97f18;
    color: #fff;
}

.btn-edit {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    background: #5bc0de;
    color: #fff;
    text-decoration: none;
    border: none;
}
.btn-edit:hover {
    background: #46a5c3;
    color: #fff;
}

.btn-warning {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    background: #f0ad4e;
    color: #fff;
    text-decoration: none;
    border: none;
}
.btn-warning:hover {
    background: #ec971f;
    color: #fff;
}

.btn-danger {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    background: #d9534f;
    color: #fff;
    text-decoration: none;
    border: none;
}
.btn-danger:hover {
    background: #c64440;
    color: #fff;
}

.btn-neutral {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    background: #e0e0e0;
    color: #333;
    text-decoration: none;
    border: none;
}
.btn-neutral:hover {
    background: #cfcfcf;
    color: #111;
}

/* Tabellenzeile für archivierte Nutzer visuell absetzen */
.table-list tr.row-archived {
    opacity: 0.6;
}

/* Warnbanner für gesperrte Accounts */
.warning-banner {
    background: #f7931e;
    color: #fff;
    padding: 10px 15px;
    text-align: center;
    font-weight: bold;
    margin: 0;
}

/* Alerts im Adminbereich */
.alert-success {
    background: #dff0d8;
    color: #3c763d;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}
.alert-error {
    background: #f2dede;
    color: #a94442;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}
.hint {
    font-size: 0.9rem;
    color: #777;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #e6e6e6;
}

.admin-table th {
    font-weight: 600;
    font-size: 15px;
}

.actions-cell a {
    margin-right: 6px;
    display: inline-block;
}

/* Einheitliche CI-Buttons */
.btn-blue {
    background: #4aa8ff;
    padding: 6px 12px;
    color: white;
    border-radius: 6px;
}
.btn-blue:hover { background:#1f8cff; }

.btn-red {
    background: #d9534f;
    padding: 6px 12px;
    color: white;
    border-radius: 6px;
}
.btn-red:hover { background:#c9302c; }

.btn-orange {
    background: #f0ad4e;
    padding: 6px 12px;
    color: white;
    border-radius: 6px;
}
.btn-orange:hover { background:#ec971f; }

.row-unread {
    font-weight: 600;
}
.status-open {
    color: #d4a017;
    font-weight: bold;
}

.status-accepted {
    color: #008800;
    font-weight: bold;
}

.status-declined {
    color: #bb0000;
    font-weight: bold;
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
    background: #d9534f;
    color: #fff;
    box-shadow: 0 10px 25px rgba(217, 83, 79, 0.45);
    transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, background 0.12s;
}

.btn-danger:hover {
    background: #c9302c;
    box-shadow: 0 14px 32px rgba(217, 83, 79, 0.6);
    transform: translateY(-1px);
}
