/* --- GRUNDEINSTELLUNGEN & HINTERGRUND-ANIMATION (GLOBAL) --- */

/* 1. Universal-Reset (Das Sternchen) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 2. Body-Styling (Getrennt vom Sternchen) */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #ffffff;
    background-color: #2c3e50; /* Stellt sicher, dass der Sternenhintergrund lädt */
    overflow-x: hidden;

    /* Globales Padding für das Menü (das auf ALLEN Seiten gilt) */
    padding-block-start: 100px; 
} 
/* 3. Sternenhintergrund */

.container { position: fixed; inset-block-start: 0; inset-inline-start: 0; inline-size: 100vw; block-size: 100vh; z-index: -1; background: rgb(12, 12, 94); }
.stars { position: absolute; inline-size: 100%; block-size: 100%;  background-color:linear-gradient(180deg, #1a2b4b 0%, #0d1626 100%);;}
.star { position: absolute; background: #fff; border-radius: 20%; }
.nebula { position: absolute; inset-block-start: 50%; inset-inline-start: 80%; transform: translate(-50%, -50%); inline-size: 300px; block-size: 460px; filter: blur(40px); opacity: 0.7; mix-blend-mode: screen; z-index: -1; }
.pulse { position: absolute; inset-block-start: 40%; inset-inline-start: 50%; transform: translate(-50%, -50%); inline-size: 10px; block-size: 10px; background: rgba(255, 255, 255, 0.8); border-radius: 50%; box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.3); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; } 50% { transform: translate(-50%, -50%) scale(3); opacity: 0.8; } }

/* --- GLOBALES LAYOUT (Logo, Menü, Sprache) --- */
.logo { position: fixed; /* Klebt am Bildschirmrand */
    inset-block-start: 20px;
    inset-inline-end: 20px;     /* Oben rechts */
    inline-size: 400px;    /* Große Breite (Passen Sie 400px nach Wunsch an) */
    z-index: 1001;   /* Stellt sicher, dass es über dem Inhalt liegt */ inline-size: 400px; z-index: 1001; inline-size: 400px; }
.language-selector { position: absolute; inset-block-start: 20px; inset-inline-end: 20px; z-index: 1001; }
.main-nav { position: absolute; inset-block-start: 20px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 1002; padding-block-start: 100px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 15px; }
.main-nav ul li a { display: block; padding: 10px 20px; color: white; background-color: transparent; border: 1px solid white; border-radius: 20px; text-decoration: none; font-weight: 500; transition: all 0.3s ease; box-shadow: 0 0 10px rgba(0, 123, 255, 0.3); }
.main-nav ul li a:hover { background-color: rgba(255, 255, 255, 0.15); opacity: 0.9; }
.main-content { padding: 120px 40px 40px 40px; position: relative; z-index: 2; } /* z-index hinzugefügt */

/* --- STARTSEITEN-ELEMENTE (home.html) --- */

.title {
  position: relative;
  margin-block-start: 80px;
  color: white;
  font-family: 'Tangerine', serif;
  font-size: 4.5em;
  text-align: center;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  line-height: 1.2;
}

}

/* Repariert die "90er Jahre Links" auf der Startseite */
./* --- STARTSEITEN-BUTTONS (FIX FÜR POSITION) --- */
/* Wir zielen auf .cta-wrapper (aus deiner home.html), NICHT .controls */
.cta-wrapper {
    position: absolute;
    inset-block-end: 40px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 1000;
}



/* KORREKTE Positionierung für den Button-Container */
.cta-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 15px 20px;
    border-radius: 30px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 1.2em;
    font-weight: 500;
    text-decoration: none; /* Entfernt den Link-Unterstrich */
    text-align: center;
    line-height: 0.5em;
}

/* FIX FÜR HOVER-EFFEKT (Bug 2) */
.cta-btn:hover {
    background: #ffffff; /* Wird jetzt weiß */
    color: #0b1a2f; /* Text wird dunkel (damit man ihn sieht) */
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
}



/* --- FORMULAR-STYLING (Login, Registrierung, Fragebogen) --- */


.form-wrapper {
    max-inline-size: 500px;
    margin: 60px auto 60px auto;
    padding: 30px 40px;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari-Fix */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: white;
}
.form-scrollable { max-block-size: 75vh; overflow-y: auto; padding-inline-end: 25px; }
.form-wrapper h2 { font-family: 'Tangerine', serif; font-size: 50px; font-weight: bolder; margin-block-end: 20px; text-align: center; color: #fff; }
.form-wrapper p { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto; font-size: 16px; color: #ffffff; } /* Farbe korrigiert */
.form-wrapper label { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto; font-size: 16px; font-weight: 500; color: #ccc; display: block; margin-block-end: 8px; text-align: start; }
.form-wrapper input[type='text'],
.form-wrapper input[type='password'],
.form-wrapper input[type='email'],
.form-wrapper input[type='number'],
.form-wrapper input[type='date'],
.form-wrapper textarea {
    border: 1px solid green; inline-size: 100%; padding: 15px; border-radius: 15px; background-color: rgba(255, 255, 255, 0.9); color: #333; font-size: 16px; box-sizing: border-box; margin-block-end: 15px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
}
.form-wrapper textarea { block-size: 120px; resize: vertical; }
.form-wrapper button[type='submit'] { background-color: transparent; border: 1px solid green; color: green; padding: 15px 30px; border-radius: 15px; cursor: pointer; font-size: 20px; font-weight: bold; margin-block-start: 20px; transition: all 0.3s ease; }
.form-wrapper button[type='submit']:hover { background-color: green; color: white; }
.form-wrapper .errorlist { color: #ff4d4d; font-size: 14px; font-weight: bold; margin: 5px 0; list-style: none; padding: 0; }
/* Damit der Container auf kleinen Laptops (13 Zoll) scrollbar wird */
.form-wrapper {
    /* Deine existierenden Styles (Farbe, Radius etc.) behalten */
    background: rgba(0, 0, 50, 0.8); /* Beispiel */
    
    /* Das hier ist neu: */
    max-height: 85vh;       /* Maximal 85% der Bildschirmhöhe */
    overflow-y: auto;       /* Scrollbalken automatisch anzeigen */
    scrollbar-width: thin;  /* Dünne Scrollleiste */
    padding-bottom: 20px;
}

/* --- JOB- & PROFIL-KARTEN --- */
/* =========================================
   SCROLLBAR & ULTRA-KOMPAKT FIX
   ========================================= */

.profile-grid {
    display: grid;
    /* Deine gewünschte Kompaktheit: 180px (damit 5-6 nebeneinander passen) */
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 15px !important;
    
    /* --- HIER IST DER SCROLL-FIX --- */
    /* Wir zwingen das Grid auf eine maximale Höhe (z.B. 65% vom Bildschirm) */
    max-block-size: 65vh !important; 
    
    /* Wenn der Inhalt größer ist -> SCROLLBALKEN ANZEIGEN */
    overflow-y: auto !important; 
    
    /* Etwas Abstand innen, damit der Scrollbalken nicht den Text überdeckt */
    padding-inline-end: 10px;
    padding-block-end: 20px;
    
    /* Klickbarkeit sicherstellen */
    pointer-events: auto !important;
    position: relative;
    z-index: 100;
}

/* --- OPTIONAL: Den Scrollbalken hübsch machen (Chrome/Safari/Edge) --- */
.profile-grid::-webkit-scrollbar {
    inline-size: 8px;
}

.profile-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 4px;
}

.profile-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5); 
    border-radius: 4px;
}

.profile-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.8); 
}

/* --- KARTEN KOMPAKT (Wie besprochen) --- */
.profile-card {
    background: rgba(255, 255, 255, 0.05); /* Transparent */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px !important; /* Wenig Padding = Kleinere Karte */
    
    color: white;
    position: relative;
    z-index: 50;
    
    /* Flexbox, damit Buttons immer unten bündig sind */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-block-size: 200px; /* Einheitliche Mindesthöhe für saubere Optik */
}

/* Schriftgrößen anpassen für Kompakt-Modus */
.card-profile-name { font-size: 1.1rem !important; margin: 0; line-height: 1.2; }
.text-success { font-size: 0.75rem !important; margin-block-end: 5px !important; }
.profile-card p.small { font-size: 0.75rem !important; margin-block-end: 2px !important; }
.profile-card .btn { padding: 4px 0 !important; font-size: 0.85rem !important; margin-block-start: auto !important; }
.job-card, .profile-card {
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari-Fix */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.profile-pic { inline-size: 100px; block-size: 100px; border-radius: 50%; object-fit: cover; margin: 0 auto 15px auto; display: block; border: 2px solid rgba(255, 255, 255, 0.2); }
.job-card p, .profile-card p { color: #ccc; }
.job-card h3, .profile-card h4 { color: #fff; font-family: 'Tangerine', serif; font-weight: 700; font-size: 3em; margin-block-end: 15px; }
.profile-card .details p { color: #fff; }
.btn-primary { display: inline-block; background: rgba(88, 166, 255, 0.2); border: 1px solid #58a6ff; color: #58a6ff; padding: 10px 16px; border-radius: 6px; text-decoration: none; text-align: center; margin-block-start: 16px; font-weight: 500; }
.btn-primary:hover { background: rgba(88, 166, 255, 0.4); }
.tag { display: inline-block; background-color: #388bfd33; color: #72e8f1; padding: 4px 8px; border-radius: 4px; font-size: 12px; margin-inline-end: 8px; margin-block-end: 12px; }

/* --- SLIDER --- */
.section-divider { border: none; block-size: 1px; background-color: rgba(255, 255, 255, 0.1); margin: 40px 0; }
.featured-region { background-color: rgba(10, 25, 47, 0.85); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; padding: 25px; margin-block-end: 40px; overflow: hidden; color: #ccc; }
.featured-region h2 { font-family: 'Tangerine', serif; font-size: 3.5em; margin-block-start: 0; color: #fff; }
.region-slider { inline-size: 40%; block-size: 250px; position: relative; overflow: hidden; border-radius: 8px; float: inline-start; margin-inline-end: 25px; margin-block-end: 15px; }
.region-slider .slide { position: absolute; inset-block-start: 0; inset-inline-start: 0; inline-size: 100%; block-size: 100%; opacity: 0; animation: fadeSlide 16s infinite; }
.region-slider .slide img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.region-slider .slide:nth-child(2) { animation-delay: 4s; }
.region-slider .slide:nth-child(3) { animation-delay: 8s; }
.region-slider .slide:nth-child(4) { animation-delay: 12s; }
@keyframes fadeSlide { 0% { opacity: 0; } 10% { opacity: 1; } 25% { opacity: 1; } 35% { opacity: 0; } 100% { opacity: 0; } }
.region-info p { font-size: 16px; line-height: 1.6; margin-block-end: 1em; }
/* --- 1. GLOBALES LAYOUT (HEADER & CONTENT) --- */
/* Diese Regeln definieren die "saubere Trennung" */


/* Das Hauptmenü (aus menu.html) */
.main-nav {
    position: fixed; /* Klebt am Bildschirmrand */
    inset-block-start: 20px;
    inset-inline-start: 50%;       /* Zentriert */
    transform: translateX(-50%);
    z-index: 1002;   /* Liegt über dem Inhalt (und ggf. über dem Logo) */
}

/* Der Hauptinhalt (aus base.html) */
/* DIES IST DER "CLASH"-FIX: */
main.main-content {
    /* Wir schieben den gesamten Inhaltsblock nach unten */
    padding-block-start: 150px; /* ABSTAND FÜR LOGO & MENÜ (Wert anpassen) */
    
    /* Wichtig: Sagt dem Browser, dass dies ein Positionierungs-Kontext ist */
    position: relative; 
    z-index: 1; /* Stellt sicher, dass der Inhalt HINTER dem fixed Header bleibt */
}


/* --- 2. MENÜ-BUTTONS (FIX FÜR GRÖSSE) --- */
/* Stellt die kleinen Buttons korrekt dar (aus menu.html) */

nav.main-nav ul {
    list-style: none; /* Entfernt Aufzählungszeichen */
    margin: 0;
    padding: 0;
    display: flex;    /* Ordnet Buttons nebeneinander an */
    gap: 10px;        /* Abstand zwischen Buttons */
}

nav.main-nav a,
nav.main-nav button {
    display: inline-block;
    padding: 10px 18px;  /* Mehr Innenabstand (vergrößert den Button) */
    font-size: 15px;     /* Größere Schrift */
    
    /* CI-Farben (Aquamarin-Buttons) */
    background-color: #20c997; 
    color: #ffffff;
    border-radius: 9999px; /* Macht sie rund */
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

nav.main-nav a:hover,
nav.main-nav button:hover {
    background-color: #ffffff; /* Weißer Hover-Effekt */
    color: #20c997;
}


/* --- 3. JOB-BOX (FIX FÜR HÖHE & DESIGN) --- */
/* Stellt die Box "Aktuelle Jobs" korrekt dar (aus article_list.html) */

.cta-box {
    /* WICHTIG: KEIN float, KEIN position: absolute. */
    /* Sie ist jetzt ein normaler, sauberer Inhaltsblock. */
    
    inline-size: 100%; /* Nimmt die verfügbare Breite ein */
    max-inline-size: 900px; /* Verhindert, dass sie auf großen Bildschirmen zu breit wird */
    margin: 40px auto; /* Zentriert die Box horizontal (mit Abstand oben/unten) */
    
    min-block-size: 800px; /* IHR WUNSCH: doppelte Höhe */
    
    /* Design (aus unseren Tests) */
    background: rgba(10, 25, 47, 0.85); /* Dunkler Hintergrund */
    border: 1px solid #20c997;       /* CI-Randfarbe */
    border-radius: 8px;
    padding: 25px;
    text-align: center;
}

.cta-box h3 {
    color: #20c975; /* CI-Farbe für die Überschrift */
    font-family: 'Tangerine', serif; /* Passt zum restlichen Design */
    font-size: 2.5em;
    margin-block-end: 20px;
}

.cta-box ul {
    list-style: none;
    padding: 0;
    margin-block-end: 25px;
}

.cta-box li {
    color: white;
    margin-block-end: 10px;
    font-size: 2.1em;
}




.cta-box h3 {
  margin-block-start: 0;
  font-size: 1.2em;
}

.cta-box ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
}

.cta-box li {
  margin-block-end: 6px;
}


.cta-button {
  display: inline-block;
  padding: 10px 16px;
  background-color: #aaf1e3;
  color: #004d40;
  border: 1px solid #58a6ff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* =======================================================
   SANACURA FINAL: Button & 2-Spalten-Layout
   (Füg das ganz unten in style.css ein)
   ======================================================= */

/* 1. Der "Gold-Hover" Button (Dein Favorit) */
.cta-button,
a.cta-button,
.btn-primary {
    display: inline-block !important;
    background: linear-gradient(135deg, #d4a017 0%, #b8860b 100%) !important; /* Gold-Verlauf */
    color: #ffffff !important;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 35px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.4);
    transition: all 0.3s ease;
    margin-block-start: 20px;
    text-align: center;
    cursor: pointer;
}

.cta-button:hover,
a.cta-button:hover,
.btn-primary:hover {
    transform: translateY(-3px); /* Schwebe-Effekt */
    box-shadow: 0 8px 25px rgba(212, 160, 23, 0.6);
    background: linear-gradient(135deg, #e5b73e 0%, #c69210 100%) !important; /* Helleres Gold */
}

/* 2. LAYOUT: Detailseite (Text Links / Bilder Rechts) */
.article-detail-container {
    max-inline-size: 1400px;
    margin: 140px auto 60px; /* Abstand von oben (Menü) */
    padding: 0 40px;
    display: flex;           /* Aktiviert Spalten */
    gap: 50px;               /* Abstand zwischen Spalten */
    align-items: flex-start;
    position: relative;
    z-index: 10;
}

//* OPTIMIERT: Linke Spalte (Hellerer Hintergrund für besseren Kontrast) */
.content-wrapper {
    flex: 3;
    /* Helleres, edleres Dunkelblau mit leichter Transparenz */
    background: rgba(20, 35, 70, 0.85) !important;
    padding: 40px;
    border-radius: 12px;
    /* Feiner goldener Schimmer am Rand */
    border: 1px solid rgba(212, 160, 23, 0.2) !important;
    /* Reines Weiß für maximalen Lesekontrast */
    color: #ffffff !important;
    font-size: 1.1rem;
    line-height: 1.3;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Überschriften reinweiß mit goldenem Unterstrich */
.content-wrapper h1,
.content-wrapper h2 {
    color: #ffffff !important;
    margin-block-end: 25px;
    border-block-end: 3px solid #d4a017; /* Etwas dickerer goldener Strich */
    display: inline-block;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.content-wrapper h1, 
.content-wrapper h2 {
    color: #ffffff;
    margin-block-end: 20px;
    border-block-end: 2px solid #d4a017;
    display: inline-block;
}

/* Rechte Spalte: Bilder & Medien */
.media-sidebar {
    flex: 2; /* 40% Breite */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Bilder schön machen (ohne Verzerrung) */
.media-sidebar img,
.article-detail-container img {
    inline-size: 100%;
    block-size: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Responsive: Auf Handy untereinander */
@media (max-width: 900px) {
    .article-detail-container {
        flex-direction: column;
    }
    .media-sidebar {
        inline-size: 100%;
    }
}
nav.main-nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.15) !important; /* Helles Aufleuchten */
    color: white !important; /* Stellt sicher, dass Text weiß bleibt */
    border-color: white !important; /* Stellt sicher, dass Rand weiß bleibt */
    opacity: 0.9;
}
/* Menü-Buttons im Header */
.main-nav a,
.main-nav button {
  display: inline-block;
  background-color: #20c997;   /* Aquamarin */
  color: #ffffff;
  border-radius: 9999px;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 6px rgba(32, 201, 151, 0.4);
}

.main-nav a:hover,
.main-nav button:hover {
  background-color: #ffffff;
  color: #20c997;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.9); /* weißer Glow */
}
.main-nav {
  position: fixed;
  inset-block-start: 0;
  inline-size: 100%;
  z-index: 1000;
}


/* In static/css/style.css (am Ende hinzufügen) */

.portal-container {
    max-inline-size: 1100px; /* Begrenzt die Breite der Inhalts-Spalte */
    margin: 0 auto;   /* Zentriert die Spalte */
    padding-block-start: 20px; /* Fügt etwas Abstand zum Menü hinzu (zusätzlich zum main-content padding) */
}


/* CI-Buttons: Aquamarin, rund, Glow-Effekt */
.btn-ci {
  display: inline-block;
  background-color: #20c997;   /* Aquamarin */
  color: #ffffff;
  border-radius: 9999px;       /* rund */
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  border: 1px white;
  cursor: pointer;
  text-decoration: none;       /* kein Unterstrich */
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(32, 201, 151, 0.4); /* leichter Glow */
}

.btn-ci:hover {
  background-color: #ffffff;   /* weiß beim Hover */
  color: #2091c9;              /* Schrift in Aquamarin */
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.9); /* weißer Leuchteffekt */

}

.article-card {
  background-color: transparent;       /* dunkler Hintergrund */
  border-radius: 8px;
  padding: 1.5rem;
  margin-block-end: 2rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.article-card:hover {
  box-shadow: 0 0 20px rgba(32, 201, 151, 0.8); /* Aquamarin Glow */
  transform: translateY(-4px);
}

.article-header {
  margin-block-start: 140px;          /* Abstand unter Menü/Logo */
  text-align: center;         /* zentriert */
  color: #ffffff;
}

.article-header h1 {
  font-size: 2.4rem;          /* größer */
  font-weight: 700;           /* fett */
  margin-block-end: 0.8rem;
}

.article-header .article-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  color: #fdfdfd;             /* leicht abgesetztes Weiß */
  margin-block-end: 2rem;
}
.subtitle {
  font-size: 1.4rem;
  font-weight: 400;
  color: #fdfdfd;
  margin-block-start: 30px;
  text-align: center;
}


.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-block-start: 2rem;
}

.job-card {
  background: #111;
  border-radius: 8px;
  padding: 1rem;
  color: #fff;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.job-card:hover {
  box-shadow: 0 0 20px rgba(255,255,255,0.6); /* weißer Glow */
  transform: translateY(-4px);
}

.job-card img {
  inline-size: 100%;
  block-size: 200px;
  border-radius: 8px;
}
/* Sidebar-Container */
.sidebar-jobs {
  position: absolute;     /* klebt an der Seite */
  inset-block-start: 160px;             /* Abstand unter Menü/Logo */
  inset-inline-end: 20px;            /* rechts andocken */
  inline-size: 280px;           /* schmal halten */
  background: #111;
  padding: 1rem;
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 250, 250, 0.4);
}

/* Überschrift kleiner */
.sidebar-jobs h2 {
  font-size: 1.2rem;
  margin-block-end: 1rem;
  text-align: center;
}

/* Grid auf 1 Spalte reduzieren */
.sidebar-jobs .job-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Karten kompakt */
.sidebar-jobs .job-card {
  background: #222;
  border-radius: 6px;
  padding: 0.8rem;
  font-size: 0.9rem;
  transition: box-shadow 0.3s ease;
}

.sidebar-jobs .job-card:hover {
  box-shadow: 0 0 12px rgba(255,255,255,0.6);
}


/* --- DEFINITIVER HEADER-FIX (Logo rechts, Menü links) --- */

/* ... (andere Regeln bleiben) ... */



/* 4. Die Flaggen: Entfernen (wie gewünscht) */
.language-selector {
    display: none;
}


/* (Stelle sicher, dass die alte, kaputte body/asterisk-Regel am Anfang der CSS-Datei gelöscht ist) */

/* --- JOB-BOX-FIX (Bug 2) --- */


.cta-box {
 /* Neues Styling (JETZT WEISS & SCHWARZ) */
background-color: #ffffff !important;  /* Hartes Weiß statt Dunkelblau-Transparent */
backdrop-filter: none !important;      /* Weg mit dem Blur-Effekt! */
border: 2px solid #ffffff !important;  /* Weißer Rand */
color: #000000 !important;             /* Schwarze Schrift erzwingen */
border-radius: 10px;                   /* Runden Ecken beibehalten */
box-shadow: 0 5px 15px white; /* Ein schöner Schatten, damit es schwebt */
}

.cta-box h3 {
    color: #fff;
    font-family: 'Tangerine', serif;
    font-size: 2.5em; /* Größere Überschrift */
    margin-block-end: 20px;
}

.cta-box ul {
    list-style: none;
    padding: 0;
    margin-block-end: 25px;
}

.cta-box li {
    color: #ccc;
    margin-block-end: 10px;
    font-size: 1.1em;
}

/* Styling für den Button in der Box */
.cta-box .btn-primary {
    padding: 10px 20px;
    margin-block-start: 10px;
}


/* --- NEUE, DEFINITIVE REGEL FÜR BUTTON-CONTAINER --- */
/* --- STARTSEITEN-BUTTONS (FIX FÜR POSITION) --- */
/* Wir zielen auf .cta-wrapper (aus deiner home.html) */
.cta-wrapper {
    position: absolute;
    
    /* --- HIER IST DIE ÄNDERUNG --- */
    /* Wir positionieren es von OBEN, nicht von unten */
    inset-block-start: 55%;     /* ALT WAR: inset-block-end: 40px; */
    /* --- ENDE DER ÄNDERUNG --- */

    inset-inline-start: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 1000;}
  /* --- PORTAL-FIX (VERSION 3 - ERZWUNGENE SPEZIFITÄT) --- */

/* 1. FIX: "Clash" links oben (Titel/Menü) 
  Wir zwingen das "padding-top" im Hauptinhalt auf einen kleinen Wert
  und setzen den "margin-top" des Titels auf Null.
*/
.main-content {
  padding-block-start: 20px !important; 
}

.main-content .article-header {
  margin-block-start: 0 !important;
  padding-block-start: 0 !important; /* Extra-Sicherheit */
}


/* 2. FIX: Menü-Buttons "viel zu klein" 
  Wir geben den Menü-Links eine feste, größere Schrift und mehr "Padding" (Innenabstand).
*/
nav.main-nav a,
nav.main-nav button {
   padding: 10px 18px !important; /* Mehr vertikaler & horizontaler Platz */
   font-size: 15px !important;   /* Deutlich lesbare Schriftgröße */
}


/* 3. FIX: Sidebar-Box (Job box) Höhe & Kontrast
  Wir verwenden einen "stärkeren" Selektor, um die Höhe zu erzwingen.
*/
.main-content .sidebar-jobs {
  inset-block-start: 100px !important;
  background: rgba(10, 25, 47, 0.85) !important;
  min-block-size: 900px !important; /* HIER: Die erzwungene Mindesthöhe */
  border: 1px solid silver !important;
  margin-block-end: 50cm !important;
}

.main-content .sidebar-jobs h2 {
  color:silver !important;
}


/*neue job-box ab hier mit js alertnpy-JS Data-grab */

/* Mein Code von gestern */
.job-trigger-wrapper {
    position: fixed;
    inset-block-end: 40px;
    inset-inline-start: 50%;
    inline-size: 80px;
    block-size: 30px;}

    /* der neue Button*/

    #show-jobs-alert{
      z-index: 2000;
      inline-size: 800px;
      block-size:400px;
      position: fixed;
      padding: 7px;
      block-size: 70px;
      inline-size: 70px;
      border-radius: 50;
      display: block;
      inset-inset-inline-end: 40px;
      inset-inline-block-end: 50px;
      outline: 0;
      border: none;
animation: hover 1s infinite;
-webkit-animation-fill-mode: forwards;
cusor: pointer;
      background-color: #ffffff;
      box-shadow: 0 4 6px rgba(0, 0, 0, 0.5)
    }
    #cshow-jobs-alert:active {
  box-shadow: 0 1px 2px rgba(0,0,0,0.2), 0 -1px 2px rgba(0,0,0,0.2);
  animation: none;}
    @keyframes hover {
  0% {transform: translate(0) scale(1);}
  50% {transform: translateY(-20%) scale(1.2)}
  100% {transform: translate(0) scale(1);}
    }


    /* ============================================== */
/* CSS-Fix für die Artikel-Detailseite (ab Zeile 650) */
/* ============================================== */

/* 1. Der neue Haupt-Container */
.article-detail-container {
    max-inline-size: 900px; /* Maximale Breite für Lesbarkeit */
    margin: 0 auto;   /* Zentriert den Container */
    padding: 0 15px;  /* Etwas Platz an den Seiten */
}

/* 2. Der Titel (H1) */
/* Wir geben ihm einen Schatten, damit er auf dem Hintergrundbild lesbar ist */
.article-detail-container h1 {
    color: #ffffff; /* Weißer Text */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Textschatten */
    padding-block-start: 20px;
    text-align: center;
}

/* 3. Der .content-Block (Der wichtigste Fix) */
/* Wir zielen NUR auf .content, das IN .article-detail-container liegt */
.article-detail-container .content {
    background-color: #ffffff; /* Weißer "Papier"-Hintergrund */
    color: #333333; /* Dunkler Text */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-block-start: 20px; /* Abstand zum Titel */
    position: relative; 
    z-index: 10;
}

/* 4. Der Slider */
.article-detail-container .slider { inline-size: 50%; block-size:auto;
    margin-block-start: 30px;
    margin-block-end: 30px;
}
.article-detail-container .slider img {
    inline-size: 100%;
    block-size: auto;
    border-radius: 8px;
}

/* 5. Die .cta-box (Job-Box) */
/* Wir überschreiben die bestehenden Regeln von Zeile 258
   mit spezifischeren Regeln für diese Seite */
.article-detail-container .cta-box { color: white;
    background-color: none; /* none Hintergrund */
    opacity: 0.1;
    padding: 25px;
    border-radius: 8px;
    margin-block-start: 30px;
    margin-block-end: 50px; /* Abstand zum Footer */
    text-align: center;
}

    .transparent-button {
  background-color: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.transparent-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
.home-title {
  position: relative;
  margin-block-start: 80px;
  color: white;
  font-family: 'Tangerine', serif;
  font-size: 4.5em;
  text-align: center;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  line-height: 1.2;
}

.home-subtitle {
  font-size: 1.4rem;
  font-weight: 400;
  color: #fdfdfd;
  margin-block-start: 30px;
  text-align: center;
}

.home-cta-wrapper {
  margin-block-start: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.home-cta-btn {
  display: inline-block;
  padding: 10px 18px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid #ffffff;
  color: #ffffff;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.home-cta-btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.home-hover-text {
  display: block;
  font-size: 0.9rem;
  font-weight: normal;
  margin-block-start: 6px;
  opacity: 0.8;
}

.interstitial-wrapper {
  min-block-size: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 2;
  padding-block-start: 80px; /* Abstand zum Menü */
}

.text-content {
  background-color: rgba(0,0,0,0.3);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  max-inline-size: 600px;
  margin-block-end: 20px;
}

.register-btn-ghost {
  background: transparent;
  border: 1px solid white;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-shadow: 0 0 8px rgba(0,0,0,0.5);
}

.register-btn-ghost:hover {
  background-color: rgba(255,255,255,0.1);
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
  transform: scale(1.05);
}

.login-link {
  margin-block-start: 20px;
  color: #ccc;
  text-decoration: underline;
  font-size: 0.9rem;
  display: block;
}

.login-link:hover {
  color: #fff;
}

/* --- PRETTY ICONS STYLE --- */

.sort-section {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-block-start: 15px;
}

.sort-label {
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: transform 0.2s;
}

.icon-btn:hover {
    transform: translateY(-5px);
}

.icon-circle {
    inline-size: 45px;
    block-size: 45px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.icon-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #777;
}

/* Farben beim Hovern */
.icon-btn:hover .gold { background: #fff8e1; color: #ffc107; border: 2px solid #ffc107; }
.icon-btn:hover .green { background: #e8f5e9; color: #4caf50; border: 2px solid #4caf50; }
.icon-btn:hover .grey { background: #f8f9fa; color: #6c757d; border: 2px solid #6c757d; }
.icon-btn:hover .purple { background: #f3e5f5; color: #9c27b0; border: 2px solid #9c27b0; }



/* --- AG DASHBOARD (Final Polish) --- */

/* 1. Tangerine Font importieren */
@import url('https://fonts.googleapis.com/css2?family=Tangerine:wght@700&display=swap');

.ag-dashboard {
    max-inline-size: 1400px; /* Breiter, damit die Karten größer wirken */
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Segoe UI', sans-serif;
    background: transparent !important;
    position: relative;
    z-index: 10;
}

/* 2. Titel in Tangerine & Groß */
.section-title {
    font-family: 'Tangerine', cursive;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(0, 0, 0, 0.5); /* Glow-Effekt */
    margin-block-end: 20px;
    font-size: 2.5rem; /* Tangerine muss sehr groß sein, damit es wirkt */
    font-weight: 700;
    text-align: center;
}

/* 3. Filterleiste: Viel transparenter (Echtes Glas) */
.filter-bar { max-inline-size: 300px; max-block-size: 200px;
    background: rgba(20, 20, 30, 0.4); /* Dunkleres Glas, damit weiße Schrift lesbar ist */
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    margin-block-end: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Labels im Filter weiß machen */
.filter-group label {
    color: #eee;
    font-weight: 600;
    letter-spacing: 1px;
}

/* 4. Profil-Karten: Größer & Glas */
.profile-card {
    background: rgba(255, 255, 255, 0.1); /* Nur 10% Weiß -> Sterne scheinen durch */
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px; /* Mehr Platz innen */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white; /* Text weiß für Kontrast auf Sternenhimmel */
}

.profile-card:hover {
    transform: scale(1.02); /* Leichtes Vergrößern */
    background: rgba(255, 255, 255, 0.2); /* Heller beim Hover */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3); /* Leuchten */
}

/* Text in der Karte */
.profile-card h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-block-start: 15px;
}

.profile-card .text-muted {
    color: #ddd !important; /* Helle Schrift erzwingen */
}

/* Grid Layout: Karten breiter machen */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); /* Breiter (350px) */
    gap: 30px;
}


/* =================================================================
   MENU FIX (Passend zu deinem neuen sauberen HTML)
   ================================================================= */

/* 1. DAS MENÜ SELBST */
.main-nav {
    position: fixed;      /* Bleibt beim Scrollen oben */
    inset-block-start: 20px;            /* Etwas Abstand zum Rand */
    inset-inline-start: 50%;            /* Horizontal zentriert */
    transform: translateX(-50%); 
    
    z-index: 2000 !important; /* MUSS über dem Dashboard (1000) liegen */
    
    padding: 0;           /* WICHTIG: Kein Padding, das Klicks abfängt */
    margin: 0;
    inline-size: auto;
}

/* 2. DIE MENÜ-LEISTE (Optik) */
.main-nav ul {
    display: flex;
    gap: 10px;            /* Abstand zwischen Buttons */
    list-style: none;
    margin: 0;
    padding: 10px 20px;   /* Innenabstand der Leiste */
    
    /* Design: Pille mit Milchglas */
    background: rgba(10, 25, 47, 0.85); 
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px; 
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* 3. LINKS & BUTTONS (Einheitlicher Look) */
.main-nav a, 
.nav-btn {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit; /* Gleiche Schriftart */
    
    /* Button Reset (damit der Logout-Knopf wie ein Link aussieht) */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.2s;
}

/* Hover Effekt für beide */
.main-nav a:hover, 
.nav-btn:hover {
    color: #20c997; /* Deine CI Farbe (Aquamarin) */
}

/* 4. DER ANTI-CRASH ABSTAND (Ganz wichtig!) */
/* Schiebt dein Dashboard unter dem Menü hervor */
.main-content {
    padding-block-start: 160px !important; 
}

/* Mobile Anpassung */
@media (max-width: 768px) {
    .main-nav {
        inset-block-start: 0;
        inline-size: 100%;
        border-radius: 0;
        background: rgba(10, 25, 47, 0.95);
    }
    .main-nav ul {
        background: transparent;
        border: none;
        box-shadow: none;
        justify-content: center;
        flex-wrap: wrap;
    }
    .main-content {
        padding-block-start: 120px !important;
    }
}
/* Bilder-Reparatur */
.article-img-fix {
    inline-size: 100%;           /* Volle Breite des Containers */
    block-size: 250px;         /* Feste Höhe für Einheitlichkeit */
    object-fit: cover;     /* WICHTIG: Schneidet das Bild zu, statt es zu verzerren! */
    border-radius: 8px 8px 0 0; /* Oben abrunden */


    /* =================================================
   FIX: SCROLLING RETTEN (Gegen das Abschneiden)
   ================================================= */

/* 1. Scrollen erzwingen (Wichtig!) */
body, html {
    block-size: auto !important;      /* Darf wachsen */
    min-block-size: 100vh;            /* Mindestens bildschirmfüllend */
    overflow-y: auto !important;  /* Scrollbalken erlauben */
    overflow-x: hidden;           /* Kein seitliches Wackeln */
}

/* 2. Mehr Luft unten für den Artikel (Damit nichts klebt) */
.article-detail-container {
    padding-block-end: 150px !important; /* Viel Platz unten lassen */
    margin-block-end: 50px !important;
}

/* 3. Sicherheits-Abstand für die Job-Box */
.cta-box {
    margin-block-end: 80px !important;
}
}


/* --- FIX: Job-Box (Transparent, Weißer Rahmen, Weiße Schrift) --- */
.cta-box {
    background-color: transparent !important; /* Komplett durchsichtig */
    border: 6px solid white !important;     /* Hartes Weiß als Rahmen */
    border-radius: 12px !important;
    padding: 30px !important;
    margin-block-start: 30px !important;
    color: white !important;                /* Alles Weiß */
    box-shadow: none !important;              /* Kein Schatten mehr nötig */   
}

.cta-box h3 {
    color: #ffffff !important;
    border-block-end: 1px solid #ffffff !important; /* Auch die Linie weiß */
}

.cta-box li, 
.cta-box small, 
.cta-box strong {
    color: #ffffff !important; /* Kompromisslos lesbar */
}

/* Trennlinien zwischen den Jobs in Weiß (leicht transparent) */
.cta-box li {
    border-block-end: 1px solid rgba(255, 255, 255, 0.3) !important;
}
/* --- FINALE KORREKTUR FÜR DIE JOB-BOX --- */
.cta-box {
    background-color: #ffffff !important;  /* Hartes Weiß */
    opacity: 1 !important;                 /* Keine Transparenz */
    border: 2px solid #ffffff !important;  /* Weißer Rand */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important; /* Schwarzer Schatten für 3D-Effekt */
    color: #000000 !important;             /* Schwarze Schrift für alles im Container */
    text-shadow: none !important;          /* Text-Schatten KILLEN */
    margin-top: 40px !important;           /* Abstand nach oben erzwingen */
    padding: 30px !important;              /* Innenabstand */
    border-radius: 12px !important;
}

/* Speziell die Liste und Links darin zwingen */
.cta-box ul, .cta-box li, .cta-box h3, .cta-box strong, .cta-box small {
    color: #000000 !important;
    text-shadow: none !important;
    background-color: transparent !important; /* Kein grauer Hinterrund mehr bei den Zeilen */
}

/* Der Button unten in der Box */
.cta-button {
    text-shadow: none !important;
    opacity: 1 !important;
    color: #ffffff !important; /* Button-Text weiß */
    background-color: #007bff !important; /* Oder deine Gold-Farbe */
}
