/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
 .post-type-archive-foerderfibel .infinite-page-title-wrap { 
    display: none;
 }
  .filter-btn.active {
    background-color: #0073aa;
    color: #fff;
}
.foerderfiebel-grid {
    display: flex;
    gap: 20px;
}

/* Linkes Panel: Beiträge */
.foerderfiebel-posts-wrapper {
    flex: 3; /* größerer Anteil */
}

/* Rechtes Panel: Filter */
.foerderfiebel-filters-wrapper {
    flex: 1; /* Sidebar */
    position: sticky;
    top: 20px; /* bleibt beim Scrollen sichtbar */
}

.foerderfiebel-item {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

/* Optional: Buttons Styling */
.filter-btn {
    margin: 4px 4px 4px 0;
    padding: 6px 10px;
    border: 1px solid #ccc;
    background-color: #f5f5f5;
    cursor: pointer;
    border-radius: 3px;
}

.filter-btn.active {
    background-color: #0073aa;
    color: #fff;
}

#reset-filters {
    margin-bottom: 10px;
    padding: 6px 12px;
    background-color: #ff4d4d;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#reset-filters:hover {
    background-color: #e03e3e;
}
.foerderfiebel-heading,
.foerderfiebel-einleitungstext { 
    text-align:center;
    padding:0;
}
.foerderfiebel-einleitungstext { 
    margin-bottom:60px;
}
.post-type-archive-foerderfibel-angebote .gdlr-core-pbf-column{ 
    padding:15px;
}
.excerpt-wrapper {
    margin-bottom: 20px;
}

.excerpt-toggle {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 4px;
}

.excerpt-toggle:hover {
    background: #005f8d;
}
.foerderfiebel-form input {
    height: 56px;
    border-radius: 28px;
    border: 1px solid #00425e !important;
    background-color: #00607c !important;
    border: none !important;
    color: #fff !important;
}

.foerderfiebel-form-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.foerderfiebel-form-left,
.foerderfiebel-form-right {
    flex: 1;
    min-width: 300px;
}

.foerderfiebel-form label {
    display: block;
    margin-top: 10px;
    font-weight: 600;
}

.foerderfiebel-form input,
.foerderfiebel-form select,
.foerderfiebel-form textarea {
    width: 100%;
    padding: 6px;
    margin-top: 20px;
    box-sizing: border-box;
    font-size: 18px;
    padding-left: 20px;
}

.foerderfiebel-form button {
    margin-top: 30px;
    padding: 10px 20px;
    background-color: #00607c;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.foerderfiebel-form textarea {
    border: 1px solid #00425e !important;
    background-color: #00607c !important;
    border: none !important;
    color: #fff !important;  
    border-radius: 28px;
    height: 156px;
    padding-top: 15px;
    padding-left: 20px;
}

.foerderfiebel-form input[type="file"] {
    display: block;
    width: 100%;
    padding-top: 14px;
    line-height: 1.5em;
    cursor: pointer;
}

.select-heading { 
    color: #00425e;  
    font-size: 18px;
    margin-top: 30px !important;
}

select.select-multiple {
    margin-top: 5px;
}

.foerderfiebel-form .datenschutz-check { 
    display: flex !important;
    display: block;
    margin-top: 30px;
    font-weight: 400;
    color: #454545;
}

.foerder-label-checkbox {
    margin-top: 6px !important;
    height: 15px !important;
    width: 20px !important;
    margin-right: 10px !important;
}

/* Optional: falls du ein Archiv für foerderfiebel hast */
body.post-type-archive-foerderfibel { 
    color: #454545;
}
.foerderfiebel-form-wrapper {
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.4s ease;
    max-height: 5000px;
    opacity: 1;
}

.foerderfiebel-form-wrapper.is-collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.foerderfiebel-success {
    background: #e6f6ec;
    border: 1px solid #4caf50;
    color: #1b5e20;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 6px;
    font-size: 16px;
}
.filter-toggle {
    position: relative;
    cursor: pointer;
    padding-right: 20px;
}

.filter-toggle::after {
    content: "▾";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transition: transform 0.25s ease;
}

/* aufgeklappt */
.filter-toggle.active::after {
    transform: translateY(-50%) rotate(0deg);
}
.filter-count {
    font-weight: normal;
    margin-left: 6px;
    opacity: 0.7;
}

.filter-toggle {
    position: relative;
}

/* Badge */
.filter-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-left: 8px;

    background-color: #0073aa; /* grün – anpassbar */
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    border-radius: 999px;
    padding: 0 6px;
}

/* optional: kleiner Hover-Effekt */

.foerder-submit {
    position: relative;
}

.info-icon {
    position: relative;
    margin-left: 8px;
    cursor: help;
    font-style: normal;
    font-weight: bold;
}

.info-tooltip {
    display: none;
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.4;
    border-radius: 4px;
    width: 240px;
    z-index: 10;
}

.info-icon:hover .info-tooltip,
.info-icon:focus .info-tooltip {
    display: block;
}
.select2-selection { 
    height: 56px;
}
.foerderfiebel-checkboxes .checkbox-item{ 
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
}
.foerderfiebel-checkboxes input{ 
    width: fit-content;
    height: auto;
    margin-top: 0px;
}