/* ==============================================
   Modernes, responsives CSS – Stand 2026
   Für Vereins-Webseite mit Side-Menu
============================================== */

:root {
  font-size: clamp(15px, 0.95rem + 0.35vw, 18px);

  --line-height-body:    1.62;
  --line-height-heading: 1.25;

  --color-primary:       #0066ff;
  --color-primary-dark:  #004ccc;
  --color-accent:        #dc2626;       /* für auffällige Link-Symbole */
  --color-text:          #0f172a;
  --color-text-light:    #6b7280;
  --bg:                  #ffffff;
  --bg-alt:              #f9fafb;
  --radius:              12px;
  --shadow-sm:           0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:           0 8px 24px rgba(0,0,0,0.12);
  --transition:          all 0.22s ease;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:              #0f172a;
    --bg-alt:          #1e293b;
    --color-text:      #e2e8f0;
    --color-text-light:#94a3b8;
    --color-accent:    #f87171;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: var(--line-height-body);
  font-weight: 400;
  color: var(--color-text);
  background: var(--bg);
}

/* ==============================================
   TYPOGRAFIE & FLIESSTEXT
============================================== */

h1, .h1 { font-size: clamp(2.2rem, 5vw + 1rem, 4rem);    line-height: var(--line-height-heading); font-weight: 700; margin: 1.4em 0 0.7em; }
h2, .h2 { font-size: clamp(1.8rem, 4vw + 0.9rem, 3.2rem);  line-height: var(--line-height-heading); font-weight: 700; margin: 1.6em 0 0.8em; }
h3, .h3 { font-size: clamp(1.5rem, 3.2vw + 0.8rem, 2.4rem); line-height: 1.3; font-weight: 600; margin: 1.8em 0 0.9em; }
h4, .h4 { font-size: clamp(1.25rem, 2.4vw + 0.7rem, 1.8rem); font-weight: 600; margin: 2em 0 1em; }

p, li, dd, blockquote, .text, article p {
  max-width: 75ch;
  margin: 1.4em 0;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  text-align: justify;
  text-justify: inter-word;
  hyphenate-limit-chars: 2 3 2;
  hyphenate-limit-lines: 2;
  hyphenate-limit-last: 3;
  hanging-punctuation: first last;
}

p:last-child,
li:last-child,
article p:last-of-type,
.text p:last-of-type {
  text-align: start;
}

/* ==============================================
   INHALTSBREITE & SEITENABSTÄNDE
============================================== */

main,
article,
.content,
.flow,
section.content-area,
.container > main,
.container > article,
.container > .flow {
  max-width: 75ch;
  min-width: 320px;
  margin: 0 auto;
  width: 100%;
  padding-left:  clamp(1.5rem, 5vw, 3.5rem);
  padding-right: clamp(1.5rem, 5vw, 3.5rem);
}

/* Mobile: exakt 20 px Abstand links + rechts */
@media (max-width: 768px) {
  main,
  article,
  .content,
  .flow,
  section.content-area,
  .container > main,
  .container > article,
  .container > .flow {
    max-width: none;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* ==============================================
   LINKS IM INHALT (nur mit href) + Anker ohne href ausschließen
============================================== */

main a[href],
article a[href],
section:not(.sideMenu) a[href],
.help-box a[href],
.container a[href]:not(.sideMenu a),
.text a[href],
.prose a[href] {
  color: var(--color-text) !important;
  text-decoration: none !important;
  transition: var(--transition);
}

main a[href]::after,
article a[href]::after,
section:not(.sideMenu) a[href]::after,
.help-box a[href]::after,
.container a[href]:not(.sideMenu a)::after,
.text a[href]::after,
.prose a[href]::after {
  content: "↗";
  font-size: 0.82em;
  font-weight: bold;
  color: var(--color-accent);
  opacity: 1;
  margin-left: 0.26em;
  top: -0.28em;
  position: relative;
  vertical-align: baseline;
  transition: var(--transition);
}

main a[href]:hover::after,
article a[href]:hover::after,
.help-box a[href]:hover::after,
.text a[href]:hover::after {
  transform: translateY(-2px) scale(1.2);
  color: var(--color-primary);
}

/* === Anker ohne href → KEIN Pfeilsymbol === */
main a:not([href])::after,
article a:not([href])::after,
.help-box a:not([href])::after,
.container a:not([href])::after,
.text a:not([href])::after,
.prose a:not([href])::after {
  content: none !important;
}

/* Menü-Links: weiß + ohne Symbol */
.sideMenu a,
.sideMenu span,
.topbar a {
  color: white !important;
  text-decoration: none;
}

.sideMenu a::after,
.topbar a::after {
  content: none !important;
}

/* ==============================================
   LAYOUT & CONTAINER
============================================== */

.container {
  width: min(90%, 1200px);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.flow > * + * {
  margin-top: var(--flow-space, 1.6em);
}

.card,
section:not(.topbar, .sideMenu, .help-layer, .help-box) {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(1.8rem, 4vw, 2.5rem);
  border: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  transition: var(--transition);
}

.card:hover,
section:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 12px 32px rgba(0,0,0,0.1);
}

img, picture {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.aspect-16-9  { aspect-ratio: 16 / 9;  }
.aspect-4-3   { aspect-ratio: 4 / 3;   }
.aspect-square { aspect-ratio: 1 / 1;  }

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

/* ==============================================
   TOPBAR + MENU + HELP
============================================== */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #222;
  height: 64px;
  padding: 0 1.25rem;
  color: white;
  position: relative;
  z-index: 1000;
}

.logo img {
  height: 42px;
}

.right-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menuButton {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  touch-action: manipulation;
  transition: background 0.2s;
}

.menuButton:hover {
  background: rgba(255,255,255,0.12);
}

.menuText {
  margin-left: 0.6rem;
  font-weight: 500;
}

.burger {
  width: 28px;
  height: 20px;
  position: relative;
}

.burger span {
  position: absolute;
  width: 100%;
  height: 3.5px;
  background: white;
  transition: 0.4s;
  border-radius: 2px;
}

.burger span:nth-child(1) { top: 0;    }
.burger span:nth-child(2) { top: 8px;  }
.burger span:nth-child(3) { top: 16px; }

.menuButton.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 8px;
}
.menuButton.active span:nth-child(2) { opacity: 0; }
.menuButton.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 8px;
}

.help {
  background: #e11d48;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.help:hover {
  transform: scale(1.08);
}

/* OVERLAY & SIDE MENU */
.menuOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 900;
}

.menuOverlay.show {
  opacity: 1;
  visibility: visible;
}

.sideMenu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 280px;
  background: #222;
  color: white;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding-top: 120px;
  z-index: 950;
  box-shadow: 4px 0 32px rgba(0,0,0,0.35);
}

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

.sideMenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sideMenu li {
  border-bottom: 1px solid #333;
}

.sideMenu a,
.sideMenu span {
  display: block;
  padding: 14px 24px;
  color: white;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.sideMenu a:hover,
.sideMenu span:hover {
  background: #333;
}

.sideMenu .active a {
  background: #444;
  color: var(--color-primary);
}

/* Submenüs */
.submenu ul {
  display: none;
  background: #2a2a2a;
}

.submenu ul a {
  padding-left: 48px;
}

/* HELP LAYER */
.help-layer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 980;
}

.help-box {
  background: white;
  max-width: 90%;
  width: 440px;
  margin: 90px auto;
  padding: 2rem;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.help-box a {
  display: block;
  margin: 12px 0;
  color: #111;
}

.closeHelp {
  position: absolute;
  right: 1.2rem;
  top: 1rem;
  font-size: 1.8rem;
  cursor: pointer;
  color: #666;
}

/* Zugänglichkeit */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* RECHTES MENU - SideMenuRight */
.sideMenuRight {
  position: fixed;
  top: 0;
  right: 0;                     /* rechts statt links */
  height: 100%;
  width: 280px;
  background: #222;
  color: white;
  transform: translateX(100%);  /* außerhalb des Bildschirms nach rechts */
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding-top: 120px;
  z-index: 950;
  box-shadow: -4px 0 32px rgba(0,0,0,0.35); /* Schatten nach links */
}

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

.sideMenuRight ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sideMenuRight li {
  border-bottom: 1px solid #333;
}

.sideMenuRight a,
.sideMenuRight span {
  display: block;
  padding: 14px 24px;
  color: white;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.sideMenuRight a:hover,
.sideMenuRight span:hover {
  background: #333;
}

/* Overlay für rechtes Menu */
.menuOverlayRight {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 900;
}

.menuOverlayRight.show {
  opacity: 1;
  visibility: visible;
}

/* Fragezeichen Button */
.helpButton {
  position: fixed;
  right: 20px; 
  top: 20px;
  width: 44px;
  height: 44px;
  background: #e11d48;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: transform 0.2s;
}

.helpButton:hover {
  transform: scale(1.08);
}

.sideMenuRight .submenu ul {
  display: none;
  background: #2a2a2a;
}

.sideMenuRight .submenu.open ul {
  display: block;
}

.sideMenuRight .submenu ul a {
  padding-left: 48px;
}


/* Linkes Menu X */
.sideMenu .closeMenu {
  position: absolute;
  top: 80px;
  right: 12px;
  font-size: 1.8rem;
  cursor: pointer;
  color: white;
  z-index: 1001;
}

/* Rechtes Menu X */
.sideMenuRight .closeMenuRight {
  position: absolute;
  top: 80px;
  right: 12px;
  font-size: 1.8rem;
  cursor: pointer;
  color: white;
  z-index: 1001;
}































