/* ==========================================================================
   0. FONT-IMPORT
   ========================================================================== */

/* cormorant-garamond-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/cormorant-garamond-v21-latin-600.woff2') format('woff2');
}

/* cormorant-garamond-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/cormorant-garamond-v21-latin-700.woff2') format('woff2');
}

/* cormorant-garamond-700italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 700;
  src: url('../fonts/cormorant-garamond-v21-latin-700italic.woff2') format('woff2');
}

/* jetbrains-mono-500 (medium) - latin */
@font-face {
  font-display: swap;
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/JetBrainsMono-Medium.woff2') format('woff2');
}

/* Hinweis: Ein @font-face für JetBrains Mono 600 (SemiBold) stand hier,
   zeigte aber auf fonts/JetBrainsMono-SemiBold.woff2 – diese Datei gibt es
   nicht. Das ergab bei jedem Seitenaufruf einen 404. Ohne den Block fällt
   font-weight 600 sauber auf Medium (500) zurück; die Seite sieht aus wie
   bisher. Liegt die Datei später vor, kann der Block zurück. */


/* ==========================================================================
   1. VARIABLES
   ========================================================================== */

:root {
  /* Color references */
  --hue-ref: hsl(100, 48%, 26%);
  --hue-accent-ref: hsl(88, 57%, 47%);

  /* Backgrounds */
  --bg-dark: hsl(from var(--hue-ref) h 22% 4%);
  --bg-mid: rgba(12, 14, 12, 0.7);
  --bg-soft: hsl(from var(--hue-ref) h 16% 10%);
  --bg-gradient-layer1: hsl(from var(--hue-ref) h 52% 31% / 0.18);
  --bg-gradient-layer2: hsl(from var(--hue-ref) h 52% 24% / 0.14);

  /* Accent */
  --bright-accent: var(--hue-accent-ref);
  --green-border: hsl(from var(--hue-accent-ref) h 57% 47% / 0.25);
  --btn-glow: hsl(from var(--hue-accent-ref) h 62% 45% / 0.2);
  --btn-glow-strong: hsl(from var(--hue-accent-ref) h 80% 45% / 1);

  /* Text */
  --text-main: #ebe5d2;
  --text-muted: #a8a596;
  --card-tag-system-text-main: hsl(58, 19%, 72%);

  /* Fonts */
  --body-font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --h1-font-family: 'Cormorant Garamond', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --mono-font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Layout */
  --website-width: 1200px;
  --radius: 0.2rem;

  /* Gold borders */
  --gold-border: hsl(52 35% 45% / 0.3);

  /* Buttons */
  --btn-font-size: clamp(0.75rem, 2.5vw, 0.9rem);
  --clr-discord: hsl(232, 100%, 83%);
  --card-system-bg: hsl(82, 11%, 14%);

  /* Filter Panel */
  --filter-panel-bg-1: hsl(from var(--hue-ref) h 7% 11% / 0.85);
  --filter-panel-bg-2: hsl(from var(--hue-ref) h 9% 9% / 0.85);
  --filter-panel-border: hsl(40 25% 53% / 0.32);
  --filter-corner-gold: hsl(38 50% 60% / 0.5);
  --filter-shadow: 0 30px 60px -15px hsl(from var(--hue-ref) h 22% 2% / 0.8);
  --filter-input-bg: hsl(from var(--hue-ref) h 6% 5% / 0.7);
  --filter-input-border: hsl(40 25% 53% / 0.32);
  --filter-input-placeholder: hsl(from var(--hue-ref) h 5% 40%);
  --filter-input-focus-glow: hsl(from var(--hue-accent-ref) h 57% 47% / 0.15);
  --filter-label-color: hsl(40 35% 70%);
  --filter-chip-border: hsl(40 25% 53% / 0.32);
  --filter-chip-border-hover: hsl(40 35% 70%);
  --filter-radius: 6px;
  --filter-input-radius: 3px;
  --filter-chip-radius: 100px;
}


/* ==========================================================================
   2. RESET
   ========================================================================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}


/* ==========================================================================
   3. BASE
   ========================================================================== */

html {
  background-color: var(--bg-dark);
  height: 100%;
}

body {
  font-family: var(--body-font-family);
  color: var(--text-main);
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
}

main {
  max-width: var(--website-width);
  margin: 2rem auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 6vh 0;
  align-items: center;
}

h1 {
  font-family: var(--h1-font-family);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 700;
  text-wrap: balance;
  font-size: clamp(2.3rem, 10vw, 4rem);
  margin-bottom: 1rem;
  color: var(--text-main);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation-name: appear;
  animation-duration: 2s;
  animation-timing-function: ease-out;
}

h2 {
  font-size: clamp(1.3rem, 4vw, 3rem);
}

button {
  font-family: var(--mono-font-family);
  font-weight: 600;
}

@keyframes appear {
  0% {
    transform: translateY(10px);
  }
  100% {
    transform: translateY(0);
  }
}


/* ==========================================================================
   4. BACKGROUND LAYERS
   ========================================================================== */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, var(--bg-gradient-layer1), transparent 32%),
    radial-gradient(circle at 82% 78%, var(--bg-gradient-layer2), transparent 28%),
    radial-gradient(circle at center, var(--bg-soft) 0%, var(--bg-mid) 52%, var(--bg-dark) 100%);
  background-repeat: no-repeat;
}


/* ==========================================================================
   5. NAVIGATION
   ========================================================================== */

nav {
  background: linear-gradient(
    to bottom,
    hsl(from var(--hue-ref) h 20% 9%),
    hsl(from var(--hue-ref) h 18% 6%)
  );
  border-bottom: 1px solid var(--green-border);
  box-shadow: 0 4px 24px hsl(from var(--hue-ref) h 22% 2% / 0.6);
  width: 100%;
}

#nav_inner {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  margin: 0 auto;
  padding: 1rem 2rem;
  max-width: var(--website-width);
  align-items: center;
}

#nav_logo {
  display: flex;
  gap: 1rem;
}

#nav_logo_img {
  width: clamp(28px, 3vw, 42px);
  height: auto;
  flex-grow: 0;
}

#nav_logo_txt {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  align-content: center;
}

.ulisses_txt {
  color: var(--bright-accent);
  font-family: var(--mono-font-family);
}

#nav_links {
  display: flex;
  flex: 1;
  justify-content: end;
}

#nav_links ul {
  display: flex;
  gap: clamp(1rem, 2vw, 3rem);
  list-style: none;
  flex-wrap: wrap;
}

#nav_links a {
  text-decoration: none;
  color: var(--text-muted);
  font-family: var(--mono-font-family);
  text-transform: uppercase;
  font-size: clamp(0.7rem, 1vw, 0.5rem);
  letter-spacing: clamp(0.05em, 0.5vw, 0.16em);
}

.mobile_nav_toggle {
  display: none;
}


/* ==========================================================================
   6. HEADER
   ========================================================================== */

.sec_main_head {
  text-align: center;
  width: 70%;
  display: flex;
  flex-direction: column;
  gap: 1vw;
}

.sec_main_head_img {
  max-width: 40%;
  margin: 0 auto;
}

.cursive_text {
  font-family: var(--h1-font-family);
  font-style: italic;
  font-size: clamp(0.8em, 1.2em, 3em);
  color: var(--bright-accent);
  letter-spacing: 0;
}

.sec_underline_txt {
  font-family: var(--mono-font-family);
  font-weight: 500;
  font-size: clamp(0.5em, 0.7em, 1.2em);
  color: var(--bright-accent);
  text-transform: uppercase;
  letter-spacing: 0.25rem;
}

.sec_heading_p {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.7;
  color: var(--text-muted);
  width: min(90%, 75ch);
  margin: 0 auto;
  text-align: center;
  text-wrap: balance;
}

.button-box {
  margin: 1rem auto 0;
  display: flex;
  gap: 2rem;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  justify-content: center;
}

.bt-green-flashy,
.btn-brown-trans {
  flex: 1;
  padding: 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.11rem;
  cursor: pointer;
  user-select: none;
  color: white;
  border-radius: var(--radius);
  transition: all 250ms;
}

.bt-green-flashy:hover,
.btn-brown-trans:hover {
  transform: translateY(-2px);
}

.bt-green-flashy {
  background-color: var(--bright-accent);
  border: none;
  box-shadow:
    var(--btn-glow-strong) 0 -25px 18px -14px inset,
    var(--btn-glow) 0 1px 2px,
    var(--btn-glow) 0 2px 4px,
    var(--btn-glow) 0 4px 8px,
    var(--btn-glow) 0 8px 16px,
    var(--btn-glow) 0 16px 32px;
  touch-action: manipulation;
  font-size: var(--btn-font-size);
}

.btn-brown-trans {
  border: solid 1px hsl(60, 21%, 41%);
  background: transparent;
  color: var(--card-tag-system-text-main);
  font-size: var(--btn-font-size);
}

/* ==========================================================================
   6.5 FEATURE COLUMNS
   ========================================================================== */

.sec-features {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 3rem 2.5rem;
  align-items: start;
}

.feature-col {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0.85rem;
}

.feature-overline {
  font-family: var(--mono-font-family);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--bright-accent);
}

.feature-title {
  font-family: var(--h1-font-family);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-main);
  text-wrap: balance;
}

.feature-rule {
  width: 100%;
  height: 1px;
  border: none;
  background: linear-gradient(90deg, var(--bright-accent), transparent);
  opacity: 0.7;
}

.feature-text {
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 40ch;
}

/* --- Mobile (≤ 600px) --- */
@media (max-width: 600px) {
  .sec-features {
    gap: 2.25rem;
  }
}

/* ==========================================================================
   6.6 CALL TO ACTION
   ========================================================================== */

.sec-cta {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
}

.cta-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0.85rem;
  padding: 2.5rem;
  border: 1px solid var(--filter-panel-border);
  border-radius: var(--filter-radius);
  background: linear-gradient(135deg, var(--filter-panel-bg-1) 0%, var(--filter-panel-bg-2) 100%);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--filter-shadow);
}

.cta-card::before,
.cta-card::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1px solid var(--filter-corner-gold);
  pointer-events: none;
}

.cta-card::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.cta-card::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

.cta-overline {
  font-family: var(--mono-font-family);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--bright-accent);
}

.cta-title {
  font-family: var(--h1-font-family);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-main);
  text-wrap: balance;
}

.cta-rule {
  width: 100%;
  height: 1px;
  border: none;
  background: linear-gradient(90deg, var(--bright-accent), transparent);
  opacity: 0.7;
}

.cta-text {
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 48ch;
}

/* Modifier: Buttons als Link, nicht gestreckt, unten bündig */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  align-self: start;
  margin-top: auto;
  padding: 0.9rem 2rem;
}

/* --- Mobile (≤ 600px) --- */
@media (max-width: 600px) {
  .cta-card {
    padding: 1.75rem;
  }

  .cta-btn {
    align-self: stretch;
    width: 100%;
  }
}

/* ==========================================================================
   6.7 STATEMENT
   ========================================================================== */

.sec-statement {
  width: 100%;
  max-width: 75ch;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.statement-rule {
  width: 100%;
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
}

.statement-overline {
  font-family: var(--mono-font-family);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25rem;
  color: var(--bright-accent);
  margin-top: 1rem;
}

.statement-title {
  font-family: var(--h1-font-family);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-main);
  text-wrap: balance;
}

.statement-text {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.8;
  color: var(--text-muted);
  text-wrap: pretty;
  margin-bottom: 1rem;
}

.mail_text {
  color: var(--bright-accent);
  font-family: var(--mono-font-family);
  font-size: 0.9em;
  font-weight: 500;
  overflow-wrap: anywhere;
  -webkit-user-select: all;
  user-select: all;
}

/* --- Mobile (≤ 600px) --- */
@media (max-width: 600px) {
  .statement-title br {
    display: none;
  }
}

/* ==========================================================================
   7. FILTER PANEL
   ========================================================================== */

.interactive-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid var(--filter-panel-border);
  border-radius: var(--filter-radius);
  padding: 2.5rem;
  gap: 1rem;
  position: relative;
  background: linear-gradient(135deg, var(--filter-panel-bg-1) 0%, var(--filter-panel-bg-2) 100%);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--filter-shadow);
}

.interactive-panel::before,
.interactive-panel::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1px solid var(--filter-corner-gold);
  pointer-events: none;
}

.interactive-panel::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.interactive-panel::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

.panel-search-box {
  display: flex;
  flex-direction: row;
  gap: 2vw;
  width: 100%;
  flex-wrap: wrap;
}

.panel-search-input {
  display: flex;
  flex-direction: column;
  gap: 0.3vw;
  flex: 1;
}

.panel-label {
  font-family: var(--mono-font-family);
  text-transform: uppercase;
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  letter-spacing: 0.08rem;
  color: var(--filter-label-color);
  font-weight: 500;
}

.panel-input {
  padding: clamp(0.9rem, 1.5vw, 1rem) clamp(0.8rem, 2vw, 2rem);
  border: 1px solid var(--filter-input-border);
  background-color: var(--filter-input-bg);
  border-radius: var(--filter-input-radius);
  width: 100%;
  font-family: var(--h1-font-family);
  font-size: 1em;
  color: var(--text-main);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.panel-input::placeholder {
  color: var(--filter-input-placeholder);
  font-style: italic;
}

.panel-input:focus {
  outline: none;
  border-color: var(--bright-accent);
  box-shadow: 0 0 0 3px var(--filter-input-focus-glow);
}

.hr-gold-dotted {
  border: none;
  border-top: 1px dashed var(--gold-border);
}

.panel-chips-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.panel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  padding: 0.45rem 0.95rem;
  background: transparent;
  border: 1px solid var(--filter-chip-border);
  border-radius: var(--filter-chip-radius);
  color: var(--text-muted);
  font-family: var(--mono-font-family);
  font-size: clamp(0.65rem, 1.2vw, 0.74rem);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--filter-chip-border-hover);
  color: var(--text-main);
}

.chip.active {
  background: var(--bright-accent);
  border-color: var(--bright-accent);
  color: var(--bg-dark);
  font-weight: 600;
}

.bt-reset {
  align-self: flex-start;
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: 1px solid var(--filter-chip-border);
  color: var(--text-muted);
  border-radius: var(--radius);
  font-family: var(--mono-font-family);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.panel-count {
  display: flex;
  flex-direction: row;
  text-align: left;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

#panel-item-count {
  margin-right: 5%;
  color: var(--bright-accent);
}

/* =========================================================================
   7.2 Demogeber Styling
   ========================================================================== */

/* --- Mode Switch (label wraps checkbox + slider) --- */

.panel-search-switch {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  position: relative;
  width: fit-content;
}

.panel-search-switch::before {
  content: attr(data-left);
  font-family: var(--mono-font-family);
  text-transform: uppercase;
  font-size: clamp(0.7rem, 1.5vw, 0.8rem);
  letter-spacing: 0.08rem;
  font-weight: 500;
  color: var(--bright-accent);
  transition: color 0.3s;
}

.panel-search-switch::after {
  content: attr(data-right);
  font-family: var(--mono-font-family);
  text-transform: uppercase;
  font-size: clamp(0.7rem, 1.5vw, 0.8rem);
  letter-spacing: 0.08rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
}

.panel-search-switch:has(#panel-search-checkbox:checked)::before {
  color: var(--text-muted);
}

.panel-search-switch:has(#panel-search-checkbox:checked)::after {
  color: var(--bright-accent);
}

#panel-search-checkbox {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.panel-search-slider {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 26px;
  background-color: var(--bg-dark);
  border: 1px solid var(--filter-chip-border);
  border-radius: 13px;
  cursor: pointer;
  transition: 0.35s;
  flex-shrink: 0;
}

.panel-search-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: var(--text-main);
  border-radius: 50%;
  transition: 0.35s;
}

#panel-search-checkbox:checked + .panel-search-slider {
  background-color: var(--bright-accent);
  border-color: var(--bright-accent);
}

#panel-search-checkbox:checked + .panel-search-slider::before {
  transform: translateX(26px);
  background-color: var(--bg-dark);
}

/* --- Demogeber Cards (shared base for both modes) --- */

.demo-card {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border: solid 1px var(--filter-panel-border);
  border-radius: var(--filter-radius);
  background: linear-gradient(135deg, var(--filter-panel-bg-1) 0%, var(--filter-panel-bg-2) 100%);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--filter-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.demo-card:hover {
  box-shadow: 0px 0px 20px 1px var(--btn-glow-strong);
  transform: translateY(-4px);
}

.demo-card-overline {
  font-family: var(--mono-font-family);
  font-size: 0.68rem;
  color: var(--bright-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.demo-card-title {
  font-family: var(--h1-font-family);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

.demo-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  border-left: solid 2px var(--bright-accent);
  padding-left: 0.8rem;
  font-style: italic;
}

.demo-card hr {
  position: relative;
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, var(--bright-accent), transparent);
  margin: 0;
}

.demo-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.demo-card-meta {
  font-family: var(--mono-font-family);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.demo-card-dl {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.2rem;
  border-radius: 5px;
  font-family: var(--mono-font-family);
  font-weight: 600;
  font-size: 0.76rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background-color: var(--bright-accent);
  color: var(--bg-dark);
}

.demo-card-dl:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.demo-card-dl svg {
  width: 14px;
  height: 14px;
}

/* --- Utility --- */

.hidden {
  display: none !important;
}

.fade-in {
  animation: fadeUp 0.3s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Discord-Variante des CTA-Buttons */
.cta-btn-discord {
  background-color: var(--clr-discord);
  border: none;
  color: var(--bg-dark);
  border-radius: var(--radius);
  font-family: var(--mono-font-family);
  font-weight: 600;
  font-size: var(--btn-font-size);
  text-transform: uppercase;
  letter-spacing: 0.11rem;
  cursor: pointer;
  transition: all 250ms;
}

.cta-btn-discord:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

/* ==========================================================================
   8. CARDS GRID
   ========================================================================== */

.panel-grid-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 1rem;
}

.club-card {
  padding: 2.5rem;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 5;
  border: solid 1px var(--filter-panel-border);
  border-radius: var(--filter-radius);
  background: linear-gradient(135deg, var(--filter-panel-bg-1) 0%, var(--filter-panel-bg-2) 100%);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--filter-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.club-card hr {
  position: relative;
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, var(--bright-accent), transparent);
  margin: 0;
  align-self: center;
}

.club-card hr::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bg-soft), transparent);
}

.club-card:hover {
  box-shadow: 0px 0px 20px 1px var(--btn-glow-strong);
  transform: translateY(-10px);
}

.club-card-header {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0.3rem;
}

.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.card-tag-box {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  align-items: center;
  font-family: var(--mono-font-family);
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem;
  border-radius: 0.2rem;
  border: 1px solid;
  font-weight: 500;
}

.tag-systeme {
  color: var(--card-tag-system-text-main);
  border-color: var(--filter-chip-border);
  background: var(--card-system-bg);
}

.tag-feature {
  text-transform: uppercase;
  color: var(--bright-accent);
  border-color: var(--bright-accent);
  background: var(--bg-soft);
}

.club-card-meta-data {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5em;
}

.club-card-meta-data-box {
  display: flex;
  flex-direction: column;
  flex: 1 1 90px;
}

.meta-data-text-h {
  font-family: var(--mono-font-family);
  text-transform: uppercase;
  color: var(--card-tag-system-text-main);
  font-weight: 500;
}

.meta-data-text-p {
  font-family: inherit;
  font-size: 0.8rem;
}

.club-card-description {
  border-left: solid 2px var(--bright-accent);
  padding-left: 1rem;
  font-size: 0.8em;
  font-style: italic;
  color: var(--text-muted);
  margin: 0 auto;
}

.club-card-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

#club-card-btns-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.card-btn {
  display: flex;
  justify-content: center;
  flex: 1 1 calc(50% - 0.375rem);
  min-width: 120px;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  text-align: center;
  border-radius: 5px;
  font-family: var(--mono-font-family);
  font-weight: 600;
  color: var(--bg-dark);
  align-items: center;
}

.club-card-footer {
  display: flex;
  flex-direction: column;
  align-self: end;
  gap: 1rem;
}

.club-card-contact {
  background-color: var(--bright-accent);
}

.club-card-discord {
  background-color: var(--clr-discord);
}


/* ==========================================================================
   9. FOOTER
   ========================================================================== */

.site_footer {
  margin-top: 6rem;
  background: linear-gradient(180deg, transparent 0%, hsl(from var(--hue-ref) h 22% 4% / 0.95) 30%);
  border-top: 1px solid hsl(from var(--hue-accent-ref) h 57% 47% / 0.15);
  padding: 4rem 2rem 1.5rem;
  position: relative;
  z-index: 1;
  justify-content: end;
}

.footer_inner {
  max-width: var(--website-width);
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer_brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer_logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.footer_tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 30ch;
}

.footer_heading {
  font-family: var(--mono-font-family);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bright-accent);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.footer_list {
  list-style: none;
}

.footer_list li {
  margin-bottom: 0.6rem;
}

.footer_list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.footer_list a:hover {
  color: var(--bright-accent);
}

.footer_bottom {
  max-width: var(--website-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid hsl(from var(--text-muted) h s l / 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--mono-font-family);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-weight: 500;
}

.footer_signature {
  opacity: 0.7;
}


/* ==========================================================================
   10. MEDIA QUERIES
   ========================================================================== */

/* --- Tablet (≤ 1000px) --- */
@media (max-width: 1000px) {
  .sec_main_head {
    width: 80%;
  }

  .footer_inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer_brand {
    grid-column: 1 / -1;
  }
}

/* --- Mobile (≤ 600px) --- */
@media (max-width: 600px) {
  #nav_links {
    position: fixed;
    inset: 0 0 0 30%;
    background: hsl(0 0% 100% / 0.1);
    backdrop-filter: blur(1rem);
    flex-direction: column;
    justify-content: start;
    padding: 5rem;
    border-left: solid 1px var(--green-border);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 350ms ease;
    scroll-behavior: smooth;
  }

  #nav_links[data-visible="true"] {
    transform: translateX(0);
  }

  #nav_links ul {
    flex-direction: column;
    gap: 5vh;
    flex-wrap: nowrap;
  }

  .mobile_nav_toggle {
    display: block;
    background: url(../img/hamburger.svg) center / contain no-repeat;
    border: none;
    position: absolute;
    width: 1.5rem;
    aspect-ratio: 1;
    z-index: 9999;
    top: 1.25rem;
    right: 2rem;
  }

  .mobile_nav_toggle[aria-expanded="true"] {
    background-image: url(../img/close.svg);
    position: fixed;
  }

  .sec_main_head {
    width: 100%;
  }

  .button-box {
    width: 100%;
    flex-direction: column;
    gap: 1rem;
  }

  .panel-search-box {
    flex-direction: column;
  }

  .interactive-panel {
    padding: 1.5rem;
  }

  .bt-reset {
    width: 100%;
  }

  .footer_inner {
    grid-template-columns: 1fr;
  }

  .club-card {
    padding: 1.5rem;
  }

  .panel-search-switch {
    gap: 0.7rem;
  }

  .demo-card {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   14. RECHTSTEXT-SEITEN (Impressum, Datenschutz)
   ========================================================================== */

.legal_page {
  width: 100%;
  max-width: 75ch;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.legal_header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.legal_overline {
  font-family: var(--mono-font-family);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25rem;
  color: var(--bright-accent);
}

.legal_title {
  font-size: clamp(2rem, 7vw, 3.2rem);
  margin-bottom: 0;
}

.legal_rule {
  width: 100%;
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
}

.legal_content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.legal_section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legal_section h2 {
  font-family: var(--mono-font-family);
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  color: var(--filter-label-color);
}

.legal_section p {
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  line-height: 1.8;
  color: var(--text-muted);
  text-wrap: pretty;
}

.legal_section strong {
  color: var(--text-main);
  font-weight: 600;
}

.legal_link {
  color: var(--bright-accent);
  font-family: var(--mono-font-family);
  font-size: 0.9em;
  border-bottom: 1px solid var(--green-border);
  padding-bottom: 1px;
  transition: border-color 0.2s, color 0.2s;
  overflow-wrap: anywhere;
}

.legal_link:hover {
  border-bottom-color: var(--bright-accent);
  color: var(--text-main);
}

.legal_source {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text-muted);
  text-align: center;
}

/* Entwurfs-Warnung – nur fuer noch nicht freigegebene Rechtstexte */
.legal_draft {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid hsl(14 70% 55% / 0.5);
  border-left: 3px solid hsl(14 80% 58%);
  border-radius: var(--radius);
  background: hsl(14 60% 30% / 0.12);
}

.legal_draft strong {
  font-family: var(--mono-font-family);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18rem;
  color: hsl(14 85% 70%);
}

.legal_draft p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-main);
}


/* ==========================================================================
   15. FEHLERSEITE (404)
   ========================================================================== */

.error_page {
  width: 100%;
  max-width: 60ch;
  margin: 4rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.error_code {
  font-family: var(--mono-font-family);
  font-size: clamp(3.5rem, 14vw, 6rem);
  font-weight: 600;
  line-height: 1;
  color: var(--bright-accent);
  letter-spacing: 0.1em;
}

.error_text {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.8;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* --- Mobile (<= 600px) --- */
@media (max-width: 600px) {
  .legal_page {
    gap: 1.5rem;
  }

  .legal_content {
    gap: 2rem;
  }
}


/* ==========================================================================
   16. COOKIE-HINWEIS
   --------------------------------------------------------------------------
   Der Kasten selbst wird von js/seite.js erzeugt und liegt deshalb in keiner
   HTML-Datei. Aussehen und Texte lassen sich trotzdem von Hand ändern:
   Farben und Abstände hier, die Texte oben in js/seite.js.
   ========================================================================== */

.cookie_banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  padding: 1rem;

  /* Startzustand: unsichtbar und leicht nach unten versetzt.
     Die Klasse --da schiebt ihn ins Bild, --geht wieder heraus. */
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 300ms ease, transform 300ms ease;
}

.cookie_banner--da {
  opacity: 1;
  transform: translateY(0);
}

.cookie_banner--geht {
  opacity: 0;
  transform: translateY(1.5rem);
  pointer-events: none;
}

.cookie_banner_inner {
  max-width: var(--website-width);
  margin: 0 auto;
  padding: 1.5rem 1.75rem;

  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;

  background: linear-gradient(
    to bottom,
    var(--filter-panel-bg-1),
    var(--filter-panel-bg-2)
  );
  border: 1px solid var(--filter-panel-border);
  border-radius: var(--filter-radius);
  box-shadow: var(--filter-shadow);

  /* Der Hintergrund der Seite scheint gedämpft durch. Kann der Browser das
     nicht, greift schlicht die Hintergrundfarbe von oben. */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cookie_banner_text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.cookie_banner_overline {
  font-family: var(--mono-font-family);
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22rem;
  color: var(--bright-accent);
}

.cookie_banner_titel {
  font-family: var(--h1-font-family);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

.cookie_banner_text p {
  font-size: clamp(0.82rem, 1.2vw, 0.92rem);
  line-height: 1.65;
  color: var(--text-muted);
  text-wrap: pretty;
  max-width: 70ch;
}

.cookie_banner_link {
  align-self: start;
  margin-top: 0.2rem;
  font-family: var(--mono-font-family);
  font-size: 0.75rem;
  color: var(--bright-accent);
  border-bottom: 1px solid var(--green-border);
  padding-bottom: 1px;
  transition: border-color 0.2s, color 0.2s;
}

.cookie_banner_link:hover {
  border-bottom-color: var(--bright-accent);
  color: var(--text-main);
}

.cookie_banner_knoepfe {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 0 0 auto;
  min-width: 13rem;
}

/* Die Knopf-Grundformen bt-green-flashy und btn-brown-trans kommen aus
   Abschnitt 6. Hier nur enger fassen, damit sie in den Kasten passen. */
.cookie_banner_btn {
  flex: 0 0 auto;
  padding: 0.7rem 1.4rem;
  font-size: 0.72rem;
  white-space: nowrap;
}

/* --- Mobil (<= 780px): Text oben, Knöpfe darunter über die volle Breite --- */
@media (max-width: 780px) {
  .cookie_banner {
    padding: 0.6rem;
  }

  .cookie_banner_inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1.25rem;
    max-height: 85vh;
    overflow-y: auto;
  }

  .cookie_banner_knoepfe {
    min-width: 0;
  }

  .cookie_banner_btn {
    width: 100%;
    padding: 0.85rem 1rem;
  }
}

/* --- Wer im Betriebssystem weniger Bewegung eingestellt hat, bekommt keine --- */
@media (prefers-reduced-motion: reduce) {
  .cookie_banner {
    transition: opacity 150ms ease;
    transform: none;
  }

  .cookie_banner--da,
  .cookie_banner--geht {
    transform: none;
  }
}
