@charset "utf-8";
/**
 * Responsive Stylesheet für Jobportal-Bewertungssystem
 * 
 * @file        styles.css
 * @version     2.1
 * @date        2025-01-24
 * @author      Claude / Reinhold
 * @copyright   2025 Reinhold
 * 
 * @package     Jobportal-Bewertung
 * @category    Stylesheet
 * 
 * @description
 * Haupt-Stylesheet für das Jobportal-Bewertungssystem mit vollständig
 * responsivem Design für Desktop, Tablet und Mobile-Geräte.
 * 
 * @features
 * - Mobile-First responsive Design
 * - Flexbox-basiertes Layout
 * - Sticky Footer
 * - Modal-Dialoge
 * - Animationen und Transitions
 * - Barrierefreie Farbkontraste
 * - Druckoptimierung vorbereitet
 * 
 * @breakpoints
 * - Mobile:           bis 480px
 * - Tablet:           481px - 768px
 * - Desktop:          769px+
 * - Sehr klein:       bis 320px
 * 
 * @sections
 * 1. Basis-Styles (Reset, Typography)
 * 2. Layout-Container (Page-Wrapper, Flexbox)
 * 3. Header
 * 4. Main Content Area
 * 5. Sortierung
 * 6. Rubriken-Filter
 * 7. Buttons
 * 8. Tabellen
 * 9. Modal-Fenster
 * 10. Prominenter Link-Button
 * 11. Alerts
 * 12. Aside (Werbung)
 * 13. Footer
 * 14. Responsive Breakpoints
 * 
 * @colors
 * Primary:     #4CAF50 (Grün - Buttons)
 * Secondary:   #777 (Grau - Secondary Buttons)
 * Text:        #333 (Dunkelgrau)
 * Background:  #f9f9f9 (Hellgrau)
 * Links:       #0066cc (Blau)
 * Footer:      #28497A (Dunkelblau)
 * 
 * @dependencies
 * - menu-styles.css (für Menü-Komponenten)
 * 
 * @browser-support
 * - Chrome/Edge: aktuelle Version
 * - Firefox: aktuelle Version
 * - Safari: aktuelle Version
 * - Mobile Browser: iOS Safari 12+, Chrome Mobile
 * 
 * @changelog
 * v2.1 (2025-01-24)
 * - button.css komplett überarbeitet (v2.1)
 * - Alle Button-Styles nun in button.css zentral verwaltet
 * - styles.css nur noch minimal (nur Shadow-Effekt für prominent-link)
 * - Keine Overrides mehr nötig
 * - Schriftgröße auf 16px optimiert
 * - Normale Schreibweise (kein uppercase)
 * - Alle Buttons 42px hoch
 * 
 * v2.0 (2025-01-24) - MAJOR REFACTORING
 * - BREAKING CHANGE: Verwendet jetzt button.css als Basis
 * - Eigene Button-Definitionen entfernt, nur Overrides beibehalten
 * - Alle Buttons nutzen button.css Klassen (.success, .secondary)
 * - Override für text-transform: none !important (statt uppercase)
 * - Vereinfachte CSS-Struktur, weniger Redundanz
 * - Button-Höhe weiterhin auf 42px fixiert
 * - Konsistente Verwendung der globalen Button-Styles
 * 
 * v1.7 (2025-01-24)
 * - NAV-Element auf height: 0 gesetzt (entfernt Leerraum zwischen Header und Main)
 * - text-transform: none !important für alle Button-Typen (Override für externe CSS)
 * - submit-btn.secondary: explizites text-transform: none !important
 * - Behebt Problem mit Großbuchstaben-Text auf Buttons
 * - Behebt großen Abstand zwischen H1 und H2 (verursacht durch NAV)
 * 
 * v1.6 (2025-01-24)
 * - prominent-link: font-weight von bold auf normal geändert
 * - prominent-link: transform auf hover entfernt (keine Bewegung mehr)
 * - Beide Button-Typen: vertical-align: middle hinzugefügt
 * - submit-btn: explizites font-weight: normal hinzugefügt
 * - Header padding-bottom: 5px auf 0 reduziert
 * - header-title margin-bottom: 0.5rem auf 0.25rem reduziert
 * - Main padding-top: 10px auf 5px reduziert
 * - Alle Buttons jetzt identisch in Schrift und Position
 * 
 * v1.5 (2025-01-24)
 * - Alle drei Buttons auf exakt gleiche Höhe (42px) gesetzt
 * - prominent-link: font-size von 1.05em auf 0.95em reduziert
 * - prominent-link: padding vereinheitlicht (10px 20px)
 * - prominent-link: border-radius auf 4px (wie andere Buttons)
 * - Explizite height: 42px für garantierte Gleichheit
 * - line-height: 1 und box-sizing: border-box für präzise Kontrolle
 * 
 * v1.4 (2025-01-24)
 * - Weitere drastische Reduzierung aller vertikalen Abstände
 * - Header padding-bottom reduziert (15px → 5px)
 * - Header-title margin-bottom reduziert (1rem → 0.5rem)
 * - Main padding-top reduziert (20px → 10px)
 * - Filter-section: padding und margins weiter verkleinert
 * - Filter-checkboxes: gap und margins minimiert
 * - Filter-form: padding optimiert (15px → 12px)
 * - Filter-buttons: margins reduziert
 * 
 * v1.3 (2025-01-24)
 * - Abstand nach Hauptüberschrift reduziert (1rem statt Standard)
 * - Einheitliche Button-Höhe für alle Buttons (min-height: 42px)
 * - Horizontale Abstände in Filter-Sections kompakter gestaltet
 * - Padding und Margins in Filter-Bereichen optimiert
 * 
 * v1.2 (2025-11-16)
 * - Sortierungs-Container hinzugefügt
 * - Footer Sticky-Layout implementiert
 * - Header transparent gemacht
 * - Testhinweis-Balken versteckt
 * - Bewertungsspalte fixe Breite
 * 
 * v1.1 (2025-11-16)
 * - Rubriken-Filter kompakter gestaltet
 * - Modal für Danke-Meldung hinzugefügt
 * - Prominenten Link-Button erstellt
 * - Hover-Effekte entfernt
 * 
 * v1.0 (2025-11-16)
 * - Initiale Version
 * - Responsive Tabellen
 * - Filter-Formulare
 * - Basis-Layout
 * 
 * @todo
 * - Dark Mode vorbereiten
 * - Print-Styles erweitern
 * - CSS-Variablen für Theming einführen
 */

/* ===========================
   Basis-Styles
   =========================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

/* Entferne mögliche störende Top-Elemente */
body::before {
    display: none !important;
}

#box::before {
    display: none !important;
}

/* Verstecke Testhinweis-Balken */
#testhinweis,
.testhinweis,
[id*="testhinweis"],
[class*="testhinweis"] {
    display: none !important;
}

/* Entferne Margins vom Entwurfsmodus */
body.entwurfsmodus {
    margin: 0 !important;
}

/* ===========================
   Layout-Container
   =========================== */

.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===========================
   Navigation
   =========================== */

nav#nav,
#nav {
    margin: 0;
    padding: 0;
    height: 0;
    overflow: visible;
}

/* ===========================
   Header
   =========================== */

header {
    background-color: transparent;
    color: #333;
    padding: 15px 15px 0 15px;
    text-align: center;
    position: relative;
}

.header-title {
    margin: 0 0 0.25rem 0;
    font-size: 1.8em;
    color: #333;
}

/* ===========================
   Main Content Area
   =========================== */

.main {
    padding: 5px 0 20px 0;
}

.main h2 {
    margin-top: 0;
}

.main > p:first-of-type {
    margin-top: 0;
}

.center {
    text-align: center;
}

/* KI: BEGIN UPDATE - Filter-Sections */
.filter-section {
	margin-bottom: 0.75rem;
	padding: 0.5rem 0.75rem;
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.filter-section h4 {
	margin: 0 0 0.4rem 0;
	font-size: 1.1em;
	color: #333;
}

/* Rubriken-Filter in Spalten */
.filter-checkboxes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 0.3rem 2rem;
	margin: 0 0 0.3rem 0;
}

.filter-checkbox-item {
	display: flex;
	align-items: center;
	cursor: pointer;
	white-space: nowrap;
	width: 250px;
}

.filter-checkbox-item input[type="checkbox"] {
	margin-right: 0.5rem;
	cursor: pointer;
	flex-shrink: 0;
}

/* Responsive: Bei schmalen Bildschirmen weniger Spalten */
@media (max-width: 1200px) {
	.filter-checkboxes {
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	}
	.filter-checkbox-item {
		width: 220px;
	}
}

@media (max-width: 768px) {
	.filter-checkboxes {
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	}
	.filter-checkbox-item {
		width: 180px;
	}
	
	.filter-section {
		padding: 0.4rem 0.5rem;
		margin-bottom: 0.6rem;
	}
}
/* KI: END UPDATE */

/* Rubriken-Filter in Spalten mit fester Breite */
.filter-checkboxes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 250px));
	gap: 0.5rem 2rem;
	margin: 1rem 0;
	justify-content: start;
}

.filter-checkbox-item {
	display: flex;
	align-items: center;
	cursor: pointer;
	white-space: nowrap;
	width: 250px;
}

.filter-checkbox-item input[type="checkbox"] {
	margin-right: 0.5rem;
	cursor: pointer;
	flex-shrink: 0;
}

/* Responsive: Bei schmalen Bildschirmen weniger Spalten */
@media (max-width: 1200px) {
	.filter-checkboxes {
		grid-template-columns: repeat(auto-fit, minmax(220px, 220px));
	}
	.filter-checkbox-item {
		width: 220px;
	}
}

@media (max-width: 768px) {
	.filter-checkboxes {
		grid-template-columns: repeat(auto-fit, minmax(180px, 180px));
	}
	.filter-checkbox-item {
		width: 180px;
	}
}
/* ===========================
   Sortierung
   =========================== */

.sort-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.sort-inline label {
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.sort-inline select {
    padding: 8px 30px 8px 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 0.95em;
    cursor: pointer;
    background-color: white;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.sort-inline select:hover {
    border-color: #4CAF50;
}

.sort-inline select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 15px 0;
}

/* Alte Sortierungs-Container CSS entfernen */
.sort-container {
    display: none;
}

/* ===========================
   Rubriken-Filter
   =========================== */

.filter-form {
    margin-bottom: 30px;
    padding: 12px 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.filter-form h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.filter-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.filter-checkboxes label {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.filter-checkboxes label:hover {
    background-color: #e8e8e8;
}

.filter-checkboxes input[type="checkbox"] {
    margin-right: 6px;
    cursor: pointer;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    padding-top: 0.4rem;
}

/* ===========================
   Button-Anpassungen (button.css übernimmt alle Basis-Styles)
   =========================== */

/* Nur noch wenige spezifische Anpassungen nötig */
.prominent-link {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.prominent-link:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* ===========================
   Tabelle
   =========================== */

.dark-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.dark-table thead {
    background-color: #333;
    color: #fff;
}

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

/* Bewertungsspalte schmal halten */
.dark-table th:last-child,
.dark-table td:last-child {
    width: 180px;
    min-width: 180px;
}

.dark-table tbody tr {
    /* Kein Hover-Effekt */
}

.dark-table a {
    color: #0066cc;
    text-decoration: none;
}

.dark-table a:hover {
    text-decoration: underline;
}

.dark-table small {
    color: #666;
}

/* Bewertungsformular in Tabelle */
.dark-table form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dark-table select {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9em;
}

.dark-table .submit-btn {
    padding: 6px 12px;
    font-size: 0.85em;
}

/* ===========================
   Modal für Danke-Meldung
   =========================== */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h3 {
    margin-top: 0;
    color: #4CAF50;
    font-size: 1.5em;
}

.modal-content p {
    margin: 15px 0;
    color: #333;
}

.modal-close-btn {
    padding: 10px 25px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 10px;
}

.modal-close-btn:hover {
    background-color: #45A049;
}

/* ===========================
   Alerts
   =========================== */

.alert {
    padding: 12px 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* ===========================
   Aside (Werbung)
   =========================== */

aside {
    padding: 20px;
    background-color: #f9f9f9;
    margin-top: 30px;
    text-align: center;
    border-radius: 8px;
}

aside img {
    max-width: 100%;
    height: auto;
}

aside.hidden {
    display: none;
}

/* ===========================
   Footer
   =========================== */

footer {
    margin-top: 40px;
    padding: 10px 20px;
    background-color: #28497A;
    color: #fff;
    text-align: center;
    width: 100%;
}

/* Footer immer ganz unten */
html, body {
    height: 100%;
}

.page-wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1;
}

/* ===========================
   Responsive Breakpoints
   =========================== */

/* Tablets und kleinere Desktops (max-width: 768px) */
@media (max-width: 768px) {
    .page-wrapper {
        padding: 0 10px;
    }

    .main {
        padding: 15px 0;
    }

    .filter-form {
        padding: 15px;
    }

    .filter-checkboxes {
        gap: 10px;
    }

    .filter-checkboxes label {
        font-size: 0.9em;
        padding: 4px 8px;
    }

    /* Tabelle responsiv gestalten */
    .dark-table {
        font-size: 0.9em;
    }

    .dark-table th,
    .dark-table td {
        padding: 8px;
    }

    /* Bewertungsspalte schmaler */
    .dark-table td:last-child {
        width: 140px;
    }
}

/* Mobile Geräte (max-width: 480px) */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    header {
        padding: 12px;
    }

    .main h2 {
        font-size: 1.3em;
    }

    .filter-form {
        padding: 10px;
    }

    .filter-checkboxes {
        flex-direction: column;
        gap: 8px;
    }

    .filter-checkboxes label {
        width: 100%;
    }

    /* Tabelle für Mobile optimieren */
    .dark-table {
        font-size: 0.85em;
    }

    .dark-table thead {
        display: none; /* Header ausblenden auf Mobile */
    }

    .dark-table,
    .dark-table tbody,
    .dark-table tr,
    .dark-table td {
        display: block;
        width: 100%;
    }

    .dark-table tr {
        margin-bottom: 20px;
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 10px;
        background-color: #fff;
    }

    .dark-table td {
        padding: 8px 0;
        border: none;
        text-align: left;
    }

    .dark-table td:first-child {
        font-weight: bold;
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
    }

    .dark-table td:last-child {
        width: 100%;
    }

    .dark-table form {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

    .dark-table select {
        flex: 1;
        min-width: 0;
    }

    .dark-table .submit-btn {
        flex-shrink: 0;
    }

    aside {
        margin-top: 20px;
        padding: 15px;
    }
}

/* Sehr kleine Mobile Geräte (max-width: 320px) */
@media (max-width: 320px) {
    .page-wrapper {
        padding: 0 5px;
    }

    .filter-buttons {
        flex-direction: column;
    }

    .filter-buttons .submit-btn {
        width: 100%;
    }

    .dark-table form {
        flex-direction: column;
    }

    .dark-table select,
    .dark-table .submit-btn {
        width: 100%;
    }
}