/* Farbpalette */
:root {
    --fsr-darkred: #490007;
    --fsr-red: #700c15;
    --fsr-lightred: #ff7d7d;
    --fsr-muted: #753d3c;
    --card-bg: #fff5f5;
    --light-bg: #fdfbfc;
}

/* Isolierung */
.owoche-bereich {
    display: block !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 1.5rem auto !important;
    font-family: 'Roboto', Arial, sans-serif !important;
}

.owoche-bereich * {
    box-sizing: border-box !important;
}

/* Header-Bereich */
.owoche-bereich .owoche-header {
    background-color: var(--fsr-darkred) !important;
    color: white !important;
    padding: 1.2rem 1.5rem !important;
    box-shadow: 0 4px 15px rgba(73, 0, 7, 0.2) !important;
    border-bottom: 4px solid var(--fsr-red) !important;
    margin-bottom: 2rem !important;
    border-radius: 12px !important;
}

.owoche-bereich .header-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1.5rem !important;
    background: transparent !important;
}

.owoche-bereich .fsr-logo {
    height: 70px !important;
    width: auto !important;
    background-color: white !important;     
    padding: 5px !important;                
    border-radius: 8px !important;          
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
    display: block !important;
}

.owoche-bereich .owoche-h1 {
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    color: white !important;
    margin: 0 0 0.2rem 0 !important;
    line-height: 1.2 !important;
    border: none !important;
}

.owoche-bereich .owoche-p {
    font-size: 1.1rem !important;
    opacity: 0.9 !important;
    color: white !important;
    margin: 0 !important;
    padding: 0 !important;
}

.owoche-bereich .owoche-container {
    padding: 0 !important;
    margin-bottom: 6rem !important;
}

/* SCROLLBARER CONTAINER FÜR DAS GRID */
.owoche-bereich .timetable-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(260px, 1fr)) !important; /* Jede der 5 Spalten ist jetzt fest mindestens 260px breit und quetscht sich nicht mehr */
    gap: 1.2rem !important;
    align-items: start !important;
    width: 100% !important;
    margin-bottom: 2.5rem !important;
    overflow-x: auto !important;
    padding-bottom: 1rem !important;
    scrollbar-width: thin !important;
    scrollbar-color: var(--fsr-muted) #f1e4e5 !important;
}

/* Scrollbalken-Styling für Browser */
.owoche-bereich .timetable-grid::-webkit-scrollbar {
    height: 8px !important;
}
.owoche-bereich .timetable-grid::-webkit-scrollbar-track {
    background: #f1e4e5 !important;
    border-radius: 4px !important;
}
.owoche-bereich .timetable-grid::-webkit-scrollbar-thumb {
    background-color: var(--fsr-muted) !important;
    border-radius: 4px !important;
}

.owoche-bereich .day-column {
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(112, 12, 21, 0.05) !important;
    border: 1px solid #f1e4e5 !important;
    overflow: hidden !important;
    display: block !important;
}

.owoche-bereich .day-header {
    background-color: var(--fsr-red) !important;
    color: white !important;
    text-align: center !important;
    padding: 1rem !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
    border-bottom: 3px solid var(--fsr-lightred) !important;
    display: flex !important;
    flex-direction: column !important; 
    align-items: center !important;
    gap: 0.1rem !important;
}

.owoche-bereich .day-date {
    font-size: 1.0rem !important;
    font-weight: normal !important;
    opacity: 0.85 !important;
    color: white !important;
}

.owoche-bereich .event-list {
    padding: 0.75rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    background: white !important;
}

/* Event-Karten */
.owoche-bereich .event-slot {
    background-color: var(--card-bg) !important;
    border-left: 5px solid var(--fsr-red) !important;
    border-top: 1px solid #fee2e2 !important;
    border-right: 1px solid #fee2e2 !important;
    border-bottom: 1px solid #fee2e2 !important;
    padding: 0.9rem !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
    display: block !important;
}

.owoche-bereich .event-slot:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 12px rgba(112, 12, 21, 0.12) !important;
    background-color: #fde8e8 !important;
}

/* Kärtchen-Texte */
.owoche-bereich .event-time {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--fsr-red) !important;
    margin-bottom: 0.3rem !important;
    display: flex !important;
    align-items: flex-start !important;   
    gap: 6px !important;                  
}

.owoche-bereich .event-title {
    font-weight: 700 !important;
    font-size: 1.25rem !important;
    color: var(--fsr-darkred) !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.3 !important;
}

.owoche-bereich .event-meta {
    font-size: 1.1rem !important;
    color: var(--fsr-muted) !important;
    display: flex !important;
    align-items: flex-start !important;   
    gap: 6px !important;                  
    line-height: 1.3 !important;
}

.owoche-bereich .icon-inline {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    fill: currentColor !important;
    flex-shrink: 0 !important;
    margin-top: 4px !important;
    display: inline-block !important;
}

.owoche-bereich .text-content {
    display: inline !important;
    color: inherit !important;
}

/* EDDY COMPANION */
.owoche-bereich .eddy-companion {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;               
    display: flex !important;
    align-items: flex-end !important;     
    z-index: 99999 !important;
    background: transparent !important;
    height: 130px !important;             
}

.owoche-bereich .eddy-companion img {
    height: 125px !important;
    width: auto !important;
    transform: scaleX(-1) !important;     
    filter: drop-shadow(0px 3px 6px rgba(0, 0, 0, 0.15)) !important; 
    flex-shrink: 0 !important;
    order: 2 !important;                  
}

.owoche-bereich .eddy-speech-bubble {
    position: relative !important;
    background: white !important;
    border: 2px solid var(--fsr-muted) !important;
    padding: 0.7rem 1rem !important;
    border-radius: 12px !important;
    font-size: 1.05rem !important;
    font-weight: bold !important;
    max-width: 240px !important;
    margin-right: 12px !important;        
    margin-bottom: 40px !important;       
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    color: #1e293b !important;
    order: 1 !important;                  
}

.owoche-bereich .eddy-speech-bubble::after, 
.owoche-bereich .eddy-speech-bubble::before {
    content: '' !important;
    position: absolute !important;
    right: -10px !important;              
    top: 50% !important;
    transform: translateY(-50%) !important;
    border-style: solid !important;
}

.owoche-bereich .eddy-speech-bubble::before {
    border-width: 8px 0 8px 10px !important;
    border-color: transparent transparent transparent var(--fsr-muted) !important;
    right: -12px !important;
}

.owoche-bereich .eddy-speech-bubble::after {
    border-width: 7px 0 7px 9px !important;
    border-color: transparent transparent transparent white !important;
    right: -9px !important;
}

@media (max-width: 768px) {
    .owoche-bereich .eddy-speech-bubble { display: none !important; }
    .owoche-bereich .eddy-companion img { height: 100px !important; }
    .owoche-bereich .eddy-companion { height: 105px !important; }
}

/* INFO-BOX */
.owoche-bereich .fsr-detail-box {
    background-color: white !important;
    border: 2px solid #f1e4e5 !important;
    border-left: 8px solid var(--fsr-red) !important;
    border-radius: 16px !important;
    padding: 1.8rem !important;
    box-shadow: 0 6px 18px rgba(112, 12, 21, 0.04) !important;
    margin-top: 1.5rem !important;
    width: 100% !important;
    scroll-margin-top: 50px !important;
}

.owoche-bereich .placeholder-flex {
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
}

.owoche-bereich .fsr-placeholder-eddy {
    height: 85px !important;
    width: auto !important;
    filter: drop-shadow(0px 3px 5px rgba(0, 0, 0, 0.1)) !important;
}

.owoche-bereich .fsr-placeholder-title {
    color: var(--fsr-darkred) !important;
    margin: 0 0 0.4rem 0 !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
}

.owoche-bereich .fsr-placeholder-text {
    color: #64748b !important;
    margin: 0 !important;
    font-size: 1.3rem !important;
    line-height: 1.5 !important;
}

.owoche-bereich #fsr-detail-real-content h2#fsr-info-title {
    color: var(--fsr-darkred) !important;
    font-size: 2.1rem !important;
    margin-top: 0 !important;
    margin-bottom: 1.2rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    border: none !important;
}

.owoche-bereich .fsr-info-meta-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
    background: #fffcfc !important;
    padding: 1rem !important;
    border-radius: 8px !important;
    border: 1px dashed #fee2e2 !important;
}

.owoche-bereich .fsr-info-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    font-size: 1.3rem !important;
    color: #334155 !important;
}

.owoche-bereich .fsr-info-row .icon {
    width: 22px !important;
    height: 22px !important;
    fill: var(--fsr-red) !important;
    margin-top: 2px !important;
    flex-shrink: 0 !important;
}

.owoche-bereich .fsr-info-desc-container {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    padding: 1.25rem !important;
    border-radius: 8px !important;
    margin-bottom: 1.2rem !important;
}

.owoche-bereich .fsr-desc-heading {
    margin: 0 0 0.5rem 0 !important;
    color: var(--fsr-muted) !important;
    font-weight: 700 !important;
    font-size: 1.3rem !important;
}

.owoche-bereich #fsr-info-desc {
    color: #1e293b !important;
    font-size: 1.35rem !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

.owoche-bereich .fsr-button-container {
    margin-top: 1.2rem !important;
    display: block !important;
}

.owoche-bereich .fsr-anmelde-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background-color: var(--fsr-red) !important;
    color: white !important;
    padding: 0.8rem 1.4rem !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 10px rgba(112, 12, 21, 0.2) !important;
    transition: all 0.2s ease-in-out !important;
}

.owoche-bereich .fsr-anmelde-btn:hover {
    background-color: var(--fsr-darkred) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 14px rgba(73, 0, 7, 0.3) !important;
    color: white !important;
}

.owoche-bereich .icon-btn {
    width: 20px !important;
    height: 20px !important;
    fill: white !important;
    flex-shrink: 0 !important;
}

/* UPDATE-HINWEIS */
.owoche-bereich .owoche-update-hinweis {
    text-align: center !important;
    font-size: 1.2rem !important;
    color: var(--fsr-muted) !important;
    margin: -1rem auto 1.5rem auto !important;
    font-weight: 500 !important;
    opacity: 0.85 !important;
    font-family: 'Roboto', Arial, sans-serif !important;
}

/* STYLING FÜR DEN RAUMLINK IM ORTSFELD */
.owoche-bereich .fsr-raum-link {
    color: var(--fsr-red) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    border-bottom: 1px dashed var(--fsr-red) !important;
    transition: all 0.15s ease-in-out !important;
}

.owoche-bereich .fsr-raum-link:hover {
    color: var(--fsr-darkred) !important;
    border-bottom: 1px solid var(--fsr-darkred) !important;
    background-color: #fee2e2 !important;
    padding: 2px 4px !important;
    border-radius: 4px !important;
}