@import url('https://fonts.googleapis.com/css?family=Lato');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */

:root {
  /* Light Mode */
  --color-bg: #ffffff;
  --color-text: #000000;

  /* Dark Mode */
  --color-bg-dark: #151515;
  --color-text-dark: #ffffff;

  /* Accent */
  --color-accent: #7a57ed;
  --color-muted: #9f92cc;

  /* RGB variants for transparency (required for rgba with dynamic values) */
  --color-text-rgb: 0, 0, 0;
  --color-text-dark-rgb: 255, 255, 255;
  --color-muted-rgb: 159, 146, 204;
  --color-accent-rgb: 122, 87, 237;
}

/* ============================================================
   RESET & GLOBALS
   ============================================================ */

html, body {
  margin: 0;
  padding: 0;
}
a {
  color: var(--color-accent);
}

/* Accessibility: Skip Link */
.skip-link {
  display: none;
}

/* Accessibility: Screen Reader Only Content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Accessibility: Focus Styles */
button:focus,
a:focus,
input:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.navanchor:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ============================================================
   BASE STYLES (shared across all screen sizes)
   ============================================================ */

* {
  scrollbar-width: 5px;
}

*::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

*::-webkit-scrollbar-track {
  background: rgba(var(--color-text-dark-rgb), 0);
  width: 5px;
}

*::-webkit-scrollbar-thumb {
  background-color: rgba(var(--color-text-rgb), 0.31);
  border-radius: 5px;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: rgba(var(--color-text-rgb), 0.53);
  border-radius: 5px;
}

body {
  font-family: 'aller', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  margin: 0;
  overflow-x: hidden;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-size: 16px;
  line-height: 1.6;
}

body.dark-section {
  background-color: var(--color-bg-dark);
  color: var(--color-text-dark);
}

body.dark-section .maincontainer {
  background-color: var(--color-bg-dark);
}

body.dark-section footer {
  background-color: var(--color-bg-dark);
}

body.dark-section footer a {
  color: var(--color-text-dark);
}

body.dark-section footer a:hover {
  color: var(--color-muted);
}

body.dark-section footer .grafik {
  filter: invert(100%);
}

body.dark-section #navbar {
  background-color: var(--color-bg-dark) !important;
  box-shadow: 0 4px 8px 0 rgba(var(--color-text-rgb), 0.4) !important;
}

body.dark-section .navanchor {
  color: var(--color-text-dark) !important;
}

.maincontainer,
footer,
body {
  transition: background-color 0.2s ease, color 0.2s ease;
}

header {
  top: 0px;
  left: 0px;
}

main {
  text-align: center;
  position: relative;
}

/* Navigation */
.navanchor {
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.navanchor:hover {
  color: var(--color-accent);
}

#headergrafik {
  filter: invert(100%);
  height: 30px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Banner */
.mainbanner {
  width: 100%;
  position: relative;
  left: 0px;
  top: 0px;
  clip-path: inset(0 0 0 0);
}

.mainbanner_bg {
  position: fixed;
  top: 0px;
  left: 0px;
  height: 100vh;
  width: 100%;
  background-size: cover;
  background-position: center center;
  z-index: -1;
}

.mainbanner_content {
  position: relative;
  z-index: 1;
  width: 100%;
  box-shadow: inset 0 0 100px rgba(var(--color-text-rgb), 0.2);
}

.mainbanner_slide {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}

.mainbanner_slide.active {
  opacity: 1;
}

.mainbanner h1 {
  font-weight: 800;
  text-align: center;
  position: relative;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-text-dark);
  text-shadow: 
    0 0 10px rgba(var(--color-text-rgb), 0.3),
    0 4px 20px rgba(var(--color-text-rgb), 0.4),
    0 0 2px rgba(var(--color-text-dark-rgb), 0.8);
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

#mainbanner_logo {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: auto;
  z-index: 2;
  filter: invert(100%) drop-shadow(0 0 10px rgba(var(--color-text-rgb), 0.3)) drop-shadow(0 4px 20px rgba(var(--color-text-rgb), 0.4)) drop-shadow(0 0 2px rgba(var(--color-text-dark-rgb), 0.8));
}


/* Sub Banner */
.subbanner {
  width: 100%;
  position: relative;
  left: 0px;
  top: 0px;
  clip-path: inset(0 0 0 0);
}

.subbanner_bg {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.subbanner_content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subbanner h2 {
  font-weight: 800;
  text-align: center;
  color: var(--color-text-dark);
 text-shadow: 
    0 0 10px rgba(var(--color-text-rgb), 0.3),
    0 4px 20px rgba(var(--color-text-rgb), 0.4),
    0 0 2px rgba(var(--color-text-dark-rgb), 0.8);
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

/* Headline overlay */
.headline h3 {
  color: var(--color-text-dark);
  text-shadow: 
    0 0 10px rgba(var(--color-text-rgb), 0.3),
    0 4px 20px rgba(var(--color-text-rgb), 0.4),
    0 0 2px rgba(var(--color-text-dark-rgb), 0.8);
  margin: 0;
  letter-spacing: 0.05em;
  z-index: 2;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 0.2s;
  white-space: nowrap;
  pointer-events: none;
  text-align: center;
}

/* Image links */
.imagelinks {
  width: 100%;
  aspect-ratio: 3/2;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.imagelinks a {
  display: block;
  width: 100%;
  height: 100%;
}

.imagelinks img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), filter 0.2s ease;
}

.imagelinks:hover img {
  filter: blur(5px) brightness(110%);
  transform: scale(1.05);
}

/* Video Container for Responsive YouTube Embeds */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 5px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 5px;
}

/* Link Container - Button-style with accent color */
.linkcontainter {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--color-accent);
  border-radius: 5px;
  margin-top: 16px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--color-accent);
  color: var(--color-text-dark);
  margin: 20px auto;

}

.linkcontainter a {
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.linkcontainter:hover {
  background-color: var(--color-bg);
  color: var(--color-accent);
}

.linkcontainter:hover a {
  color: var(--color-accentaccent);
}

/* Dark mode support for link container */
body.dark-section .linkcontainter {
  background-color: var(--color-accent);
}

body.dark-section .linkcontainter a {
  color: var(--color-bg-dark);
}

body.dark-section .linkcontainter:hover {
  background-color: var(--color-accent);
  box-shadow: 0 8px 16px rgba(122, 87, 237, 0.4);
}

/* Layout containers */
.maincontainer {
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: var(--color-bg);
  align-items: center;
}

.subcontainer {
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  margin: 20px;
  position: relative;
  border-radius: 5px;
}

.subcontainer img,
.subcontainer video {
  border-radius: 5px;
  object-fit:contain; 
  width: 100%;
  max-width: 100%;
  height: auto;
  transition: 0.2s;
  max-height: 500px;
}

/* Text content section - full width for legal/text pages */
.text-content {
  width: 100%;
  max-width: 900px;
  overflow: visible;
  margin: 20px auto;
  padding: 0 20px;
  position: relative;
  border-radius: 5px;
}

.text-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
}

.text-content p {
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Categories */
#categories {
  border-radius: 5px;
  border-radius: 5px;
}

#categories.categories-grouped {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
}

.category-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 10px;
}

.category-group > .category-group-title {
  width: 100%;
  text-align: center;
  font-weight: 600;
  color: inherit;
  letter-spacing: 0.25em;
  margin: 30px;
}

.category-group-row {
  display: flex;
  justify-content: center;
  width: 100%;
}

#categories .subcontainer {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  max-width: 400px;
}

/* Footer */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 20px;
  background-color: var(--color-bg);
}

.footercontainer {
  padding-top: 20px;
  margin: auto;
  max-width: 1200px;
}

.footercolumn {
  padding: 10px;
}

footer a {
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

footer a:hover {
  color: var(--color-accent);
  transform: translateY(-2px);
}

footer img {
  width: 25px;
}

/* Misc */

h3 {
  font-size: 36px;
  line-height: 1.3;
  color: var(--color-text-accent);
}

#subpage {
  display: block;
  text-align: left;
}

#subpage p {
  text-align: left;
}

/* Features Bar */
.features-bar {
  width: 100%;
  background-color: var(--color-bg);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  box-sizing: border-box;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-value {
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: 0.04em;
  line-height: 1;
}

/* Quote Section with Styled Background Quote Mark */
.quote-section {
  position: relative;
  overflow: visible !important;
  padding: 40px 30px;
    text-align: center;

}

.quote-section::before {
  content: ',,';
  position: absolute;
  top: -100px;
  left: -10px;
  font-size: 200px;
  font-weight: 900;
  color: var(--color-accent);
  opacity: 0.6;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  font-family: 'Times New Roman', serif;
}

.quote-section p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-style: italic;
  font-size: 18px;
  line-height: 1.8;
  text-align: center;
}


body.dark-section .quote-section::before {
  color: var(--color-accent);
}

.feature-label {
  color: var(--color-accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 300;
}

body.dark-section .features-bar {
  background-color: var(--color-bg-dark);
}

body.dark-section .feature-value {
  color: var(--color-text-dark);
}

body.dark-section .feature-label {
  color: var(--color-accent);
}

body.dark-section .feature-item {
  border-right-color: rgba(var(--color-text-dark-rgb), 0.15);
}

/* ============================================================
   TIMELINE
   ============================================================ */

.timeline-container {
  width: 100%;
  max-width: 900px;
  margin: 100px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

/* Vertical line in the middle (desktop) */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 10px;
  background-color: var(--color-accent);
  transform: translateX(-50%);
  border-radius: 5px;
}

.timeline-item {
  margin-bottom: 50px;
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
  margin-left: 20px;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Alternate left and right */
.timeline-item:nth-child(even) .timeline-content {
  text-align: left;
  padding-right: 60px;
  padding-left: 0;
  margin-right: auto;
  margin-left: 0;
  width: 400px;
}

.timeline-item:nth-child(odd) .timeline-content {
  text-align: right;
  padding-left: 60px;
  padding-right: 0;
  margin-left: auto;
  margin-right: 0;
  width: 400px;
}

/* Dot indicator */
.timeline-dot {
  width: 24px;
  height: 24px;
  background-color: var(--color-bg);
  border: 3px solid var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
  z-index: 1;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item:hover .timeline-dot {
  width: 30px;
  height: 30px;
  background-color: var(--color-accent);
  box-shadow: 0 0 0 8px rgba(var(--color-muted-rgb), 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item .date {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.timeline-item .title {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin: 10px 0;
  line-height: 1.3;
}

.timeline-item .location {
  display: block;
  font-size: 14px;
  color: var(--color-muted);
  font-style: italic;
  margin-bottom: 12px;
}

.timeline-item .description {
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.6;
  font-weight: 300;
}
.timeline-item .description li {
  list-style: none;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .timeline::before {
    background-color: var(--color-accent);
  }

  .timeline-dot {
    background-color: var(--color-bg-dark);
    border-color: var(--color-accent);
  }

  .timeline-item:hover .timeline-dot {
    background-color: var(--color-accent);
    box-shadow: 0 0 0 8px rgba(var(--color-muted-rgb), 0.15);
  }

  .timeline-item .title {
    color: var(--color-text-dark);
  }

  .timeline-item .description {
    color: var(--color-text-dark);
  }

  body.dark-section .timeline::before {
    background-color: var(--color-accent);
  }

  body.dark-section .timeline-dot {
    background-color: var(--color-bg-dark);
    border-color: var(--color-accent);
  }

  body.dark-section .timeline-item:hover .timeline-dot {
    background-color: var(--color-accent);
    box-shadow: 0 0 0 8px rgba(var(--color-muted-rgb), 0.15);
  }

  body.dark-section .timeline-item .title {
    color: var(--color-text-dark);
  }

  body.dark-section .timeline-item .description {
    color: var(--color-text-dark);
  }
}

/* ============================================================
   DARK MODE
   ============================================================ */

@media (prefers-color-scheme: dark) {
  * {
    scrollbar-color: rgba(var(--color-text-dark-rgb), 0.31) rgba(var(--color-bg-dark-rgb), 0);
  }

  *::-webkit-scrollbar-track {
    background: rgba(var(--color-bg-dark-rgb), 0);
  }

  *::-webkit-scrollbar-thumb {
    background-color: rgba(var(--color-text-dark-rgb), 0.31);
  }

  *::-webkit-scrollbar-thumb:hover {
    background-color: rgba(var(--color-text-dark-rgb), 0.53);
  }

  body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-dark);
  }

  .introcontainer {
    background-color: var(--color-bg-dark);
  }

  .maincontainer {
    background-color: var(--color-bg-dark);
  }

  footer {
    background-color: var(--color-bg-dark);
  }

  footer a {
    color: var(--color-text-dark);
  }

  footer a:hover {
    color: var(--color-accent);
  }

  footer .grafik {
    filter: invert(100%);
  }

  .features-bar {
    background-color: var(--color-bg-dark);
  }

  .feature-value {
    color: var(--color-text-dark);
  }

  .feature-label {
    color: var(--color-accent);
  }

  .feature-item {
    border-right-color: var(--color-muted);
  }
}

/* ============================================================
   DESKTOP  (min-width: 1000px)
   ============================================================ */

@media only screen and (min-width: 1000px) {
  * {
    scrollbar-color: rgba(var(--color-text-rgb), 0.31) rgba(var(--color-bg-rgb), 0);
  }

  *::-webkit-scrollbar-thumb {
    background-color: rgba(var(--color-text-rgb), 0.31);
  }

  *::-webkit-scrollbar-thumb:hover {
    background-color: rgba(var(--color-text-rgb), 0.53);
  }

  body p {
    font-weight: 200;
  }

  header li {
    display: inline-block;
  }

  .navanchor {
    color: var(--color-text-dark);
    opacity: 1;
    margin: 35px;
    font-size: 20px;
  }

  .burger {
    display: none;
  }

  #close {
    display: none;
  }

  #corner {
    display: none;
  }

  .timeline::before {
    left: 50%;
  }

  .timeline-item {
    margin-left: 0;
  }

  .navlinks {
    flex-flow: row;
    justify-content: flex-end;
    display: flex;
    margin-right: 40px;
  }

  .navanchor:hover {
    color: var(--color-accent) !important;
  }

  #headergrafik {
    float: left;
    margin-right: auto;
    position: fixed;
    top: 30px;
    left: 30px;
  }

  #navbar {
    position: fixed;
    top: 0px;
    left: 0px;
    padding: 20px;
    background-color: rgba(var(--color-text-dark-rgb), 0);
    width: 100%;
    z-index: 10;
    transition: 0.3s;
    box-shadow: 0 0 var(--color-text);
  }

  .mainbanner {
    height: 100vh;
  }

  .mainbanner_slide {
    height: 100vh;
  }

  .mainbanner_content {
    height: 100vh;
  }

  #grafik {
    display: block;
    width: 100px;
    margin: 0 auto;
    position: relative;
    top: 30vh;
    transform: translateY(-50%);
    filter: invert(1);
  }

  .mainbanner h1 {
    font-size: 56px;
    letter-spacing: 20px;
  }

  .subbanner {
    height: 50vh;
  }

  .subbanner_content {
    height: 50vh;
  }

  .subbanner h2 {
    font-size: 48px;
    letter-spacing: 20px;
  }

  .headline h3 {
    letter-spacing: 0.3em;
    font-size: clamp(12px, 2vw, 30px);
  }

  /* Kategorien Layout auf Desktop */
  .category-group-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
  }
  
    .imagelinks {
    margin: 20px auto;
  }

  /* Maximal 3 in einer Reihe */
  #categories .category-group-row .subcontainer {
    flex: 0 1 calc(33.333% - 14px);
    width: 100%;
    max-width: 400px;
    margin: 0;
  }

  /* Bei GENAU 4 Kategorien: 2 Reihen, 2 Spalten (2x2) in ansprechender Größe */
  #categories .category-group-row:has(> .subcontainer:last-child:nth-child(4)) .subcontainer {
    flex: 0 1 calc(50% - 10px);
    max-width: 450px;
  }

  /* Auch für Seiten mit direkten subcontainer Kindern (falls noch relevant) */
  #categories:not(.categories-grouped) {
    margin-top: 5vh;
  }

  .subcontainer {
    margin-top: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .galeriecontainer {
    padding: 22px 50px;
    display: flex;
    overflow: auto;
    margin-left: -50px;
    margin-right: -50px;
    margin-bottom: 50px;
  }

  .galeriecontainer img {
    height: 300px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .galeriecontainer img:hover {
    transform: scale(1.12);
    filter: none;
    z-index: 2;
    border-radius: 5px;
    box-shadow: 0 12px 24px 0 rgba(var(--color-bg-dark-rgb), 0.15), 0 8px 16px 0 rgba(var(--color-bg-dark-rgb), 0.1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .maincontainer p {
    text-align: center;
    font-size: 18px;
    line-height: 1.7;
  }

  .arrowcontainer {
    display: none;
  }

  .arrow {
    display: none;
  }

  .subcontainer p {
    text-align: left;
    font-size: 19px;
    line-height: 1.7;
  }

  .footercontainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  footer .grafik {
    margin-right: 10px;
    float: left;
  }

  #subpage {
    padding: 20px 20vw;
  }

  .features-bar {
    padding: 50px 60px;
    gap: 0;
  }

  .feature-item {
    flex: 1;
    padding: 0 20px;
    border-right: 1px solid rgba(var(--color-text-rgb), 0.12);
  }

  .feature-item:last-child {
    border-right: none;
  }

  .feature-value {
    font-size: clamp(20px, 2.2vw, 38px);
  }

  .feature-label {
    font-size: 12px;
    margin-top: 10px;
  }

  @media (prefers-color-scheme: dark) {
    #navbar {
      background-color: rgba(var(--color-text-rgb), 0);
    }

    .maincontainer {
      background-color: var(--color-bg-dark);
    }

    main a {
      color: var(--color-muted);
    }
  }
}

/* ============================================================
   MOBILE  (max-width: 1000px)
   ============================================================ */

@media only screen and (max-width: 1000px) {
  * {
    scrollbar-color: rgba(var(--color-text-dark-rgb), 0.31) rgba(var(--color-bg-rgb), 0);
  }

  main {
    z-index: 1;
  }

  main p {
    font-weight: 200;
  }

  .navanchor {
    padding: 8px 8px 8px 32px;
    font-size: 30px;
    color: var(--color-text-dark) !important;
    display: block;
    margin: 10px;
  }

  .navlinks #close,
  .close-nav-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 60px;
    cursor: pointer;
    color: var(--color-text-dark) !important;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
  }

  .navanchor:hover,
  #close:hover,
  .close-nav-btn:hover {
    color: var(--color-accent) !important;
  }

  .navlinks {
    height: 100%;
    width: 0px;
    position: fixed;
    z-index: 3;
    top: -16px;
    background-color: var(--color-bg-dark);
    overflow-x: hidden;
    transition: 0.3s;
    left: -40px;
  }

  .burger,
  #burger-menu {
    cursor: pointer;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 2;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
  }

  .line {
    width: 40px;
    height: 4px;
    background-color: var(--color-text-dark);
    margin: 7px;
    border-radius: 2px;
    transition: 0.3s;
    display: block;
    box-shadow: 0 2px 4px rgba(var(--color-accent-rgb), 0.6);
  }

  #headergrafik {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1;
    margin: 5px;
  }

  .headerpicture {
    height: 100vh;
    width: 100%;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

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

  #corner {
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    background-color: var(--color-bg);
    position: fixed;
    z-index: 0;
    height: 10px;
    top: 100vh;
    margin-top: -5px;
    width: 100%;
  }

  .mainbanner {
    height: 60vh;
  }

  .mainbanner_slide {
    height: 60vh !important;
  }

  .mainbanner_content {
    height: 60vh;
    box-shadow: inset 0 0 100px rgba(var(--color-text-rgb), 0.2);
  }

  .mainbanner h1 {
    font-size: 40px;
    letter-spacing: 0.1em;
  }

  .subbanner {
    height: 40vh;
  }

  .desktop-only {
    display: none;
  }

  .subbanner_content {
    height: 40vh;
    box-shadow: inset 0 0 100px rgba(var(--color-text-rgb), 0.2);
  }

  .subbanner h2 {
    font-size: 35px;
    letter-spacing: 0.1em;
  }

  .headline h3 {
    letter-spacing: 0.1em;
    font-size: clamp(14px, 4.5vw, 26px);
  }

  .top_headline {
    height: 60vh;
    width: 100%;
  }

  .top_headline h1 {
    margin-bottom: 0px;
    text-align: center;
    position: relative;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    letter-spacing: 10px;
    color: var(--color-text-dark);
    text-shadow: 0 0 5px var(--color-text);
  }

  .headline h2 {
    letter-spacing: 10px;
    font-size: 30px;
    color: var(--color-text-dark);
    text-shadow: 0 0 5px var(--color-text);
    z-index: 2;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.2s;
  }

  #links:hover img {
    filter: brightness(60%);
  }

  #links:hover h2 {
    letter-spacing: 12px;
  }

  .introcontainer {
    font-size: 17px;
    margin-top: -10vh;
    margin-bottom: 10vh;
  }

  .maincontainer {
    text-align: middle;
    background-color: var(--color-bg);
  }

  #categories {
    padding-top: 20px;
    flex-wrap: wrap;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
    width: 100%;
    box-sizing: border-box;
  }

  .category-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 10px;
    box-sizing: border-box;
  }

  .category-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 15px;
    box-sizing: border-box;
    padding: 0 15px;
  }

  /* Mobile: 2 Spalten als Standard */
  #categories .category-group-row .subcontainer {
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
  }



  .subcontainer {
    max-width: calc(100% - 30px);
    margin-right: 15px;
    margin-left: 15px;
    margin-top: 15px;
    margin-bottom: 15px;
  }

  .galeriecontainer {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 200px;
    overflow: hidden;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  .galeriecontainer a:hover {
    filter: brightness(60%);
    cursor: pointer;
  }

  .galeriecontainer a {
    flex: 0 0 33%;
    max-width: 33%;
    width: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
    aspect-ratio: 1 / 1;
  }

  .galeriecontainer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
  }

  .arrow {
    border: solid var(--color-accent);
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 10px;
    rotate: 45deg;
    margin: 10px;
    cursor: pointer;
  }

  .arrow:hover {
    opacity: 50%;
  }

  .arrowcontainer {
    box-shadow: rgba(var(--color-bg-dark-rgb), 0.2) 0px -20px 12px 0px;
    z-index: 5;
    width: 100%;
    background-color: transparent;
    border: none;
    border-radius: 10px;
  }

  .maincontainer p {
    text-align: left;
    font-size: 17px;
  }

  h3 {
    line-height: 1.3;
  }

  .footercontainer {
    text-align: center;
    z-index: 1;
  }

  footer .grafik {
    position: relative;
    filter: invert(0%);
  }

  #subpage {
    padding: 20px;
  }

  #subpage p {
    text-decoration: none;
  }

  .features-bar {
    padding: 30px 15px;
    gap: 16px 0;
  }

  .feature-item {
    flex: 0 0 33%;
    padding: 8px 10px;
    border-right: none;
  }

  .feature-value {
    font-size: 35px;
    hyphens: auto;
    max-width: 100%;
    color: var(--color-text);
  }

  .feature-label {
    font-size: clamp(12px, 3vw, 16px);
    letter-spacing: 0.15em;
    margin-top: 6px;
  }

  /* Timeline Mobile Styles */
  .timeline-container {
    padding: 0 15px;
    margin: 40px auto;
    box-sizing: border-box;
  }

  .timeline::before {
    left: 7px;
  }

  .timeline-item {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    margin-bottom: 40px;
    margin-left: 0;
    position: relative;
    box-sizing: border-box;
    overflow: visible;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    text-align: left !important;
    padding-left: 50px !important;
    padding-right: 0 !important;
    margin: 0 !important;
  }

  .timeline-dot {
    position: absolute !important;
    left: 7px !important;
    transform: translateX(-50%) !important;
  }

  .timeline-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .timeline-item .title {
    font-size: 18px;
  }

  .timeline-item .date {
    font-size: 12px;
  }

  .timeline-item .location {
    font-size: 13px;
  }

  .timeline-item .description {
    font-size: 14px;
  }

  @media (prefers-color-scheme: dark) {
    body {
      background-color: var(--color-bg-dark);
      color: var(--color-text-dark);
    }

    .navlinks {
      background-color: var(--color-bg-dark);

    }

    #corner {
      background-color: var(--color-bg-dark);
    }

    .introcontainer {
      background-color: var(--color-bg-dark);
    }

    main a {
      color: var(--color-muted);
    }

    .maincontainer {
      background-color: var(--color-bg-dark);
    }

    .arrow {
      border: solid var(--color-text-dark);
      border-width: 0 3px 3px 0;
    }

    .feature-value {
      color: var(--color-text-dark);
    }

    footer {
      background-color: var(--color-bg-dark);
    }

    footer a {
      color: var(--color-text-dark);
    }

    footer .grafik {
      filter: invert(100%);
    }
  }
}

