:root{
  --primary:#6366f1;
  --secondary:#232336;
  --accent:#22c55e;

  --bg:#1e1e2f;
  --text:#e5e7eb;

  --card-bg:rgba(30,30,47,.95);
  --hero-overlay:rgba(0,0,0,.65);
}


/* RESET */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Inter',sans-serif;
}

/* BODY */
body{
  background:var(--bg);
  color:var(--text);
  min-height:100vh;
  position:relative;
  overflow-x:hidden;
}

/* =========================
   PARTICLES (IMMER HINTER ALLES)
========================= */
#particles-js{
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
}

/* =========================
   HEADER
========================= */
header{
  position:sticky;
  top:0;
  z-index:10;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:1rem 2rem;
  background:var(--secondary);
  box-shadow:0 5px 15px rgba(0,0,0,.1);
}

.logo{
  display:flex;
  align-items:center;
  gap:.8rem;
}

.logo img{
  width:48px;
}

.logo h1{
  font-size:1.4rem;
  color:var(--primary);
}

/* NAV */
.nav-desktop{
  display:flex;
  align-items:center;
  gap:1rem;
}

.nav-desktop a{
  display:flex;
  align-items:center;
  gap:.4rem;
  padding:.55rem .9rem;
  border-radius:999px;
  text-decoration:none;
  font-weight:600;
  color:var(--text);
  transition:.25s;
}

.nav-desktop a:hover{
  background:rgba(79,70,229,.12);
  color:var(--primary);
}

.theme-toggle{
  background:none;
  border:none;
  font-size:1.4rem;
  cursor:pointer;
}

/* MOBILE */
.menu-toggle{
  display:none;
  font-size:1.6rem;
  cursor:pointer;
}

.mobile-menu{
  position:fixed;
  top:0;
  right:-100%;
  width:80%;
  height:100vh;
  background:var(--secondary);
  padding:2rem;
  display:flex;
  flex-direction:column;
  gap:1.2rem;
  transition:.35s;
  z-index:20;
}

.mobile-menu.active{
  right:0;
}

/* =========================
   HERO
========================= */
.hero{
  position:relative;
  z-index:2;
  min-height:30vh;          /* war 65vh */
  margin:2rem;
  border-radius:20px;
  padding:4rem 2rem;       /* war 7rem */
  text-align:center;
  background:
    linear-gradient(var(--hero-overlay),var(--hero-overlay)),
    url('https://images.unsplash.com/photo-1601924582971-711e9fcd6d36?fit=crop&w=1950&q=80')
    center/cover no-repeat;
}


.hero h2{
  color:#fff;
  font-size:clamp(2.5rem,6vw,5rem);
}

.hero span{
  color:var(--accent);
}

.hero p{
  color:#f0f4f8;
  max-width:700px;
  margin:1rem auto 2rem;
  font-size:1.1rem;
}

/* HERO BUTTONS */
.buttons a{
  display:inline-block;
  margin:.4rem;
  padding:1rem 2.4rem;
  border-radius:999px;
  font-weight:700;
  text-decoration:none;
}

.btn-primary{
  background:var(--primary);
  color:#fff;
}

.btn-secondary{
  border:2px solid var(--primary);
  color:var(--primary);
  background:transparent;
}

/* =========================
   INFO / HINWEIS BOXEN
========================= */
.info-box{
  position:relative;
  z-index:2;
  max-width:900px;
  margin:1.5rem auto;
  padding:1.3rem 1.5rem;
  border-radius:16px;
  font-weight:500;
}

.info-box.info{
  background:#fde68a;
  color:#92400e;
}

.info-box.hinweis{
  background:#bbf7d0;
  color:#065f46;
}

/* =========================
   CONTENT / CARDS
========================= */
.container{
  position:relative;
  z-index:2;
  max-width:1200px;
  margin:auto;
  padding:2rem;
}

.card{
  background:var(--card-bg);
  padding:2rem;
  border-radius:22px;
  box-shadow:0 25px 60px rgba(0,0,0,.15);
  margin-bottom:2rem;
}

/* =========================
   FOOTER
========================= */
footer{
  position:relative;
  z-index:2;
  text-align:center;
  padding:2rem;
  background:var(--secondary);
  margin-top:4rem;
}

footer a{
  font-size:.8rem;
  opacity:.7;
  text-decoration:none;
  color:inherit;
}

/* =========================
   BADGES
========================= */
.badge{
  display:inline-block;
  padding:.25rem .7rem;
  border-radius:999px;
  font-size:.7rem;
  font-weight:800;
  color:#fff;
}

.badge.admin{background:#dc2626}
.badge.team{background:#2563eb}

/* =========================
   RESPONSIVE
========================= */
@media(max-width:900px){
  .nav-desktop{display:none}
  .menu-toggle{display:block}
  .hero{margin:1rem;padding:5rem 1.5rem}
}

/* =========================
   MODERN TODO LIST
========================= */
.todo-list{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:1.2rem;
}

.todo-card{
  background:var(--card-bg);
  border-radius:18px;
  padding:1.2rem 1.3rem;
  box-shadow:0 18px 40px rgba(0,0,0,.12);
  position:relative;
  transition:.25s;
}

.todo-card:hover{
  transform:translateY(-4px);
  box-shadow:0 30px 60px rgba(0,0,0,.18);
}

.todo-card.done{
  opacity:.55;
}

.todo-title{
  font-weight:900;
  font-size:1.05rem;
  margin-bottom:.4rem;
}

.todo-desc{
  font-size:.85rem;
  opacity:.75;
  margin-bottom:.7rem;
}

.todo-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:.75rem;
  opacity:.7;
  margin-bottom:.6rem;
}

.todo-actions{
  display:flex;
  gap:.5rem;
  flex-wrap:wrap;
}

.todo-actions a{
  padding:.35rem .8rem;
  border-radius:999px;
  font-size:.7rem;
  font-weight:800;
  text-decoration:none;
  transition:.2s;
}

.todo-actions .done-btn{
  background:#22c55e;
  color:#fff;
}

.todo-actions .undo-btn{
  background:#f59e0b;
  color:#fff;
}

.todo-actions .delete-btn{
  background:#dc2626;
  color:#fff;
}

.todo-actions a:hover{
  transform:scale(1.05);
}

/* PRIORITY STRIPE */
.todo-card::before{
  content:'';
  position:absolute;
  inset:0;
  width:6px;
  border-radius:18px 0 0 18px;
}

.todo-card.hoch::before{background:#dc2626}
.todo-card.normal::before{background:#f59e0b}
.todo-card.niedrig::before{background:#16a34a}

/* =========================
   MODERN TODO CREATE (ADMIN)
========================= */
.todo-create{
  background:linear-gradient(135deg,#4f46e5,#6366f1);
  color:#fff;
}

.todo-inner{
  background:rgba(255,255,255,.96);
  border-radius:18px;
  padding:1.6rem;
  max-width:720px;
  margin:auto;
  color:#1f2937;
}

.todo-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:1.2rem;
}

.todo-header span{
  font-size:.75rem;
  opacity:.7;
}

.todo-form .field{
  margin-bottom:1rem;
}

.todo-form label{
  display:block;
  font-weight:800;
  margin-bottom:.3rem;
}

.todo-form input,
.todo-form textarea{
  width:100%;
  padding:.75rem;
  border-radius:14px;
  border:none;
  outline:none;
  font-size:.95rem;
}

.todo-form textarea{
  min-height:90px;
  resize:vertical;
}

.prio-select{
  display:flex;
  gap:.6rem;
  flex-wrap:wrap;
}

.prio-select input{
  display:none;
}

.prio{
  padding:.45rem 1rem;
  border-radius:999px;
  font-weight:800;
  cursor:pointer;
  opacity:.6;
  transition:.25s;
  color:#fff;
}

.prio.hoch{background:#dc2626}
.prio.normal{background:#f59e0b}
.prio.niedrig{background:#16a34a}

.prio-select input:checked + .prio{
  opacity:1;
  box-shadow:0 0 0 3px rgba(255,255,255,.35);
}

.todo-actions{
  display:flex;
  justify-content:flex-end;
}

.todo-btn{
  padding:.8rem 2rem;
  border:none;
  border-radius:999px;
  font-weight:900;
  background:#4f46e5;
  color:#fff;
  cursor:pointer;
  transition:.25s;
}

.todo-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 25px rgba(0,0,0,.25);
}

/* ===============================
   SERVER EINDRÜCKE – HARD FIX
   (isoliert & überschreibend)
================================ */

/* Grid erzwingen */
.impressions-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
}

/* Tablet */
@media (max-width: 1024px) {
  .impressions-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .impressions-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Karte komplett isolieren */
.impression-card {
  display: flex !important;
  flex-direction: column !important;
  background: var(--card-bg) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.12) !important;
}

/* Bildbereich erzwingen */
.impression-image {
  width: 100% !important;
  height: 200px !important;
  overflow: hidden !important;
  position: relative !important;
}

/* Bild absolut kontrollieren */
.impression-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  float: none !important;
  max-width: none !important;
}

/* Text strikt unter Bild */
.impression-content {
  padding: 1rem 1.2rem !important;
  border-top: 1px solid rgba(0,0,0,.08);
}

/* Content über Particles */
.impressions-section {
  position: relative;
  z-index: 2;
}

/* Eindrücke exakt wie Hero ausrichten */
.impressions-section {
  margin: 2rem;
}



/* Tablet */
@media (max-width: 1024px) {
  .impressions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .impressions-grid {
    grid-template-columns: 1fr;
  }
}

.impressions-section {
  position: relative;
  z-index: 2;
}

/* ===============================
   CARD FADE-IN ANIMATION
================================ */

/* Ausgangszustand */
.impression-card {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

/* Wenn sichtbar */
.impression-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Kleine Verzögerung pro Karte (Stagger) */
.impression-card:nth-child(1) { transition-delay: 0.05s; }
.impression-card:nth-child(2) { transition-delay: 0.1s; }
.impression-card:nth-child(3) { transition-delay: 0.15s; }
.impression-card:nth-child(4) { transition-delay: 0.2s; }
.impression-card:nth-child(5) { transition-delay: 0.25s; }
.impression-card:nth-child(6) { transition-delay: 0.3s; }

.theme-toggle,
#theme-toggle,
#theme-toggle-mobile {
  display: none !important;
}

/* ===============================
   DARK MODE – LESBARKEIT
================================ */

/* Fließtext angenehmer */
p, li {
  color: rgba(229,231,235,0.9);
}

/* Überschriften klarer */
h1, h2, h3, h4 {
  color: #f9fafb;
}

/* Karten leicht abheben */
.card,
.impression-card,
.rules section {
  background: rgba(30,30,47,0.96);
  border: 1px solid rgba(255,255,255,0.04);
}

/* Absätze mehr Luft */
.rules p,
.rules li {
  line-height: 1.75;
}

/* Paragraph-Abstände verbessern */
.rules section p + p {
  margin-top: 0.6rem;
}

/* ===============================
   SANFTER GLOW-HOVER
================================ */

/* Cards */
.card:hover,
.impression-card:hover,
.rules section:hover {
  box-shadow:
    0 18px 45px rgba(0,0,0,0.55),
    0 0 0 1px rgba(99,102,241,0.15);
  transform: translateY(-4px);
}

/* Nav Links */
.nav-desktop a:hover {
  box-shadow: 0 0 0 1px rgba(99,102,241,0.35);
}

/* Buttons */
.btn-primary:hover {
  box-shadow:
    0 0 0 2px rgba(99,102,241,0.35),
    0 10px 30px rgba(0,0,0,0.5);
}

/* ===============================
   ACCESSIBILITY & KONTRASTE
================================ */

/* Links klar erkennbar */
a {
  color: #a5b4fc;
}

a:hover {
  color: #c7d2fe;
}

/* Listenpunkte besser sichtbar */
.rules ul li::marker {
  color: #818cf8;
}

/* Tooltip kontrastreicher */
.tooltip::after {
  background: #0f172a;
  color: #e5e7eb;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

/* Fokus für Tastatur-Navigation */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #818cf8;
  outline-offset: 3px;
}

/* ===============================
   PREMIUM BRAND HEADER
================================ */

.brand{
  display:flex;
  align-items:center;
  gap:.9rem;
  text-decoration:none;
}

/* Icon */
.brand-icon{
  width:46px;
  height:46px;
  border-radius:50%;
  background:linear-gradient(135deg,#6366f1,#22c55e);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 8px 28px rgba(0,0,0,.6);
  transition:.3s ease;
}

.brand-icon img{
  width:26px;
  height:26px;
  object-fit:contain;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.7));
}

/* Text */
.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}

.brand-title{
  font-weight:900;
  letter-spacing:.12em;
  font-size:1.05rem;
  color:#f9fafb;
}

.brand-sub{
  font-size:.65rem;
  opacity:.6;
  letter-spacing:.08em;
  text-transform:uppercase;
}

/* Hover */
.brand:hover .brand-icon{
  transform:scale(1.06);
  box-shadow:0 0 35px rgba(99,102,241,.6);
}

/* Mobile: nur Icon + EN-RP */
@media(max-width:600px){
  .brand-sub{display:none}
}

/* ===============================
   PREMIUM MOBILE MENU
================================ */

.mobile-menu{
  position:fixed;
  top:0;
  right:-100%;
  width:85%;
  height:100vh;
  background:#1e1e2f;
  padding:1.5rem;
  z-index:50;
  transition:.35s ease;
  display:flex;
  flex-direction:column;
  gap:1.5rem;
}

.mobile-menu.active{
  right:0;
}

/* Brand im Menü */
.mobile-brand{
  display:flex;
  align-items:center;
  gap:1rem;
  padding-bottom:1rem;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.mobile-brand strong{
  font-size:1.1rem;
}

.mobile-brand span{
  font-size:.75rem;
  opacity:.6;
}

/* Nav */
.mobile-nav{
  display:flex;
  flex-direction:column;
  gap:.4rem;
}

.mobile-nav a{
  display:flex;
  align-items:center;
  gap:.9rem;
  padding:.85rem 1rem;
  border-radius:12px;
  font-size:1rem;
  font-weight:600;
  text-decoration:none;
  color:#e5e7eb;
  transition:.25s;
}

.mobile-nav a i{
  width:22px;
  text-align:center;
  opacity:.85;
}

.mobile-nav a:hover{
  background:rgba(99,102,241,.15);
}

/* Discord Highlight */
.discord-link{
  margin-top:.5rem;
  background:linear-gradient(135deg,#5865F2,#4752C4);
  color:#fff !important;
}

.discord-link:hover{
  filter:brightness(1.1);
}

/* ===============================
   MOBILE HERO FIX
================================ */

@media (max-width: 768px) {

  .hero{
    min-height: unset;
    padding: 2.5rem 1.5rem;
    margin: 1rem;
  }

  .hero h2{
    font-size: 2rem;
  }

  .hero p{
    font-size: .95rem;
    margin-bottom: 1.2rem;
  }

}

/* ===============================
   MOBILE FIX – EINDRÜCKE SICHTBAR
================================ */

@media (max-width: 768px) {
  .impression-card {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===============================
   FORM PREMIUM DARK
================================ */

form label{
  display:block;
  font-weight:600;
  margin:.8rem 0 .35rem;
  opacity:.85;
}

/* Inputs & Textareas */
form input,
form textarea,
form select{
  width:100%;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:14px;
  padding:.85rem 1rem;
  color:#f9fafb;
  font-size:.95rem;
  transition:.25s;
}

/* Placeholder */
form input::placeholder,
form textarea::placeholder{
  color:rgba(229,231,235,.45);
}

/* Focus */
form input:focus,
form textarea:focus,
form select:focus{
  outline:none;
  border-color:rgba(99,102,241,.6);
  box-shadow:0 0 0 2px rgba(99,102,241,.25);
  background:rgba(255,255,255,0.06);
}

/* ===============================
   PREMIUM APPLY BUTTON
================================ */

.apply-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  padding:1rem 2.8rem;
  border-radius:999px;
  border:none;
  cursor:pointer;

  background:
    linear-gradient(135deg,#6366f1,#22c55e);
  color:#fff;

  font-weight:900;
  font-size:1rem;
  letter-spacing:.04em;

  box-shadow:
    0 15px 35px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.08);

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    filter .25s ease;
}

/* Icon */
.apply-btn .icon{
  font-size:1.2rem;
  transform:translateY(1px);
}

/* Hover */
.apply-btn:hover{
  transform:translateY(-3px) scale(1.02);
  box-shadow:
    0 25px 55px rgba(0,0,0,.75),
    0 0 35px rgba(99,102,241,.6);
  filter:brightness(1.08);
}

/* Klick */
.apply-btn:active{
  transform:translateY(-1px) scale(.99);
}

/* Fokus (Accessibility) */
.apply-btn:focus-visible{
  outline:none;
  box-shadow:
    0 0 0 3px rgba(99,102,241,.5),
    0 25px 55px rgba(0,0,0,.7);
}

/* Dezente Animation beim Laden */
.apply-btn{
  animation:applyPulse 2.8s ease-in-out infinite;
}

@keyframes applyPulse{
  0%,100%{
    box-shadow:
      0 15px 35px rgba(0,0,0,.55),
      0 0 0 0 rgba(99,102,241,.0);
  }
  50%{
    box-shadow:
      0 20px 45px rgba(0,0,0,.7),
      0 0 30px rgba(99,102,241,.45);
  }
}

/* Mobile Feintuning */
@media(max-width:600px){
  .apply-btn{
    width:100%;
    justify-content:center;
    padding:1.1rem 2rem;
  }
}

/* ===============================
   ULTRA PREMIUM APPLY BUTTON
================================ */

.apply-btn{
  position:relative;
  overflow:hidden;
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:1.1rem 3rem;
  border-radius:999px;
  border:none;
  cursor:pointer;

  background:linear-gradient(135deg,#6366f1,#22c55e);
  color:#fff;

  font-weight:900;
  font-size:1rem;
  letter-spacing:.05em;

  box-shadow:
    0 18px 45px rgba(0,0,0,.6),
    0 0 0 1px rgba(255,255,255,.08);

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    filter .25s ease;
}

/* Button Content */
.apply-btn .btn-content{
  display:flex;
  align-items:center;
  gap:.6rem;
  transition:.25s;
}

.apply-btn .icon{
  font-size:1.25rem;
}

/* Hover */
.apply-btn:hover{
  transform:translateY(-3px) scale(1.03);
  box-shadow:
    0 30px 70px rgba(0,0,0,.85),
    0 0 45px rgba(99,102,241,.6);
  filter:brightness(1.1);
}

/* Ripple */
.apply-btn::after{
  content:'';
  position:absolute;
  width:20px;
  height:20px;
  background:rgba(255,255,255,.4);
  border-radius:50%;
  transform:scale(0);
  opacity:0;
  pointer-events:none;
}

.apply-btn.ripple::after{
  animation:ripple .6s ease-out;
}

@keyframes ripple{
  to{
    transform:scale(18);
    opacity:0;
  }
}

/* Loader */
.apply-btn .loader{
  position:absolute;
  width:22px;
  height:22px;
  border:3px solid rgba(255,255,255,.35);
  border-top:3px solid #fff;
  border-radius:50%;
  animation:spin .8s linear infinite;
  opacity:0;
}

@keyframes spin{
  to{transform:rotate(360deg)}
}

/* Success */
.apply-btn .success{
  position:absolute;
  opacity:0;
  font-weight:900;
  letter-spacing:.05em;
}

/* STATES */
.apply-btn.loading .btn-content{
  opacity:0;
}

.apply-btn.loading .loader{
  opacity:1;
}

.apply-btn.success{
  background:linear-gradient(135deg,#22c55e,#16a34a);
  box-shadow:0 0 40px rgba(34,197,94,.6);
}

.apply-btn.success .loader{
  opacity:0;
}

.apply-btn.success .success{
  opacity:1;
  animation:pop .4s ease;
}

@keyframes pop{
  0%{transform:scale(.7);opacity:0}
  100%{transform:scale(1);opacity:1}
}

/* Mobile Full Width */
@media(max-width:600px){
  .apply-btn{
    width:100%;
  }
}

/* Bewerbungsformular – Layout */
.application-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.application-grid.full {
  grid-template-columns: 1fr;
}

@media (max-width: 900px) {
  .application-grid {
    grid-template-columns: 1fr;
  }
}

.application-form input,
.application-form textarea {
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: .95rem;
}

.application-form input::placeholder,
.application-form textarea::placeholder {
  color: rgba(255,255,255,.45);
}

.application-form input:focus,
.application-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(99,102,241,.25);
}

.application-form textarea {
  min-height: 180px;
  resize: vertical;
}

/* ==================================================
   FIX: ToDo-Create Box (weiße Card) -> Text sichtbar
   (greift nur für typische ToDo-Create Wrapper)
================================================== */

.new-todo input,
.new-todo textarea,
.todo-create input,
.todo-create textarea,
.todo-form input,
.todo-form textarea,
.todo-card input,
.todo-card textarea,
.todo-modal input,
.todo-modal textarea,
#todoCreate input,
#todoCreate textarea,
#todo-create input,
#todo-create textarea {
  color: #111 !important;          /* <- Textfarbe sichtbar */
  caret-color: #111 !important;    /* <- Cursor sichtbar */
}

/* Placeholder lesbar */
.new-todo input::placeholder,
.new-todo textarea::placeholder,
.todo-create input::placeholder,
.todo-create textarea::placeholder,
.todo-form input::placeholder,
.todo-form textarea::placeholder,
.todo-card input::placeholder,
.todo-card textarea::placeholder,
.todo-modal input::placeholder,
.todo-modal textarea::placeholder,
#todoCreate input::placeholder,
#todoCreate textarea::placeholder,
#todo-create input::placeholder,
#todo-create textarea::placeholder {
  color: rgba(17, 17, 17, 0.45) !important;
}

/* Optional: leichtes Feld-Background damit es sich abhebt (falls es “weiß auf weiß” ist) */
.new-todo input,
.new-todo textarea,
.todo-create input,
.todo-create textarea,
.todo-form input,
.todo-form textarea,
.todo-card input,
.todo-card textarea,
.todo-modal input,
.todo-modal textarea,
#todoCreate input,
#todoCreate textarea,
#todo-create input,
#todo-create textarea {
  background: rgba(0,0,0,0.03) !important;
}

.nav-register-btn{
  margin-left:1rem;
  padding:.55rem 1.4rem;
  border-radius:999px;
  font-weight:900;
  text-decoration:none;
  color:#fff;
  background:linear-gradient(135deg,#22c55e,#16a34a);
  box-shadow:0 10px 30px rgba(34,197,94,.35);
  transition:.25s;
}

.nav-register-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 40px rgba(34,197,94,.5);
}

.auth-card{
  max-width:460px;
  margin:0 auto;
  background:rgba(17,24,39,.85);
  border-radius:22px;
  padding:2rem;
  box-shadow:0 30px 80px rgba(0,0,0,.55);
}

.register-form input{
  width:100%;
  padding:.9rem 1rem;
  margin-bottom:.8rem;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.6);
  color:#fff;
}

.form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:.8rem;
}

/* ==================================================
   EN-RP MENU MODERN UPGRADE (APPEND-ONLY)
   - Nichts aus deiner Datei wurde entfernt
   - Dieses Paket modernisiert NUR Header/Nav/Mobile-Menü
   - Safe overrides (am Dateiende -> gewinnt gegen frühere Regeln)
================================================== */

/* -------------------------------
   Premium Sticky Header (Glass)
-------------------------------- */
header{
  position: sticky; /* bleibt wie gehabt, aber sicher */
  top: 0;
  z-index: 100; /* über Content/Particles */
  background: rgba(35,35,54,0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}

header::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:1px;
  background: linear-gradient(90deg,
    rgba(99,102,241,.0),
    rgba(99,102,241,.55),
    rgba(34,197,94,.45),
    rgba(99,102,241,.0)
  );
  pointer-events:none;
}

/* -------------------------------
   Desktop Nav – Micro Interactions
-------------------------------- */
.nav-desktop a{
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.nav-desktop a::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:999px;
  background: linear-gradient(135deg,
    rgba(99,102,241,.22),
    rgba(34,197,94,.14)
  );
  opacity:0;
  transition: opacity .25s ease;
  pointer-events:none;
}

.nav-desktop a::after{
  content:"";
  position:absolute;
  left:14px;
  right:14px;
  bottom:8px;
  height:2px;
  border-radius:999px;
  background: linear-gradient(90deg,#6366f1,#22c55e);
  opacity:0;
  transform: translateY(6px);
  transition: transform .25s ease, opacity .25s ease;
  pointer-events:none;
}

.nav-desktop a:hover{
  transform: translateY(-1px);
}

.nav-desktop a:hover::before{
  opacity:1;
}

.nav-desktop a:hover::after{
  opacity:1;
  transform: translateY(0);
}

/* Active State: entweder per .active ODER aria-current="page" */
.nav-desktop a.active,
.nav-desktop a[aria-current="page"]{
  background: rgba(99,102,241,.18);
  color: #c7d2fe;
  box-shadow: 0 0 0 1px rgba(99,102,241,.35);
}

.nav-desktop a.active::after,
.nav-desktop a[aria-current="page"]::after{
  opacity:1;
  transform: translateY(0);
}

/* Register Button – Premium Pop (ohne nerviges Blinken) */
.nav-register-btn{
  position: relative;
  isolation: isolate;
}

.nav-register-btn::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:999px;
  background: linear-gradient(135deg,#22c55e,#16a34a);
  filter: blur(14px);
  opacity:.25;
  z-index:-1;
  transition: opacity .25s ease, filter .25s ease;
}

.nav-register-btn:hover::before{
  opacity:.45;
  filter: blur(18px);
}

/* -------------------------------
   Mobile Toggle – Button Look
-------------------------------- */
.menu-toggle{
  /* falls es ein div ist: visuell wie Button */
  width:46px;
  height:46px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 35px rgba(0,0,0,.35);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  user-select:none;
}

.menu-toggle:hover{
  transform: translateY(-1px);
  background: rgba(99,102,241,.14);
  box-shadow: 0 18px 45px rgba(0,0,0,.45);
}

.menu-toggle:active{
  transform: translateY(0);
}

/* -------------------------------
   Mobile Menu – Premium Drawer
-------------------------------- */
.mobile-menu{
  background:
    radial-gradient(circle at top right, rgba(99,102,241,.18), transparent 60%),
    radial-gradient(circle at bottom left, rgba(34,197,94,.12), transparent 55%),
    var(--secondary);
  box-shadow: -30px 0 80px rgba(0,0,0,.65);
  border-left: 1px solid rgba(255,255,255,.06);
  will-change: right;
}

.mobile-menu.active{
  animation: enrpMenuIn .35s ease-out;
}

@keyframes enrpMenuIn{
  from{ transform: translateX(26px); opacity:.85; }
  to{ transform: translateX(0); opacity:1; }
}

/* Mobile Nav Links – "App-Like" */
.mobile-nav a{
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
}

.mobile-nav a::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:0;
  background: linear-gradient(180deg, rgba(99,102,241,.95), rgba(34,197,94,.75));
  transition: width .25s ease;
  opacity:.9;
}

.mobile-nav a:hover{
  background: rgba(99,102,241,.14);
}

.mobile-nav a:hover::before{
  width:4px;
}

/* Discord Link – stärkerer Fokus */
.mobile-nav a.discord-link{
  border: none;
  background: linear-gradient(135deg,#5865F2,#4752C4);
  box-shadow: 0 18px 45px rgba(88,101,242,.18);
}

.mobile-nav a.discord-link:hover{
  filter: brightness(1.08);
}

/* -------------------------------
   Accessibility / Reduced Motion
-------------------------------- */
@media (prefers-reduced-motion: reduce){
  *{
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
/* ==================================================
   EN-RP FULL SITE MODERNIZATION PACK (APPEND-ONLY)
   - Nichts Relevantes wurde gelöscht
   - Diese Regeln liegen am Dateiende und überschreiben nur Optik/Spacing
   - Ziel: Premium / Modern / Clean (ohne dein System zu zerstören)
================================================== */

/* ---------- Global polish ---------- */
:root {
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --shadow-1: 0 18px 55px rgba(0,0,0,.35);
  --shadow-2: 0 30px 80px rgba(0,0,0,.55);

  --glass: rgba(35,35,54,0.72);
}

body::before {
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at 20% 15%, rgba(99,102,241,.12), transparent 55%),
    radial-gradient(circle at 75% 25%, rgba(34,197,94,.10), transparent 55%),
    radial-gradient(circle at 40% 85%, rgba(99,102,241,.08), transparent 60%);
  opacity: .9;
}

.container {
  padding: clamp(1.2rem, 2vw, 2rem);
}

section.container {
  margin-top: clamp(1.2rem, 2.2vw, 2rem);
}

/* ---------- Header scroll state ---------- */
header.header-scrolled {
  background: rgba(35,35,54,0.92);
  border-bottom-color: rgba(255,255,255,0.10);
  box-shadow: var(--shadow-1);
}

/* ---------- Mobile overlay + scroll lock ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(0,0,0,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.menu-close{
  width:46px;
  height:46px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(255,255,255,0.06);
  color:var(--text);
  display:grid;
  place-items:center;
  cursor:pointer;
  box-shadow:0 12px 35px rgba(0,0,0,.35);
  transition: transform .2s ease, background .2s ease;
}
.menu-close:hover{
  transform: translateY(-1px);
  background: rgba(99,102,241,.14);
}
.menu-close:active{ transform:none; }

body.menu-open {
  overflow: hidden;
}

/* ---------- Hero: mehr Tiefe ---------- */
.hero {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: var(--shadow-2);
}

.hero::before {
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at top, rgba(99,102,241,.22), transparent 55%),
    radial-gradient(circle at bottom, rgba(34,197,94,.14), transparent 55%);
  opacity:.9;
  pointer-events:none;
}

.hero::after {
  content:"";
  position:absolute;
  inset:0;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  pointer-events:none;
}

.hero h2 {
  text-shadow: 0 20px 60px rgba(0,0,0,.65);
}

.buttons {
  display:flex;
  justify-content:center;
  gap:.75rem;
  flex-wrap:wrap;
}

.buttons a {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  transition: transform .2s ease, box-shadow .25s ease, filter .25s ease, background .25s ease;
}

.btn-primary {
  box-shadow: 0 18px 45px rgba(99,102,241,.22);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.06);
}

.btn-secondary {
  background: rgba(255,255,255,0.03);
  box-shadow: 0 0 0 1px rgba(99,102,241,.25);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(99,102,241,.45), 0 18px 45px rgba(0,0,0,.35);
}

/* ---------- Eindrücke: Cards wie Premium-Showcase ---------- */
.impressions-section {
  border-radius: var(--radius-lg);
}

.impressions-grid {
  align-items: stretch;
}

.impression-card {
  border: 1px solid rgba(255,255,255,0.06) !important;
  background: rgba(30,30,47,0.92) !important;
  box-shadow: 0 22px 60px rgba(0,0,0,.18) !important;
}

.impression-image::after {
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent 60%);
  pointer-events:none;
}

.impression-image img {
  transform: scale(1.02);
  transition: transform .35s ease;
}

.impression-card:hover .impression-image img {
  transform: scale(1.06);
}

.impression-content h3 {
  font-weight: 900;
  letter-spacing: .01em;
}

.impression-content p {
  opacity: .82;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CTA unter Eindrücken */
.impressions-section > div[style*="text-align:center"] a {
  padding: .95rem 1.6rem;
}

/* ---------- Warum EN-RP: Feature-Cards (nur Home) ---------- */
.home-features .todo-card {
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(30,30,47,0.92);
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
}

.home-features .todo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(0,0,0,.28);
}

.home-features .todo-title {
  font-size: 1.05rem;
}

/* ---------- Final CTA ---------- */
.final-cta {
  background: radial-gradient(circle at top, rgba(99,102,241,.16), transparent 55%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: clamp(1.6rem, 3vw, 2.6rem);
}

/* ---------- Better mobile spacing ---------- */
@media (max-width: 900px) {
  header {
    padding: .9rem 1rem;
  }
  .hero {
    margin: 1rem;
  }
}

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .impression-image img,
  .buttons a,
  .nav-desktop a,
  .mobile-nav a,
  .menu-toggle {
    transition: none !important;
  }
}
/* =========================================================
   FIX: Mobile Menü Layering + "doppeltes Header" Optik
========================================================= */
@media (max-width: 900px){
  .menu-overlay{
    z-index: 9998;
    background: rgba(0,0,0,.68);
  }

  .mobile-menu{
    z-index: 9999;
    background: rgba(24, 26, 40, .96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  body.menu-open .menu-toggle{
    opacity: 0;
    pointer-events: none;
  }
}
