body.dark { background-color: #4b4a4b; }

a:hover { text-decoration: underline; }

/**
 * TABLE STYLES
 */
.td-25 {
    width: 25px;
}
.td-50 {
    width: 50px;
}
.td-75 {
    width: 75px;
}
.td-100 {
    width: 100px;
}
.td-125 {
    width: 125px;
}
.td-150 {
    width: 100px;
}
.td-175 {
    width: 175px;
}
.td-200 {
    width: 200px;
}
.td-250 {
    width: 250px;
}
.td-300 {
    width: 300px;
}
.td-350 {
    width: 350px;
}
.td-450 {
    width: 450px;
}

.td-75p {
    width: 75%;
}

table.camp-xs td, table.camp-xs th {
    font-size: 0.8rem;
}

table.camp-stripe tr.camp-odd td { background-color: #eee; }
table.camp-stripe tr.camp-even td { background-color: #fff; }

table.camp-stripe-legacy tr.camp-odd td { background-color: #fff491; }
table.camp-stripe-legacy tr.camp-even td { background-color: #ddcd39; }

#course-booking circle {
    fill: transparent;
}

#course-booking .apexcharts-datalabels-group text {
    fill: rgba(255, 255, 255, 0.9);
}

#course-booking #apexcharts-radialbarTrack-0 {
    stroke: rgba(0, 0, 0, 0.2);
}

text-notransform { text-transform: none !important; }

.form-check-input {
    border: 1px solid #999;
}

.main-banner-container {
    padding: 2rem 3rem !important;
}

/**** DRAG & DROP */
.drag-handle { cursor: grab; user-select: none; padding-right: .5rem; opacity: .7; }
tr.dragging { opacity: .5; }
tr.drop-target { outline: 2px dashed #999; outline-offset: -2px; }

/* =====================================================
   Bootstrap 5 – Card Ribbons (Final)
   Diagonal, Animated, Bottom-Right = 90° gedreht
   ===================================================== */

/* ---------- Wrapper ---------- */
.ribbon-wrapper{
    position: relative;
    overflow: hidden;
}

/* ---------- Base Ribbon ---------- */
.ribbon{
    position: absolute;
    z-index: 2;

    /* Text & Size */
    min-width: 140px;
    padding: 6px 44px;
    white-space: nowrap;
    text-align: center;
    line-height: 1.2;

    /* Typography */
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;

    /* Visuals */
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
    will-change: transform;
}

/* ---------- Shine Effect ---------- */
.ribbon .ribbon-shine{
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .35;
    background: linear-gradient(
        115deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,.55) 45%,
        rgba(255,255,255,0) 60%
    );
    transform: translateX(-120%);
    animation: ribbonShine 2.6s ease-in-out infinite;
}

/* ---------- Hover ---------- */
.ribbon-wrapper:hover .ribbon{
    filter: brightness(1.05);
    box-shadow: 0 10px 26px rgba(0,0,0,.22);
}

/* =====================================================
   Positions & Rotations
   ===================================================== */

/* --- Top Right --- */
.ribbon-top-right{
    top: 14px;
    right: -44px;
    transform: rotate(45deg);
}

/* --- Top Left --- */
.ribbon-top-left{
    top: 14px;
    left: -44px;
    transform: rotate(-45deg);
}

/* --- Bottom Right (90° gedreht) --- */
.ribbon-bottom-right{
    bottom: 14px;
    right: -44px;
    top: auto;
    left: auto;
    transform: rotate(135deg);
}

/* --- Bottom Left (90° gedreht) --- */
.ribbon-bottom-left{
    bottom: 14px;
    left: -44px;
    top: auto;
    right: auto;
    transform: rotate(-135deg);
}

/* ---------- Hover Offset ---------- */
.ribbon-wrapper:hover .ribbon-top-right{
    transform: rotate(45deg) translateY(-2px);
}

.ribbon-wrapper:hover .ribbon-top-left{
    transform: rotate(-45deg) translateY(-2px);
}

.ribbon-wrapper:hover .ribbon-bottom-right{
    transform: rotate(135deg) translateY(-2px);
}

.ribbon-wrapper:hover .ribbon-bottom-left{
    transform: rotate(-135deg) translateY(-2px);
}

/* =====================================================
   Straight Variant (no rotation)
   ===================================================== */

.ribbon-straight{
    min-width: auto;
    padding: 7px 14px;
    transform: none !important;
}

.ribbon-top-right.ribbon-straight{
    top: 0;
    right: 0;
    border-bottom-left-radius: .35rem;
}

.ribbon-top-left.ribbon-straight{
    top: 0;
    left: 0;
    border-bottom-right-radius: .35rem;
}

.ribbon-bottom-right.ribbon-straight{
    bottom: 0;
    right: 0;
    border-top-left-radius: .35rem;
}

.ribbon-bottom-left.ribbon-straight{
    bottom: 0;
    left: 0;
    border-top-right-radius: .35rem;
}

/* =====================================================
   Pulse Animations (rotation-safe)
   ===================================================== */

.ribbon-pulse{
    animation: ribbonPulseTR 1.9s ease-in-out infinite;
}

/* Top Right */
@keyframes ribbonPulseTR{
    0%,100%{ transform: rotate(45deg) scale(1); }
    50%    { transform: rotate(45deg) scale(1.035); }
}

/* Top Left */
.ribbon-top-left.ribbon-pulse{
    animation-name: ribbonPulseTL;
}
@keyframes ribbonPulseTL{
    0%,100%{ transform: rotate(-45deg) scale(1); }
    50%    { transform: rotate(-45deg) scale(1.035); }
}

/* Bottom Right */
.ribbon-bottom-right.ribbon-pulse{
    animation-name: ribbonPulseBR;
}
@keyframes ribbonPulseBR{
    0%,100%{ transform: rotate(135deg) scale(1); }
    50%    { transform: rotate(135deg) scale(1.035); }
}

/* Bottom Left */
.ribbon-bottom-left.ribbon-pulse{
    animation-name: ribbonPulseBL;
}
@keyframes ribbonPulseBL{
    0%,100%{ transform: rotate(-135deg) scale(1); }
    50%    { transform: rotate(-135deg) scale(1.035); }
}

/* Straight pulse */
.ribbon-straight.ribbon-pulse{
    animation: ribbonPulseStraight 1.9s ease-in-out infinite;
}
@keyframes ribbonPulseStraight{
    0%,100%{ transform: scale(1); }
    50%    { transform: scale(1.03); }
}

/* =====================================================
   Reduced Motion
   ===================================================== */
@media (prefers-reduced-motion: reduce){
    .ribbon,
    .ribbon .ribbon-shine{
        animation: none !important;
        transition: none !important;
    }
}

/* =====================================================
   Colors (Bootstrap 5)
   ===================================================== */

.ribbon-primary   { background:#0d6efd; }
.ribbon-secondary { background:#6c757d; }
.ribbon-success   { background:#198754; }
.ribbon-danger    { background:#dc3545; }
.ribbon-warning   { background:#ffc107; color:#212529; }
.ribbon-info      { background:#0dcaf0; color:#212529; }
.ribbon-dark      { background:#212529; }
.ribbon-light     { background:#f8f9fa; color:#212529; }

/* Optional subtle gradient */
.ribbon-gradient{
    background-image: linear-gradient(to bottom, rgba(255,255,255,.18), rgba(0,0,0,.08));
    background-blend-mode: overlay;
}

/* =====================================================
   Shine Keyframes
   ===================================================== */

@keyframes ribbonShine{
    0%   { transform: translateX(-120%); opacity: 0; }
    15%  { opacity: .35; }
    55%  { transform: translateX(120%); opacity: .35; }
    70%  { opacity: 0; }
    100% { transform: translateX(120%); opacity: 0; }
}

/* =====================================================
   Text Rotation Fix for Bottom Ribbons
   ===================================================== */

/* Text-Container drehen */
.ribbon-bottom-right,
.ribbon-bottom-left{
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Text selbst wieder richtig herum drehen */
.ribbon-bottom-right > *,
.ribbon-bottom-left > *{
    transform: rotate(180deg);
}
