﻿* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #0f1f3a;
    background: #f6f8fb;
}

a {
    color: #0057b8;
    text-decoration: none;
}

.topbar,
.login-header {
    height: 92px;
    background: #fff;
    border-bottom: 1px solid #d6dde8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo {
    width: 54px;
    height: 54px;
    border: 4px solid #d92d2d;
    color: #d92d2d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
}

.brand strong {
    display: block;
    font-size: 26px;
}

.brand span,
.userbox span {
    display: block;
    font-size: 14px;
    color: #44546a;
}

.userbox {
    text-align: right;
    line-height: 1.5;
}

.layout {
    display: flex;
    min-height: calc(100vh - 130px);
}

.sidebar {
    width: 280px;
    background: #fff;
    border-right: 1px solid #d6dde8;
    padding: 22px;
}

.sidebar a {
    display: block;
    padding: 14px 18px;
    color: #0f1f3a;
    border-radius: 4px;
    margin-bottom: 6px;
}

.sidebar a:first-child,
.sidebar a:hover {
    background: #0d3b70;
    color: #fff;
}

.badge {
    background: #d92d2d;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    margin-left: 6px;
}

.helpbox {
    margin-top: 260px;
    border: 1px solid #d6dde8;
    border-radius: 4px;
    padding: 18px;
    background: #fafbfc;
}

.content {
    flex: 1;
    padding: 32px 36px;
}

.page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

h1 {
    margin: 0 0 8px;
    font-size: 28px;
}

h2 {
    margin: 0;
    font-size: 18px;
}

.panel {
    background: #fff;
    border: 1px solid #d6dde8;
    border-radius: 4px;
    margin-top: 24px;
    overflow: hidden;
}

.panel > h2,
.panel-head {
    padding: 18px 22px;
    border-bottom: 1px solid #d6dde8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 15px 22px;
    border-bottom: 1px solid #e4e9f0;
    text-align: left;
    font-size: 14px;
}

th {
    background: #fafbfc;
    font-weight: bold;
}

.status {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.green {
    background: #dff3e3;
    color: #176c2e;
}

.orange {
    background: #fff1df;
    color: #c45b00;
}

.primary-btn {
    display: inline-block;
    background: #0d3b70;
    color: white;
    border: 0;
    border-radius: 4px;
    padding: 12px 18px;
    font-weight: bold;
    cursor: pointer;
}

.table-btn {
    background: #fff;
    border: 1px solid #b8c3d3;
    border-radius: 4px;
    padding: 9px 14px;
    color: #0d3b70;
    font-weight: bold;
    cursor: pointer;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.message-row {
    padding: 16px 22px;
    border-bottom: 1px solid #e4e9f0;
}

.message-row span {
    float: right;
    font-size: 13px;
    color: #44546a;
}

.message-row p {
    margin: 8px 0 0;
    color: #334155;
}

.course-select label {
    display: block;
    border: 1px solid #d6dde8;
    padding: 18px;
    margin: 14px 22px;
    border-radius: 4px;
}

.course-select span {
    display: block;
    margin-left: 24px;
    color: #44546a;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 0 22px;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #b8c3d3;
    border-radius: 4px;
    margin: 8px 0 18px;
    font-size: 15px;
}

textarea {
    min-height: 110px;
}

form .primary-btn {
    margin: 18px 22px 24px;
}

.login-body {
    background: #f4f7fb;
}

.login-card {
    width: 460px;
    background: white;
    border: 1px solid #d6dde8;
    border-radius: 5px;
    padding: 36px;
    margin: 90px auto;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.login-card button {
    width: 100%;
    background: #0d3b70;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 10px;
}

.error {
    background: #fde8e8;
    color: #9b1c1c;
    padding: 12px;
    border-radius: 4px;
    margin: 16px 0;
}

.hint {
    font-size: 13px;
    color: #526173;
    margin-top: 20px;
    line-height: 1.5;
}

.admin-page {
    padding: 40px;
}

footer {
    height: 38px;
    background: #fff;
    border-top: 1px solid #d6dde8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 34px;
    font-size: 13px;
}
.success {
    background: #e7f6ec;
    color: #176c2e;
    border: 1px solid #b8e2c3;
    padding: 14px 18px;
    border-radius: 4px;
    margin: 18px 0;
}

select {
    padding: 9px;
    border: 1px solid #b8c3d3;
    border-radius: 4px;
}
.admin-actions {
    display: flex;
    gap: 12px;
    margin: 22px 0;
}
.action-cell {
    display: flex;
    gap: 8px;
    align-items: center;
}

.action-cell form {
    margin: 0;
}

.danger-btn {
    background: #fff;
    border: 1px solid #cc2f2f;
    color: #a31818;
    border-radius: 4px;
    padding: 9px 14px;
    font-weight: bold;
    cursor: pointer;
}

.danger-btn:hover {
    background: #fde8e8;
}
.message-layout {
    align-items: start;
}

.thread-link {
    display: block;
    padding: 16px 22px;
    border-bottom: 1px solid #e4e9f0;
    color: #0f1f3a;
}

.thread-link:hover {
    background: #f6f8fb;
}

.thread-link strong {
    display: block;
}

.thread-link span {
    display: block;
    margin-top: 4px;
    color: #526173;
    font-size: 13px;
}

.thread-link small {
    display: block;
    margin-top: 4px;
    color: #526173;
}

.chat-message {
    margin: 16px 22px;
    padding: 14px 16px;
    border: 1px solid #d6dde8;
    border-radius: 4px;
    background: #fff;
}

.chat-message strong {
    display: inline-block;
    margin-right: 8px;
}

.chat-message span {
    color: #526173;
    font-size: 13px;
}

.chat-message p {
    margin: 8px 0 0;
}

.from-admin {
    background: #f1f6ff;
    border-color: #bed3f3;
}

.from-customer {
    background: #ffffff;
}
.status-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.status-strip a {
    display: block;
    background: #fff;
    border: 1px solid #d6dde8;
    border-radius: 4px;
    padding: 18px 20px;
    color: #0f1f3a;
}

.status-strip a:hover {
    background: #f6f8fb;
}

.status-strip strong {
    display: block;
    font-size: 26px;
    margin-bottom: 4px;
}

.status-strip span {
    color: #526173;
    font-size: 14px;
}
.user-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.user-actions form {
    display: flex;
    gap: 8px;
    margin: 0;
}

.user-actions input {
    width: 160px;
    margin: 0;
    padding: 9px;
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 18px 22px;
}

.detail-grid p {
    margin: 0;
    padding: 14px;
    border-bottom: 1px solid #e4e9f0;
}

.status-form {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 18px 22px;
    border-top: 1px solid #e4e9f0;
}

.status-form label {
    font-weight: bold;
}

.status-form select {
    min-width: 180px;
}
.checkbox-label {
    display: flex;
    gap: 8px;
    align-items: center;
}

.checkbox-label input {
    width: auto;
    margin: 0;
}
.logo-image {
    height: 42px;
    width: auto;
    display: block;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-text strong {
    display: block;
    font-size: 18px;
}

.brand-text span {
    display: block;
    color: #6c7684;
    font-size: 13px;
}
.red {
    background: #fde8e8;
    color: #9b1c1c;
}
.admin-sidebar .sidebar-section {
    margin: 20px 0 8px;
    padding: 0 18px;
    font-size: 12px;
    font-weight: bold;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.admin-sidebar hr {
    border: 0;
    border-top: 1px solid #d6dde8;
    margin: 16px 0;
}

.admin-page {
    padding: 32px 36px;
}

.admin-page .panel {
    margin-top: 24px;
}
.course-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.course-card {
    display: block;
    background: #fff;
    border: 1px solid #d6dde8;
    border-radius: 4px;
    padding: 22px;
    color: #0f1f3a;
    min-height: 160px;
}

.course-card:hover {
    background: #f6f8fb;
    border-color: #0d3b70;
}

.course-card strong {
    display: block;
    font-size: 19px;
    margin-bottom: 10px;
}

.course-card span {
    display: block;
    color: #526173;
    line-height: 1.45;
    min-height: 54px;
}

.course-card em {
    display: inline-block;
    margin-top: 18px;
    font-style: normal;
    color: #0d3b70;
    font-weight: bold;
}

.disabled-btn {
    color: #7b8794 !important;
    background: #f1f3f6 !important;
    border-color: #d6dde8 !important;
    cursor: not-allowed;
    display: inline-block;
}

.course-card {
    padding: 0;
    overflow: hidden;
}

.course-card-image {
    height: 105px;
    background: linear-gradient(135deg, #dfe7f1, #f7f9fc);
    border-bottom: 1px solid #d6dde8;
}

.course-card:nth-child(1) .course-card-image {
    background: linear-gradient(135deg, #dbeafe, #f8fafc);
}

.course-card:nth-child(2) .course-card-image {
    background: linear-gradient(135deg, #e0f2fe, #f8fafc);
}

.course-card:nth-child(3) .course-card-image {
    background: linear-gradient(135deg, #fee2e2, #f8fafc);
}

.course-card:nth-child(4) .course-card-image {
    background: linear-gradient(135deg, #fff1d6, #f8fafc);
}

.course-card:nth-child(5) .course-card-image {
    background: linear-gradient(135deg, #e8e4ff, #f8fafc);
}

.course-card strong,
.course-card span,
.course-card em {
    padding-left: 22px;
    padding-right: 22px;
}

.course-card strong {
    padding-top: 18px;
}

.course-card em {
    padding-bottom: 22px;
}

.disabled-btn {
    color: #7b8794 !important;
    background: #f1f3f6 !important;
    border-color: #d6dde8 !important;
    cursor: not-allowed;
    display: inline-block;
}

.course-card {
    padding: 0;
    overflow: hidden;
}

.course-card-image {
    height: 105px;
    background: linear-gradient(135deg, #dfe7f1, #f7f9fc);
    border-bottom: 1px solid #d6dde8;
}

.course-card:nth-child(1) .course-card-image {
    background: linear-gradient(135deg, #dbeafe, #f8fafc);
}

.course-card:nth-child(2) .course-card-image {
    background: linear-gradient(135deg, #e0f2fe, #f8fafc);
}

.course-card:nth-child(3) .course-card-image {
    background: linear-gradient(135deg, #fee2e2, #f8fafc);
}

.course-card:nth-child(4) .course-card-image {
    background: linear-gradient(135deg, #fff1d6, #f8fafc);
}

.course-card:nth-child(5) .course-card-image {
    background: linear-gradient(135deg, #e8e4ff, #f8fafc);
}

.course-card strong,
.course-card span,
.course-card em {
    padding-left: 22px;
    padding-right: 22px;
}

.course-card strong {
    padding-top: 18px;
}

.course-card em {
    padding-bottom: 22px;
}

.course-card {
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #d9e0ea;
    transition: all .2s ease;
}

.course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.course-card-image {
    height: 190px;
    overflow: hidden;
}

.course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.course-card-body {
    padding: 20px;
}

.course-card-body strong {
    display: block;
    font-size: 18px;
    margin-bottom: 10px;
}

.course-card-body span {
    display: block;
    color: #5b6675;
    line-height: 1.5;
    min-height: 70px;
}

.course-card-body em {
    display: inline-block;
    margin-top: 12px;
    font-style: normal;
    font-weight: 600;
    color: #0f3d73;
}

.course-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(320px,1fr));
    gap: 24px;
}
.course-meta {
    margin-top: 14px;
    padding: 9px 12px;
    background: #f4f7fb;
    border: 1px solid #d9e0ea;
    border-radius: 4px;
    color: #334155;
    font-size: 14px;
    font-weight: bold;
}

.slot-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.slot-card {
    display: block;
    background: #fff;
    border: 1px solid #d9e0ea;
    border-radius: 6px;
    padding: 22px;
    color: #0f1f3a;
}

.slot-card:hover {
    background: #f6f8fb;
    border-color: #0d3b70;
}

.slot-date strong {
    display: block;
    font-size: 24px;
    margin-bottom: 6px;
}

.slot-date span {
    color: #526173;
}

.slot-info {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e4e9f0;
}

.slot-info p {
    margin: 8px 0;
}

.slot-card em {
    display: inline-block;
    margin-top: 16px;
    font-style: normal;
    font-weight: bold;
    color: #0d3b70;
}

.request-summary-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    background: #fff;
    border: 1px solid #d9e0ea;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 24px;
    margin-bottom: 24px;
}

.request-summary-image {
    height: 240px;
    background: #eef2f7;
}

.request-summary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.request-summary-body {
    padding: 24px;
}

.request-summary-body strong {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

.request-summary-body span {
    display: block;
    color: #526173;
    line-height: 1.5;
    margin-bottom: 20px;
}

.request-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.request-summary-grid p {
    margin: 0;
    padding: 14px;
    background: #f6f8fb;
    border: 1px solid #e1e7ef;
    border-radius: 4px;
}

.request-summary-grid b {
    display: block;
    margin-bottom: 6px;
    color: #526173;
    font-size: 13px;
}

.request-summary-details {
    margin-top: 20px;
}

.request-summary-details div {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5eaf1;
}

.request-summary-details strong {
    display: block;
    font-size: 14px;
    color: #526173;
    margin-bottom: 4px;
}

.request-summary-details span {
    display: block;
    font-size: 17px;
    color: #0f1f3a;
}
.request-summary-grid {
    display: block !important;
}

.request-summary-grid p {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #e5eaf1 !important;
    border-radius: 0 !important;
    padding: 0 0 12px 0 !important;
    margin: 0 0 12px 0 !important;
}

.request-summary-grid b {
    display: block !important;
    color: #526173 !important;
    font-size: 14px !important;
    margin-bottom: 4px !important;
}

.request-summary-grid p {
    font-size: 17px !important;
    color: #0f1f3a !important;
}

/* Eingabefelder allgemein sauberer */
.clean-form label,
form label:not(.checkbox-label) {
    display: none;
}

input,
textarea,
select {
    max-width: 100%;
}

.form-grid > div {
    min-width: 0;
}

textarea {
    resize: vertical;
}

/* Tabellen stabilisieren */
.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-data-table {
    table-layout: fixed;
    width: 100%;
}

.admin-data-table th,
.admin-data-table td {
    vertical-align: middle;
}

.admin-data-table input,
.admin-data-table select {
    width: 100%;
    margin: 0;
    padding: 8px;
    font-size: 13px;
}

.admin-data-table .action-cell {
    min-width: 170px;
}

/* Platzhalter / fehlende Labels durch saubere Felddarstellung */
input::placeholder,
textarea::placeholder {
    color: #6b7280;
}
.visible-label {
    display: flex !important;
    margin: 18px 22px;
    gap: 8px;
    align-items: center;
}

.visible-label input {
    width: auto;
    margin: 0;
}

.panel table .action-cell {
    display: flex;
    gap: 8px;
    align-items: center;
}

.panel table .action-cell form {
    margin: 0;
}

.panel table .action-cell .table-btn,
.panel table .action-cell .danger-btn {
    white-space: nowrap;
}
.cancelled-btn {
    color: #9b1c1c !important;
    background: #fde8e8 !important;
    border-color: #e3a5a5 !important;
    cursor: not-allowed;
    display: inline-block;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-icon {
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid #d6dde8;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f1f3a;
    background: #fff;
    font-size: 20px;
}

.header-icon:hover {
    background: #f6f8fb;
}

.header-icon span {
    position: absolute;
    top: -7px;
    right: -7px;
    background: #d92d2d;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    padding: 4px 7px;
    border-radius: 20px;
    font-weight: bold;
}

.userbox {
    min-width: 190px;
}

/* Korrektur: Feldbeschriftungen wieder anzeigen */
form label:not(.checkbox-label) {
    display: block !important;
    font-weight: bold;
    font-size: 14px;
    color: #334155;
    margin: 10px 0 6px;
}

.clean-form label:not(.checkbox-label) {
    display: block !important;
}

/* Tabellenlayout stabilisieren */
table {
    table-layout: auto;
}

td,
th {
    vertical-align: middle;
}

/* Status-Badges nicht umbrechen oder überlappen */
.status {
    display: inline-block;
    white-space: nowrap;
    min-width: 86px;
    text-align: center;
}

/* Admin-Aktionsspalten sauberer */
.action-cell {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.action-cell form {
    margin: 0;
}

/* Formulare in Panels nicht über den Rand */
.panel form {
    max-width: 100%;
}

.form-grid {
    align-items: start;
}

/* Eingabefelder in Tabellen kleiner und sauberer */
table input,
table select,
table textarea {
    max-width: 100%;
    margin: 0;
}

/* Kursanfragen-Tabelle: Statusspalte stabil */
#anfragen td:nth-child(5),
#anfragen th:nth-child(5) {
    min-width: 120px;
}

/* Kursanfragen-Tabelle: Aktionsspalte stabil */
#anfragen td:nth-child(6),
#anfragen th:nth-child(6) {
    min-width: 110px;
}

form label:not(.checkbox-label),
.clean-form label:not(.checkbox-label) {
    display: none !important;
}

.clean-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 16px 18px;
    padding: 20px 22px 6px;
}

.clean-form input,
.clean-form select,
.clean-form textarea {
    width: 100%;
    margin: 0;
}

.clean-form textarea {
    margin: 20px 22px 6px;
    width: calc(100% - 44px);
    min-height: 110px;
}

.clean-form .primary-btn {
    margin: 20px 22px 24px;
}

.clean-form input[type="date"],
.clean-form input[type="time"],
.clean-form input[type="number"],
.clean-form select {
    min-height: 44px;
}

/* Kursartenformular: Textarea nicht an den Rand kleben */
.panel textarea {
    max-width: calc(100% - 44px);
}

/* Admin Terminformular kompakter */
.admin-page .form-grid {
    align-items: center;
}


.icon-btn {
    width: 38px;
    height: 38px;
    border: 1px solid #d7dde7;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
    transition: all .15s ease;
}

.icon-btn:hover {
    background: #f5f8fc;
}

.edit-btn {
    color: #1d4f91;
}

.delete-btn {
    color: #c62828;
}

.view-btn {
    color: #0f766e;
}

.user-btn {
    color: #5b21b6;
}

.confirm-btn {
    color: #15803d;
}

.cancel-btn {
    color: #dc2626;
}

.action-cell {
    display: flex;
    gap: 6px;
    align-items: center;
}

.action-cell form {
    margin: 0;
}

.disabled-icon {
    opacity: .45;
    cursor: not-allowed;
    background: #f1f3f6 !important;
}

/* Dashboard Aktionsbuttons sauber ausrichten */
td.action-cell {
    display: table-cell !important;
    white-space: nowrap;
    vertical-align: middle !important;
}

td.action-cell .icon-btn {
    display: inline-flex;
    margin-right: 6px;
    vertical-align: middle;
}

td.action-cell form {
    display: inline-block;
    margin: 0;
}

/* Aktuelle Termine Tabelle stabiler */
.panel table td:last-child,
.panel table th:last-child {
    min-width: 110px;
    white-space: nowrap;
}

.icon-btn {
    line-height: 1;
    flex-shrink: 0;
}

/* Preisverwaltung */
.admin-data-table textarea,
table textarea {
    min-height: 64px;
    resize: vertical;
}

.price-note {
    color: #526173;
    font-size: 14px;
}

.chat-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
}

.chat-toggle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 0;
    background: #0f3d73;
    color: #fff;
    font-size: 25px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

.chat-box {
    display: none;
    position: absolute;
    right: 0;
    bottom: 72px;
    width: 340px;
    background: #fff;
    border: 1px solid #d6dde8;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(0,0,0,.18);
    overflow: hidden;
}

.chat-box.open {
    display: block;
}

.chat-head {
    background: #0f3d73;
    color: #fff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-head button {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.chat-body {
    height: 260px;
    overflow-y: auto;
    padding: 14px;
    background: #f6f8fb;
}

.chat-msg {
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    line-height: 1.4;
    font-size: 14px;
}

.chat-msg.bot {
    background: #fff;
    border: 1px solid #d9e0ea;
}

.chat-msg.user {
    background: #0f3d73;
    color: #fff;
    margin-left: 40px;
}

.chat-input {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #d6dde8;
}

.chat-input input {
    flex: 1;
    margin: 0;
}

.chat-input button {
    background: #0f3d73;
    color: #fff;
    border: 0;
    border-radius: 4px;
    padding: 0 12px;
    cursor: pointer;
}

/* ==========================
   LOGIN
========================== */

.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f4f7fb;
    padding: 40px;
}

.login-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 14px;
    padding: 40px;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
    text-align: center;
}

.login-logo {
    max-width: 220px;
    margin-bottom: 20px;
}

.login-title {
    font-size: 32px;
    font-weight: 700;
    color: #0f3d73;
    margin-bottom: 10px;
}

.login-subtitle {
    color: #64748b;
    margin-bottom: 30px;
}

.login-card input {
    width: 100%;
    margin-bottom: 14px;
}

.login-btn {
    width: 100%;
    height: 48px;
    background: #0f3d73;
    color: #fff;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
}

.login-btn:hover {
    opacity: .95;
}

.login-footer {
    margin-top: 24px;
    font-size: 14px;
    color: #64748b;
}

.progress-bar {
    width: 100%;
    height: 14px;
    background: #e5eaf1;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 14px;
}

.progress-bar span {
    display: block;
    height: 100%;
    background: #0f3d73;
    border-radius: 20px;
}

/* Kurszähler Fortschrittsbalken korrigieren */
.rabatt-progress .progress-bar {
    position: relative;
    width: 100%;
    height: 14px;
    background: #e5eaf1;
    border-radius: 20px;
    overflow: hidden;
}

.rabatt-progress .progress-bar span {
    display: block;
    height: 100%;
    background: #0f3d73;
    border-radius: 20px;
    margin-left: 0 !important;
    margin-right: auto !important;
    float: none !important;
}

.sidebar {
    display: flex;
    flex-direction: column;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.sidebar-nav a.active,
.sidebar a.active {
    background: #0f3d73;
    color: #fff !important;
    border-radius: 4px;
}

.sidebar-contact {
    margin-top: auto !important;
}

.sidebar-contact p {
    margin: 8px 0 0;
}

/* Sidebar: aktive Seite nur fett, Hover bleibt blau */
.sidebar-nav a.active,
.sidebar a.active {
    background: transparent !important;
    color: #0f1f3a !important;
    font-weight: 700;
}

.sidebar-nav a.active:hover,
.sidebar a.active:hover {
    background: #0f3d73 !important;
    color: #fff !important;
}

.dashboard-welcome {
    background: #fff;
    border: 1px solid #d6dde8;
    border-radius: 6px;
    padding: 22px 26px;
    margin-bottom: 22px;
}

.dashboard-welcome h1 {
    margin: 0 0 8px;
    font-size: 28px;
}

.dashboard-welcome p {
    margin: 0;
    color: #526173;
}

.dashboard-welcome {
    background-image: url("../img/background_dash_kunde.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    min-height: 180px;

    border-radius: 10px;
    padding: 35px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    position: relative;
    overflow: hidden;
}

.dashboard-welcome::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 61, 115, 0.55);
}

.dashboard-welcome h1,
.dashboard-welcome p {
    position: relative;
    z-index: 2;
    color: #fff;
}

.dashboard-welcome h1 {
    font-size: 34px;
    margin-bottom: 10px;
}

.dashboard-welcome p {
    font-size: 16px;
}

.dashboard-welcome {
    position: relative;
    overflow: hidden;
}

.dashboard-welcome::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
}

.dashboard-welcome h1,
.dashboard-welcome p {
    position: relative;
    z-index: 2;
}

/* Modernere Sidebar */

.sidebar-nav a,
.sidebar a {
    position: relative;
    transition: all .2s ease;
    border-left: 4px solid transparent;
}

/* Hover */
.sidebar-nav a:hover,
.sidebar a:hover {

    border-left: 4px solid #0f3d73;

    background: linear-gradient(
        90deg,
        rgba(15,61,115,.12) 0%,
        rgba(15,61,115,.06) 40%,
        rgba(15,61,115,0) 100%
    );

    color: #0f3d73;
}

/* Aktive Seite */

.sidebar-nav a.active,
.sidebar a.active {

    border-left: 4px solid #0f3d73;

    background: transparent !important;

    color: #0f3d73 !important;

    font-weight: 700;
}

/* Aktive Seite + Hover */

.sidebar-nav a.active:hover,
.sidebar a.active:hover {

    background: linear-gradient(
        90deg,
        rgba(15,61,115,.12) 0%,
        rgba(15,61,115,.06) 40%,
        rgba(15,61,115,0) 100%
    ) !important;
}

/* RESQNOW Sidebar Design */

.sidebar-nav a,
.sidebar a {
    position: relative;
    transition: all .2s ease;
    border-left: 4px solid transparent;
}

/* Hover */

.sidebar-nav a:hover,
.sidebar a:hover {

    border-left: 4px solid #D71920;

    background: linear-gradient(
        90deg,
        rgba(215,25,32,.15) 0%,
        rgba(215,25,32,.07) 40%,
        rgba(215,25,32,0) 100%
    );

    color: #D71920;
}

/* Aktive Seite */

.sidebar-nav a.active,
.sidebar a.active {

    border-left: 4px solid #D71920;

    background: transparent !important;

    color: #1f2937 !important;

    font-weight: 700;
}

/* Aktive Seite + Hover */

.sidebar-nav a.active:hover,
.sidebar a.active:hover {

    background: linear-gradient(
        90deg,
        rgba(215,25,32,.15) 0%,
        rgba(215,25,32,.07) 40%,
        rgba(215,25,32,0) 100%
    ) !important;
}




/* Dashboard darf nicht mehr als blauer Block erscheinen */
.sidebar-nav > a:first-child,
.sidebar > a:first-child {
    background: transparent !important;
    color: #0f1f3a !important;
    border-left: 4px solid transparent !important;
    font-weight: 400 !important;
}

/* Wenn Dashboard aktiv ist */
.sidebar-nav > a:first-child.active,
.sidebar > a:first-child.active {
    background: transparent !important;
    color: #1f2937 !important;
    border-left: 4px solid #D71920 !important;
    font-weight: 700 !important;
}

/* Dashboard Hover */
.sidebar-nav > a:first-child:hover,
.sidebar > a:first-child:hover {
    border-left: 4px solid #D71920 !important;
    background: linear-gradient(
        90deg,
        rgba(215,25,32,.15) 0%,
        rgba(215,25,32,.07) 40%,
        rgba(215,25,32,0) 100%
    ) !important;
    color: #D71920 !important;
}

/* =========================
   RESQNOW Chatbot Design
   ========================= */

.chat-toggle {
    background: #D71920 !important;
    border: none !important;
}

.chat-toggle:hover {
    background: #B51218 !important;
}

.chat-head {
    background: #D71920 !important;
    color: #fff !important;
}

.chat-head button {
    color: #fff !important;
}

.chat-input button {
    background: #D71920 !important;
    border: none !important;
}

.chat-input button:hover {
    background: #B51218 !important;
}

.chat-msg.user {
    background: rgba(215,25,32,.10) !important;
    border-left: 3px solid #D71920 !important;
}

.chat-msg.bot {
    background: #f7f7f7 !important;
    border-left: 3px solid #D71920 !important;
}

/* Kleiner Schatten in Markenfarbe */

.chat-box {
    box-shadow: 0 8px 30px rgba(215,25,32,.15) !important;
}

/* RESQNOW Bonusprogramm */

.progress-bar {
    background: #eceff3 !important;
}

.progress-bar span {
    background: #D9B100 !important;
}

.rabatt-progress strong {
    color: #D9B100;
}

/* RESQNOW Überschriften */

.panel-head h2 {
    position: relative;
    padding-left: 16px;
    color: #1f2937;
}

.panel-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 5px;
    border-radius: 4px;
    background: #D71920;
}

/* leichter Akzent im Hintergrund */

.panel-head {
    padding: 8px 12px;
    border-radius: 6px;

    background: linear-gradient(
        90deg,
        rgba(215,25,32,.05) 0%,
        rgba(215,25,32,0) 100%
    );
}

/* =========================
   RESQNOW Seitenüberschriften
   ========================= */

.content > h1,
.admin-page > h1 {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    color: #1f2937;
    font-size: 30px;
    font-weight: 700;
}

.content > h1::before,
.admin-page > h1::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 5px;
    border-radius: 4px;
    background: #D71920;
}

.content > h1 + p,
.admin-page > h1 + p {
    margin-top: 0;
    margin-bottom: 24px;
    padding-left: 18px;
    color: #64748b;
    font-size: 15px;
}

/* Dashboard: Hero-Begrüßung soll keine rote Linie bekommen */
.dashboard-welcome h1::before {
    display: none !important;
}

.dashboard-welcome h1 {
    padding-left: 0 !important;
}

/* Dashboard Seitenüberschrift */

.page-title h1 {
    position: relative;
    padding-left: 18px;
    color: #1f2937;
    font-size: 30px;
    font-weight: 700;
}

.page-title h1::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 5px;
    border-radius: 4px;
    background: #D71920;
}

.page-title p {
    padding-left: 18px;
    color: #64748b;
}

/* Toast Benachrichtigung */
.portal-toast {
    position: fixed;
    right: 24px;
    bottom: 96px;
    background: #D71920;
    color: #fff;
    padding: 14px 18px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    z-index: 10000;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: all .25s ease;
    font-weight: 600;
}

.portal-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* RESQNOW Bestätigungs-Popup */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20000;
}

.confirm-overlay.show {
    display: flex;
}

.confirm-box {
    width: 420px;
    max-width: calc(100% - 40px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(0,0,0,.22);
    padding: 26px;
}

.confirm-box h3 {
    margin: 0 0 10px;
    color: #1f2937;
}

.confirm-box p {
    color: #64748b;
    line-height: 1.5;
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.confirm-cancel {
    background: #f1f5f9;
    color: #1f2937;
    border: 1px solid #d6dde8;
    border-radius: 6px;
    padding: 10px 14px;
    cursor: pointer;
}

.confirm-ok {
    background: #D71920;
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 10px 14px;
    cursor: pointer;
}

/* Erfolg- und Fehler-Toast */
.portal-toast.success {
    background: #15803d;
}

.portal-toast.error {
    background: #D71920;
}

.portal-footer {
    text-align: center;
    padding: 18px 20px;
    border-top: 1px solid #e5e7eb;
    color: #64748b;
    font-size: 13px;
    line-height: 1.8;
    background: #fff;
}

.portal-footer div:first-child {
    font-weight: 600;
}

.footer-links {
    margin-top: 4px;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
}

.footer-links a:hover {
    color: #D71920;
}

.footer-links span {
    margin: 0 6px;
}

/* Rechtliche Seiten */
.legal-page {
    padding: 26px;
    line-height: 1.7;
}

.legal-page h2 {
    margin-top: 28px;
    margin-bottom: 10px;
    color: #1f2937;
}

.legal-page .panel-head h2 {
    margin-top: 0;
}

.legal-page p,
.legal-page li {
    color: #374151;
}

.legal-page a {
    color: #D71920;
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}
