/* =======================================================
   GLOBALE VARIABLEN FÜR SCHNELLE ANPASSUNGEN
   ======================================================= */
:root {
    /* Farben für Hauptbereiche */
    --jp-bg-main: #fff;
    --jp-bg-filter: #f3f6fb;
    --jp-bg-list: #e5ffe5;
    --jp-bg-pagination: #f8e8aa;

    /* Rahmen & Schatten */
    --jp-border-main: #117a35;  /*#117a35*/
    --jp-border-list: #15803d;
    --jp-border-filter: #90caf9;
    --jp-shadow-main: 0 2px 8px rgba(0,0,0,0.10);

    /* Eckenradius */
    --jp-radius-main: 16px;
    --jp-radius-filter: 12px;
    --jp-radius-list: 16px;

    /* Abstände */
    --jp-gap-main: 10px;      /* Abstand Hauptcontainer zum Header */
    --jp-gap-inner: 5px;      /* Abstand zw. Containern */
    --jp-gap-filter-grid: 7px;/* Abstand zw. Filterfeldern */

    /* Buttonfarben */
    --jp-btn-search-bg: #22c55e;
    --jp-btn-reset-bg: #ef4444;
    --jp-btn-text: #fff;

    /* Border für Filterfelder */
    --jp-filterfield-border: #b0bec5;
}

/* =======================================================
   ALLGEMEINE GRUNDSTILE (NICHT SPEZIFISCH FÜR JOBPORTAL)
   ======================================================= */
body {
    font-family: Arial, sans-serif;
}

.main-content {
    position: absolute;
    top: 0;
    bottom: 56px;
    left: 0;
    right: 0;
    overflow-y: auto;
    background: #bcf3ad;
}

.page-wrapper {
    position: relative;
    margin-top: var(--jp-gap-main);     /* Abstand vom Header */
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 1400px;
    padding: 0 1rem;
    box-sizing: border-box;
    border: 2px solid transparent; /* Debug - entfernen bei Live! */
}

/* =======================================================
   JOBPORTAL-Hauptbereich
   ======================================================= */
.jobportal-section {
    margin-top: var(--jp-gap-main);
    margin-bottom: 16px;
}

.jobportal-maincontainer {
    display: flex;
    flex-direction: column;
    gap: var(--jp-gap-inner); /* Abstand zwischen Filter & Liste */
    background: var(--jp-bg-main);
    border: none; /*2px solid var(--jp-border-main);*/
    border-radius: var(--jp-radius-main);
    box-shadow: var(--jp-shadow-main);
    padding: 0;
    width: 100%;
    position: relative;
}

/* =======================================================
   FILTER-CONTAINER (Container 1)
   ======================================================= */
.jobportal-filter-container {
    position: sticky;        /* "fixiert" im Container beim Scrollen */
    top: 0;
    z-index: 20;
    background: var(--jp-bg-main);
    border-radius: var(--jp-radius-main) var(--jp-radius-main) 0 0;
    margin-top: var(--jp-gap-inner);
    margin-bottom: var(--jp-gap-inner);
    padding: 12px 10px 8px 10px;
}

/* GRID-Layout für Filterfelder */
.jobportal-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: var(--jp-gap-filter-grid);
    width: 100%;
    background: var(--jp-bg-filter);
    border-radius: var(--jp-radius-filter);
    border: none; /*1.5px solid var(--jp-border-filter);*/
    padding: 13px 10px;
    box-sizing: border-box;
}

/* Einzelne Filterfelder: Text & Auswahl */
.filter-field {
    font-size: 1rem;
    border: 1.5px solid var(--jp-filterfield-border);
    border-radius: 8px;
    padding: 9px 8px;
    background: #fff;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* === Hier kann JEDES Feld individuell gestylt werden, z.B.: ===
.row1-col1 { background: #eaf6ff; }
.row2-col3 { border-color: #ffa500; }
*/

/* Aktionen in der letzten Grid-Zelle */
.filter-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    justify-content: flex-end;
}
.filter-pagination {
    background: var(--jp-bg-pagination);
    border-radius: 7px;
    padding: 5px 12px;
    font-size: 1em;
    color: #222;
    margin-right: 6px;
}
.filter-btn {
    border: none;
    border-radius: 7px;
    padding: 8px 14px;
    font-size: 1em;
    cursor: pointer;
    font-weight: 600;
    color: var(--jp-btn-text);
}
.filter-btn.search {
    background: var(--jp-btn-search-bg);
}
.filter-btn.reset {
    background: var(--jp-btn-reset-bg);
}

/* =======================================================
   LISTEN-CONTAINER (Container 2)
   ======================================================= */
.jobportal-list-container {
    margin-top: var(--jp-gap-inner);
    background: transparent; /*var(--jp-bg-list);*/
    border: mome; /*1.5px solid var(--jp-border-list);*/
    border-radius: 0 0 var(--jp-radius-list) var(--jp-radius-list);
    min-height: 220px;
    max-height: 52vh;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

/* Listeninhalt scrollbar, aber ohne sichtbaren Scrollbalken */
.jobportal-list-content {
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
    height: 100%;
    padding: 14px 9px;
}
.jobportal-list-content::-webkit-scrollbar {
    display: none;
}

/* =======================================================
   STILE FÜR JOBANGEBOTE (Logo, Infos, Anzeigen-Button)
   ======================================================= */

.job-offer {
    margin: 12px 0;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f9f9f9;
}

.job-offer-grid {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 16px;
    align-items: center;
}

.job-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-logo-img {
    max-width: 90px;
    max-height: 90px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 6px;
    border: 1px solid #ccc;
}

.job-info h3 {
    margin: 0 0 8px;
    font-size: 1.2em;
    color: #1a202c;
}

.job-meta {
    font-size: 0.9em;
    color: #444;
    margin-bottom: 6px;
}

.job-desc {
    font-size: 0.95em;
    color: #333;
    line-height: 1.4em;
}

.job-action {
    text-align: center;
}

.job-link-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #007acc;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.job-link-btn:hover {
    background: #005fa3;
}


/* =======================================================
   RESPONSIVE ANPASSUNGEN
   ======================================================= */
@media (max-width: 900px) {
    .jobportal-maincontainer {
        border-radius: 10px;
    }
    .jobportal-filter-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(9, auto);
        padding: 7px 5px;
        gap: 6px;
    }
    .filter-actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
    }
    .jobportal-list-container {
        min-height: 120px;
        max-height: 32vh;
    }
}




/* =======================================================
   ERWEITERUNGSHINWEIS
   =======================================================
   - Für JEDEN Block, jede Zelle, jeden Button kannst du eigene
     Klassen oder IDs vergeben und individuell stylen.
   - Alle Farben/Abstände/Rahmen kannst du zentral über die
     Variablen oben (im :root-Bereich) ändern.
   - Für zusätzliche Felder im Filter-Grid einfach
     z.B. .rowX-colY verwenden und gezielt überschreiben.
======================================================= */
