:root {
        --primary-color: #d10c4c;
        --secondary-color: #2b7a99;
        --background-color: #000;
        --text-color: #fff;
        --menu-bg: rgba(0, 0, 0, 0.7);
        --card-bg: rgba(0, 0, 0, 0.7);
      }

      /* Base Styles */
      *,
      body {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
      }

      html, body {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        background: var(--background-color); /* Hintergrundfarbe setzen */
        position: fixed;
        overflow: hidden;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      }

      .header, .footer {
        width: 100%;
        height: 60px;
        background: var(--menu-bg);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        color: var(--text-color);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 100;
        position: fixed;
      }

      .header {
        top: 0;
        border-bottom: 2px solid rgba(255, 255, 255, 0.2);
      }

      .header-text-container {
        text-align: center;
      }

      .footer {
        bottom: 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
      }

      .action-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.action-button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: transform 0.2s;
  touch-action: manipulation;
  border: none;
}

.action-button:active {
  transform: scale(0.95);
}

.prev { background: var(--primary-color); }
.next { background: #1a9961; }
.reset { background: #cc9900; }
     .menu-button {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 101;
  touch-action: manipulation;
  border: none;
  overflow: visible;
}

.menu-button img {
  transition: transform 0.3s ease;
  will-change: transform;
}

.menu-button.open img {
  transform: rotate(180deg);
}
      .menu {
        position: absolute;
        left: -30px;
        top: 0;
        width: 280px;
        height: 100%;
        background: var(--menu-bg);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        color: var(--text-color);
        transform: translateX(-280px);
        transition: transform 0.3s ease;
        z-index: 99;
        padding: calc(100px + env(safe-area-inset-top, 0px)) 20px calc(20px + env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
      }

      .menu.open {
        transform: translateX(0);
      }

      .menu-item {
         all: unset; /* entfernt standard Button-Styling */
   
        display: block;
        padding: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        color: inherit;
      }

      .menu-item:hover {
        background: rgba(255, 255, 255, 0.15);
      }

      .submenu {
        display: none;
        padding-left: 20px;
      }

      .submenu-indicator {
        width: 15px;
        height: auto;
        margin-left: 8px;
        vertical-align: middle;
        cursor: pointer;
      }

      .menu-item.open .submenu {
        display: block;
      }

      /* Centered container with padding around */
      .swipe-container {
        width: 100%;
        height: calc(100vh - 120px); /* Adjusted height to account for header and footer */
        flex: 1;
        position: relative;
        touch-action: pan-y pinch-zoom;
        perspective: 1000px;
        overflow: hidden;
        margin-top: 60px; /* Offset for the header */
        margin-bottom: 60px; /* Offset for the footer */
        padding: 0 10px; /* Some padding on the sides */
      }

      .card {
        position: absolute;
        width: 100%;
        height: 100%;
        background-size: contain; /* Passt das Bild an, ohne es zu beschneiden */
        background-repeat: no-repeat;
        background-position: center;
        border-radius: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        transition: transform 0.3s ease-out;
        overflow: hidden; /* Verhindert, dass Bild über den Container hinausgeht */
        background-color: rgba(0, 0, 0, 0.5); /* Hintergrundfarbe der Karten */
      }
      .card img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Stellt sicher, dass das Bild den Container immer ausfüllt */
        border-radius: 20px; /* Gleicher Radius wie der Container */
      }
      .card-info {
        position: absolute;
        bottom: 20px;
        left: 20px;
        color: white;
        z-index: 1;
      }

      .card-title {
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 5px;
      }

      .card-description {
        font-size: 16px;
        opacity: 0.8;
      }

      .neon-text {
        text-shadow: 0 0 10px #fff,
                     0 0 20px #fff,
                     0 0 30px var(--primary-color),
                     0 0 40px var(--primary-color);
        font-size: 1.5em;
        font-weight: bold;
      }

      .subtitle {
        font-size: 0.8em;
        opacity: 0.8;
        margin-top: 5px;
        text-align: center;
      }

      .content-page {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        background: var(--background-color); /* Hintergrundfarbe setzen */
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 200;
        padding: calc(80px + env(safe-area-inset-top, 0px)) 20px calc(80px + env(safe-area-inset-bottom, 0px));
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
      }

      .content-page.active {
        transform: translateX(0);
      }

     .content-card {
  padding: 20px;
  border-radius: 20px;
  background: var(--card-bg);
  color: var(--text-color);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  text-shadow: 0 0 5px rgba(0,0,0,0.5);
  line-height: 1.6;
}

.content-card p {
  margin-bottom: 1.2em;
}

.content-card h3 {
  margin-top: 2em;
}      }

      .gallery {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
      }

      .gallery-image {
        width: 150px;
        height: 150px;
        object-fit: cover;
        cursor: pointer;
        transition: transform 0.3s ease;
      }

      .lightbox {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        justify-content: center;
        align-items: center;
        z-index: 1000;
      }

      .lightbox img {
        max-width: 90%;
        max-height: 90%;
        object-fit: contain;
      }

      .lightbox-close {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 24px;
        color: white;
        cursor: pointer;
      }

      .back-button {
        position: absolute;
        left: 20px;
        top: calc(20px + env(safe-area-inset-top, 0px));
        z-index: 201;
        cursor: pointer;
        padding: 10px;
        transition: transform 0.3s ease;
        touch-action: manipulation;
        background: none;
        border: none;
        color: var(--text-color);
        font-size: 16px;
      }

      .content-card ol {
        list-style: inside;
      }

      .content-card img {
        width: 100%;
        height: auto;
        margin: 10px 0;
      }

      .footer-content {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.6);
        text-align: center;
        margin-top: 10px;
      }

      .shadow-animate {
        animation: shadowAnimation 1.5s infinite alternate;
      }

      @keyframes shadowAnimation {
        0% {
          box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
        }
        100% {
          box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.4);
        }
      }

      @media (max-width: 768px) {
        .card {
          width: 90%;
          height: 90%;
          margin: 10px;
        }
      }

      /* Additional styles for the new content */
      .intro-text {
        background: var(--card-bg);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 20px;
        padding: 1.5rem;
        margin: 1rem 0;
        line-height: 1.6;
        color: var(--text-color);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
      }

      .intro-text ul {
        list-style-type: none;
        margin: 1rem 0;
        padding: 0;
      }

      .intro-text li {
        padding: 0.3rem 0;
        opacity: 0.9;
      }

      .container {
        max-width: 800px;
        margin: 0 auto;
        padding: 1rem;
        touch-action: pan-y;
        position: relative;
        overflow-y: auto;
        height: calc(100vh - 60px);
        -webkit-overflow-scrolling: touch;
      }

      .feed-item {
        background: var(--card-bg);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 20px;
        padding: 1rem;
        margin-bottom: 1rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        color: var(--text-color);
      }

      .feed-item h2 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        color: var(--text-color);
      }

      .feed-item .source {
        color: rgba(255,255,255,0.7);
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
      }

      .feed-item .date {
        color: rgba(255,255,255,0.7);
        font-size: 0.8rem;
      }

      .feed-item a {
        color: inherit;
        text-decoration: none;
      }

      .feed-item:hover {
        transform: translateY(-2px);
        transition: transform 0.2s ease;
      }

      #loading {
        text-align: center;
        padding: 2rem;
        color: var(--text-color);
      }

      .error {
        color: #ff4444;
        padding: 1rem;
        background: rgba(255,68,68,0.2);
        border-radius: 20px;
        margin-bottom: 1rem;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
      }

      .parties {
        background: var(--card-bg);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 20px;
        padding: 1rem;
        margin-bottom: 1rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
      }

      .parties h2 {
        color: var(--text-color);
        margin-bottom: 1rem;
      }

      .party-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
      }

      .party-item {
        background: rgba(255,255,255,0.1);
        padding: 0.8rem;
        border-radius: 10px;
        text-align: center;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
      }

      .party-item a {
        color: var(--text-color);
        text-decoration: none;
        font-weight: 500;
      }

      .refresh-button {
        background: var(--primary-color);
        color: var(--text-color);
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 10px;
        cursor: pointer;
        margin: 0 auto 1rem auto;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        width: fit-content;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
      }

      .refresh-button:hover {
        background: #e51355;
      }

      @keyframes spin {
        to { transform: rotate(360deg); }
      }

      .refresh-icon {
        width: 16px;
        height: 16px;
      }

      .spinning {
        animation: spin 1s linear infinite;
      }

      .poll-container {
        background: var(--card-bg);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 20px;
        padding: 1.5rem;
        margin: 1rem 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
      }

      .poll-container h2 {
        color: var(--text-color);
        margin-bottom: 1rem;
      }

      .poll-bar {
        background: rgba(255,255,255,0.1);
        border-radius: 10px;
        margin: 0.5rem 0;
        padding: 0.5rem;
        position: relative;
        overflow: hidden;
      }

      .poll-bar-fill {
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        border-radius: 10px;
        opacity: 0.3;
        transition: width 1s ease-out;
      }

      .poll-bar-content {
        display: flex;
        justify-content: space-between;
        position: relative;
        z-index: 1;
      }

      .poll-source {
        font-size: 0.8rem;
        color: rgba(255,255,255,0.7);
        margin-top: 1rem;
        text-align: right;
      }

      .pull-to-refresh {
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: -60px;
        left: 0;
        right: 0;
        background: rgba(0,0,0,0.1);
        color: var(--text-color);
      }

      .pull-to-refresh svg {
        width: 24px;
        height: 24px;
        margin-right: 8px;
      }
      .lead {
  font-size: 1.1em;
  opacity: 0.85;
  margin-bottom: 1em;
  font-weight: 500;
}
.menu-footer {
  margin-bottom: env(safe-area-inset-bottom, 20px);
  padding-bottom: 20px;
  display: block;
  text-align: center;
  font-size: 0.8em;
  opacity: 0.7;
}