/*Main Stylesheet*/

:root {
    --bg-color: #f1f5f9;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --accent-htl: #16a6f9;
    --accent-hak: #f97316;
    --highlight: #2563eb;
}

html {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* --- HEADER --- */
header {
    background-color: #ffffff;
    color: #0f172a;
    padding: 0.8rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid #cbd5e1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    z-index: 10;
    height: 100px;
    box-sizing: border-box;
}

/* Logo Styling */
#header-logo {
    height: 100%;
    max-height: 80px;
    width: auto;
    object-fit: contain;
    margin-right:1rem;
}
#sponsor-carousel {
    position: relative;
    overflow: hidden;

    /* Smooth Fade links & rechts */
    -webkit-mask-image: linear-gradient(to right, 
        transparent 0%, 
        black 10%, 
        black 90%, 
        transparent 100%);
    
    mask-image: linear-gradient(to right, 
        transparent 0%, 
        black 10%, 
        black 90%, 
        transparent 100%);
}

#sponsor-carousel {
    flex: 1;
    display: flex;
    align-items: center;
    height: 100%;
    overflow: hidden;
    margin: 0 2rem;
    position: relative;
}

.sponsor-track {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: max-content;
    animation: sponsor-marquee 30s linear infinite;
    will-change: transform;
}

.sponsor-item {
    width: 220px;
    height: 60px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.85;
}

@keyframes sponsor-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Container für Wetter & Uhr rechts */
.header-right {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-left:1rem;
}

/* Wetter Widget */
#weather-widget {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: right;
}

#weather-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    width: 50px;
    text-align: center;
}

#weather-temp {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Uhr */
.clock-widget {
    text-align: right;
}

#clock {
    font-size: 2.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

#date-display {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* --- MAIN LAYOUT --- */
main {
    flex: 1;
    padding: 2rem 3rem;
    display: grid;
    grid-template-columns: 13fr 7fr;
    gap: 2rem;
    min-height: 0;
    height: auto;
}

/* --- LINKS: SLIDESHOW --- */
#slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    min-height: 0;
    min-width: 0;
}

.slide-card {
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--card-bg);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
    display: flex;
    flex-direction: column;
}

.slide-card.active {
    opacity: 1;
    transform: translateY(0);
    z-index: 2;
}

.slide-type-static {
    background: #000000;
    padding: 0;
}

.static-slide-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

/* Typ: NEWS Slide */
.slide-type-news {
    position: relative;
}

.news-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.78);
}

.news-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.58), rgba(0,0,0,0.08) 60%, transparent 85%);
}

.news-title {
    display: inline-block;
    color: #ffffff;
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    line-height: 1.15;
    max-width: 95%;
    padding: 0.25rem 0.6rem;
    border-radius: 0.5rem;
    background: rgba(15, 23, 42, 0.48);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

.news-text {
    font-size: 1.4rem;
    line-height: 1.4;
    color: #f8fafc;
    margin: 0;
    max-width: 90%;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
}

/* --- RECHTS: LISTE --- */
.list-section {
    overflow: auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    margin-bottom: 1rem;
}

.event-item {
    background-color: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 1rem);
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
    border-left: 4px solid transparent;
    flex-shrink: 0;
}

.event-date {
    background: #e2e8f0;
    padding: clamp(0.4rem, 1vw, 0.5rem) clamp(0.6rem, 1vw, 0.8rem);
    border-radius: 0.5rem;
    text-align: center;
    min-width: 70px;
    flex-shrink: 0;
}

.day {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
}

.month {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #475569;
}

/* Schultyp Farben */
body.type-htl header {
    border-bottom-color: var(--accent-htl);
}

body.type-htl .event-item {
    border-left-color: var(--accent-htl);
}

body.type-hak header {
    border-bottom-color: var(--accent-hak);
}

body.type-hak .event-item {
    border-left-color: var(--accent-hak);
}

body.static-mode main {
    grid-template-columns: 1fr;
}

body.static-mode .list-section {
    display: none;
}
