:root {
  --dgoo-green1: #2f8046;
  --dgoo-green2: #48c26b;
  --dgoo-dark-grey1: #2a2f33;
  --dgoo-dark-grey2: #32383d;
  --dgoo-grey1: #959595;
  --dgoo-light-grey1: #e6e6e6;
  --dgoo-light-grey2: #fff;
}

html {
  scroll-behavior: smooth;
}

/* Font Face declarations referencing the local assets folder */
@font-face {
  font-family: 'oswaldlight';
  src:
    url('../assets/fonts/oswald-light-webfont.woff2') format('woff2'),
    url('../assets/fonts/oswald-light-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'source_sans_proregular';
  src:
    url('../assets/fonts/sourcesanspro-regular-webfont.woff2') format('woff2'),
    url('../assets/fonts/sourcesanspro-regular-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'source_sans_prosemibold';
  src:
    url('../assets/fonts/sourcesanspro-semibold-webfont.woff2') format('woff2'),
    url('../assets/fonts/sourcesanspro-semibold-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'source_sans_prolight';
  src:
    url('../assets/fonts/sourcesanspro-light-webfont.woff2') format('woff2'),
    url('../assets/fonts/sourcesanspro-light-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
  font-family: source_sans_proregular, sans-serif;
  background-color: var(--dgoo-light-grey2);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'oswaldlight', sans-serif;
}

h1 {
  font-size: 48px;
}

h2 {
  font-size: 36px;
}

h3 {
  font-size: 28px;
}

h4 {
  font-size: 24px;
}

h5 {
  font-size: 20px;
}

h6 {
  font-size: 16px;
}

a,
a:link,
a:visited,
a:hover,
a:active {
  color: var(--dgoo-green1);
  transition: color 0.3s ease;
  text-underline-offset: 3px;
  text-decoration-thickness: 0.5px;
}

a:hover {
  color: var(--dgoo-green2);
}

p {
  line-height: 1.5;
}

.feather {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* App Layout shell */
#app-root {
  margin: 0 auto 0 0;
  padding: 0;
  display: flex;
  min-height: 100vh;
  max-width: 1600px;
  box-shadow: -4px -8px 10px #777;
  position: relative;
  background: var(--dgoo-light-grey2);
}

#app-root * {
  box-sizing: border-box;
}

#app-root header {
  box-shadow: 0px -10px 20px rgba(0, 0, 0, 0.8);
  width: 100px;
  background-color: var(--dgoo-dark-grey1);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
}

#app-root header>a {
  display: block;
}

#app-root header .main-logo {
  display: block;
  margin: 0 auto 1rem;
  width: 60px;
  transition: transform 0.3s ease;
}

#app-root header .main-logo:hover {
  transform: scale(1.1);
}

#app-root main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--dgoo-light-grey2);
}

#app-root main>.content {
  flex: 1 0 auto;
}

/* Nav component styles */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  justify-items: stretch;
}

nav li {
  display: grid;
  grid-template-rows: 100px;
  grid-template-columns: 80px;
  border-radius: 8px;
  justify-items: center;
  transition: background-color 0.3s ease;
  border: 1px solid transparent;
}

nav a {
  margin-top: 10px;
  display: grid;
  background-color: transparent;
  /* No circle background for inactive items */
  border: 4px solid transparent;
  /* Transparent border to prevent layout shifting */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  position: relative;
  justify-content: center;
  align-items: end;
  text-decoration: none;
  color: var(--dgoo-grey1);
  /* Standard grey1 */
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease;
}

nav a:hover {
  border-color: transparent;
  /* Keep border transparent on hover */
  color: var(--dgoo-green2);
  /* Hover icon is green */
}

nav a svg {
  opacity: 0.6;
  /* Increased default opacity for better visibility on mobile */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

nav a:hover svg {
  opacity: 0.95;
}

nav a.active-link {
  background-color: var(--dgoo-green2);
  /* Green active circle background */
  border-color: var(--dgoo-green2);
  /* Green active border */
  color: var(--dgoo-green2);
  /* Keep active text color green */
}

nav a.active-link svg {
  color: var(--dgoo-dark-grey1);
  /* Style ONLY the icon inside the green circle dark grey */
  opacity: 1;
  filter: grayscale(0%);
}

nav a span {
  position: relative;
  bottom: -1.5rem;
  transition: color 0.3s ease;
  white-space: nowrap;
}

/* Content Header component */
.neschen-logo {
  justify-self: end;
  display: block;
  height: 150px;
  width: auto;
  margin-top: 2rem;
  margin-left: 2rem;
}

.home-header-bg {
  border-bottom: 4px solid var(--dgoo-green2);
  display: grid;
  grid-template-columns: 1fr 220px;
  justify-content: end;
  align-items: center;
}

.home-header-bg>h1 {
  margin: 0;
  padding: 0 0 0 4rem;
}

.home-header-bg>h1 span {
  white-space: nowrap;
}

/* Header Image component */
.header-image {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3;
  position: relative;
}

.header-image>img {
  position: absolute;
  width: 100%;
  top: -33%;
}

.header-image .header-title {
  position: relative;
  z-index: 1;
  top: 61%;
  display: inline-block;
  padding: 0 4rem;
  color: #fff;
  line-height: 1;
  background-color: #000;
}

/* Footer layout */
.footer-wrapper {
  display: flex;
  background-color: var(--dgoo-dark-grey1);
  color: var(--dgoo-grey1);
  width: 100%;
}

.footer-wrapper a {
  color: var(--dgoo-grey1);
  transition: color 0.3s ease;
}

.footer-wrapper a:hover {
  color: var(--dgoo-light-grey1);
}

.footer-wrapper .site-footer {
  border-top: 4px solid var(--dgoo-green2);
  flex: 1;
}

.footer-wrapper .lower-footer {
  margin: 2rem 2rem 2rem 2rem;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
}

.footer-wrapper .lower-footer a,
.footer-wrapper .lower-footer span {
  line-height: 1.5;
}

.footer-wrapper .lower-footer .social-media {
  justify-self: center;
}

.footer-wrapper .lower-footer .important-pages {
  justify-self: end;
}

.word-cloud-wrapper {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: -1;
  transform: translateX(20%) scale(0.6);
  transform-origin: bottom right;
  opacity: 0.1;
  filter: grayscale(1);
  pointer-events: none;
}

@media (min-width: 1920px) {
  .word-cloud-wrapper {
    transform: translateX(15%) scale(0.6);
  }
}

@media (min-width: 2560px) {
  .word-cloud-wrapper {
    transform: translateX(10%) scale(0.6);
  }
}

@media (min-width: 3840px) {
  .word-cloud-wrapper {
    transform: translateX(5%) scale(0.6);
  }
}

.word-cloud {
  display: flex;
  padding: 10px;
  flex-wrap: wrap;
}

.word-cloud>img {
  width: 100%;
}

/* Goto Top Component */
.goto-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: white;
  background-color: var(--dgoo-green1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  position: fixed;
  bottom: 40px;
  right: 40px;
  cursor: pointer;
  border-radius: 50%;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  will-change: transform, opacity;
  z-index: 1000;
  text-decoration: none;
  transform: scale(1);
}

.goto-top.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.goto-top svg {
  color: white;
}

.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  transform: rotate(-90deg);
  pointer-events: none;
}

.progress-ring-bg {
  fill: transparent;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 3px;
}

.progress-ring-circle {
  fill: transparent;
  stroke: white;
  stroke-width: 3px;
  stroke-linecap: round;
  stroke-dasharray: 119.38;
  stroke-dashoffset: 119.38;
  transition: stroke-dashoffset 0.1s linear;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    @keyframes progress-animation {
      from {
        stroke-dashoffset: 119.38;
      }
      to {
        stroke-dashoffset: 0;
      }
    }
    .progress-ring-circle {
      animation: progress-animation auto linear;
      animation-timeline: scroll();
      transition: none;
    }
  }
}

.goto-top span {
  display: none;
}

/* General classes for buttons */
.dgoo-href-button {
  display: inline-block;
  background-color: var(--dgoo-green1);
  transition: background-color 0.2s;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

.dgoo-href-button:hover {
  background-color: var(--dgoo-green2);
}

/* PAGE SPECIFIC STYLES */

/* 1. Home Page */
.home-content {
  margin: 0 2rem 2rem 2rem;
  padding: 0 2rem;
  display: grid;
  grid-template-areas:
    'teaser teaser teaser'
    'anstehendes rueckblicke anmeldungs-pdf';
  grid-gap: 40px;
}

.home-content .block:first-of-type {
  grid-area: anstehendes;
}

.home-content .block:nth-last-of-type(2) {
  grid-area: rueckblicke;
}

.home-content .block:last-of-type {
  grid-area: anmeldungs-pdf;
}

.home-content .congrats-paragraph {
  position: relative;
}

.home-content .congrats-paragraph .trophy-img {
  float: left;
  width: 95px;
  height: auto;
  margin-right: 18px;
  margin-top: -6px;
  margin-bottom: 6px;
  mix-blend-mode: multiply;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.home-content .congrats-paragraph .trophy-img:hover {
  transform: scale(1.08) rotate(-3deg);
  filter: drop-shadow(0 6px 12px rgba(255, 193, 7, 0.4));
}

.image-attribution {
  font-size: 0.68rem;
  margin-top: -8px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.image-attribution a,
.image-attribution a:visited {
  color: #c0c0c0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.image-attribution a:hover {
  color: var(--dgoo-grey1);
  text-decoration: underline;
}

/* Kirmes Button & Overlay Dialog Styles */
.kirmes-btn-wrapper {
  margin: 12px 0 20px 0;
}

.kirmes-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--dgoo-green1);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.kirmes-trigger-btn:hover {
  background-color: var(--dgoo-green2);
  color: white;
}

.kirmes-btn-icon {
  width: 18px;
  height: 18px;
  stroke: white;
  transition: stroke 0.2s ease;
}

.kirmes-trigger-btn:hover .kirmes-btn-icon {
  stroke: white;
}

/* Kirmes Dialog */
.kirmes-dialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: var(--dgoo-light-grey2);
  color: var(--dgoo-dark-grey1);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  overflow: hidden;
}

.kirmes-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.kirmes-dialog-content {
  display: flex;
  flex-direction: column;
}

.kirmes-dialog-header {
  background-color: var(--dgoo-dark-grey1);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--dgoo-green2);
}

.kirmes-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kirmes-icon-badge {
  font-size: 1.8rem;
  line-height: 1;
}

.kirmes-title-group h3 {
  margin: 0;
  font-size: 1.4rem;
  color: #fff;
  line-height: 1.2;
}

.kirmes-subtitle {
  font-size: 0.85rem;
  color: var(--dgoo-grey1);
}

.kirmes-close-btn {
  background: transparent;
  border: none;
  color: var(--dgoo-grey1);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s ease;
}

.kirmes-close-btn:hover {
  color: var(--dgoo-green2);
}

.kirmes-dialog-body {
  padding: 20px;
}

.kirmes-schedule {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8f9fa;
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 4px solid var(--dgoo-green1);
  transition: transform 0.2s ease, background 0.2s ease;
}

.schedule-item:hover {
  background: #f0f7f2;
  transform: translateX(3px);
}

.date-badge {
  background: var(--dgoo-dark-grey1);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.schedule-details {
  display: flex;
  flex-direction: column;
}

.event-title {
  font-size: 0.98rem;
  color: var(--dgoo-dark-grey1);
  line-height: 1.3;
}

.event-note {
  font-size: 0.85rem;
  color: #666;
}

.kirmes-dialog-footer {
  padding: 12px 20px 16px 20px;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid #eee;
  background: #fafafa;
}

.kirmes-close-action {
  font-size: 0.9rem;
  padding: 6px 16px;
  cursor: pointer;
}

.home-content .block p:has(a) {
  text-align: right;
}

.home-content .block p a {
  display: inline-block;
  background-color: var(--dgoo-green1);
  transition: background-color 0.2s;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

.home-content .block p a:hover {
  background-color: var(--dgoo-green2);
}

/* 2. Events Page */
.events-page {
  margin: 0 2rem 2rem 2rem;
  padding: 0 2rem;
}

/* Senior Circle Info Card */
.senior-info-card {
  background: linear-gradient(135deg, rgba(72, 194, 107, 0.08) 0%, rgba(47, 128, 70, 0.04) 100%);
  border-left: 5px solid var(--dgoo-green1);
  border-radius: 8px;
  padding: 24px;
  margin: 20px 0 30px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.senior-info-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.senior-info-header svg {
  color: var(--dgoo-green1);
  width: 28px;
  height: 28px;
}

.senior-info-header h3 {
  margin: 0;
  color: var(--dgoo-dark-grey1);
  font-size: 1.5rem;
}

.senior-info-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--dgoo-dark-grey2);
  margin: 0 0 16px 0;
}

.senior-info-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--dgoo-dark-grey1);
  font-size: 1rem;
}

.senior-info-footer svg {
  color: var(--dgoo-green1);
  flex-shrink: 0;
}

.events-container .jump-points {
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(72, 194, 107, 0.5);
  background-color: rgba(72, 194, 107, 0.25);
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.events-container .jump-points span {
  font-weight: bold;
}

.events-container .jump-points a {
  display: inline-block;
  background-color: var(--dgoo-green1);
  transition: background-color 0.2s;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

.events-container .jump-points a:hover {
  background-color: var(--dgoo-green2);
}

.events-container .table-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 1rem 0;
}

.events-container .table-header h3 {
  margin: 1rem 0 0;
  padding: 0;
}

.events-container table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 22px;
}

.events-container caption {
  font-weight: 600;
  text-align: left;
  margin-bottom: 8px;
}

.events-container th,
.events-container td {
  padding: 10px 12px;
  border: 1px solid #e3e6ea;
  text-align: left;
  font-size: 0.95rem;
}

.events-container th {
  background: #f0f4f8;
  font-weight: 700;
}

.events-container .small {
  font-size: 0.85rem;
  color: #555;
}

.events-container .nowrap {
  white-space: nowrap;
}

@media (max-width: 640px) {

  .events-container th,
  .events-container td {
    padding: 8px;
  }
}

.events-container tr.cancelled td:not(.category-cell) {
  background-color: #fff5f5;
  color: #888;
}

.events-container tr.cancelled .strike-text {
  text-decoration: line-through;
  text-decoration-color: #dc3545;
  opacity: 0.7;
}

.events-container tr.cancelled .cancellation-badge {
  display: inline-block;
  background-color: #dc3545;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  text-decoration: none;
  font-family: 'source_sans_prosemibold', sans-serif;
  vertical-align: middle;
}

/* 3. Association Page */
.association-content {
  margin: 0 2rem 2rem 2rem;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 40px;
}

.association-content .block h2 {
  margin-bottom: 20px;
}

.association-content .block p {
  margin-bottom: 15px;
}

.association-content .block p:last-child {
  margin-bottom: 0;
}

.membership-form-section {
  margin: 40px 2rem 2rem 2rem;
  padding: 60px 20px;
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  text-align: center;
}

.membership-form-section .form-content {
  max-width: 800px;
  margin: 0 auto;
}

.membership-form-section .form-content h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.membership-form-section .form-content p {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.membership-form-section .form-content .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: white;
  color: #4caf50;
  border: none;
  padding: 18px 36px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.membership-form-section .form-content .cta-button .icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.membership-form-section .form-content .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: #f8f8f8;
}

.membership-form-section .form-content .cta-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 4. Media Page */
.media-page {
  margin: 0 2rem 2rem 2rem;
  padding: 0 2rem;
}

.media-page .audio-container,
.media-page .video-container {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.media-page .audio-container .audio-description,
.media-page .video-container .video-description {
  margin-bottom: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-left: 4px solid #4caf50;
  border-radius: 4px;
  line-height: 1.6;
  color: #333;
}

.media-page audio {
  width: 100%;
  border-radius: 4px;
}

.media-page video {
  width: 100%;
  height: auto;
  border-radius: 4px;
  background-color: #000;
}

.video-info-box {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
  padding: 10px 15px;
  background: #f5f5f5;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #555;
}

.video-info-box span strong {
  color: #222;
}

/* 5. Miscellaneous Page */
.misc-page {
  margin: 0 2rem 2rem 2rem;
  padding: 0 2rem;
}

.misc-page .mug-section {
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.misc-page .mug-section h3 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-bottom: 30px;
  text-align: center;
}

.misc-page .mug-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .misc-page .mug-container {
    grid-template-columns: 1fr;
  }
}

.misc-page .mug-image {
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.misc-page .mug-image video {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.misc-page .mug-info p {
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px;
}

.misc-page .mug-details {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin: 30px 0;
  padding: 20px;
  background: white;
  border-radius: 8px;
}

.misc-page .detail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.misc-page .detail-label {
  font-weight: 600;
  color: #666;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.misc-page .detail-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2c3e50;
}

.misc-page .order-info {
  text-align: center;
  font-size: 1.1rem;
  margin-top: 20px;
}

.misc-page .order-info a {
  color: #3498db;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.misc-page .order-info a:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* 6. Imprint & Privacy Policy Page */
.policy-page {
  margin: 0 2rem 2rem 2rem;
  padding: 0 2rem;
}

.policy-page section {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.policy-page address {
  font-style: normal;
  line-height: 1.6;
  margin: 15px 0;
}

.policy-page ul {
  padding-left: 20px;
  line-height: 1.6;
}

.policy-page li {
  margin-bottom: 10px;
}

/* Custom Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 350px;
  background-color: #333;
  color: #eee;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-consent-banner.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.cookie-consent-banner p {
  margin: 0;
  line-height: 1.4;
}

.cookie-consent-banner a {
  color: #eee;
  text-decoration: underline;
  font-weight: bold;
}

.cookie-consent-banner a:hover {
  color: var(--dgoo-green2);
}

.cookie-consent-banner button {
  background-color: var(--dgoo-green1);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
  align-self: flex-end;
}

.cookie-consent-banner button:hover {
  background-color: var(--dgoo-green2);
}

/* Responsive fixes */
@media (max-width: 1024px) {

  .home-content,
  .association-content {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .home-content .block:first-of-type,
  .home-content .block:nth-last-of-type(2),
  .home-content .block:last-of-type {
    grid-area: auto;
  }
}

@media (max-width: 768px) {
  #app-root {
    flex-direction: column;
  }

  #app-root header {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 20px;
  }

  #app-root header .main-logo {
    margin: 0;
    width: 45px;
  }

  nav ul {
    grid-template-columns: repeat(6, auto);
    gap: 10px;
  }

  nav li {
    grid-template-rows: auto;
    grid-template-columns: auto;
    height: auto;
  }

  nav a {
    margin-top: 0;
    width: 40px;
    height: 40px;
  }

  nav a span {
    display: none;
  }

  #app-root main {
    margin-left: 0;
  }

  .home-header-bg {
    grid-template-columns: 1fr;
    padding: 1rem;
    text-align: center;
  }

  .home-header-bg>h1 {
    padding: 0;
    font-size: 2.5rem;
  }

  .neschen-logo {
    display: none;
  }

  .header-image {
    aspect-ratio: 2;
  }

  .header-image .header-title {
    top: 50%;
    padding: 0 1.5rem;
  }

  .footer-wrapper .lower-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-wrapper .lower-footer .social-media,
  .footer-wrapper .lower-footer .important-pages {
    justify-self: center;
  }
}

/* 7. Contact Page Form Styles */
.contact-page {
  margin: 0 2rem 2rem 2rem;
  padding: 0 2rem;
}

.contact-intro {
  margin-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto 50px auto;
  background: #fdfdfd;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-group:nth-of-type(2) {
  display: none !important;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dgoo-dark-grey1);
}

.form-group label .required {
  color: #e74c3c;
  margin-left: 2px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
  border-color: var(--dgoo-green2);
  outline: none;
  box-shadow: 0 0 0 3px rgba(72, 194, 107, 0.15);
}

.form-group input.input-error,
.form-group textarea.input-error {
  border-color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.02);
}

.form-group .error-msg {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 5px;
  font-weight: 600;
}

.contact-form .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--dgoo-green1);
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  width: 100%;
  justify-content: center;
}

.contact-form .cta-button:hover {
  background-color: var(--dgoo-green2);
}

.contact-form .cta-button:active {
  transform: scale(0.98);
}

.contact-form .cta-button .icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Alert Boxes */
.alert {
  padding: 15px 20px;
  margin-bottom: 25px;
  border-radius: 4px;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.alert-success {
  background-color: rgba(47, 128, 70, 0.1);
  color: var(--dgoo-green1);
  border: 1px solid rgba(47, 128, 70, 0.2);
}

.alert-danger {
  background-color: rgba(231, 76, 60, 0.1);
  color: #c0392b;
  border: 1px solid rgba(231, 76, 60, 0.2);
}

/* Helper class to hide elements by default (on desktop) */
.visible-mobile {
  display: none !important;
}

/* Mobile responsive styles for events tables and layouts */
@media (max-width: 768px) {
  .visible-mobile {
    display: block !important;
  }

  .hidden-mobile {
    display: none !important;
  }

  /* Reduce large page margins and paddings on mobile screens */
  .events-page,
  .media-page,
  .misc-page,
  .policy-page,
  .contact-page,
  .association-content,
  .home-content {
    margin: 0 1rem 1rem 1rem !important;
    padding: 0 0.5rem !important;
  }

  /* Table styling on mobile - convert to clean cards */
  .events-container table,
  .events-container thead,
  .events-container tbody,
  .events-container tr,
  .events-container th,
  .events-container td {
    display: block;
    width: 100%;
  }

  .events-container thead {
    display: none;
    /* Hide header row */
  }

  .events-container tr {
    margin-bottom: 1.5rem;
    border: 1px solid #e3e6ea;
    border-radius: 8px;
    background: #fff;
    padding: 1.25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
  }

  .events-container td {
    border: none;
    padding: 10px 0;
    font-size: 0.95rem;
    text-align: left;
    border-bottom: 1px solid #f0f2f5;
  }

  .events-container td:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .events-container td:first-child {
    padding-top: 0;
  }

  /* Display data labels above values */
  .events-container td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-weight: 700;
    color: var(--dgoo-green1);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
  }

  /* Highlight event title cell values */
  .events-container td[data-label="Veranstaltung"] {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--dgoo-dark-grey1);
    line-height: 1.4;
  }

  /* Navigation jump links container wrap-stack */
  .events-container .jump-points {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 10px;
    padding: 1.25rem 1rem;
  }

  .events-container .jump-points span {
    margin-bottom: 4px;
  }

  /* Header and internal links adjustments */
  .events-container .table-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 1.5rem 0 1rem 0;
  }
}