﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-size: 1rem;
    font-family: "Futura Lt BT", Arial, sans-serif;
    color: #494949;
    background-color: #FFFFFF;
    min-height: 100vh;
}

h1 {
    font-size: 1.5rem;
    font-family: "Futura Md BT", Arial, sans-serif;
    color: #003d6e;
    padding-bottom: 1rem;
    
}

h2 {

    font-family: "Futura Md BT", Arial, sans-serif;
    color: #003d6e;
}

#mainbox {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 100vh;
    background-color: #f5f5f5;
}

#leftbox {
    flex: 3;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

#content {
    flex: 1;
    overflow: hidden;
    margin-bottom: 1rem;
	margin-top: 2rem;
}

#bottombox {
    min-height: 100px;
    width: 100%;
}
#bottombox h1 {
    font-size: 4rem;
}
#bottombox ul {
    font-size: 2rem;
}
#rightbox {
    flex: 1;
    max-width: 450px;
    background-color: #003d6e;
    padding: 1rem;
    color: #FFFFFF;
}

/* Responsive tables */
.termine, .supplierungen {
    width: 100%;
    table-layout: fixed;
}

.termine tr td, .supplierungen tr td {
    padding: 0.5rem;
    word-wrap: break-word;
}

.termine tr:nth-child(even) td,
.supplierungen tr:nth-child(even) td {
    background-color: #e5e5e5;
}

/* Menu styles */
#menue {
    margin-bottom: 2rem;
}

.menue1, .menue2 {
    width: 100%;
    border-spacing: 0;
    color: #FFFFFF;
}

.menue1 tr td:first-child,
.menue2 tr td:first-child {
    font-family: "Futura Md BT", Arial;
    font-size: 1.5rem;
    padding: 0.5rem;
}

/* Weather widget */
#wetter {
    margin-bottom: 2rem;
}

#wetter_temp p {
    margin: 0.5rem 0;
}

#temp {
    font-family: "Futura Md BT", Arial;
    font-size: 2rem;
}

/* Transport widget */
[data-hfs-widget] {
    width: 100%;
    margin: 1rem 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    #mainbox {
        flex-direction: column;
    }
    
    #rightbox {
        max-width: 100%;
        order: -1;
    }
    
    #leftbox, #rightbox {
        padding: 0.5rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 0.9rem;
    }
    
    h1 {
        font-size: 1.2rem;
    }
    
    .termine tr td, .supplierungen tr td {
        padding: 0.3rem;
        font-size: 0.8rem;
    }
    
    .menue1 tr td:first-child,
    .menue2 tr td:first-child {
        font-size: 1.2rem;
    }
}

/* Utility classes */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* Color indicators */
.EntfallKugel, .SupplierKugel, 
.ZusatzUnterrichtKugel, .RaumaenderungKugel {
    display: inline-block;
    height: 14px;
    width: 14px;
    border-radius: 50%;
}
/* Add this to your CSS */
.lyr_flexScrolledContainer {
    
    overflow-y: hidden; /* Hides extra content */
    position: relative; /* Needed for potential fade effect */
}

/* Optional: Add fade effect at bottom */
.lyr_flexScrolledContainer::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
}
.lyr_atomList li:nth-child(n+4) { /* Show only first 4 items, change number as needed */
    display: none;
}
/*.bx-window {
		max-height:600px;

    
}*/
.lyr_sqWidgetHeader{
	display:none;
}
.lyr_miniStboardHeader{
	display:none;
}
.lyr_atomList,
.lyr_atomList p *,
.lyr_atomList div *{
	font-size: 45px;
}
.lyr_atomList{
	display:grid;
}
.lyr_sqResEquivStation{
	display:none;
}
.lyr_sqResTimeCol{
	width: 30% !important;
}
.lyr_sqResStopWrapper{
	overflow-x:visible;
	min-height:100%;
}
.lyr_atomProductLabel{
	padding-top:20px !important;
	line-height:unset !important;
}
.lyr_sqCaption, .lyr_atomDateHeadline{
	display:none;
}
.lyr_miniStboardHeader{
	display:none;
}
.lyr_sqResField{
	margin-top:20px !important;
	padding-top:20px !important;
}
.lyr_sqResButtonWrapper{
	overflow-x: visible !important;
}
.lyr_sqResStopWrapper{
		overflow-x: visible !important;

}
.news-grid-container{

         
  
  width: 100%;
  margin: 0;  
	
}
.news-grid-container img{
	height: 100%;
	width: 65%;
	object-fit: contain;
	flex: 0 0 50%;

}

/* Clear any floats if not using flexbox */
.news-grid-container::after {
  content: "";
  display: table;
  clear: both;
}
.newscontainer{
	overflow:hidden;
	padding-right:1rem;
	flex: 0 0 50%;
}
.newscontainer h2{
	margin-bottom:10px;
	font-size:3.5rem;
}
.newscontainer p{
	font-size: 1.9rem;
	overflow:hidden;
	
}
.newstext{
	margin-bottom:1em;
}

#sponsoren .bx-window{
	height: 300px;
	overflow:visible !important;
	margin:auto;
	
}
#sponsoren .bx-window ul li{
	
	margin:auto;
	
}
#sponsoren {
	margin: 1rem auto;
}
#sponsoren h1{
	color:white;
}

.EntfallKugel { background-color: #FF0000; }
.SupplierKugel { background-color: #FFFF00; }
.ZusatzUnterrichtKugel { background-color: #00FF00; }
.RaumaenderungKugel { background-color: #0000FF; }