/* Globale Stile */

@font-face {
    font-family: 'Inter'; /* Name, den du in deinem CSS verwendest */
    src: url('../css/fonts/Inter.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Wichtig für die Performance */
}

@font-face {
    font-family: 'Inter Bold'; /* Name, den du in deinem CSS verwendest */
    src: url('../css/fonts/Inter.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap; /* Wichtig für die Performance */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #121212;
    background-image: url("../img/background-fullsize.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* Bild bleibt fixiert */
    color: #eee;
    margin: 0;
    line-height: 1.6;
}

.container {
   /* max-width: 960px; */
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
    background-color: #1e1e1ea2; /* Etwas helleres Grau für den Container */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255,255,255,0.05); /* Sehr dezenter weißer Schatten */
}

section {
    margin-bottom: 20px; /* Erhöhter Außenabstand nach unten */
    padding: 20px; /*Innenabstand in den Sections*/
    border-radius: 8px; /*abgerundete Ecken für die Sections*/
    background-color: #1e1e1ea2;
}

h1, h2, h3 {
    font-family: 'Inter Bold', sans-serif;
    color: #ffc74c;
    margin-bottom: 0.5em;
}

h1 {
    margin-bottom: 1em; /* Erhöhter Außenabstand nach unten (1em = Schriftgröße) */
}

h2 {
    margin-top: 0em; /*Abstand nach oben*/
    margin-bottom: 0.8em; /*angepasster Abstand nach unten*/
}

p {
    margin-bottom: 1.2em; /* Erhöhter Außenabstand nach unten */
}

.blog-preview{
  margin-bottom: 30px;
  padding-bottom: 15px;
}

a {
    color: #ffc74c; /* Primärfarbe für Links */
    text-decoration: dotted underline; /* Gepunktete Unterstreichung */
    transition: color 0.3s ease; /* Sanfter Farbwechsel bei Hover */
}
 
a:hover {
    color: #fff; /* Etwas dunkleres Orange bei Hover */
}

nav {
    background-color: #1e1e1ea2; /* Dunklerer Hintergrund für die Navigation */
    padding: 10px;
    border-bottom: 1px solid #ffc74c;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-radius: 8px;
}

nav.sticky {
    position: fixed;
    width: 940px;
    top:0;
    z-index: 100;
    background-color: #1e1e1eee;
}

.nav-links {
    display: flex;
}

.nav-links a {
    margin-right: 20px; /* Abstand zwischen den normalen Navigationslinks */
    color: #ffffff;
    text-decoration: none;
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-right img{
    height: 25px;
    /* margin-right: 10px; */
    margin-top: 7px;
}

.live-button {
    display: flex;
    align-items: center;
    background-color: #1d1d1db4; /* Beispiel-Farbe */
    color: #ffc74c;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.live-button:hover {
    background-color: #1d1d1db4; /* Beispiel-Farbe */
    color: #ffc74c;
}

.live-dot {
    width: 10px;
    height: 10px;
    background-color: red;
    border-radius: 50%;
    margin-right: 8px;
    animation: blinker 1s linear infinite; /* Animation hinzufügen */
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}


nav a {
    margin: 0 10px; /*Abstand zwischen den Navigationslinks*/
    text-decoration: none; /*Entfernt die Standard-Unterstreichung im Nav*/
    padding: 5px 10px;
    border-radius: 5px;
}

nav a:hover {
  background-color: #eeeeee07;
}

.logo {
    width: 600px;
    height: auto;
    display: block; /* Verhindert ungewollten Abstand unter dem Bild */
    margin: -100px auto -70px auto; /* Zentriert das Logo */
}

/* ... dein bisheriges CSS ... */

.stream-time-center {
    display: flex;
    justify-content: center;
    width: 100%;
}

.streamplan {
    margin-bottom: 20px;
  }

.week-navigation {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.nav-button {
    padding: 8px 15px;
    background-color: #ffffff0c;
    color: #ffc74c;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    margin-right: 10px; /* Fügt Abstand zwischen den Buttons hinzu */
}

.nav-button:hover {
    background-color: #ffffff0c;
    color: white;
}

.current-week {
    font-weight: bold;
    margin-left: 10px; /* Fügt Abstand zum letzten Button hinzu */
}

/* Streamplan Grid */
#streamplan-grid {
    display: grid;
    grid-template-columns: 100px auto; /* Spalte für Wochentage, Spalte für Stream-Slots */
    border: 1px solid #ddd;
    overflow: hidden;
    border-radius: 5px;
}

.streamplan-header {
    position: sticky;
    top: 0;
    z-index: 10;
    grid-column: 1 / -1; /* Header über die gesamte Breite */
    display: grid;
    grid-template-columns: 100px auto; /* Gleiche Spaltenaufteilung wie im Hauptgrid */
    gap: 1px;
    
}

.streamplan-row {
    display: contents; /* Lässt die Zeile sich wie ihre Kinder verhalten */
}

#prev-week {
    background-color: #ffffff0c;
    color: white;
}

#next-week {
    background-color: #ffffff0c;
    color: white;
}

#prev-week:hover {
    background-color: #ffffff1c;
}

#next-week:hover {
    background-color: #ffffff1c;
}

.day-label {
    padding: 10px;
    text-align: center;
    font-weight: bold;
    position: relative;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 2;
    box-shadow: 6px 0px 5px #00000047;
    
}

.streamplan-row.today .day-label{
    background-color: #ffffff0c;
    border-right: solid 2px #ffc74c;
    
}


.hour-label {
    padding: 5px;
    text-align: left; /* Uhrzeiten linksbündig ausrichten */
    font-size: 0.8em;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: left; /* Inhalt auch linksbündig ausrichten */
}

.time-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: rgba(255, 255, 255, 0);
    border-bottom: 0px solid #ddd;
    display: grid;
    box-shadow: 0px 7px 5px #00000047;
}

.stream-slots {
    display: grid;
    position: relative;
    z-index: 1;
    border-left: 0px solid #ddd;
    grid-template-rows: 1fr;
    grid-auto-rows: 60px;
    grid-template-columns: repeat(6, 1fr); /* Wichtig für die korrekte Darstellung der Streams */
    background-color: #12121263;
}

.stream-entry {
    min-height: 70px;
    z-index: 2;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    /* height: 100%; */
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 5px;
}

.stream-entry.filled {
    background-color: #0e0e10;
    color: white;
    border-radius: 5px;
    /*padding: 5px;*/
}

.stream-entry.filled .stream-info{
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 85%;
    padding: 5px;
    padding-top: 7px;
    overflow: hidden;
    white-space: nowrap;
}

.stream-entry.filled .stream-time{
    color: rgb(185, 185, 185);
    margin-right: 1rem;
    padding-left: .3rem;
    border-left: 2px solid rgb(255, 199, 76) !important;
}

.stream-entry a {
    color: white;
    font-weight: 200;
}

.stream-info {
    font-size: 0.8em;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 75%;
    height: 100%;
}

.stream-time {
    display: block;
    color: #ffc74c;
}

.stream-title {
    display: block;
    font-weight: bold;
    text-overflow: ellipsis;
    overflow: hidden;
    width: 100%;
}

.stream-category {
    display: block;
    font-weight: bold;
}

.stream-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 25%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
    max-width: 50px;
    border-radius: 0px 5px 5px 0px;
}

.no-stream {
    color: #999;
    grid-column: 1 / -1;
    text-align: center;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.datumlabel {
    color: #cccccc;
}

.today .day-label .datumlabel {
    color:#ffc74c !important;
}

/* ... dein bisheriges CSS ... */

.top-clips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.clip {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    height: 290px;
}

.clip a {
    color: #999;
    text-decoration: dotted !important;
}

.clip a:hover {
    text-decoration: underline;
}

.clip img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.clip-content{
    display: flex;
    flex-direction: column;
    height: 100%;
}

.clip small {
    color: #999;
    margin-bottom: 5px;
}

.clip h3 {
    flex-grow: 0;
}

.clip-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1; /* Beschränke den Titel auf eine Zeile */
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2em; /* Setze die Zeilenhöhe auf das 1.2-fache der Schriftgröße */
    max-height: 1.2em; /* Maximale Höhe des Titels = Zeilenhöhe * Anzahl der Zeilen */
}

.clip-title a{
    text-overflow: ellipsis;
    overflow: hidden;
    width: 100%;
    text-decoration: none;
    color: #ffc74c;
}

.clip-title a:hover{
    text-decoration: none;
    color: #ffffff;
}

.clip-views {
    margin-top: auto;
}

/* ... restliches CSS ... */

/* ... dein bisheriges CSS ... */

.youtube-videos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.youtube-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px; /* Abstand zwischen den Reihen */
}

.youtube-video {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    flex-basis: calc(33% - 10px); /* Breite der Video-Container */
    color: #999;
}

.youtube-img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.youtube-video a {
    text-decoration: none;
}

/* ... restliches CSS ... */

footer {
    display: flex;
    flex-wrap: wrap; /* Umbruch, falls die Elemente zu breit werden */
    justify-content: space-around; /* Platz um die Elemente herum */
    align-items: center; /* Vertikal zentrieren */
    padding: 20px;
    color: #fff;
    margin-top: auto; /* Footer an den unteren Rand schieben */
    border-top: 1px solid #ffc74c;
    background-color: #1e1e1ea2;
    border-radius: 8px;
}

.footer-links {
    margin-bottom: 10px; /* Abstand zu den Icons */
    text-align: center; /* Zentriert die Links, falls sie umbrechen */
}

.footer-links a {
    color: #ffc74c;
    text-decoration: none;
    margin: 0 10px; /* Abstand zwischen den Links */
}

.footer-links a:hover {
    text-decoration: underline;
}

.social-icons {
    text-align: center;
}

.social-icons a {
    display: inline-block;
    margin: 0 10px;
    font-size: 0px;
}

.social-icons img {
    height: 24px;
}

footer p {
    width: 100%; /* Volle Breite, damit es immer unten steht */
    text-align: center;
    color: #fff;
}

.social-bar {
    position: fixed;
    top: 50%;
    left: 0; /* Oder right: 0; für die rechte Seite */
    transform: translateY(-50%);
    background-color: #1818182f;
    padding: 10px;
    border-radius: 0 5px 5px 0; /* Abgerundete Ecken rechts */
    z-index: 100; /* Stelle sicher, dass die Leiste über anderen Elementen liegt */
}

.social-bar a {
    display: block;
    margin-bottom: 10px;
}

.social-bar img {
    height: 24px;
}

/* Responsives Design (Beispiel für kleinere Bildschirme) */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    nav {
        text-align: center; /* Zentriert die Navigation auf kleineren Bildschirmen */
    }
    .logo{
      width: 80px;
    }
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive Grid */
    grid-gap: 20px;
}

.highlight img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.blog-preview{
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}