/*

#c71748 fuchisa
#8e0038 KA Rot

*/
@font-face {
    font-family: 'Fira Sans';
    src: url("/static/fonts/FiraSans-Light.8dd46440d794.woff2");
    font-weight: 300;
    font-display: swap;

}

@font-face {
    font-family: 'Fira Sans';
    src: url("/static/fonts/FiraSans-LightItalic.4ab17a01ebe6.woff2");
    font-weight: 300;
    font-display: swap;
    font-style: italic;
}

@font-face {
    font-family: 'Fira Sans';
    src: url("/static/fonts/FiraSans-Regular.f665a2d95f0d.woff2");
    font-weight: 400;
    font-display: swap;

}

@font-face {
    font-family: 'Fira Sans';
    src: url("/static/fonts/FiraSans-Italic.a7e489584c0c.woff2");
    font-weight: 400;
    font-display: swap;
    font-style: italic;
}

@font-face {
    font-family: 'Fira Sans';
    src: url("/static/fonts/FiraSans-SemiBold.6b8669b84fcf.woff2");
    font-weight: bold;
    font-display: swap;
}

@font-face {
    font-family: 'Fira Sans';
    src: url("/static/fonts/FiraSans-SemiBoldItalic.226473a1166d.woff2");
    font-weight: bold;
    font-display: swap;
    font-style: italic;
}

html,
body {
    font-weight: 300;
}

b,
strong {
    font-weight: bold;
}

body {
    font-family: 'Fira Sans', sans-serif;
    color: black;
    font-weight: 200;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #434764;
}

h1 {
    font-family: 'Fira Sans', sans-serif;
    font-size: 2rem;
    margin-left: 1rem;
    font-weight: 400;
}

h2 {
    font-family: 'Fira Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
}

.card h2 {
    margin-top: 0;
}

h3 {
    font-family: 'Fira Sans Light', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
}

a {
    color: #c71748;
    text-decoration: none;
}

a:hover {
    color: #8e0038;
}

button,
input,
optgroup,
select,
textarea {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 300;
}

footer {
    background-color: #434764;
    color: white;
}

#logo {
    width: 100px;
}

.navbar {
    border-top: 10px solid #ff1e3c;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 100;
}

.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav {
    color: #ff1e3c;
}

.nav-link:hover {
    color: #c72a47;
}

.navbar-light .navbar-nav .nav-link {
    color: black;
}

.nav-link {
    color: white;
}

.nav-link:focus,
.nav-link:hover {
    color: #dddddd;
}

.btn {
    width: 230px;
    margin-bottom: 1rem;
}

.btn-primary,
.btn-success {
    background-color: #ff1e3c;
    border-color: #ff1e3c;
}

.btn-check:checked+.btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check)+.btn:active,
.btn:hover {
    color: #fff;
    background-color: #c72a47;
    border-color: #c72a47;
}

.btn-secondary {
    background-color: white;
    border-color: #ff1e3c;
    color: #ff1e3c;
}

.btn-link {
    color: rgb(33, 37, 41);
}

.dropdown-item:focus,
.dropdown-item:hover {
    color: #fff;
    background-color: #c72a47;
    border-color: #c72a47;
}

.bg-grey {
    background-color: #f5f5f5;
    border: none;
}

.card {
    margin-bottom: 1rem;
}

.card-body {
    padding: 2rem;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    background-color: #fff;
    border-color: #ff1e3c;
    box-shadow: 0 0 0 0.25rem rgb(199 23 72 / 25%);
}

.form-check-input:checked,
.form-check-input:checked {
    background-color: #ff1e3c;
    border-color: #ff1e3c;
}

.accordion-header {
    margin-top: 0;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: #ff1e3c;
}

.accordion-button:not(.collapsed) {
    color: white;
    background-color: #ff1e3c;
    box-shadow: inset 0 -1px 0 rgb(0 0 0 / 13%);
}

.accordion-button:not(.collapsed):after {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>") !important;
}

.accordion-button:focus {
    border-color: #ff1e3c;
    box-shadow: inset 0 -1px 0 rgb(0 0 0 / 13%), 0 0 0 0.25rem rgb(199 23 72 / 25%);
}

.accordion-body {
    background-color: #f5f5f5;
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 1rem;
        padding-left: 1rem;
    }
}

.dropdown-toggle::after {
    display: none;
}

.no-border {
    border: none;
}

.accordion-button:after {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23c71748'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>") !important;

}

/* Disabled Button Styles */
.btn.disabled,
.btn:disabled,
fieldset:disabled .btn {
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    background-color: rgba(255, 30, 60, 0.5);
    border-color: rgba(255, 30, 60, 0.5);
    opacity: 1;
}

.btn-secondary.disabled,
.btn-secondary:disabled,
fieldset:disabled .btn-secondary {
    color: rgba(255, 30, 60, 0.5);
    background-color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 30, 60, 0.5);
}

/* Assistant Modal Send Button - verschmilzt mit Textarea */
#assistantModal .input-group .btn-primary {
    background-color: #ffffff;
    border-color: #ced4da;
    border-left: none;
    border-radius: 0 0.375rem 0.375rem 0;
    /* Reset global btn styles */
    margin-bottom: 0;
    width: auto;
    /* Flexbox stretch */
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;

    white-space: nowrap;
    padding-left: 1rem;
    padding-right: 1rem;
    color: #ff1e3c;
}

#assistantModal .input-group .form-control {
    border-right: none;
    border-radius: 0.375rem 0 0 0.375rem;
}

#assistantModal .input-group .form-control:focus {
    border-right: none;
    box-shadow: 0 0 0 0.25rem rgb(199 23 72 / 25%);
}

#assistantModal .input-group .form-control:focus+.btn-primary {
    border-left: 1px solid #ff1e3c;
    border-color: #ff1e3c;
    box-shadow: 0 0 0 0.25rem rgb(199 23 72 / 25%);
}

#assistantModal .input-group .btn-primary:hover:not(:disabled) {
    background-color: #f8f9fa;
    border-color: #ff1e3c;
    border-left: 1px solid #ff1e3c;
    color: #c72a47;
}

/* ===== Chapter Overview ===== */
.chapter-overview-header {
    text-align: center;
    margin-bottom: 3rem;
}

.chapter-overview-header h1 {
    font-weight: 600;
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: #434764;
}

.chapter-overview-header p {
    font-size: 1.1rem;
    color: #6c757d;
}

.chapter-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: #f5f5f5;
    border-radius: 12px;
    text-decoration: none;
    color: #434764;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    min-height: 180px;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.chapter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #ff1e3c;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.chapter-card:hover {
    background: #e9ecef;
    border-color: #ff1e3c;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: #434764;
}

.chapter-card:hover::before {
    transform: scaleX(1);
}

.chapter-card:hover .chapter-icon {
    transform: scale(1.1);
}

.chapter-icon {
    font-size: 3.5rem;
    color: #ff1e3c;
    margin-bottom: 1rem;
    transition: transform 0.25s ease;
}

.chapter-title {
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    line-height: 1.4;
    margin: 0;
    color: #434764;
}

.chapter-card:focus {
    outline: 3px solid #ff1e3c;
    outline-offset: 2px;
}

/* ===== Countries Section ===== */
.countries-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.countries-section-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #434764;
    margin-bottom: 1.5rem;
}

.countries-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
}

.country-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.country-item:hover {
    background: #e9ecef;
}

.country-flag {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid #dee2e6;
    flex-shrink: 0;
}

.country-name {
    font-size: 0.85rem;
    color: #434764;
    white-space: nowrap;
}

.chapter-overview-project-team-link {
    font-weight: 600;
    color: #ff1e3c;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.chapter-overview-project-team-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.chapter-overview-project-team-link:hover {
    color: #c72a47;
}

/* ===== Chapter Overview Expert Map ===== */
.chapter-overview-expert-map {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.chapter-overview-expert-map-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.chapter-overview-expert-map-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #434764;
    margin-bottom: 0.4rem;
}

.chapter-overview-expert-map-header p {
    color: #6c757d;
    margin-bottom: 0;
}

.chapter-overview-expert-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 1.5rem;
    align-items: stretch;
}

.chapter-overview-expert-map-canvas {
    min-height: 520px;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: hidden;
}

.chapter-overview-expert-map-canvas path {
    fill: #d7d9df;
    stroke: #f5f5f5;
    stroke-width: 1.2;
    transition: fill 0.2s ease, opacity 0.2s ease, stroke 0.2s ease;
    outline: none;
    pointer-events: none;
}

.chapter-overview-expert-map-canvas path.has-experts {
    fill: #7b7e91;
    cursor: pointer;
    pointer-events: auto;
}

.chapter-overview-expert-map-canvas path.has-experts:hover,
.chapter-overview-expert-map-canvas path.has-experts:focus {
    fill: #434764;
    opacity: 0.95;
    stroke: #ff1e3c;
    stroke-width: 2;
}

.chapter-overview-expert-map-label {
    fill: #fff;
    stroke: #434764;
    stroke-width: 2px;
    paint-order: stroke;
    dominant-baseline: central;
    font-size: 0.8rem;
    font-weight: 700;
    pointer-events: none;
    text-anchor: middle;
}

.chapter-overview-expert-map-details {
    position: relative;
    min-height: 520px;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(67, 71, 100, 0.12);
    overflow: hidden;
}

.chapter-overview-expert-map-details::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: -10px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-left: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    transform: rotate(45deg);
}

.chapter-overview-expert-map-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.chapter-overview-expert-map-country {
    font-weight: 700;
    font-size: 1.1rem;
    color: #434764;
}

.chapter-overview-expert-map-count {
    min-width: 2rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #ff1e3c;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
}

.chapter-overview-expert-map-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #6c757d;
    text-align: center;
}

.chapter-overview-expert-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 460px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.chapter-overview-expert-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.chapter-overview-expert-profile-image {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 4px 14px rgba(67, 71, 100, 0.18);
}

.chapter-overview-expert-content {
    min-width: 0;
    flex: 1 1 auto;
}

.chapter-overview-expert-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.chapter-overview-expert-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #434764;
    margin: 0;
}

.chapter-overview-expert-position,
.chapter-overview-expert-company-name {
    color: #6c757d;
    font-size: 0.85rem;
}

.chapter-overview-expert-company-name {
    margin-top: 0.35rem;
    font-weight: 600;
}

.chapter-overview-expert-company-logo {
    max-width: 76px;
    max-height: 36px;
    object-fit: contain;
    flex: 0 0 auto;
}

.chapter-overview-expert-bio {
    margin: 0.6rem 0 0;
    color: #434764;
    font-size: 0.9rem;
    line-height: 1.45;
}

@media (max-width: 991.98px) {
    .chapter-overview-expert-map-layout {
        grid-template-columns: 1fr;
    }

    .chapter-overview-expert-map-canvas,
    .chapter-overview-expert-map-details {
        min-height: 360px;
    }

    .chapter-overview-expert-map-details::before {
        display: none;
    }

}

@media (max-width: 575.98px) {
    .chapter-overview-expert-card {
        flex-direction: column;
    }

    .chapter-overview-expert-profile-image {
        width: 88px;
        height: 88px;
        flex-basis: 88px;
    }
}
