/* ============================================================
   WJ München Corporate Identity für Vikunja
   Primär Teal:  #41d4ae   HSL 162° 61% 54%
   Akzent Orange:#f8a102
   Navy:         #013493
   Text:         #1d1d1b
   Font:         Chivo (300 / 400 / 700 / 900)
   ============================================================ */

/* ---- Chivo als globale Schrift ---- */
*, *::before, *::after {
  font-family: 'Chivo', sans-serif !important;
}

/* ---- CSS-Variablen: WJ Teal als Primary ---- */
:root {
  --primary:                      #41d4ae;
  --primary-h:                    162;
  --primary-s:                    61%;
  --primary-l:                    54%;
  --primary-a:                    1;
  --primary-hsl:                  162deg 61% 54%;
  --primary-invert:               #fff;
  --primary-dark:                 #2aa88a;
  --primary-light:                #d0f5ed;
  --link:                         #41d4ae;
  --link-hover:                   #013493;
  --input-focus-border-color:     #41d4ae;
  --input-focus-box-shadow-color: rgba(65, 212, 174, 0.25);
}

/* =========================================================
   NAVIGATIONSLEISTE
   ========================================================= */

/* Burger-Menu: absolut links positioniert */
.navbar {
  position: relative !important;
}
.menu-button,
button.menu-button {
  position: absolute !important;
  left: 0.75rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.navbar {
  background-color: #013493 !important;
  border-bottom: 3px solid #41d4ae !important;
  min-height: 4rem !important;
}

/* Alle Elemente in der Navbar: weiß */
.navbar *,
.navbar a,
.navbar svg,
.navbar .icon {
  color: #fff !important;
  fill: #fff !important;
}

.navbar a:hover,
.navbar .username-dropdown-trigger:hover {
  color: #41d4ae !important;
  opacity: 1 !important;
}

/* Dropdown-Menü in der Navbar */
.navbar .dropdown-content {
  background: #013493 !important;
  border: 1px solid #41d4ae !important;
}
.navbar .dropdown-item {
  color: #fff !important;
}
.navbar .dropdown-item:hover {
  background: rgba(65, 212, 174, 0.15) !important;
  color: #41d4ae !important;
}

/* Logo-Text "WJ München" neben Logo-Icon */
.navbar .logo-link {
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  letter-spacing: 0.02em !important;
}

/* =========================================================
   SIDEBAR / SEITENMENÜ
   ========================================================= */

/* Aktiver Menü-Eintrag: Teal-Highlight */
.menu-list .list-menu-link.router-link-exact-active {
  color: #41d4ae !important;
  font-weight: 700 !important;
}
.menu-list .list-menu-link.router-link-exact-active::before {
  background: #41d4ae !important;
  width: 4px !important;
}

.menu-list .list-menu-link:hover {
  color: #013493 !important;
}

/* Menü-Überschriften */
.menu-label {
  color: #013493 !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-size: 0.72rem !important;
}

/* =========================================================
   BUTTONS
   ========================================================= */

/* ---- Primäre Aktions-Buttons (SPEICHERN, LOGIN, KOMMENTIEREN) ---- */
/* Elegant: 1px Navy, weiß gefüllt, Hover Orange */
.button.is-primary {
  background-color: #fff !important;
  border: 1px solid rgba(1, 52, 147, 0.5) !important;
  color: #013493 !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  letter-spacing: 0.02em !important;
  box-shadow: none !important;
  transition: border-color 0.2s, color 0.2s !important;
}
.button.is-primary:hover,
.button.is-primary:focus {
  background-color: #fff !important;
  border-color: #f8a102 !important;
  color: #f8a102 !important;
}

/* ---- Alle Buttons: kein Uppercase, schlanke Schrift ---- */
.button:not(.is-danger),
.base-button:not(.is-danger) {
  text-transform: none !important;
  font-weight: 400 !important;
  letter-spacing: 0.01em !important;
  font-size: 0.875rem !important;
  box-shadow: none !important;
}

/* ---- Sidebar-Aktionen (base-button): schlanke Text-Zeilen ---- */
.base-button.is-outlined:not(.is-danger) {
  background-color: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(1, 52, 147, 0.08) !important;
  border-radius: 0 !important;
  color: #013493 !important;
  text-align: left !important;
  padding: 0.45rem 0.25rem !important;
  justify-content: flex-start !important;
  transition: color 0.15s, background-color 0.15s !important;
}
.base-button.is-outlined:not(.is-danger):hover,
.base-button.is-outlined:not(.is-danger):focus {
  background-color: rgba(248, 161, 2, 0.05) !important;
  color: #f8a102 !important;
  border-color: rgba(248, 161, 2, 0.2) !important;
}
.base-button.is-outlined:not(.is-danger) * { color: inherit !important; }

/* ---- Outlined / Sekundär ---- */
.button.is-outlined {
  background-color: #fff !important;
  border: 1px solid rgba(1, 52, 147, 0.5) !important;
  color: #013493 !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  transition: border-color 0.2s, color 0.2s !important;
}
.button.is-outlined:hover {
  border-color: #f8a102 !important;
  color: #f8a102 !important;
}

/* ---- Delete/Danger: bleibt rot, aber schlanker ---- */
.button.is-danger {
  background-color: #e8324e !important;
  border: 1px solid #e8324e !important;
  color: #fff !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
}
.button.is-danger:hover { background-color: #c0293f !important; border-color: #c0293f !important; }
.button.is-danger * { color: #fff !important; }

/* =========================================================
   LINKS & INPUTS
   ========================================================= */

a { color: #013493; }
a:hover { color: #f8a102; }
.reset-password-link,
.forgot-password-link { color: rgba(1,52,147,0.7) !important; font-weight: 500 !important; }
.reset-password-link:hover,
.forgot-password-link:hover { color: #f8a102 !important; }

.input:focus,
.textarea:focus,
.select select:focus {
  border-color: #41d4ae !important;
  box-shadow: 0 0 0 0.125em rgba(65, 212, 174, 0.25) !important;
}

/* =========================================================
   PAGE TITLES & ÜBERSCHRIFTEN
   ========================================================= */

h1, h2, .title { color: #013493 !important; }
h3, h4, .subtitle { color: #1d1d1b !important; }

/* =========================================================
   EDITOR (Beschreibung & Kommentare): sichtbarer Rahmen
   ========================================================= */

/* ---- Äußerer Editor-Rahmen (einziger sichtbarer Rahmen) ---- */
.tiptap {
  border: 1px solid #c8d0da !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  background: #fff !important;
}
.tiptap:focus-within {
  border-color: #41d4ae !important;
  box-shadow: 0 0 0 0.125em rgba(65, 212, 174, 0.2) !important;
}

/* Interne Elemente: KEINE eigenen Borders → nahtloser Block */
.tiptap__wrapper,
.tiptap__wrapper-is-editing,
.tiptap__editor,
.tiptap__editor-is-edit-enabled {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
}

/* Toolbar → Text-Bereich: nur eine feine Trennlinie */
.editor-toolbar {
  border-bottom: 1px solid #e8ecf0 !important;
}

/* Speichern-Bereich: subtle, kein eigener Box-Effekt */
.tiptap__editor-actions {
  border-top: 1px solid #e8ecf0 !important;
  padding: 0.35rem 0.6rem !important;
  background: #fafafa !important;
}

/* ProseMirror Textbereich */
.ProseMirror {
  min-height: 80px !important;
  padding: 0.75rem !important;
  outline: none !important;
  background: #fff !important;
}

/* =========================================================
   CARDS & PANELS
   ========================================================= */

.card {
  border-radius: 6px !important;
  border-left: 3px solid #41d4ae !important;
}

/* =========================================================
   LOGIN-SEITE
   ========================================================= */

/* Login-Box: vertikal + horizontal zentriert */
.no-auth-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 100vh !important;
}

/* Linkes Panel: komplett Navy */
.no-auth-wrapper .image {
  background: #013493 !important;
  position: relative !important;
}

/* Foto ausblenden */
.no-auth-wrapper .image > img,
.no-auth-wrapper .image > picture {
  display: none !important;
}

/* WJ München Logo als SVG-Overlay (zentriert im Panel) */
.no-auth-wrapper .image::before {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78%;
  height: 110px;
  background: url('https://www.wj-muenchen.de/files/WJ-Muenchen_weiss.svg')
              no-repeat center center;
  background-size: contain;
  opacity: 0.95;
  z-index: 2;
}


/* "Welcome Back!" Text — auf Deutsch/WJ-Style */
.no-auth-wrapper .image .image-title {
  color: rgba(255, 255, 255, 0.0) !important; /* Original-Text ausblenden */
  position: relative;
  z-index: 3;
}
.no-auth-wrapper .image .image-title::after {
  content: 'Gemeinsam mehr bewegen.';
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  text-shadow: 0 2px 8px rgba(1, 52, 147, 0.4);
}

/* Login-Box rechts: Schatten + Radius */
.no-auth-wrapper .noauth-container {
  box-shadow: 0 8px 40px rgba(1, 52, 147, 0.12) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

/* Vikunja-Icon (Lama-Oval) oben auf der Login-Seite ausblenden */
.no-auth-wrapper .logo svg:not(.wj-logo) {
  display: none !important;
}
/* Falls kein Custom-Logo gesetzt: Vikunja-SVG navy einfärben */
.no-auth-wrapper .logo svg path { fill: #013493 !important; }

/* =========================================================
   LOGIN: Peekendes Lama (bottom-left) entfernen
   ========================================================= */

.no-auth-wrapper {
  background-image: none !important;
}

/* =========================================================
   EMPTY STATE: Lama-Ersatz WJ München
   ========================================================= */

/* Lama verstecken */
.llama-cool {
  display: none !important;
}

/* WJ München Sprechblase (wird via JS eingefügt) */
.wj-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem;
  gap: 1.5rem;
}

.wj-speech-bubble {
  background: #013493;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 20px;
  font-family: 'Chivo', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-block;
  position: relative;
  animation: wjBounce 2.5s ease-in-out infinite;
  box-shadow: 0 4px 20px rgba(1, 52, 147, 0.25);
  max-width: 320px;
  text-align: center;
  line-height: 1.4;
}
.wj-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  border: 14px solid transparent;
  border-top-color: #013493;
  border-bottom: 0;
}

@keyframes wjBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.wj-empty-logo {
  font-family: 'Chivo', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: #013493;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* =========================================================
   LOGIN: API-URL & "change"-Link ausblenden
   ========================================================= */

.api-config {
  display: none !important;
}

/* =========================================================
   LOGIN: Logo-Bubble über der Card ausblenden
   ========================================================= */

.no-auth-wrapper > .logo {
  display: none !important;
}

/* =========================================================
   "Bearbeiten"-Link wie Button stylen
   ========================================================= */

.tiptap__editor-actions a,
.tiptap__editor-actions button,
a.edit-button,
button.edit-button,
[class*="edit-action"],
.task-description a[class*="edit"],
/* "Bearbeiten" wird nach dem .tiptap-Container gerendert */
.tiptap-editor-container + a,
.tiptap ~ a,
.task-description-preview ~ a,
a.edit-task-description {
  display: inline-block !important;
  margin-top: 0.5rem !important;
  padding: 0.35rem 0.9rem !important;
  border: 1px solid rgba(1, 52, 147, 0.5) !important;
  border-radius: 6px !important;
  color: #013493 !important;
  font-weight: 400 !important;
  font-size: 0.875rem !important;
  text-decoration: none !important;
  transition: border-color 0.2s, color 0.2s !important;
  background: #fff !important;
}
.tiptap + a:hover,
.tiptap ~ a:hover {
  border-color: #f8a102 !important;
  color: #f8a102 !important;
}

/* =========================================================
   KANBAN: Bucket erstellen & löschen ausblenden
   ========================================================= */

/* Bucket erstellen + löschen: nur für nicht-Admins ausblenden */
body:not(.wj-admin) .bucket.new-bucket {
  display: none !important;
}
body:not(.wj-admin) .bucket-header .options .has-text-danger {
  display: none !important;
}

/* =========================================================
   Dark Mode deaktivieren — immer Light Mode erzwingen
   ========================================================= */

:root.dark,
html.dark,
body.dark {
  --scheme-main:     #fff !important;
  --scheme-main-bis: #fafafa !important;
  --site-background: var(--grey-100) !important;
  --text:            #4a4a4a !important;
  --text-strong:     #363636 !important;
  --border:          var(--grey-200) !important;
  --input-background-color: #fff !important;
  --input-color:     #363636 !important;
  background-color:  #fff !important;
  color:             #363636 !important;
}

/* Dark-Mode-Toggle ausblenden */
.dark-mode-toggle,
[class*="dark-mode"],
[class*="color-scheme"],
button[title*="dark"],
button[title*="Dark"],
button[aria-label*="dark"],
button[aria-label*="Dark"] {
  display: none !important;
}

/* =========================================================
   NOTIFICATIONS / DROPDOWN: Text immer dunkel
   ========================================================= */

/* Notification-Popup (via Vue Teleport — außerhalb .navbar gerendert) */
.notifications-list {
  background: #fff !important;
  color: #1d1d1b !important;
}
.notifications-list *,
.single-notification,
.single-notification *,
.single-notification .detail,
.single-notification .detail *,
.single-notification .created,
.single-notification .has-text-weight-bold {
  color: #1d1d1b !important;
}
.single-notification:hover {
  background: rgba(1, 52, 147, 0.05) !important;
}

/* Dropdown-Menüs allgemein (heller Hintergrund) */
.dropdown-content,
.dropdown-menu {
  color: #1d1d1b !important;
  background: #fff !important;
}
.dropdown-content *,
.dropdown-menu * {
  color: #1d1d1b !important;
}
.dropdown-item:hover {
  background: rgba(1, 52, 147, 0.05) !important;
  color: #013493 !important;
}

/* User-Profil-Dropdown in der Navbar: dunkler Hintergrund → weißer Text */
.navbar .dropdown .dropdown-content,
.navbar .dropdown .dropdown-menu {
  background: #013493 !important;
  border: none !important;
}
.navbar .dropdown .dropdown-content *,
.navbar .dropdown .dropdown-menu *,
.navbar .dropdown .dropdown-item {
  color: #fff !important;
}
.navbar .dropdown .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

/* Notification-Icon in der Navbar: immer weiß, kein weißer Hintergrund */
.navbar [class*="notification"] button,
.navbar [class*="notification"] > button,
.navbar .dropdown > button,
.navbar .dropdown > .button {
  background: transparent !important;
  border: none !important;
  color: #fff !important;
}
.navbar [class*="notification"] button *,
.navbar [class*="notification"] > button *,
.navbar .dropdown > button svg,
.navbar .dropdown > button .icon {
  color: #fff !important;
  fill: #fff !important;
}

/* =========================================================
   "Powered by Vikunja" ausblenden
   ========================================================= */

.powered-by-vikunja,
[class*="powered-by"],
a[href*="vikunja.io"],
a[href*="vikunja.io"] + *,
footer a[href*="vikunja"] {
  display: none !important;
}

/* =========================================================
   SONSTIGES
   ========================================================= */

/* Checkbox / Radio */
input[type="checkbox"]:checked,
input[type="radio"]:checked {
  accent-color: #41d4ae;
}

/* Aufgaben-Label Priorität Hoch → Orange */
.priority-label.is-high,
.priority-label.is-urgent {
  background-color: #f8a102 !important;
  border-color: #f8a102 !important;
}

/* Fortschrittsbalken */
progress::-webkit-progress-value { background: #41d4ae !important; }
progress::-moz-progress-bar { background: #41d4ae !important; }
