
:root {
    --navbar-footer: #1e293b;
    --card-light: #f1f5f9;
    --card-medium: #e2e8f0;
    --card-strong: #cbd5e1;
    --btn-primary: #3b82f6;
    --btn-hover: #2563eb;
}

.navbar,
.offcanvas-header,
footer {
    background-color: var(--navbar-footer) !important;
}

.card-meldung {
    background-color: var(--card-light);
}

.card-sondertour {
    background-color: var(--card-medium);
}

.card-info {
    background-color: var(--card-strong);
}

.card-abfahrt {
    background-color: var(--card-light);
}

.card-ankunft {
    background-color: var(--card-medium);
}

.card-manuelltour {
    background-color: var(--card-strong);
}

.card-meldung .btn,
.card-ankunft .btn,
.card-manuelltour .btn,
.card-sondertour .btn {
    background-color: var(--btn-primary);
    color: white;
    border: none;
}

.card-meldung .btn:hover,
.card-ankunft .btn:hover,
.card-manuelltour .btn:hover,
.card-sondertour .btn:hover {
    background-color: var(--btn-hover);
}

.dropdown-menu-dark {
    background-color: var(--navbar-footer);
}

.scroll-table {
    max-height: 200px;
    overflow-y: auto;
}

.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card .btn {
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.card .btn:hover {
    transform: scale(1.03);
}

.scroll-table tbody tr {
    transition: background-color 0.2s ease;
}

.scroll-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.card-info .card-text {
    transition: opacity 0.5s ease;
}

.card-info.flash {
    animation: flash-red 0.6s;
}

@keyframes flash-red {
    0% {
        background-color: #f8d7da;
    }

    50% {
        background-color: #f8d7da;
    }

    100% {
        background-color: transparent;
    }
}

@keyframes blinkRed {

    0%,
    100% {
        color: inherit;
    }

    20% {
        color: red;
    }

    40% {
        color: inherit;
    }

    60% {
        color: red;
    }

    80% {
        color: inherit;
    }
}

.card-abfahrt tbody tr.flash td {
    animation: blinkRed 1s ease;
}

.card-ankunft tbody tr.flash td {
    animation: blinkRed 1s ease;
}

.modal-content {
    border-radius: 0.5rem;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
}

.card-fixed {
    min-height: 310px;
    max-height: 310px;
    min-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card-last-tours .card-text {
    font-size: 0.9rem;
    line-height: 1.3;
}

.card-last-tours .sondertour-block {
    border-top: 1px solid rgba(0,0,0,0.1);
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    font-size: 0.85rem;
}
#tourModal {
    width: 800px; /* oder was du brauchst */
  }

  .card {
    position: relative;
  }
  

  .card .bi {
    opacity: 0.7;
  }
  
  .hr-dashed {
    border-top: 1px dashed #3f3f3f;
  }
  .progress-vertikal-outer {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 10px;
    background: transparent;
    z-index: 10;
  }
  
  .progress-vertikal-inner {
    width: 100%;
    height: 100%;
    background-color: red;
    transition: height 0.3s, background-color 0.3s;
    border-radius: 0 0 0 0;
    align-self: flex-end;
    position: absolute;
    bottom: 0;
  }

  h5 {
    letter-spacing: 0.5px;
  }
  
  .bg-white {
    background-color: #fff !important;
  }
  .row.mb-4 {
    margin-bottom: 2rem;
  }
  
  @keyframes flash-green {
    0%, 50% { background-color: #d1e7dd; }
    100% { background-color: transparent; }
}

@keyframes flash-yellow {
    0%, 50% { background-color: #fff3cd; }
    100% { background-color: transparent; }
}

.card-info.flash-red {
    animation: flash-red 0.6s;
}
.card-info.flash-green {
    animation: flash-green 0.6s;
}
.card-info.flash-yellow {
    animation: flash-yellow 0.6s;
}
.card.flash-red    { animation: flash-red 0.6s; }
.card.flash-yellow { animation: flash-yellow 0.6s; }
.card.flash-green  { animation: flash-green 0.6s; }

@keyframes flash-red {
    0%, 50% { background-color: #f8d7da; }
    100%    { background-color: transparent; }
}
@keyframes flash-yellow {
    0%, 50% { background-color: #506aff8e; }
    100%    { background-color: transparent; }
}
@keyframes flash-green {
    0%, 50% { background-color: #d1e7dd; }
    100%    { background-color: transparent; }
}
#angekommen-touren span:last-child {
    margin-right: 10px;
}
