/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

:root {
    --dark-gray: #333333;
    --medium-gray: #666666;
    --light-gray: #999999;
    --border-color: #dddddd;
    --highlight-color: #5e8d94; /* Dunkleres, dezenteres Blau */
    --background-light: #f8f9fa;
    --background-hover: #e9ecef;
    --card-shadow: 0 2px 4px rgba(0,0,0,0.08);
    --transition: all 0.2s ease;
    --fachgruppe-border: 1px solid #d1d9e0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--dark-gray);
    line-height: 1.5;
}

/* ===== FORMULAR LAYOUT ===== */
.vcrp_studiengangsuche .hkform {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Verkleinerter Abstand */
}

/* Erstes Input-Feld volle Breite */
.vcrp_studiengangsuche .smerkmale .form-group.ui-widget:first-child {
    flex: 1 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 12px; /* Verkleinerter Abstand */
}

.vcrp_studiengangsuche .smerkmale .form-group.ui-widget:first-child input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Haupt-Container für die ersten Felder */
.vcrp_studiengangsuche .smerkmale {
    display: flex;
    flex-wrap: wrap;
    gap: 12px; /* Verkleinerter Abstand */
    justify-content: space-between;
}

/* Standard-Felder (3 pro Reihe) */
.vcrp_studiengangsuche .hkff {
    margin-bottom: 12px; /* Verkleinerter Abstand */
    flex: 1 0 calc(33.333% - 12px);
    min-width: 220px;
    max-width: 100%;
    box-sizing: border-box;
}

/* ===== CHECKBOX ABSTÄNDE ===== */
.ms-drop input[type="checkbox"],
.ms-drop input[type="radio"] {
    margin-right: 8px !important; /* Abstand zwischen Checkbox und Label */
    margin-left: -1.8rem !important;
}

.ms-drop ul > li label {
    padding-left: 2.2rem !important; /* Mehr Platz für Checkbox */
    margin-bottom: 2px;
}

.faechergruppen {
	width: 100%
}

/* ===== FARBKORREKTUR - KEIN HELLBLAU ===== */

.faechergruppen .ms-choice {
    background-color: white;
    border-color: var(--border-color);
}

.faechergruppen .ms-choice:hover {
    background-color: var(--background-hover);
    border-color: var(--medium-gray);
    transform: none;
}

/* Hover-Effekte mit dezenterer Farbe */
.ms-drop ul > li label:hover {
    background-color: var(--background-hover) !important; /* Statt Hellblau */
}

.ms-drop .selected label {
    background-color: var(--dark-gray) !important; /* Dunkler für besseren Kontrast */
    color: white !important;
}

/* ===== UNIVERSITY & REGIONS SECTION ===== */
#hmtitel {
    font-weight: bold;
    font-size: 1.4em;
    color: var(--dark-gray) !important;
    width: 100%;
    margin: 20px 0 15px 0; /* Verkleinerter Abstand */
    text-align: left;
    border-bottom: 1px solid var(--dark-gray);
    padding-bottom: 8px;
}

.hsmekrmale {
    display: flex;
    flex-wrap: wrap;
    gap: 12px; /* Verkleinerter Abstand */
    justify-content: space-between;
    margin-top: 8px;
    width: 100%;
}

/* ===== MULTIPLE SELECT FIXES ===== */
.ms-drop ul > li label {
    color: var(--dark-gray) !important;
    transition: var(--transition);
}

.ms-drop ul > li label:hover span {
    color: var(--dark-gray) !important;
}

/* ===== ABSTÄNDE VERKLEINERT ===== */
.vcrp_studiengangsuche .hkform > * {
    margin-bottom: 12px;
}

.vcrp_studiengangsuche .smerkmale > * {
    margin-bottom: 8px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media only screen and (max-width: 1200px) {
    .vcrp_studiengangsuche .hkff {
        flex: 1 0 calc(50% - 10px);
    }
    
    .faechergruppen .form-group.hkff:nth-child(2),
    .faechergruppen .form-group.hkff:nth-child(3) {
        flex: 1 0 100%;
    }
}

@media only screen and (max-width: 1023px) {
    .vcrp_studiengangsuche .hkff {
        flex: 1 0 100%;
        min-width: 100%;
    }
    
    .faechergruppen {
        padding: 15px;
        gap: 10px;
        margin: 12px 0;
    }
}

@media only screen and (max-width: 768px) {
    .vcrp_studiengangsuche .smerkmale,
    .hsmekrmale {
        gap: 10px;
    }
    
    .faechergruppen {
        padding: 12px;
        gap: 8px;
    }
    
    .faechergruppen .form-group.hkff:not(:first-child) {
        flex-direction: column;
        gap: 8px;
    }
}

/* ===== BUTTONS ===== */
.btn-default {
    background-color: #293f4f !important;
    color: #fff !important;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-default:hover, .btn-default:focus {
    background-color: #286090 !important;
}

/* ===== MULTIPLE SELECT STYLES ===== */
.ms-parent {
    position: relative;
    width: 100% !important;
}

.ms-choice {
    border: 1px solid var(--border-color);
    background: white;
    padding: 8px 12px;
    border-radius: 4px;
    width: 100% !important;
    box-sizing: border-box;
}

/* ===== INPUT FELDER ===== */
.vcrp_studiengangsuche input[type="text"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

/* ===== SPECIAL STYLES ===== */
.form-group.hkff.besstudienformAnd {
    margin-top: 8px;
}

.vcrp_studiengangsuche hr {
    width: 100%;
    margin: 20px 0; /* Verkleinerter Abstand */
    border: 0;
    border-top: 1px solid var(--dark-gray);
}


/* ===== SUCHERGEBNISSE ===== */
#results {
    margin-top: 30px;
}

.hkteaser {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.hkteaser:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.hkteaser h4 {
    text-align: left;
    margin: 0 0 15px 0;
    padding: 0;
    font-size: 1.3em;
}

.hkteaser h4 a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.hkteaser h4 a:hover {
    color: var(--highlight-color);
    text-decoration: underline;
}

.hkelem {
    display: flex;
    flex-direction: row;
    margin-bottom: 10px;
    align-items: flex-start;
}

.hkattr {
    margin-right: 20px;
    flex-basis: 150px;
    text-align: left;
    font-weight: 600;
    color: var(--dark-gray);
    min-width: 150px;
}

.hkval {
    text-align: left;
    color: var(--medium-gray);
    flex: 1;
}

/* ===== RESPONSIVE DESIGN ===== */
@media only screen and (max-width: 1023px) {
    .vcrp_studiengangsuche .hkff {
        flex-basis: 100%;
        min-width: 100%;
    }
}

@media only screen and (max-width: 768px) {
    .hkelem {
        flex-direction: column;
        margin-bottom: 15px;
    }
    
    .hkattr {
        flex-basis: 100%;
        min-width: 100%;
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .hkval {
        width: 100%;
    }
}

/* ===== BUTTONS ===== */
.btn-default {
    background-color: #293f4f !important;
    color: #fff !important;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-default:hover, .btn-default:focus {
    background-color: #286090 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* ===== MULTIPLE SELECT SPECIFIC FIXES ===== */
.ms-parent {
    position: relative;
    width: 100% !important;
}

.ms-choice {
    border: 1px solid var(--border-color);
    background: white;
    padding: 8px 12px;
    height: 40px;
    line-height: 24px;
    border-radius: 4px;
}

.ms-drop {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: var(--card-shadow);
    z-index: 1000;
}

.ms-drop ul {
    max-height: 250px;
    overflow-y: auto;
}

/* Bessere Sichtbarkeit für alle List Items */
.ms-drop li {
    padding: 0;
    margin: 0;
}

.ms-drop li label {
    padding: 8px 12px 8px 35px !important;
    margin: 0 !important;
    display: block;
    cursor: pointer;
}

/* Focus States für bessere Accessibility */
.ms-drop li label:focus {
    outline: 2px solid var(--highlight-color);
    outline-offset: -2px;
}

/* Loading State */
.ui-autocomplete-loading {
    background: white url('../images/ui-anim_basic_16x16.gif') right center no-repeat;
}

/* ===== ZUSÄTZLICHE VERBESSERUNGEN ===== */
/* Platzhalter Text */
.ms-choice > span.placeholder {
    color: var(--medium-gray) !important;
    opacity: 0.8;
}

/* Ausgewählte Items im Dropdown */
.ms-choice > span:not(.placeholder) {
    color: var(--dark-gray) !important;
    font-weight: 500;
}

/* Hover Effekt für den Dropdown-Button */
button.ms-choice:hover {
    border-color: var(--medium-gray);
    background-color: var(--background-light);
}

/* Scrollbar im Dropdown */
.ms-drop ::-webkit-scrollbar {
    width: 8px;
}

.ms-drop ::-webkit-scrollbar-track {
    background: var(--background-light);
}

.ms-drop ::-webkit-scrollbar-thumb {
    background: var(--light-gray);
    border-radius: 4px;
}

.ms-drop ::-webkit-scrollbar-thumb:hover {
    background: var(--medium-gray);
}

/* Selected Item im Dropdown */
.ms-drop .ms-selectable li.selected,
.ms-drop .ms-selection li.selected {
    background-color: var(--highlight-color) !important;
    color: white !important;
}

.ms-drop .ms-selectable li.selected label,
.ms-drop .ms-selection li.selected label {
    color: white !important;
    font-weight: 600;
}

#results {
  margin-bottom: unset !important;
}

/* ===== DETAILANSIGHT STYLES ===== */
.sg_detailansicht {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

#sgbez {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--dark-gray);
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    letter-spacing: -0.02em;
}

/* Tabs */
.sg-tab {
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-color);
}

.sg-tab-titel {
    padding: 18px 20px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--dark-gray);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--background-light);
}

.sg-tab-titel:hover {
    background-color: var(--background-hover);
    color: var(--highlight-color);
}

.sg-tab-titel:after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.2em;
    transition: var(--transition);
}

.sg-tab-titel[aria-expanded="true"]:after {
    content: '−';
    transform: rotate(0deg);
}

.sg-sub-tab {
    padding: 15px 20px;
    font-size: 1em;
    font-weight: 600;
    color: var(--dark-gray);
    background-color: #f8f9fa;
    margin: 15px 0;
    border-left: 3px solid var(--highlight-color);
}

/* Tab Content */
.tab {
    padding: 0;
    border: none;
    margin-bottom: 20px;
}

.tab.collapse:not(.show) {
    display: none;
}

.tab.collapse.in {
    display: block;
}

/* Feld Container */
.sg-feld-container {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.sg-feld-container:hover {
    background-color: var(--background-hover);
}

.sg-feld-key {
    flex: 0 0 250px;
    font-weight: 500;
    color: var(--medium-gray);
    padding-right: 20px;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sg-feld-value {
    flex: 1;
    color: var(--dark-gray);
    line-height: 1.5;
}

.sg-feld-value a {
    color: var(--highlight-color);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px dotted var(--highlight-color);
}

.sg-feld-value a:hover {
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
}

/* Responsive Design für Detailansicht */
@media (max-width: 768px) {
    .sg_detailansicht {
        padding: 15px;
    }
    
    #sgbez {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    
    .sg-feld-container {
        flex-direction: column;
        padding: 15px;
    }
    
    .sg-feld-key {
        flex: 0 0 100%;
        margin-bottom: 8px;
        padding-right: 0;
        font-size: 0.9em;
    }
    
    .sg-tab-titel {
        padding: 15px;
    }
    
    .sg-sub-tab {
        padding: 12px 15px;
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    #sgbez {
        font-size: 1.5em;
    }
    
    .sg-tab-titel {
        font-size: 1em;
        padding: 12px 15px;
    }
    
    .sg-tab-titel:after {
        right: 15px;
    }
}


/* Gruppe mittig, nebeneinander */
#count_reset {
  display: flex;                 /* Flex aktivieren */                     /* [2] */
  justify-content: center;       /* Items als Gruppe zentrieren */         /* [2] */
  align-items: center;           /* vertikal mittig */                     /* [3]  */
  gap: 12px;                     /* Abstand zwischen Count und „Button“ */ /* [1] */
}

/* Count als Badge hervorheben */
#co_count {
  display: inline-flex;          /* für sauberes Padding/Centering */      /* [3]  */
  align-items: center;                                                    /* [3]  */
  justify-content: center;                                                 /* [3]  */
  background-color: #5e8d94;     /* akzentuierte Farbe */                  /* [7] */
  color: #fff;                   /* Kontrast zum Hintergrund */            /* [7] */
  font-weight: 600;              /* stärker betonen */                     /* [7] */
  line-height: 1;                /* kompakte Höhe */                       /* [7] */
  padding: 6px 10px;             /* Badge-Padding */                       /* [7] */
  border-radius: 999px;          /* pill/badge Form */                     /* [7] */
  min-width: 32px;               /* bei einstelligen Zahlen rund bleiben *//* [7] */
  text-align: center;                                                     /* [7] */
}

/* Optional: „in die Richtung“ eines Buttons ohne echter Button zu sein */
#pseudo_action {
  display: inline-flex;                                                   /* [3]  */
  align-items: center;                                                    /* [3]  */
  justify-content: center;                                                /* [3]  */
  padding: 6px 12px;                 /* dezentes Padding */                /* [1] */
  border-radius: 6px;                /* weiche Ecken */                    /* [1] */
  background: #e9ecef;               /* neutraler Hintergrund */           /* [1] */
  color: #333;                       /* Textfarbe */                       /* [1] */
  font-weight: 500;                  /* leicht betont */                   /* [1] */
}

/* Gruppe mittig, nebeneinander */
#more-button {
  display: flex;                 /* Flex aktivieren */                     /* [2] */
  justify-content: center;       /* Items als Gruppe zentrieren */         /* [2] */
  align-items: center;           /* vertikal mittig */                     /* [3]  */
  gap: 12px;                     /* Abstand zwischen Count und „Button“ */ /* [1] */
}

#more-button button {
  padding-left: 30px;
  padding-right: 30px;
}

.vcrp_studiengangsuche #zuruecksetzen {
  max-width: 150px;
}


.vcrp_studiengangsuche #sg_load {
  max-width: 150px;
}
