/* ================================================================
   NightcoreJerry — Global Styles
   Pure CSS · custom properties · nesting · clamp()
   ================================================================ */

/* ---- Custom Properties --------------------------------------- */
:root {
  /* Farben */
  --primary:      #0095d9;
  --primary-dk:   #007ab8;
  --primary-glow: rgba(0, 149, 217, .2);

  --bg:           #0d1117;
  --bg-card:      rgba(16, 26, 44, .75);
  --bg-surface:   #111825;
  --bg-header:    #07090f;
  --bg-input:     rgba(12, 20, 36, .9);
  --bg-hover:     rgba(255, 255, 255, .05);

  --border:       rgba(45, 68, 100, .65);
  --border-light: rgba(255, 255, 255, .08);

  --text:         #dde6f5;
  --text-muted:   #7a90aa;
  --text-subtle:  #4a6080;

  --danger:       #f87171;
  --danger-bg:    rgba(239, 68, 68, .12);
  --danger-border:rgba(220, 38, 38, .3);
  --success:      #4ade80;
  --success-bg:   rgba(34, 197, 94, .12);
  --success-border:rgba(21, 128, 61, .3);
  --warn:         #fbbf24;
  --warn-bg:      rgba(245, 158, 11, .12);
  --warn-border:  rgba(217, 119, 6, .3);

  /* Farbige Tags */
  --tag-admin: #f87171;  --tag-admin-bg: rgba(239, 68, 68, .15);
  --tag-mod:   #4ade80;  --tag-mod-bg:   rgba(34, 197, 94, .15);
  --tag-ncj:   #0095d9;  --tag-ncj-bg:   rgba(0, 149, 217, .15);

  /* Layout */
  --max-w:    1280px;
  --nav-h:    70px;
  --player-h: 64px;
  --gap:      clamp(.875rem, 4vw, 1.5rem);

  /* Radius */
  --r-sm:  4px;
  --r:     8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-full: 9999px;

  /* Typografie */
  --font:      'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Schatten */
  --shadow-sm: 0 1px 4px rgba(0,0,0,.4);
  --shadow:    0 4px 16px rgba(0,0,0,.5);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.65);

  /* Übergänge */
  --t:  .15s ease;
  --tm: .25s ease;

  /* Scrollbar */
  --scrl-track: #0d1520;
  --scrl-thumb: #253040;
}

/* ---- Reset --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* ---- Base ---------------------------------------------------- */
html {
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
  scrollbar-color: var(--scrl-thumb) var(--scrl-track);
  scrollbar-width: thin;
}
body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  line-height: 1.65;
  /* Player-Bar Platz von Anfang an reservieren → kein CLS wenn Player erscheint */
  padding-bottom: var(--player-h);
}
h1, h2, h3, h4 {
  line-height: 1.25;
  text-wrap: balance;
}

/* ---- Scrollbar (WebKit) -------------------------------------- */
::-webkit-scrollbar        { width: 10px; height: 10px; }
::-webkit-scrollbar-track  { background: var(--scrl-track); }
::-webkit-scrollbar-thumb  {
  background: var(--scrl-thumb);
  border-radius: var(--r-full);
  border: 3px solid var(--scrl-track);
}
::-webkit-scrollbar-thumb:hover  { background: #354555; }
::-webkit-scrollbar-thumb:active { background: var(--primary); }
::-webkit-scrollbar-corner       { background: var(--scrl-track); }

/* ---- Layout -------------------------------------------------- */
.container {
  width: min(var(--max-w), 100%);
  margin-inline: auto;
  padding-inline: var(--gap);
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);

  @media (min-width: 900px) {
    grid-template-columns: 2fr 1fr;
  }
}

.col-main   { display: flex; flex-direction: column; gap: var(--gap); }
.col-aside  { display: flex; flex-direction: column; gap: var(--gap); }

.grow { flex: 1; }

/* ---- Utilities ----------------------------------------------- */
.hidden  { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.truncate{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Buttons ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  padding: .55rem 1.1rem;
  border-radius: var(--r);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background var(--t), opacity var(--t), border-color var(--t);
  user-select: none;

  &:disabled { opacity: .45; cursor: not-allowed; }
}
.btn-primary {
  background: var(--primary);
  color: #fff;

  &:hover:not(:disabled) { background: var(--primary-dk); }
}
.btn-ghost {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border-light);
  color: var(--text);

  &:hover:not(:disabled) { background: rgba(255,255,255,.1); }
}
.btn-danger {
  background: rgba(239,68,68,.2);
  border: 1px solid var(--danger-border);
  color: var(--danger);

  &:hover:not(:disabled) { background: rgba(239,68,68,.3); }
}
.btn-icon {
  padding: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--r);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border-light);
  flex-shrink: 0;

  & svg { width: 1rem; height: 1rem; fill: currentColor; }
  &:hover { background: rgba(255,255,255,.1); }
}

/* ---- Forms / Inputs ----------------------------------------- */
.input {
  width: 100%;
  padding: .55rem .875rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  font-size: .875rem;
  transition: border-color var(--t), box-shadow var(--t);

  &::placeholder { color: var(--text-muted); }
  &:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
  }
  &:read-only { opacity: .6; cursor: not-allowed; }
}
.input-group {
  display: flex;
  gap: .625rem;
  flex-wrap: wrap;

  & .input { flex: 1; min-width: min(160px, 100%); }
  @media (min-width: 640px) { flex-wrap: nowrap; }
}

/* ---- Card ---------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1rem, 4vw, 1.5rem);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 1.25rem;
}

/* ---- Badges -------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .15rem .5rem;
  border-radius: var(--r-sm);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .04em;
  border: 1px solid transparent;
}
.badge-ncj   { color: var(--tag-ncj);   background: var(--tag-ncj-bg);   border-color: rgba(0,149,217,.3); }
.badge-mod   { color: var(--tag-mod);   background: var(--tag-mod-bg);   border-color: rgba(21,128,61,.3); }
.badge-admin { color: var(--tag-admin); background: var(--tag-admin-bg); border-color: rgba(185,28,28,.3); }

/* Status-Badges (Wunschliste) */
.badge-open     { color: var(--warn);    background: var(--warn-bg);    border-color: var(--warn-border); }
.badge-played   { color: var(--success); background: var(--success-bg); border-color: var(--success-border); }
.badge-rejected { color: var(--danger);  background: var(--danger-bg);  border-color: var(--danger-border); }

/* ---- Notice (Ban / Timeout) --------------------------------- */
.notice {
  padding: .75rem 1rem;
  border-radius: var(--r);
  font-size: .875rem;
  border: 1px solid;
}
.notice-danger { color: #fca5a5; background: var(--danger-bg); border-color: var(--danger-border); }
.notice-warn   { color: #fde68a; background: var(--warn-bg);   border-color: var(--warn-border); }

/* ---- Navbar -------------------------------------------------- */
.navbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  background: var(--bg-header);
  border-bottom: 2px solid var(--primary);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: .625rem;
  flex-shrink: 0;
}
.navbar-logo { height: 40px; width: auto; }
.navbar-nav  {
  display: none;
  align-items: center;
  gap: 1.5rem;

  @media (min-width: 768px) { display: flex; }
}
.nav-link {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--t);

  &:hover { color: var(--text); }
  &.is-active { color: var(--primary); }
}
.navbar-actions {
  display: none;
  align-items: center;
  gap: .625rem;

  @media (min-width: 768px) { display: flex; }
}
.navbar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r);
  color: var(--text);
  transition: background var(--t);

  & svg { width: 1.5rem; height: 1.5rem; }
  &:hover { background: var(--bg-hover); }
  @media (min-width: 768px) { display: none; }
}
.navbar-spacer { height: calc(var(--nav-h) + 2px); }

/* Mobile-Menü */
.navbar-mobile {
  background: var(--bg-header);
  border-top: 1px solid var(--border);
  padding: .75rem 1rem 1rem;

  & .mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding-bottom: .75rem;
  }
  & .mobile-nav-link {
    display: block;
    padding: .625rem .75rem;
    border-radius: var(--r);
    font-size: .9375rem;
    color: var(--text-muted);
    transition: background var(--t), color var(--t);

    &:hover { background: var(--bg-hover); color: var(--text); }
  }
  & .mobile-actions {
    display: flex;
    gap: .5rem;
    padding-top: .5rem;
    border-top: 1px solid var(--border);

    & .btn { flex: 1; justify-content: center; }
  }
}

/* Menu-Animations (→ navigation.js) */
.menu-enter         { transform: scaleY(.9); opacity: 0; }
.menu-enter-active  { transform: scaleY(1);  opacity: 1; transition: transform var(--t), opacity var(--t); transform-origin: top; }
.menu-leave         { transform: scaleY(1);  opacity: 1; }
.menu-leave-active  { transform: scaleY(.9); opacity: 0; transition: transform .12s ease, opacity .12s ease; transform-origin: top; }

/* ---- Hero ---------------------------------------------------- */
.hero {
  position: relative;
  height: clamp(220px, 42vw, 480px);
  overflow: hidden;
  /* Explizite Höhe reserviert Platz sofort → kein CLS */
}
/* Hero-Bild als <img> für fetchpriority-Support */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7,9,15,.4) 0%,
    rgba(7,9,15,.65) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  gap: .625rem;
}
.hero-title {
  font-size: clamp(1.6rem, 4vw, 2.75rem);
  font-weight: 700;
  text-shadow: 0 2px 16px rgba(0,0,0,.8);
}
.hero-sub {
  font-size: clamp(.9rem, 2vw, 1.125rem);
  color: rgba(221, 230, 245, .8);
  max-width: 560px;
}

/* ---- Main (Container + Grid) -------------------------------- */
.page-main {
  padding-block: clamp(1rem, 4vw, 2.5rem);
  flex: 1;
}

/* ---- Community --------------------------------------------- */
.post-form {
  display: flex;
  align-items: center;
  gap: .625rem;
  flex-wrap: wrap;

  & .post-avatar { width: 2.5rem; height: 2.5rem; flex-shrink: 0; }
  & .input { flex: 1; min-width: 0; }
  & .btn { height: 2.375rem; padding-inline: 1rem; flex-shrink: 0; }

  @media (max-width: 480px) {
    & .post-avatar { display: none; } /* Avatar auf sehr kleinen Screens weglassen */
    & .input { width: 100%; }
  }
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  max-height: clamp(320px, 60vh, 420px);
  overflow-y: auto;
  padding-right: .25rem;
  margin-top: 1rem;
}

/* Posts (via community.js) */
.post {
  display: flex;
  gap: .75rem;
}
.post-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r-full);
  object-fit: cover;
  flex-shrink: 0;
}
.post-body  { flex: 1; min-width: 0; }

/* meta-Zeile: [nick+badge flex:1] [datum] [kebab] – Datum verschiebt sich nie */
.post-meta {
  display: flex;
  align-items: center;
  gap: .375rem;
  margin-bottom: .25rem;
}
.post-meta-left {
  display: flex;
  align-items: center;
  gap: .375rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.post-nick  { font-size: .875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-time  { font-size: .75rem; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
.post-content {
  font-size: .875rem;
  color: rgba(221,230,245,.85);
  word-break: break-word;

  &.deleted { font-style: italic; color: var(--text-subtle); }
}
.msg-menu-btn {
  color: var(--text-muted);
  padding: .2rem .3rem;
  border-radius: var(--r-sm);
  transition: color var(--t), background var(--t);
  flex-shrink: 0;
  line-height: 0;

  & svg { width: 1.125rem; height: 1.125rem; fill: currentColor; display: block; }
  &:hover { color: var(--text); background: var(--bg-hover); }
}

/* Confirm Dialog + Menü (via community.js) */
.confirm-scrim {
  position: fixed; inset: 0;
  z-index: 1099;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
}
.confirm-dialog {
  position: fixed; z-index: 1100;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: min(92vw, 420px);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}
.confirm-title   { font-size: 1rem; font-weight: 600; margin-bottom: .5rem; }
.confirm-message { font-size: .875rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.confirm-actions { display: flex; justify-content: flex-end; gap: .5rem; }

.msg-menu-scrim { position: fixed; inset: 0; z-index: 999; }
.msg-menu {
  position: fixed; z-index: 1000;
  min-width: 200px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.msg-menu-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  width: 100%;
  padding: .625rem .875rem;
  font-size: .875rem;
  text-align: left;
  color: var(--danger);
  transition: background var(--t);

  & svg { width: 1rem; height: 1rem; fill: currentColor; flex-shrink: 0; }
  &:hover { background: rgba(239,68,68,.12); }
}

/* ---- Wishbox ---------------------------------------------- */
.wishbox-sender {
  width: 8.5rem;

  @media (max-width: 480px) {
    width: 100%;
  }
}

/* ---- Schedule --------------------------------------------- */
.schedule-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;

  @media (min-width: 540px) {
    grid-template-columns: repeat(3, 1fr);
  }
}
.now-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: .25rem;

  & .now-label { color: var(--text-muted); }
}
/* Show-Karte (via schedule.js) */
.show {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  transition: border-color var(--t), background var(--t);

  &:hover { border-color: rgba(0,149,217,.4); }
  &.is-playing { border-color: var(--primary); background: rgba(0,149,217,.07); }
}
.show-time  { font-family: var(--font-mono); font-size: .8125rem; color: var(--primary); }
.show-title { font-size: .9375rem; font-weight: 600; }
.show-desc  { font-size: .8125rem; color: var(--text-muted); }
.live-badge {
  display: inline-flex;
  align-items: center;
  font-size: .6875rem;
  font-weight: 700;
  padding: .1rem .45rem;
  border-radius: var(--r-sm);
  border: 1px solid rgba(239,68,68,.5);
  color: var(--danger);
  margin-left: .5rem;
  letter-spacing: .08em;
}
.sched-col { display: flex; flex-direction: column; gap: .75rem; }

/* ---- Sidebar - News --------------------------------------- */
.news-feed { display: flex; flex-direction: column; gap: .875rem; }
.news-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r);
  border: 1px solid var(--border);
  overflow: hidden;
  background: rgba(16,26,44,.5);
  transition: border-color var(--t), background var(--t);

  &:hover { border-color: rgba(0,149,217,.35); background: rgba(16,26,44,.8); }
}
.news-card-img {
  width: 100%;
  height: auto;        /* Natürliches Bildformat – Kasten passt sich an */
  display: block;
  object-fit: cover;
}
.news-card-body { padding: .75rem; }
.news-card-title {
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: .3rem;
}
.news-card-teaser {
  font-size: .8125rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Sidebar - Ads (Slider) ------------------------------ */
.ad-track {
  display: flex;
  border-radius: var(--r);
  transition: transform .5s ease;
  will-change: transform;
}
.ad-slide {
  min-width: 100%;
  display: block;

  & img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
  }
}

/* ---- Sidebar - Partner ----------------------------------- */
.partner-list { display: flex; flex-direction: column; gap: .75rem; }
.partner-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: rgba(16,26,44,.5);
  transition: border-color var(--t);

  &:hover { border-color: rgba(0,149,217,.35); }
}
.partner-card--twitch {
  background: rgba(100, 65, 164, .1);
  border-color: rgba(100,65,164,.3);

  &:hover { border-color: rgba(100,65,164,.55); }
  & .partner-type { color: #c4a7e7; }
  & .btn-twitch {
    background: rgba(100,65,164,.35);
    color: #e2d6f5;
    border: 1px solid rgba(100,65,164,.4);
    &:hover { background: rgba(100,65,164,.5); }
  }
}
.partner-avatar {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--r-full);
  object-fit: cover;
  flex-shrink: 0;
}
.partner-info     { flex: 1; min-width: 0; }
.partner-name     { font-size: .875rem; font-weight: 600; }
.partner-type     { font-size: .75rem; color: var(--text-muted); }
.partner-banner   {
  display: block;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);

  & img { width: 100%; height: 5.5rem; object-fit: cover; }
  &:hover { border-color: rgba(0,149,217,.35); }
}

/* ---- Live-Bar (Player) ------------------------------------ */
.live-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(7, 9, 15, .97);
  border-top: 2px solid var(--primary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: var(--player-h);
}
.live-bar-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 1rem;
  max-width: 56rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
.play-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--r-full);
  background: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background var(--t), transform .1s ease;

  & svg { width: 1.125rem; height: 1.125rem; fill: #fff; }
  &:hover { background: var(--primary-dk); }
  &:active { transform: scale(.93); }
}
.vol-btn {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  transition: color var(--t);
  flex-shrink: 0;

  & svg { width: 1.5rem; height: 1.5rem; }
  &:hover { color: var(--text); }
}
/* Lautstärke-Slider */
.vol-slider {
  appearance: none;
  width: clamp(60px, 12vw, 100px); /* schrumpft auf Mobile */
  height: 4px;
  border-radius: var(--r-full);
  cursor: pointer;
  flex-shrink: 0;
  background-color: rgba(255,255,255,.12);
  background-image: linear-gradient(var(--primary), var(--primary));
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 20% 100%;
}
.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: var(--r-full);
  background: #fff;
  border: 3px solid var(--primary);
  cursor: pointer;
}
.vol-slider::-moz-range-thumb {
  width: 8px; height: 8px;
  border-radius: var(--r-full);
  background: #fff;
  border: 3px solid var(--primary);
  cursor: pointer;
}
.song-title {
  flex: 1;
  font-size: clamp(.75rem, 3vw, .875rem);
  line-height: 1.4;
  min-width: 0;
  text-align: left;
  overflow: hidden;

  /* Auf Mobile nur eine Zeile zeigen damit der Player nicht zu hoch wird */
  @media (max-width: 480px) {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
.song-primary { color: var(--primary); font-weight: 600; }
.song-live    { color: var(--danger);  font-weight: 600; }

/* ---- Footer ----------------------------------------------- */
.site-footer {
  background: var(--bg-header);
  border-top: 2px solid var(--primary);
  margin-top: auto;
  /* Abstand für den fixierten Player */
  padding-bottom: calc(var(--player-h) + 1.5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-block: 2.5rem;

  @media (min-width: 768px) { grid-template-columns: repeat(4, 1fr); }
}
.footer-col-title {
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: .875rem;
  color: var(--text);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: .375rem;
  font-size: .875rem;

  & a { color: var(--text-muted); transition: color var(--t); }
  & a:hover { color: var(--primary); }
}
.footer-copy {
  text-align: center;
  font-size: .75rem;
  color: var(--text-subtle);
  padding-bottom: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;

  & a { color: var(--text-muted); &:hover { color: var(--primary); } }
}

/* ---- Login Modal ------------------------------------------ */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.auth-wrap {
  position: fixed;
  inset: 0;
  z-index: 201;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.auth-dialog {
  position: relative;
  width: min(94%, 460px);
  background: rgba(10, 16, 28, .96);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: 0 0 80px rgba(0,149,217,.1), var(--shadow-lg);
  overflow: hidden;

  /* Glow-Effekt oben */
  &::before {
    content: '';
    position: absolute;
    top: -3rem; left: 50%;
    transform: translateX(-50%);
    width: 18rem; height: 8rem;
    background: radial-gradient(ellipse, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
    border-radius: var(--r-full);
  }
}
.auth-header {
  position: relative;
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}
.auth-eyebrow {
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--text-muted);
  margin-bottom: .2rem;
}
.auth-title { font-size: 1.125rem; font-weight: 600; }
.auth-close-btn {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-light);
  background: var(--bg-hover);
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  transition: background var(--t), color var(--t);

  &:hover { background: rgba(255,255,255,.1); color: var(--text); }
}
.auth-tabs, .auth-modes {
  display: flex;
  gap: .375rem;
  padding: .3rem;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  margin: 0 1.5rem .5rem;
}
.login-tab, .auth-mode {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .55rem .75rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255,255,255,.6);
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--t), border-color var(--t), color var(--t);

  &:hover:not(.is-active) { background: var(--bg-hover); color: rgba(255,255,255,.8); }
}
.login-tab.is-active {
  background: rgba(0,149,217,.18);
  border-color: rgba(0,149,217,.35);
  color: #fff;
}
.auth-mode.is-active {
  background: rgba(255,255,255,.1);
  border-color: var(--border-light);
  color: #fff;
}
.auth-body { padding: .5rem 1.5rem 1.5rem; }
.auth-panel { /* each panel: show/hidden via JS */ }
.auth-sso-box {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 1.25rem;
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.auth-form { display: flex; flex-direction: column; gap: .75rem; font-size: .875rem; }
.auth-pw-wrap { position: relative; }
.auth-pw-wrap .input { padding-right: 3rem; }
.auth-pw-toggle {
  position: absolute;
  right: .5rem; top: 50%;
  transform: translateY(-50%);
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  border-radius: var(--r);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border-light);
  color: var(--text-muted);

  & svg { width: 1rem; height: 1rem; fill: currentColor; }
  &:hover { background: rgba(255,255,255,.1); }
}
.auth-submit {
  padding-block: .7rem;
  border-radius: var(--r-xl);
}
.auth-msg { font-size: .75rem; }
.auth-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .25rem;
}
.auth-link { font-size: .75rem; color: var(--text-muted); transition: color var(--t); &:hover { color: var(--primary); } }
.auth-hint { font-size: .75rem; color: var(--text-subtle); text-align: center; margin-top: .5rem; }
.auth-hint a { color: var(--primary); &:hover { text-decoration: underline; } }

/* ---- User-Profil Seite ----------------------------------- */
.profile-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;

  @media (min-width: 640px) {
    flex-direction: row;
  }
}
.profile-avatar-wrap { flex-shrink: 0; }
.profile-avatar {
  width: 7rem; height: 7rem;
  border-radius: var(--r-full);
  object-fit: cover;
  border: 2px solid var(--border);
}
.profile-data { flex: 1; display: flex; flex-direction: column; gap: .875rem; }
.profile-field label { font-size: .8125rem; color: var(--text-muted); display: block; margin-bottom: .4rem; }
.profile-field-row { display: flex; gap: .5rem; }
.profile-field-row .input { flex: 1; }
.profile-hint { font-size: .75rem; color: var(--text-subtle); margin-top: .3rem; }
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
.stat-box {
  padding: .875rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: rgba(12,20,36,.6);
}
.stat-label { font-size: .6875rem; color: var(--text-muted); }
.stat-value { font-size: 1.25rem; font-weight: 700; margin-top: .1rem; }

/* Tabs */
.tab-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.tab-btn {
  padding: .55rem 1rem;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: rgba(12,20,36,.6);
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 500;
  transition: background var(--t), color var(--t), border-color var(--t);

  &:hover { background: var(--bg-hover); color: var(--text); }
  &.is-active {
    background: var(--primary-glow);
    border-color: rgba(0,149,217,.35);
    color: var(--primary);
  }
}
.pager { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .875rem; }

.btn-sm { padding: .35rem .75rem; font-size: .8125rem; }

/* ---- Profil: Post/Wunsch-History --------------------------------- */
.post-history-item {
  padding: .75rem 1rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: rgba(16, 26, 44, .5);
  display: flex;
  flex-direction: column;
  gap: .375rem;
}
.post-history-meta {
  font-size: .75rem;
  color: var(--text-muted);
}
.post-history-content {
  font-size: .875rem;
  word-break: break-word;
  white-space: pre-wrap;

  &.deleted { font-style: italic; color: var(--text-subtle); }
}


.news-article {
  & .news-meta { font-size: .8125rem; color: var(--text-muted); }
  & .news-hero-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--r-lg);
  }
  & .news-body {
    font-size: .9375rem;
    line-height: 1.75;
    color: rgba(221,230,245,.9);

    & p { margin-bottom: 1rem; }
    & a { color: var(--primary); text-decoration: underline; }
  }
}

/* ---- Prose-Link ------------------------------------------ */
a.link { color: var(--primary); &:hover { text-decoration: underline; } }