/* ══════════════════════════════════════════════════════════
   DJKG Aachen – Modern Redesign
   Color Palette:
     --clr-sidebar:   #111111   (near-black sidebar, softer than pure #000)
     --clr-accent:    #c0392b   (Japanese red – logo / CTA)
     --clr-link:      #1a6496   (deep blue – readable, elegant)
     --clr-surface:   #fafafa   (off-white content bg)
     --clr-text:      #2c2c2c   (soft black body text)
     --clr-muted:     #6c757d   (secondary/footer text)
   ══════════════════════════════════════════════════════════ */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --clr-sidebar:       #111111;
  --clr-sidebar-hover: #1e1e1e;
  --clr-accent:        #c0392b;
  --clr-accent-light:  #e74c3c;
  --clr-link:          #1a6496;
  --clr-link-hover:    #0f3c5e;
  --clr-surface:       #fafafa;
  --clr-surface-alt:   #f0f0f0;
  --clr-text:          #2c2c2c;
  --clr-muted:         #6c757d;
  --clr-border:        #e0e0e0;

  --sidebar-width:     220px;
  --font-body:         'Inter', 'Noto Sans JP', sans-serif;
  --font-jp:           'Noto Sans JP', sans-serif;

  --transition-base:   0.2s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--clr-text);
  background-color: var(--clr-surface-alt);
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar {
  background-color: var(--clr-sidebar);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  /* Subtle right border so the two panels are visually separated */
  border-right: 2px solid var(--clr-accent);
}

/* Scrollbar styling for sidebar */
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: var(--clr-sidebar); }
.sidebar::-webkit-scrollbar-thumb { background: #444; border-radius: 2px; }

/* Logo block */
.sidebar__logo {
  padding: 16px 16px 14px;
  border-bottom: 1px solid #2a2a2a;
}

.sidebar__logo-img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: lighten;
}

/* Navigation */
.sidebar__nav {
  flex: 1;
  padding: 12px 0;
}

.nav-list {
  list-style: none;
}

.nav-list__item {
  border-bottom: 1px solid #1c1c1c;
}

.nav-list__link {
  display: block;
  padding: 10px 16px 10px 20px;
  color: #d0d0d0;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  text-align: right;
  letter-spacing: 0.01em;
  transition: background-color var(--transition-base), color var(--transition-base),
              padding-right var(--transition-base);
  position: relative;
}

.nav-list__link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background-color: var(--clr-accent);
  transition: width var(--transition-base);
}

.nav-list__link:hover,
.nav-list__link:focus-visible {
  background-color: var(--clr-sidebar-hover);
  color: #ffffff;
  padding-right: 12px;
  outline: none;
}

.nav-list__link:hover::before,
.nav-list__link:focus-visible::before {
  width: 3px;
}

/* Active page */
.nav-list__item--active .nav-list__link {
  color: #ffffff;
  background-color: #1a1a1a;
  font-weight: 500;
}

.nav-list__item--active .nav-list__link::before {
  width: 3px;
}

/* Legal & Language items */
.nav-list__item--legal .nav-list__link {
  font-size: 0.75rem;
  color: #888888;
}

.nav-list__item--lang .nav-list__link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 0.8rem;
  color: #a0a0a0;
}

.nav-list__flag {
  border-radius: 2px;
  flex-shrink: 0;
}

/* Sidebar footer */
.sidebar__footer {
  padding: 14px 16px;
  border-top: 1px solid #222222;
  font-size: 0.65rem;
  color: #555555;
  text-align: center;
}

/* ── Main content area ────────────────────────────────────── */
.main-content {
  background-color: var(--clr-surface);
  display: flex;
  flex-direction: column;
}

/* ── Hero section ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--clr-surface) 0%, var(--clr-surface-alt) 100%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 20px 32px;
  min-height: 116px;
  border-bottom: 1px solid var(--clr-border);
}

.hero__badge {
  max-height: 90px;
  width: auto;
  mix-blend-mode: multiply;
}

/* ── Content sections ─────────────────────────────────────── */
.content-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--clr-border);
}

.content-section:last-child {
  border-bottom: none;
}

.content-section__inner {
  max-width: 860px;
  padding: 0 40px;
}

/* ── Welcome section ──────────────────────────────────────── */
.welcome__taglines {
  list-style: none;
  margin-bottom: 24px;
}

.welcome__taglines li {
  font-size: 0.9rem;
  color: var(--clr-text);
  line-height: 1.8;
  font-weight: 300;
  padding-left: 1.2em;
  position: relative;
}

.welcome__taglines li::before {
  content: '・';
  color: var(--clr-accent);
  position: absolute;
  left: 0;
  font-size: 1rem;
}

/* CTA banner */
.cta-banner {
  background-color: var(--clr-surface-alt);
  color: var(--clr-text);
  border-left: 4px solid var(--clr-accent);
  border-radius: 0 3px 3px 0;
  padding: 12px 20px;
  margin-bottom: 28px;
  display: inline-block;
}

.cta-banner__text {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Body text */
.welcome__body p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--clr-text);
  margin-bottom: 12px;
}

/* ── Inline links ─────────────────────────────────────────── */
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--clr-link);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition-base), text-decoration-color var(--transition-base);
}

.inline-link:hover,
.inline-link:focus-visible {
  color: var(--clr-link-hover);
  text-decoration-color: var(--clr-link-hover);
  outline: none;
}

/* Chevron arrow – replaces the old literal "→" character, which rendered
   inconsistently across fonts/platforms. Drawn from borders so it stays
   crisp at any size and animates smoothly on hover. */
.inline-link::after,
.event-card__more-link::after {
  content: '';
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--transition-base);
}

.inline-link:hover::after,
.inline-link:focus-visible::after,
.event-card__more-link:hover::after,
.event-card__more-link:focus-visible::after {
  transform: rotate(45deg) translate(2px, -2px);
}

/* Back-navigation variant – chevron points left, sits before the text */
.inline-link--back::after { content: none; }

.inline-link--back::before {
  content: '';
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform var(--transition-base);
}

.inline-link--back:hover::before,
.inline-link--back:focus-visible::before {
  transform: rotate(-45deg) translate(-2px, 2px);
}

/* ── News teaser ──────────────────────────────────────────── */
.section-title {
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background-color: var(--clr-accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title__link {
  color: var(--clr-link);
  text-decoration: none;
  transition: color var(--transition-base);
}

.section-title__link:hover,
.section-title__link:focus-visible {
  color: var(--clr-link-hover);
  text-decoration: underline;
  outline: none;
}

/* ══════════════════════════════════════════════════════════
   HAMBURGER TOGGLE BUTTON (mobile only)
   ══════════════════════════════════════════════════════════ */
.nav-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  width: 40px;
  height: 40px;
  background: var(--clr-sidebar);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #d0d0d0;
  border-radius: 2px;
  transition: background-color var(--transition-base);
}

.nav-toggle:hover span { background: #ffffff; }

/* Close button inside sidebar */
.sidebar__hamburger {
  display: none;
  background: none;
  border: none;
  color: #888;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 10px 16px;
  align-self: flex-end;
  transition: color var(--transition-base);
}
.sidebar__hamburger:hover { color: #ffffff; }

/* Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sidebar-overlay.overlay--visible {
  opacity: 1;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE – Tablet / Mobile
   ══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  body {
    grid-template-columns: 1fr;
  }

  /* Sidebar slides in from left */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 250;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    border-right: 2px solid var(--clr-accent);
    border-bottom: none;
  }

  .sidebar.sidebar--open {
    transform: translateX(0);
  }

  .sidebar__hamburger {
    display: block;
  }

  .nav-toggle {
    display: flex;
  }

  .sidebar-overlay {
    display: block;
  }

  .main-content {
    padding-top: 0;
  }

  .hero {
    min-height: 90px;
    padding: 16px 20px;
  }

  .content-section__inner {
    padding: 0 20px;
  }

  .cta-banner {
    white-space: normal;
  }

  .cta-banner__text {
    white-space: normal;
  }
}

/* ══════════════════════════════════════════════════════════
   SUBPAGE STYLES
   ══════════════════════════════════════════════════════════ */

/* Page headings */
.page-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--clr-accent);
}

.page-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-text);
  margin: 28px 0 10px;
}

.page-intro {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text);
  margin-bottom: 12px;
}

/* Content lists */
.content-list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.content-list li {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--clr-text);
  margin-bottom: 6px;
}

.content-list ul {
  list-style: circle;
  padding-left: 20px;
  margin-top: 6px;
}

/* General paragraphs in subpages */
.content-section__inner > p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--clr-text);
  margin-bottom: 14px;
}

/* Satzung paragraph headings */
.satzung-para {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--clr-text);
  margin: 24px 0 10px;
  padding-left: 4px;
  border-left: 3px solid var(--clr-accent);
}

/* Mitgliedschaft fee table */
.beitraege-table {
  width: 100%;
  max-width: 440px;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.875rem;
}

.beitraege-table tr {
  border-bottom: 1px solid var(--clr-border);
}

.beitraege-table tr:first-child {
  border-top: 1px solid var(--clr-border);
}

.beitraege-table td {
  padding: 9px 12px;
  color: var(--clr-text);
}

.beitraege-table__amount {
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Infos sub-page tabs ──────────────────────────────────── */
.infos-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--clr-border);
}

.infos-tabs__link {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--clr-link);
  text-decoration: none;
  border: 1px solid var(--clr-border);
  border-radius: 3px;
  transition: background-color var(--transition-base), color var(--transition-base);
}

.infos-tabs__link:hover {
  background-color: var(--clr-surface-alt);
}

.infos-tabs__link--active {
  background-color: var(--clr-text);
  color: #ffffff;
  border-color: var(--clr-text);
  pointer-events: none;
}

/* ── Link list (Infos pages) ──────────────────────────────── */
.link-list {
  margin-bottom: 8px;
}

.link-list dt {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-text);
  margin-top: 18px;
}

.link-list dd {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--clr-muted);
  margin-left: 0;
  margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════
   EVENT CARDS – Aktuelles / Veranstaltungen / Archiv
   ══════════════════════════════════════════════════════════ */

.events-list {
  display: flex;
  flex-direction: column;
}

.event-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 20px;
  padding: 24px 8px;
  border-bottom: 1px solid var(--clr-border);
  border-radius: 4px;
  transition: background-color var(--transition-base);
}

.event-card:hover {
  background-color: var(--clr-surface-alt);
}

.event-card:last-child {
  border-bottom: none;
}

.event-card__main { min-width: 0; }

.event-card__images {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 4px;
}

.event-card__img {
  width: 110px;
  height: 80px;
  object-fit: cover;
  border: 1px solid var(--clr-border);
  display: block;
}

.event-card__header {
  display: flex;
  align-items: baseline;
  margin-bottom: 6px;
}

.event-card__date {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-text);
}

.event-card__time {
  margin-left: auto;
  font-size: 0.875rem;
  color: var(--clr-muted);
  white-space: nowrap;
}

.event-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 6px;
}

.event-card__short-desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--clr-text);
  white-space: pre-line;
  margin-bottom: 4px;
}

.event-card__more-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--clr-link);
  font-size: 0.875rem;
  text-decoration: none;
}

.event-card__more-link:hover { color: var(--clr-link-hover); text-decoration: underline; }

.event-card__meta {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-card__meta-section {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--clr-text);
}

.event-card__meta-label {
  font-weight: 700;
  display: block;
}

.event-card__email {
  color: var(--clr-link);
  text-decoration: none;
  font-size: 0.875rem;
}

.event-card__email:hover { text-decoration: underline; }

.event-card__flyer-img {
  margin-top: 6px;
  max-width: 100px;
  height: auto;
  border: 1px solid var(--clr-border);
  display: block;
}

.preserve-lines { white-space: pre-line; }

.loading-msg,
.empty-msg {
  font-size: 0.875rem;
  color: var(--clr-muted);
  padding: 24px 0;
}

/* ── Skeleton loading placeholders ────────────────────────── */
.skeleton-line {
  height: 12px;
  border-radius: 4px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, var(--clr-surface-alt) 25%, var(--clr-border) 37%, var(--clr-surface-alt) 63%);
  background-size: 400px 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.skeleton-line--sm { width: 30%; }
.skeleton-line--md { width: 55%; }
.skeleton-line--lg { width: 80%; height: 16px; }
.skeleton-line--last { margin-bottom: 0; }

.skeleton-card {
  padding: 24px 8px;
  border-bottom: 1px solid var(--clr-border);
}

.skeleton-card:last-child { border-bottom: none; }

.skeleton-image {
  height: 180px;
  border-radius: 4px;
  margin: 16px 0;
  background: linear-gradient(90deg, var(--clr-surface-alt) 25%, var(--clr-border) 37%, var(--clr-surface-alt) 63%);
  background-size: 400px 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0%   { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-line, .skeleton-image { animation: none; }
}

/* ── Detail page ──────────────────────────────────────────── */
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  color: var(--clr-link);
  text-decoration: none;
}

.detail-back:hover { text-decoration: underline; }

.detail-back::before {
  content: '';
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform var(--transition-base);
}

.detail-back:hover::before,
.detail-back:focus-visible::before {
  transform: rotate(-45deg) translate(-2px, 2px);
}

.detail-full-desc {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--clr-text);
  white-space: pre-line;
  margin: 16px 0;
}

.detail-images {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}

.detail-images img {
  max-width: 280px;
  height: auto;
  border: 1px solid var(--clr-border);
}

/* ── DSGVO headings & definition list ────────────────────── */
.dsgvo-heading {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-text);
  margin: 24px 0 8px;
}

.dsgvo-list {
  margin-bottom: 8px;
}

.dsgvo-list dt {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-text);
  margin-top: 14px;
}

.dsgvo-list dd {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--clr-text);
  margin-left: 0;
  margin-top: 3px;
}

/* Impressum address */
.contact-address {
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--clr-text);
  margin-bottom: 20px;
}

/* ══════════════════════════════════════════════════════════
   PRINT – hides navigation chrome, prints just the content
   ══════════════════════════════════════════════════════════ */
@media print {
  .sidebar,
  .nav-toggle,
  .sidebar-overlay,
  .sidebar__hamburger,
  .detail-back,
  .section-title__link,
  .event-card__more-link {
    display: none !important;
  }

  body {
    display: block;
    background: #ffffff;
  }

  .main-content {
    background: #ffffff;
  }

  .hero {
    display: none;
  }

  .content-section__inner {
    max-width: none;
  }

  * {
    color: #000000 !important;
    box-shadow: none !important;
  }

  a {
    text-decoration: none !important;
  }

  .event-card,
  .satzung-para,
  .page-title {
    break-inside: avoid;
  }
}

