body {
    color: rgb(17, 2, 2);
}

label {
    color: rgb(17, 2, 2)
}

@font-face {
    font-family: 'Palanquin-Light';
    src: url('../fonts/palanquin-semibold.ttf');
}

/* --- Container Layouts --- */
#hauptseite {
    background-color: silver;
    width: 790px;
    margin: 0px auto;
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
}

#planer {
    width: 100%;
    background-color: #D9D9D9;
    text-align: center;
    min-height: 10em;
    vertical-align: middle;
}

#infos_oben {
    width: 100%;
    height: 100px;
    /* Hintergrund angepasst auf Dunkelgrau für besseren Kontrast zum Orange */
    background-color: #333333;
}

#infos_rechts {
    width: 100%;
    padding-left: 5px;
}

/* --- Brief / Layout Positionen --- */
#Briefkopf { position: absolute; top: 0px; left: 0px; }
#Brieffuss { position: absolute; top: 800px; left: 0px; }
#Briefinhalt { position: absolute; top: 300px; width: 733px; left: 60px; }
#Brief { width: 793px; margin: auto; }
#Area { width: 20px; height: 20px; margin: auto; }

#buehne {
    text-align: center;
    background-color: white;
    border: 2px solid;
    margin-bottom: 7px;
}
#buehne {
    background: #343a40;
    color: white;
    text-transform: uppercase;
    letter-spacing: 5px;
    border-radius: 50px 50px 0px 0px;
    margin: 0px auto;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#eventmanager { float: left; width: 30%; }
#maxware { float: right; width: 30%; }

/* --- Breadcrumbs --- */
.breadcrumb {
    padding: 0px;
    background: #ffffff;
    list-style: none;
    overflow: hidden;
    margin-top: 20px;
}
.breadcrumb > li + li:before { padding: 0; }
.breadcrumb li { float: left; }
.breadcrumb li.active a { background: #D4D4D4; color: white; }
.breadcrumb li.completed a { background: hsl(153, 1%, 41%); }
.breadcrumb li.active a:after { border-left: 30px solid #D4D4D4; }
.breadcrumb li.completed a:after { border-left: 30px solid hsl(153, 1%, 41%); }
.breadcrumb li a {
    color: lightgray;
    text-decoration: none;
    padding: 10px 20px 10px 45px;
    position: relative;
    display: block;
    float: left;
}
.breadcrumb li a:after {
    content: " "; display: block; width: 0; height: 0;
    border-top: 50px solid transparent; border-bottom: 50px solid transparent;
    border-left: 30px solid hsl(0, 0%, 100%);
    position: absolute; top: 50%; margin-top: -50px; left: 100%; z-index: 2;
}
.breadcrumb li a:before {
    content: " "; display: block; width: 0; height: 0;
    border-top: 50px solid transparent; border-bottom: 50px solid transparent;
    border-left: 30px solid white;
    position: absolute; top: 50%; margin-top: -50px; margin-left: 1px; left: 100%; z-index: 1;
}
.breadcrumb li:first-child a { padding-left: 15px; }

/* --- Seating Plan Spacing --- */
.seating-plan div:first-child { padding-top: 10px; }
.seating-plan div:last-child { padding-bottom: 10px; }

/* =========================================
   BUCHUNGS-FORTSCHRITTS-LEISTE (STEP BAR)
   ========================================= */

#booking-step-bar {
    width: 100%;
    margin-bottom: 30px;
    margin-top: 30px;
    overflow: hidden;
    display: flex; /* Flexbox sorgt für gleichmäßige Verteilung */
    justify-content: space-between;
    padding: 0;
}

#booking-step-bar li {
    list-style-type: none;
    text-align: center;
    color: #99a2a8;
    font-size: 16px;
    flex: 1; /* Ersetzt float & width: 25% -> Füllt den Platz automatisch */
    position: relative;
    /* WICHTIG: Kein z-index hier, damit :after wirklich nach hinten kann! */
}

/* Die Nummern in den Kreisen (:before) */
#booking-step-bar li:before {
    content: "1";
    width: 50px;
    height: 50px;
    line-height: 50px;
    display: block;
    background: #eaf0f4;
    border-radius: 50%;
    margin: 0 auto 10px auto; /* Margin unten drückt den Text weg */
    font-weight: bold;
    transition: all 0.3s ease;

    /* NEU: Zwingt den Kreis in den Vordergrund über die Linie */
    position: relative;
    z-index: 2;
}

/* Spezifische Nummern */
#booking-step-bar li:nth-child(2):before { content: "2"; }
#booking-step-bar li:nth-child(3):before { content: "3"; }
#booking-step-bar li:nth-child(4):before { content: "4"; }

/* Die Verbindungslinie (:after) */
#booking-step-bar li:after {
    content: '';
    width: 100%;
    height: 10px;
    background: #eaf0f4;
    position: absolute;
    left: -50%;
    top: 20px; /* Vertikal mittig zum Kreis */

    /* NEU: Schiebt die Linie ganz nach hinten */
    z-index: 0;
}

/* Spezialfall: Erste Linie verstecken */
#booking-step-bar li:first-child:after {
    display: none;
}

/* --- AKTIVER ZUSTAND (ORANGE) --- */
#booking-step-bar li.active {
    color: #e87224 !important; /* Textfarbe Orange */
    font-weight: bold;
}

/* Kreis aktiv */
#booking-step-bar li.active:before {
    background: #e87224 !important;
    color: white;
    box-shadow: 0 0 10px rgba(232, 114, 36, 0.4);
}

/* Linie aktiv */
#booking-step-bar li.active:after {
    background: #e87224 !important;
}

/* --- AKTIVER ZUSTAND (ORANGE) --- */
#booking-step-bar li.active {
    color: #e87224 !important; /* Dein Logo-Orange */
    font-weight: bold;
}

/* Der Kreis des aktiven Schritts */
#booking-step-bar li.active:before {
    background: #e87224 !important;
    color: white;
    box-shadow: 0 0 10px rgba(232, 114, 36, 0.4); /* Leuchtes Orange */
}

/* Die Linie VOR dem aktiven Schritt (damit der Pfad dahin orange ist) */
#booking-step-bar li.active:after {
    background: #e87224 !important;
}

/* Mobile Optimierung */
.mobile-step-indicator {
    display: none;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}
/* WICHTIG: Farbe der Mobile Progress Bar */
.mobile-step-indicator .progress-bar {
    background-color: #e87224 !important; /* Force Orange */
    transition: width 0.6s ease;
}

/* Bootstrap Overrides für Grid */
.booking-element {
    grid-column-end: span 2;
    justify-self: center;
    transition: transform 0.2s ease, filter 0.2s ease;
    cursor: pointer;
}

.booking-element:hover {
    transform: scale(1.3);
    filter: brightness(1.2);
    z-index: 10;
}

.grid-offset {
    grid-column-start: 2;
}

/* Info Bar & Legend */
#placeover {
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
    font-size: 0.85rem;
}

.legend-item img {
    margin-right: 5px;
    border-radius: 3px;
}

.timer-progress-container {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    position: sticky;
    top: 0;
    z-index: 1100;
    margin-bottom: 25px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.timer-progress-bar {
    width: 100%;
    height: 100%;
    background-color: #28a745; /* Grün */
    transition: width 1s linear, background-color 0.5s ease;
}

/* Media Queries */
@media (max-width: 768px) {
    #booking-step-bar {
        display: none; /* Verstecke große Leiste */
    }
    .mobile-step-indicator {
        display: block; /* Zeige Mobile Leiste */
    }
    .progress {
        height: 10px;
        margin-top: 5px;
        background-color: #e9ecef;
        border-radius: 5px;
        overflow: hidden;
    }
}