@import 'processing_order.css';

:root {
    --merlot: #722f37;
}

.btn + .btn {
    margin-top: 5px;
}


/* Merlot-Button – Schrift stets weiß lassen */
.btn-merlot:hover,
.btn-merlot:focus,
.btn-merlot:active,
.btn-merlot:focus:active,
.btn-merlot:focus-visible,
.btn-merlot:not(:disabled):not(.disabled).active,
.btn-merlot:not(:disabled):not(.disabled):active {
    color: #fff !important; /* weiße Schrift */
    -webkit-text-fill-color: #fff !important; /* Safari */
}

/* Entfernt die systembedingte blaue Textfarbe bei aktiven Buttons */
.btn-merlot:focus,
.btn-merlot:active,
.btn-merlot:focus:active,
.btn-merlot:focus-visible {
    color: #fff !important;
    text-decoration: none;
    outline: none;
    box-shadow: none;
    -webkit-text-fill-color: #fff !important; /* Safari fix */
}

/* optional: für Links mit .btn-merlot */
a.btn-merlot:focus,
a.btn-merlot:active {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

a.btn-merlot:focus,
a.btn-merlot:active {
    color: #fff;
}

.btn-uniform i {
    line-height: 1;
    vertical-align: middle;
}

/* Farbgebung für aktivierten Switch */
.form-check-input:checked {
    background-color: var(--merlot);
    border-color: var(--merlot);
}

/* Optional: Fokus-Farbe bei Tab-Navigation */
.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(128, 0, 32, 0.25);
}

.border-primary {
    border-color: var(--merlot) !important;
}

.text-primary {
    color: var(--merlot) !important;
}


.btn-uniform {
    padding: 0.5rem 1rem;
    line-height: 1.5;
    height: 38px; /* Adjust this value to match the desired height */
    display: flex;
    font-weight: 400;
    align-items: center;
}

.btn-outline-secondary.btn-uniform {
    padding: 0.5rem 1rem;
    line-height: 1.5;
    height: 38px; /* Match the height of other buttons */
    display: flex;
    align-items: center;
}

.btn-merlot {
    background-color: var(--merlot); /* Melot / Weinrot */
    color: #fff;
    border: 1px solid var(--merlot);
    transition: background-color 0.2s ease;
}

.btn-merlot:hover {
    background-color: #5e1e2c; /* dunklerer Ton beim Hover */
    border-color: #5e1e2c;

}

.btn-merlot-outline {
    background-color: transparent;
    color: var(--merlot);
    border: 1px solid var(--merlot);
    transition: all 0.2s ease;
}

.btn-merlot-outline:hover {
    background-color: var(--merlot);
    color: white;
}

.btn-merlot-outline:disabled {
    background-color: #f5d7db; /* aufgehelltes Merlot für deaktivierten Zustand */
    color: var(--merlot);
    border-color: var(--merlot);
    opacity: 1;
    cursor: not-allowed;
}

.btn-merlot:hover:not(:disabled) {
    background-color: #5e1e2c;
    border-color: #5e1e2c;
}

.btn-merlot:disabled {
    background-color: #a36a71; /* entsättigtes Merlot */
    border-color: #a36a71;
    color: #eee;
    opacity: 1; /* wichtig: nicht grau gemacht vom Browser! */
    cursor: not-allowed;
}

/* 1. Label-Rahmen und aktiver Zustand */
.form-selectgroup-input:checked + .form-selectgroup-label {
    background-color: var(--merlot);
    border-color: var(--merlot);
    color: #fff;
}

/* 2. Rahmenfarbe im normalen Zustand */
.form-selectgroup-label {
    border: 1px solid var(--merlot);
    color: var(--merlot);
}

/* 3. Fokusrahmen beim Klicken (optional) */
.form-selectgroup-input:focus + .form-selectgroup-label {
    box-shadow: 0 0 0 0.15rem rgba(114, 47, 55, 0.25);
}

/*progressbar*/
.progress-bar-striped.bg-merlot {
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 75%,
    transparent
  );
}

.bg-merlot {
    background-color: var(--merlot) !important;
}

/* Merlot-Rahmen im normalen Zustand */
.form-control.merlot-border {
    border: 1px solid var(--merlot);
}

/* Merlot-Fokusrahmen */
.form-control.merlot-border:focus {
    border-color: var(--merlot);
    box-shadow: 0 0 0 0.2rem rgba(114, 47, 55, 0.25);
}

.text-merlot {
    color: var(--merlot) !important;
}

.select-requirement.active {
    position: relative;
    color: var(--merlot) !important;
    font-weight: 600;
}

.category-section.highlight {
    position: relative;
    border-left: 4px solid var(--merlot); /* Merlot-Rot */
    background-color: #fdf7f7;      /* optional: dezenter Hintergrund */
    border-radius: 4px;
    padding-left: 16px;
    transition: background-color 0.3s ease;
}

.navbar-nav .nav-item.active {
    border-bottom: 2px solid var(--merlot) !important;
    box-shadow: inset 0 -2px 0 0 var(--merlot) !important;
}

.navbar-nav .nav-item.active::before {
    height: 2px;
    background-color: var(--merlot) !important;
    border-radius: 2px;
}

.navbar-nav .nav-item.active {
    box-shadow: none !important;
}
.navbar-nav .nav-item.active::after {
    display: none !important;
}

#info-box .marker{
    background-color:var(--merlot);      /* Streifen links */
}

/* macht den linken Stripe merlot-rot (#722f37) statt blau */
.list-group-item.active {
    color: var(--merlot);
    border-left: 4px solid var(--merlot) !important;
    background-color: rgba(114, 47, 55, 0.1);
}

.list-group-item.active:hover {
    background-color: rgba(114, 47, 55, 0.15) !important;
}


#chatbot-page-input {
    resize: none;
    overflow: hidden;
    min-height: 3rem;
}

.alert.alert-info {
    border-left: 4px solid var(--merlot) !important;
}

.alert-merlot-light {
    background-color: #f8e6e9; /* zarter Merlot-Ton */
    color: #7d1f2f; /* Merlot-Schrift */
    border: 1px solid #e0c5c8;
}

.avatar-merlot {
    background-color: #f9e5e5 !important;
    color: #7c0a0a !important;
    font-weight: bold;
    box-shadow: 0 0 0 1px rgba(124, 10, 10, 0.2);
}

.border-merlot {
    border-color: #800020 !important;
}
.bg-merlot-lt {
    background-color: #f5e6e9 !important;
}
.text-merlot {
    color: var(--merlot) !important;
}

.bg-merlot-lt {
    background-color: #f9e5e5 !important;
    color: var(--merlot);
}

.btn-merlot-outline:focus,
.btn-merlot-outline:active,
.btn-merlot-outline:focus-visible {
    color: var(--merlot) !important;
    -webkit-text-fill-color: var(--merlot) !important; /* Safari/Chrome Fix */
    text-decoration: none;
    outline: none !important;
    box-shadow: none !important;
}
/* Wiki card hover effect */
.wiki-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.wiki-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Enhanced table look */
.table-modern thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.table-modern tbody tr + tr {
    border-top: 1px solid #f1f3f5;
}

.table-modern tbody tr:hover {
    background-color: #f8f9fa;
}
