body {
  margin: 0;
  font-family: sans-serif;
  line-height: 1.6;
  color: #222;
  background: #f5f5f5;
  position: relative;
}

footer {
  background: #F18A00; /* ÖDP-Orange */
  color: white;
  text-align: center;
  padding: 1.5rem 1rem;
}

header {
  background: #F18A00;
  color: white;
  padding: 1.5rem 1rem;
  display:flex;
  justify-content: center;
}

.header-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  width: 60px;
  height: auto;
}

.header-text h1 {
  margin: 0;
  font-size: 1.8rem;
}

.header-text p {
  margin: 0;
  font-size: 1rem;
}

main {
  max-width: 800px;
  margin: auto;
  padding: 2rem 1rem;
  background: white;
}

section {
  margin-bottom: 2rem;
}

h1, h2 {
  margin-top: 0;
}

ul {
  padding-left: 1.5rem;
}

footer p {
  margin: 0;
  font-size: 0.9em;
}

/* Slogan-Kasten */
.slogan-box {
  position: fixed;
  bottom: 2rem;
  right: 1rem;
  background: #F18A00;
  color: white;
  padding: 0.8rem 1.2rem;
  font-weight: bold;
  transform: rotate(-5deg);
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
  border-radius: 0.3rem;
  max-width: 200px;
  text-align: center;
}

.slideshow {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: auto;
  aspect-ratio: 3 / 2;
  margin: 2rem auto;
  overflow: hidden;
}

.slideshow a {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: fade 24s infinite;
  cursor: pointer;
  pointer-events: none;
}

.slideshow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slideshow a:nth-child(1) { animation-delay: 0s; }
.slideshow a:nth-child(2) { animation-delay: 4s; }
.slideshow a:nth-child(3) { animation-delay: 8s; }
.slideshow a:nth-child(4) { animation-delay: 12s; }
.slideshow a:nth-child(5) { animation-delay: 16s; }
.slideshow a:nth-child(6) { animation-delay: 20s; }

@keyframes fade {
  0%   { opacity: 0; pointer-events: none; }
  0.1% { opacity: 1; pointer-events: auto; }
  16.6% { opacity: 1; pointer-events: auto; }
  16.7% { opacity: 0; pointer-events: none; }
  100% { opacity: 0; pointer-events: none; }
}


/* Auf kleinen Geräten ausblenden */
@media (max-width: 600px) {
  .slogan-box {
    display: none;
  }
  .logo {
    display: none;
  }
}

/* Fortschrittsbalken mit eigenem Maximalwert */
:root {
  --progress-height: 16px;
  --progress-radius: 999px;
  /* --progress-bg: #e5e7eb; */
  --progress-bg: #3b82f6;
  --progress-fill: #F18A00;
  --progress-fill-2: #F18A00; /*#2563eb;*/
}

.progress {
  position: relative;
  height: var(--progress-height);
  background: var(--progress-bg);
  border-radius: var(--progress-radius);
  overflow: hidden;
}

.progress::before {
  content: "";
  position: absolute;
  inset: 0;
  /* hier wird dynamisch gerechnet */
  width: calc((var(--value) / var(--max)) * 100%);
  background: linear-gradient(90deg, var(--progress-fill), var(--progress-fill-2));
  transition: width 300ms ease;
}

.progress__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 12px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #fff;
  text-shadow: 0 1px 1px rgb(0 0 0 / .35);
  user-select: none;
}

@media (prefers-color-scheme: dark) {
  :root { --progress-bg: #111827; }
}

.text-container {
  position: relative;
}

.didit {
  position: absolute;
  top: 30px;
  left: 50%;
  z-index: 2;
  padding: 30px 30px;
  background: #fff;
  border: 2px solid #d0a000;
  border-radius: 6px;
  transform: translateX(-50%) rotate(-6deg);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  font-weight: bold;
  font-size: 16pt;
}

/* Größenvarianten – optional nutzbar */
.progress--sm { --progress-height: 10px; }
.progress--lg { --progress-height: 24px; }

/* News-Container für Beiträge mit Text und Bild nebeneinander */
.news-container {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.news-text {
  flex: 1;
}

.news-image {
  flex-shrink: 0;
}

.news-image a {
  display: block;
}

.news-image img {
  max-width: 200px;
  height: auto;
  cursor: pointer;
  border: 1px solid #ccc;
}

/* Auf schmalen Displays untereinander */
@media (max-width: 600px) {
  .news-container {
    flex-direction: column;
  }

  .news-image img {
    max-width: 100%;
  }
}

/* Link-Umschaltung Desktop/Mobile */
.mobile-link {
  display: none;
}

@media (max-width: 768px) {
  .desktop-link {
    display: none;
  }
  .mobile-link {
    display: inline;
  }
}

