* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Uncut Sans", Helvetica, sans-serif;
}

body {
  font-family: "Uncut Sans", Helvetica, sans-serif;
  font-size: clamp(1.1rem, calc(1vw + 0.5rem), 1.5rem);
  /* Handy-freundlichere Schriftgröße */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #d6064c;
  color: #333;
}

hr {
  border: 0;
  height: 3px;
  background-image: linear-gradient(to right, #013064, #d6064c, transparent);
  margin: 5px 0;
}

/* --- HEADER (Mobil-First optimiert) --- */
header {
  max-height: 300px;
  width: 100%;
  background: url("BilderKiel/Kiel-klein.jpg");
  display: flex;
  align-items: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
  justify-content: center;
  background-color: #d6064c;
}

header img {
  width: clamp(120px, 40vw, 280px);
  /* Flexibler für kleine Handys */
  padding: 3px;
  border-radius: 8px;
}

.box-header {
  width: 96vw;
  display: flex;
  justify-content: space-between;
  margin: 10px auto;
}

/* --- HOUPTCONTAINER & INHALT (Standard: Mobilansicht untereinander) --- */
.main-container {
  display: flex;
  flex-direction: column;
  /* Handy: Alles untereinander */
  flex: 1;
  width: 100%;
  background-color: #d6064c;
}

.content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.double-box {
  display: flex;
  flex-direction: column;
  /* Handy: Text über Bild */
  width: 92%;
  border-radius: 8px;
  margin: 15px auto;
  /* Zentriert auf dem Handy */
  border: 5px solid #ccd6e0;
  background-color: #ccd6e0;
}

.box-large,
.box-small {
  width: 100%;
  padding: 15px;
  background-color: #ccd6e0;
}

.box-large {
  color: #013064;
}

.box-small img {
  width: 100%;
  /* Bilder nutzen volle Breite der kleinen Box */
  max-width: 280px;
  height: auto;
  display: block;
  margin: 10px 0;
}

/* --- SIDEBAR (Standard: Mobilansicht) --- */
aside.sidebar,
sidebar {
  width: 92%;
  /* Volle Breite auf dem Handy */
  margin: 15px auto;
  text-align: left;
  background-color: #d6064c;
  padding: 10px;
  order: 2;
  /* Verschiebt den Countdown auf dem Handy unter die News-Boxen */
}

.sidebar img {
  width: clamp(120px, 50vw, 230px);
  padding: 10px 0;
  background: #d6064c;
}

.sidebar hr {
  border: 0;
  height: 3px;
  background-image: linear-gradient(to right, #c907de, #036de5, #03e58e, #f2fa0d, #e9b109, #fa8282, transparent);
}

/* Countdown */
.count-container {
  background-color: #013064;
  border-radius: 8px;
  padding: 10px;
  width: 100%;
}

.countdown-containertag,
.countdown-container {
  display: flex;
  font-weight: bold;
  background-color: #013064;
  color: #ccd6e0;
}

.time-box {
  background-color: #013064;
  color: #ccd6e0;
}

.number {
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  font-weight: bold;
}

#countdown-text {
  color: white;
  padding: 10px 0;
}

/* --- NAVIGATION (Standard: Mobil / Hamburger) --- */
.nvbar {
  width: 100%;
  background-color: #d6064c;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: none;
  /* Versteckt auf Handy bis Klick */
  flex-direction: column;
  width: 100%;
  background-color: #d6064c;
}

.nav-item {
  padding: 15px 20px;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid #e4125f;
  font-size: 1.1rem;
  display: block;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: flex;
  align-items: center;
  padding: 20px;
  cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: white;
  height: 3px;
  width: 25px;
  position: relative;
  transition: all 0.3s;
}

.nav-toggle-label span::before {
  content: '';
  top: -8px;
  position: absolute;
}

.nav-toggle-label span::after {
  content: '';
  bottom: -8px;
  position: absolute;
}

.nav-toggle:checked~.nav-container {
  display: flex;
  /* Öffnet Menü bei Klick */
}

footer {
  background-color: #d6064c;
  color: #013064;
  padding: 20px;
  text-align: center;
  margin-top: auto;
  font-size: 0.8rem;
}


/* --- DESKTOP-ANSICHT (Ab PC / Tablet im Querformat) --- */
@media screen and (min-width: 768px) {

  .main-container {
    flex-direction: row;
    /* Sidebar links, Inhalt rechts */
    align-items: flex-start;
  }

  aside.sidebar,
  sidebar {
    width: 230px;
    /* Feste Breite nur auf Desktop */
    margin-right: 20px;
    margin-left: 20px;
    order: 0;
    /* Sidebar wieder nach links */
  }

  .double-box {
    flex-direction: row;
    /* Text links, Bild rechts */
    width: 96%;
    margin-left: 20px;
  }

  .box-large {
    flex: 0 0 calc(66% - 10px);
  }

  .box-small {
    flex: 0 0 calc(33% - 10px);
  }

  /* Desktop-Menü (Kein Hamburger) */
  .nav-toggle-label {
    display: none;
  }

  .nvbar {
    max-width: 1200px;
    margin: 0 auto 10px auto;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgb(189, 180, 237);
  }

  .nav-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
  }

  .nav-item {
    border-bottom: none;
    padding: 10px 15px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: clamp(0.8rem, calc(0.5rem + 1vw), 1.4rem);
  }

  .nav-item:hover {
    color: #d6064c;
    background-color: #013064;
    border-radius: 8px;
  }
}

/* <-- HIER FEHLTE DIE SCHLIESSENDE KLAMMER FÜR MEDIA-QUERY */