/* ============================================================
   1) SCHRIFTARTEN – innogyWEB Regular & Medium
   ============================================================ */
@font-face {
  font-family: 'innogyWEB';
  src: url('/innogyWEB-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'innogyWEB';
  src: url('/innogyWEB-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

/* Standard Text */
body, html, p, span, div, button, input, textarea, select, a {
  font-family: 'innogyWEB', Arial, Helvetica, sans-serif !important;
  font-weight: 400 !important;
}

/* Headlines */
h1, h2, h3, h4, h5, h6 {
  font-family: 'innogyWEB', Arial, Helvetica, sans-serif !important;
  font-weight: 500 !important;
}



/* ============================================================
   2) HEADER + NAVIGATION
   ============================================================ */

/* Navbar Grundlayout */
.navbar {
    background-color: #3C3732 !important;
    padding: 15px 40px !important;
    min-height: 100px !important;
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Logo zentriert */
.navbar-brand.navbar-header {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%);
    z-index: 3000 !important;
}

.navbar-brand.navbar-header img {
    max-height: 80px !important;
}

/* Login rechts */
.navbar-nav.ms-auto {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    z-index: 3000 !important;
}

.header-link {
    color: white !important;
    font-weight: 500 !important;
}

.header-link:hover {
    text-decoration: underline !important;
}



/* ============================================================
   3) FULLSCREEN MOBILE NAV OVERLAY (Option 2)
   ============================================================ */

/* ============================================================
   3) SIDEBAR NAVIGATION (Desktop & Mobile)
   ============================================================ */

/* 1. Burger Button immer sichtbar für User (override Bootstrap default) */
.navbar-toggler {
    display: block !important; /* Wichtig, da Bootstrap es ab xl oft ausblendet */
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%);
    border: none !important;
    background: transparent !important;
    z-index: 5001 !important;
    cursor: pointer;
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
    width: 30px;
    height: 30px;
}

/* 2. Hintergrund (Backdrop) - Dunkelt die Seite ab */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5); /* Halbtransparenter Hintergrund */
    z-index: 5000;
    
    /* Standardmäßig versteckt */
    opacity: 0;
    visibility: hidden; 
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Wenn Klasse .show hinzugefügt wird -> sichtbar */
.sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* 3. Die Schublade (Der Inhalt) */
.sidebar-content {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #3C3732; /* Deine Hintergrundfarbe */
    box-shadow: 4px 0 15px rgba(0,0,0,0.3);
    
    /* Animation: Startet links außerhalb des Bildes */
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1); /* Smoother Slide */
    
    display: flex;
    flex-direction: column;
    padding: 40px;
}

/* Wenn Backdrop .show hat, schiebt sich die Schublade rein */
.sidebar-backdrop.show .sidebar-content {
    transform: translateX(0);
}

/* --- RESPONSIVE BREITE --- */

/* Desktop: Fixe Breite (z.B. 400px) */
@media (min-width: 992px) {
    .sidebar-content {
        width: 400px;
        border-right: 1px solid rgba(255,255,255,0.1);
    }
}

/* Mobile: Vollbildbreite */
@media (max-width: 991px) {
    .sidebar-content {
        width: 100%;
    }
}

/* 4. Inhalt der Sidebar */
.sidebar-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    transition: .2s;
}

.close-btn:hover {
    color: rgba(245,155,0,1);
    transform: rotate(90deg);
}

.sidebar-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-link {
    color: white !important;
    font-size: 24px;
    font-weight: 500;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 10px;
    transition: 0.2s ease;
}

.sidebar-link:hover {
    color: rgba(245,155,0,1) !important;
    padding-left: 10px; /* Kleiner Einrück-Effekt */
    border-color: rgba(245,155,0,0.5);
}



/* ============================================================
   4) GLOBAL HERO IMAGE
   ============================================================ */
.banner-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 992px) { .banner-image { height: 300px; } }
@media (max-width: 576px) { .banner-image { height: 180px; } }



/* ============================================================
   5) FOOTER
   ============================================================ */

.custom-footer {
    background-color: #3C3732;
    color: #ffffff;
    padding: 25px 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 36px; }

.footer-social { display: flex; gap: 12px; }
.footer-social img {
    height: 24px;
    opacity: .9;
    transition: .2s;
}
.footer-social img:hover {
    opacity: 1;
    transform: scale(1.15);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 15px;
}

.footer-links a { color: white !important; margin-right: 20px; }

@media (max-width: 768px) {
    .footer-top, .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}



/* ============================================================
   6) Themenfelder und Schulungsthemen – Karten
   ============================================================ */

/* -----------------------------------------
   1) Entfernt Portal-Hover-Farbe (rot)
   ----------------------------------------- */
.nwp-card-modern a,
.nwp-card-modern a:hover,
.nwp-card-modern a:focus,
.nwp-card-modern a:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* -----------------------------------------
   2) Galerie-Layout
   ----------------------------------------- */
.nwp-gallery-modern {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 60px;
    padding: 0 200px;
    margin-bottom: 100px;
}

@media (max-width: 992px) { .nwp-gallery-modern { padding: 0 60px; } }
@media (max-width: 576px) { .nwp-gallery-modern { padding: 0 20px; } }

/* -----------------------------------------
   3) Pfeil-Animation (ohne Rot)
   ----------------------------------------- */
.nwp-card-arrow-modern {
    color: #ffffff !important;
    display: inline-block;
    transition: transform .25s ease-in-out;
}

.nwp-card-modern:hover .nwp-card-arrow-modern {
    transform: translateX(4px);
}

/* -----------------------------------------
   4) Entfernt Schrift-Transitions (verhindert roten Blitz)
   ----------------------------------------- */
.nwp-card-title-modern,
.nwp-card-subtitle-modern {
    transition: none !important;
}

/* -----------------------------------------
   5) Schrift bleibt immer weiß
   ----------------------------------------- */
.nwp-card-modern:hover .nwp-card-title-modern,
.nwp-card-modern:hover .nwp-card-subtitle-modern,
.nwp-card-modern:hover .nwp-card-arrow-modern {
    color: #ffffff !important;
}

/* -----------------------------------------
   6) Karten-Styling
   ----------------------------------------- */
.nwp-card-modern {
    display: flex;
    background: #005f69;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0px 6px 18px rgba(0,0,0,0.25);
    transition: .2s;
}

.nwp-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0px 10px 26px rgba(0,0,0,0.35);
}

.nwp-card-image-modern {
    width: 40%;
    min-height: 220px;
    background-size: cover;
    background-position: center;
}

.nwp-card-content-modern {
    padding: 28px;
    flex: 1;
}

.nwp-card-title-modern { color: #ffffff !important; font-size: 28px; }
.nwp-card-subtitle-modern { color: #ffffff !important; margin-top: 10px; }

@media (max-width: 768px) {
    .nwp-card-modern { flex-direction: column; }
    .nwp-card-image-modern { width: 100%; height: 180px; }
}



/* ============================================================
   7) KI-SEITE – Banner, Beschreibung, Karten & Details
   ============================================================ */

.ki-hero-banner {
    width: 100%;
    height: 360px;
    background-size: cover;
    background-position: center;
}

.ki-header-section {
    text-align: center;
    padding: 40px 20px 10px;
    background: white !important;
}

.ki-title-text { font-size: 54px; font-weight: 500; color: #3C3732; }
.ki-subtitle-text,
.ki-target-text {
    font-size: 20px;
    color: #3C3732;
    opacity: .9;
}

/* Beschreibung */
.ki-content-section { padding: 20px 20px 60px; }
.ki-content-container { display: flex; flex-wrap: wrap; gap: 40px; }

.ki-left-card {
    background: #f2f2f2;
    padding: 25px;
    border-radius: 12px;
    max-width: 400px;
}

.ki-left-card p,
.ki-left-card li {
    font-size: 18px !important;
    line-height: 1.55 !important;
}

/* Events */
.ki-events-wrapper {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 0 40px;
}

.ki-event-card {
    display: flex;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    transition: .25s;
}

.ki-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.20);
}

.ki-event-bar {
    width: 12px;
    background: #005f69;
    transition: .25s;
}

.ki-event-card:hover .ki-event-bar { background: #004a52; }

.ki-event-content { flex: 1; padding: 20px; }

.ki-event-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ki-event-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 18px;
    color: #3C3732;
}

.ki-event-button {
    background: rgba(245,155,0,1);
    padding: 12px 32px;
    border-radius: 40px;
    color: white !important;
    text-decoration: none;
    white-space: nowrap;
    transition: .25s;
}

.ki-event-card:hover .ki-event-button {
    background: rgba(245,155,0,0.95);
}

/* Details */
.ki-details {
    display: none;
    border-top: 1px solid #ddd;
    margin-top: 12px;
    padding-top: 12px;
}

.ki-details-toggle {
    font-size: 16px;
    font-weight: 600;
    color: #005f69;
    cursor: pointer;
}

.ki-details-content p {
    font-size: 16px;
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .ki-event-row { flex-direction: column; align-items: flex-start; gap: 12px; }
    .ki-event-button { width: 100%; text-align: center; }
    .ki-left-card { max-width: 100%; }
}

/* ============================================================
   8) BUTTON & HOVER ANIMATIONEN
   ============================================================ */

/* 1. Haupt-Buttons (Runde Buttons: E-Mail & Zugang anfragen) */
.button1 {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important; /* Weicher Übergang */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Leichter Schatten im Ruhezustand */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.button1:hover {
    transform: translateY(-4px) scale(1.02) !important; /* Hebt sich an und wird minimal größer */
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25) !important; /* Wirft einen größeren Schatten */
    filter: brightness(1.1); /* Macht die Farbe (egal ob Rot oder Orange) leuchtender */
}

/* Klickeffekt (wenn man draufdrückt) */
.button1:active {
    transform: translateY(-1px) scale(0.98) !important;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2) !important;
}

/* 2. Animation für die 3 Kacheln (Wissen, Formate, Lernen) */
/* Wir animieren den Pfeil, wenn man mit der Maus über die ganze Box fährt */

/* Die Spalte, die die Box enthält */
.col-lg-4.d-flex:hover .fa-arrow-right {
    transform: translateX(8px); /* Bewegt den Pfeil nach rechts */
    background-color: rgba(255, 255, 255, 0.2) !important; /* Macht den Kreis-Hintergrund etwas milchiger */
}

.col-lg-4.d-flex:hover .shadow-sm {
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important; /* Macht den Schatten der ganzen Box weicher und größer */
    transform: translateY(-5px); /* Hebt die ganze Box leicht an */
    transition: all 0.3s ease;
}

/* Basis-Transition für die Box selbst definieren */
.shadow-sm {
    transition: all 0.3s ease;
}

/* Der Pfeil selbst */
.fa-arrow-right {
    transition: all 0.3s ease;
    display: inline-block; /* Wichtig für Transform */
}

/* ============================================================
   9) Themendetails Seite
   ============================================================ */
/* ============================================================
   Themendetails – nur Schriftgröße vereinheitlichen
   (CKEditor-Inhalte bleiben intakt)
   ============================================================ */

/* Zielcontainer */
.topic-left-card .ck-content,
.topic-left-card .topic-text-dark,
.topic-left-card .topic-list-dark {
    font-size: 18px !important;
    line-height: 1.6;
}

/* Wichtig: auch direkte Kindelemente */
.topic-left-card .ck-content *,
.topic-left-card .topic-text-dark *,
.topic-left-card .topic-list-dark * {
    font-size: inherit !important;
    line-height: inherit;
}

/* ============================================================
   Formatierung Container
   ============================================================ */

   .topic-content-container {
    display: flex;
    flex-wrap: nowrap;     /* 🔥 WICHTIG */
    gap: 40px;
    align-items: flex-start;
}

/* Linke Beschreibung */
.topic-left-card {
    background: #f2f2f2;
    padding: 25px;
    border-radius: 12px;
    flex: 0 0 50%;
    max-width: 50%;
}

/* Rechte Event-Kacheln */
.topic-right {
    flex: 0 0 50%;
    max-width: 50%;
}

/* Mobile: untereinander */
@media (max-width: 992px) {
    .topic-content-container {
        flex-direction: column;
    }

    .topic-left-card,
    .topic-right {
        max-width: 100%;
        flex: 1 1 100%;
    }
}
.course-location {
    margin-top: 4px;
}

.location-block {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 4px;
}

.location-icon {
    width: 20px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.location-text {
    display: flex;
    flex-direction: column;
}

.location-title {
    font-weight: 600;
    font-size: 16px;
    color: #3C3732;
}

.location-address {
    font-size: 15px;
    color: #555;
    line-height: 1.4;
}

/* ============================================================
   Schulungsthemendetails – Event-Kachel: Einheitliche Schrift
   (NUR obere Infos, NICHT Details)
   ============================================================ */

/* Basis für alle Infos oben */
.course-info {
    font-size: 17px;        /* EINHEITLICHE Größe */
    line-height: 1.45;
}

/* Alle direkten Textzeilen oben */
.course-info span,
.course-info .course-date,
.course-info .course-title,
.course-info .course-price,
.course-info .location-title,
.course-info .location-address {
    font-size: 17px !important;
    line-height: 1.45;
}

.course-info span {
    display: flex;
    align-items: center;   /* 🔥 DAS ist der Schlüssel */
    gap: 8px;
    font-size: 17px !important;
    line-height: 1.45;
}

.course-info .badge-series {
    font-size: 12px !important;
    line-height: 1.2;
    padding: 2px 8px;
}

/* Location Block NICHT kleiner */
.course-location,
.location-block,
.location-text {
    font-size: 17px !important;
}


/* ============================================================
   Referenten – Details (aufklappbar)
   ============================================================ */

.speaker-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.speaker-item {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-top: 8px;
    background: #fafafa;
}

.speaker-header {
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.speaker-name {
    font-weight: 600;
    font-size: 14px;
    color: #3C3732;
}

.speaker-toggle {
    font-size: 12px;
    color: #005f69;
    user-select: none;
}

.speaker-about {
    display: none;
    padding: 10px 12px;
    border-top: 1px solid #eee;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

/* ============================================================
   Referenten – Bild + Name sauber ausgerichtet
   ============================================================ */

.speaker-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.speaker-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    flex-shrink: 0;
}

.speaker-name {
    font-weight: 600;
    font-size: 14px;
    color: #3C3732;
}

/* ============================================================
   Bilder und Texte der Ereigniskachel ausrichten
   ============================================================ */

.course-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    line-height: 1.45;
}

.course-icon {
    width: 20px;
    flex-shrink: 0;
    text-align: center;
}

.course-text {
    display: block;
}


/* ============================================================
   CKEditor Content – saubere Listen & Umbrüche
   ============================================================ */

/* Basis für CKEditor Inhalte */
.ck-content {
    font-size: 18px;
    line-height: 1.6;
}

/* UL/OL sauber ausrichten */
.ck-content ul,
.ck-content ol {
    margin: 12px 0 12px 0;
    padding-left: 1.4em;              /* kontrollierter Einzug */
    list-style-position: outside;     /* Bullet + Text in einer Zeile */
}

/* LI nicht umbrechen */
.ck-content li {
    display: list-item;               /* WICHTIG */
    margin: 6px 0;
    padding-left: 0;
}

/* Verhindert, dass Span/Inline-Styles Umbruch erzwingen */
.ck-content li span {
    display: inline;
    line-height: inherit;
    font-size: inherit;
}

/* Absätze in CK sauber */
.ck-content p {
    margin: 0 0 10px 0;
}
/* ============================================================
   CKEditor – Bulletpoints FINAL FIX
   ============================================================ */

/* UL/OL korrekt */
.topic-left-card .ck-content ul,
.topic-left-card .ck-content ol {
    padding-left: 1.5em !important;
    margin: 12px 0 !important;
    list-style-position: outside !important;
}

/* LI darf NICHT flex oder block werden */
.topic-left-card .ck-content li {
    display: list-item !important;
    list-style-type: disc;
    margin: 6px 0;
}

/* SPANS im LI wieder INLINE machen (DAS FEHLT DIR AKTUELL) */
.topic-left-card .ck-content li > span,
.topic-left-card .ck-content li span {
    display: inline !important;
    white-space: normal;
}
/* Globales Span-CSS darf CKEditor NICHT zerstören */
.ck-content span {
    display: inline !important;
}

.course-contact-wrapper{
  width: 100%;
  margin-top: 10px;
}

.course-contact-title{
  font-weight: 600;
  font-size: 14px;
  color: #3C3732;
  margin-bottom: 6px;
}

.course-contact-wrapper .speaker-list,
.course-contact-wrapper .speaker-item{
  width: 100%;
}
/* Ansprechpartner / Referenten: gleiche Schriftgröße in den Info-Details */
.speaker-about,
.speaker-about p,
.speaker-about a {
  font-size: 14px !important;   /* identisch zu Referenten-Detailbereich */
  line-height: 1.5 !important;
}

/* optional: Links nicht anders skalieren */
.speaker-about a {
  font-weight: 400 !important;
}
