/*

#c71748 fuchisa
#8e0038 KA Rot

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

}

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

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

}

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

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

@font-face {
    font-family: 'Fira Sans';
    src: url("/static/fonts/FiraSans-SemiBoldItalic.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;
}