/* =====================================================
   planGIS GmbH — Taiga Theme Override
   Primary:   #95c11f  (planGIS Grün)
   Accent:    #009fe3  (planGIS Blau)
   Dark:      #7da018  (planGIS Dunkelgrün)
   Neutral:   #878787  (planGIS Grau)

   Ersetzt alle Taiga-Teal-Farben:
     #008aa8  → #009fe3 / #95c11f
     #83eede  → #95c11f
     #5cbaa9  → #95c11f
     #25a28c  → #7da018
   ===================================================== */

/* =====================================================
   GLOBALE LINKS & TYPOGRAFIE
   ===================================================== */
a, a:visited                                    { color: #009fe3 !important; }
a:hover, a:visited:hover                        { color: #95c11f !important; }
h1                                              { color: #009fe3 !important; }

/* Seiten-Hintergrund */
body                                            { background-color: #f9f9fb !important; }

/* =====================================================
   ALLE VERBLEIBENDEN #008aa8 TEXT-FARBEN
   Umfassende Überschreibung aller Non-Link-Elemente
   ===================================================== */

/* Projektname (überall außer Sidebar → dort weiß via tg-project-menu) */
.project-name                                   { color: #009fe3 !important; }
.menu-option-text.project-name                  { color: #009fe3 !important; }

/* Kanban-Swimlane Titel */
.kanban-swimlane-title .title-name,
.kanban-swimlane-add:hover span                 { color: #009fe3 !important; }

/* Popups & Popovers: Status/Punkte/Rollen/Priorität-Auswahl */
.global-popover,
.backlog-table-body .pop-status,
.backlog-table-body .pop-points,
.backlog-table-body .pop-points-open,
.backlog-table-body .pop-role,
.backlog-table-body .us-option-popup,
.backlog-table-header .pop-status,
.backlog-table-header .pop-points,
.backlog-table-header .pop-points-open,
.backlog-table-header .pop-role,
.multiple-drag-mirror .us-option-popup,
.card-actions .card-option-popup,
.epic-row .epic-statuses,
.filter-highlighted .filter-list,
.ticket-estimation .popover,
.lightbox-create-edit .pop-status,
.lightbox-create-edit .pop-users,
.related-tasks-body .pop-status,
.issues-table .pop-status,
.ticket-header .pop-status,
.ticket-status .priority-data .popover,
.ticket-status .severity-data .popover,
.ticket-status .type-data .popover         { color: #009fe3 !important; }

/* Popup-Buttons (Optionen innerhalb Popovers) */
.global-popover button,
.backlog-table-body .us-option-popup button,
.multiple-drag-mirror .us-option-popup button,
.card-actions .card-option-popup button,
.issues-table .option,
.ticket-detail-settings [class^=btn-]:not(.select-option):not(.show-closed),
.lightbox-generic-bulk .bulk-status-option,
.btn-form,
.tg-swimlane-selector .option,
.backlog-table-header .header-points           { color: #009fe3 !important; }

/* Refernez-Nummern & Bezeichner */
.detail-ref,
.card-title .card-ref,
.card-task .card-task-ref,
.taskboard-row-title-box .us-ref,
.search-result-table .row .ref,
.sprints .sprint-table .row.closedRow .us-ref-text,
.list-itemtype-ticket .ticket-id,
tg-related-userstory-row .related-text .related-ref { color: #009fe3 !important; }

/* Hover-States auf Karten/Listen */
.backlog-table-body .user-story-link:hover .user-story-name,
.multiple-drag-mirror .user-story-link:hover .user-story-name,
.sprints .sprint-table .row:hover .us-name-text,
.card-epic:hover .epic-name,
.epic-row .name a:hover .ref,
.epic-row .name a:hover .subject,
.story-row .name a:hover .ref,
.story-row .name a:hover .subject,
.card-title a:hover .card-subject,
.card-task a:hover,
.issues-table .subject:hover .issue-subject,
.issues-table .title [data-fieldname]:hover,
.taskboard-row-title-box a:hover .us-subject,
.taskboard-table-body .row-fold .taskboard-row-title-box a:hover,
.taskboard-table-body .taskboard-row.blocked .taskboard-row-title-box a:hover .us-ref,
.taskboard-table-body .taskboard-row.blocked .taskboard-row-title-box a:hover .us-subject,
.tg-related-userstory-row .related-text:hover .related-subject { color: #009fe3 !important; }

/* Taskboard-Icons */
.taskboard-row-title-box .add-new-task tg-svg  { fill: #009fe3 !important; }

/* Fortschritts-Balken */
.epic-row .progress-status,
.story-row .progress-status,
.summary-progress-bar .current-progress        { background-color: #95c11f !important; }

/* Aktive Zustände / Track-Buttons */
.highlighted-project .statistic.active,
.single-project .track-container .list-itemtype-track-likers.active,
.single-project .track-container .list-itemtype-track-watchers.active,
.single-project .track-container .list-itemtype-track,
.list-itemtype-project .list-itemtype-track-likers.active,
.list-itemtype-project .list-itemtype-track-watchers.active,
.list-itemtype-project .list-itemtype-track,
.list-itemtype-ticket .list-itemtype-track-likers.active,
.list-itemtype-ticket .list-itemtype-track-watchers.active,
.list-itemtype-ticket .list-itemtype-track,
.list-itemtype-user .list-itemtype-track-likers.active,
.list-itemtype-user .list-itemtype-track-watchers.active,
.list-itemtype-user .list-itemtype-track,
.watch-options a.active                        { color: #009fe3 !important; }

/* Paginierung */
.paginator .active span,
.paginator .dots span,
.paginator a                                   { color: #009fe3 !important; }

/* Suchseite & Entdecken */
.search-list .show-closed,
.filter-discover-search .discover-search-filter.active,
.empty-filter a, .empty-large a, .empty-small a { color: #009fe3 !important; }

/* Admin-Bereiche */
.admin-project-profile-owner-actions a,
.admin-webhooks .webhook-url a,
.settings-nav .active a,
.tg-admin-project-restrictions p a             { color: #009fe3 !important; }
.admin-membership-table .resend                { color: #009fe3 !important; }

/* Benachrichtigungen & Teams */
.notifications-page .title,
.team h2 span:last-child,
.ticket-created-by .created-by .created-title,
.board-zoom .board-zoom-title,
.more-attachments .more-attachments-num,
.ck-body-wrapper .ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label { color: #009fe3 !important; }

/* Anhänge (drag-over) */
.attachment-full.attachment-dragover .attachments-empty,
.attachment-simple.attachment-dragover .attachments-empty { border-color: #95c11f !important; }

/* Dropdown Projektliste */
.dropdown-project-list .dropdown-project-list-link.active,
.dropdown-project-list-projects span,
.dropdown-project-list.active .dropdown-project-list-projects span,
.dropdown-project-list .see-more-projects-btn  { color: #009fe3 !important; }

/* Formulare: Radio/Check-Gruppen */
.button-group input:checked + label            { border-color: #009fe3 !important; }
.button-check input:checked + label,
.check input:checked + div,
.check.active div                              { background-color: #95c11f !important; }
.lightbox-generic-bulk .creation-position .radio-control::before,
.lightbox-create-edit .creation-position .radio-control::before { background-color: #95c11f !important; }
.lightbox-generic-bulk .creation-position input[type=radio]:checked ~ .radio-label,
.lightbox-create-edit .creation-position input[type=radio]:checked ~ .radio-label,
.create-project-github-import-type input:checked + label .create-project-github-import-type-name { color: #009fe3 !important; }

/* WYSIWYG Editor & Mentions */
.wysiwyg .mention,
.wysiwyg a[href],
tg-html-editor .ck-content a[href],
tg-html-editor .ck-content .mention            { color: #009fe3 !important; }

/* Import-Warnungen & Links */
.import-project-asana-form-warning p a,
.import-project-github-form-warning p a,
.import-project-jira-form-warning p a,
.import-project-trello-form-warning p a,
.import-project-description a,
.import-project-members .import-project-members-choose,
.lightbox-import-error .description a,
.lightbox-select-user .add-comment a,
.lightbox-sprint-add-edit .delete-sprint,
.create-project-warning p a,
.transfer-project-comment-link,
.live-announcement-inner .warning a,
.detail-header .detail-header-line a,
.detail-header .relate-to-epic .relate-to-epic-button,
.topnav-dropdown-wrapper .navbar-dropdown-notifications .action:not(.disabled),
.custom-filters-header .add-custom-filter,
.single-filter.single-filter-type-custom .name,
.single-project .looking-for-people a,
.custom-fields-table .custom-extra-actions a   { color: #009fe3 !important; }

/* Projektlisten-Seite */
.project-list-wrapper .project-list-title h1   { color: #009fe3 !important; }

/* Ticket-Inhalte */
.comment .comment-creator,
.ticket-user-list .user-list-single:not(.read-only) .user-list-name a,
.ticket-user-list .user-list-single:hover:not(.read-only) .user-list-name { color: #009fe3 !important; }
.lightbox-create-edit label                    { color: #009fe3 !important; }
.menu-secondary .team-filters li.active a,
.menu-secondary .wiki-link.active a            { color: #009fe3 !important; }

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
    background-color: #ffffff !important;
    border-bottom: 2px solid #e5e9f0 !important;
}
.navbar::after                                  { background: none !important; }

.navbar .nav-right svg                          { fill: #4c566a !important; }
.navbar .nav-right > a,
.navbar .nav-right .topnav-dropdown-wrapper > a { color: #4c566a !important; }
.navbar .nav-right .active svg,
.navbar .nav-right > .topnav-dropdown-wrapper:hover > a svg,
.navbar .nav-right > a:hover svg                { fill: #009fe3 !important; }

/* „Projekte"-Button: Ghost-Stil (kein farbiger Hintergrund) */
.navbar .btn-small,
.navbar .btn-filter {
    background-color: transparent !important;
    color: #009fe3 !important;
    border: 1px solid #009fe3 !important;
}
.navbar .btn-small:hover,
.navbar .btn-filter:hover {
    background-color: #009fe3 !important;
    color: #ffffff !important;
}

/* planGIS-Logo */
.navbar .nav-left .logo svg                     { display: none !important; }
.navbar .nav-left .logo {
    display: block !important;
    background: url('/custom/logo.svg') no-repeat left center !important;
    background-size: contain !important;
    width: 160px !important;
    height: 32px !important;
    padding: 0.3rem 0.4rem !important;
    margin-left: 1.2rem !important;
}

/* =====================================================
   PROJEKT-SIDEBAR (tg-project-menu, dunkler Hintergrund)
   ===================================================== */

/* Alle Links in der dunklen Sidebar: hell statt blau */
tg-project-menu a,
tg-project-menu a:visited                       { color: #c8cfe0 !important; }
tg-project-menu a:hover,
tg-project-menu a:visited:hover                 { color: #ffffff !important; }

/* Projektname NUR in der dunklen Sidebar weiß (nicht auf der Projektlisten-Seite) */
tg-project-menu .single-project .project-name,
tg-project-menu .single-project .project-name a,
tg-project-menu .single-project .project-name a:visited { color: #ffffff !important; }
.lightbox-contact-project-name                  { color: #009fe3 !important; }

/* =====================================================
   FOKUS & FORMULARE
   ===================================================== */
:focus                                          { outline-color: #95c11f !important; }
input[type=text]:focus, input[type=email]:focus,
input[type=password]:focus, input[type=number]:focus,
input[type=search]:focus, input[type=url]:focus,
input[type=date]:focus, select:focus, textarea:focus {
    border-color: #95c11f !important;
}
.custom-checkbox label::after                   { background-color: #95c11f !important; }

/* =====================================================
   ALLE BUTTONS  (#83eede → planGIS-Grün)
   ===================================================== */
.btn-big, .btn-board, .btn-filter, .btn-icon, .btn-small {
    background-color: #95c11f !important;
    color: #ffffff !important;
}
.btn-big:hover, .btn-board:hover, .btn-filter:hover,
.btn-icon:hover, .btn-small:hover               { background-color: #7da018 !important; color: #ffffff !important; }
.btn-big[variant=primary], .btn-small[variant=primary],
.btn-icon[variant=primary]                      { background-color: #95c11f !important; color: #ffffff !important; }
.btn-big[variant=secondary], .btn-small[variant=secondary],
.btn-icon[variant=secondary]                    { background-color: #d8dee9 !important; color: #4c566a !important; }
.btn-big[variant=destructive], .btn-small[variant=destructive],
.btn-icon[variant=destructive]                  { background-color: #e44057 !important; color: #ffffff !important; }
.btn-big:disabled, .btn-board:disabled, .btn-filter:disabled,
.btn-icon:disabled, .btn-small:disabled         { background-color: #d8dee9 !important; color: rgba(46,52,64,.5) !important; }
.button-primary, .icon-button-primary           { background: #95c11f !important; }
.button-primary:hover                           { background: #7da018 !important; }
.icon-button-primary span                       { color: #ffffff !important; }
.btn-link[variant=icon]                         { color: #009fe3 !important; }

/* =====================================================
   SEKUNDÄR-NAVIGATION (Settings-Sidebar)
   ===================================================== */
.menu-secondary li .active a                    { color: #95c11f !important; }
.menu-tertiary ul li.active                     { background: #95c11f !important; }
.menu-tertiary ul li.active a                   { color: #95c11f !important; background: #e5e9f0 !important; }
.menu-tertiary ul li:hover,
.menu-tertiary ul li:hover a                    { background: #e5e9f0 !important; color: #009fe3 !important; }

/* =====================================================
   DROPDOWN-MENÜS
   ===================================================== */
.dropdown-menu .active,
.dropdown-menu li:hover                         { background-color: #95c11f !important; color: #fff !important; }
.dropdown-menu .active > a,
.dropdown-menu .active > a:hover                { color: #fff !important; }
.dropdown-project-list .navbar-dropdown         { border-color: #95c11f !important; }

/* =====================================================
   H1 / LINKS ALLGEMEIN  (#008aa8 → planGIS-Blau)
   ===================================================== */
.menu-tertiary ul li.active a                   { color: #009fe3 !important; background: #e5e9f0 !important; }
.backlog-table-body .pop-status,
.backlog-table-header .pop-status               { color: #009fe3 !important; }
.backlog-table-body .pop-status a.active,
.backlog-table-header .pop-status a.active      { background: #009fe3 !important; color: #fff !important; }

/* =====================================================
   SVG-ICONS  (#008aa8 / #25a28c / #5cbaa9 → planGIS)
   ===================================================== */
.backlog-table-body .draggable-us-row tg-svg svg,
.backlog-table-header .draggable-us-row tg-svg svg,
.backlog-table-body .points .icon,
.backlog-table-header .points .icon             { fill: #009fe3 !important; }

.admin-swimlanes-manager .admin-swimlane-item .admin-swimlane-item-drag,
.admin-wip-manager .admin-swimlane-title tg-svg { fill: #95c11f !important; }
.admin-wip-manager .admin-swimlane-title .title-name { color: #95c11f !important; }

.help-button:hover .icon,
.help-markdown:hover .icon                      { fill: #95c11f !important; }

.custom-fields-table .custom-options svg.icon-check-empty,
.custom-fields-table .custom-options svg.icon-close { fill: #009fe3 !important; }

.related-tasks-body .delete-task:hover .icon-edit,
.related-tasks-body .edit-task:hover .icon-edit,
.related-tasks-body .save-task:hover .icon-edit { fill: #009fe3 !important; }

.sprints .filter-closed-sprints tg-svg          { fill: #009fe3 !important; }
.duty-custom-fields .custom-field-options svg:hover,
.admin-webhooks .webhook-options svg:hover,
.admin-functionalities .module-desc-options .icon:hover,
.admin-functionalities .videoconference-attributes .icon:hover,
.comment .restore-comment .icon-reload,
.comment .comment-edited svg,
.add-tag-input .tags-dropdown,
.attachment-preview .attachment-preview-container svg:hover { fill: #95c11f !important; }

/* taskboard hover */
.taskboard-table-header .btn-board:hover svg    { fill: #009fe3 !important; }
tg-wip-limit-selector .wip-limit-status-data .form-button:hover .icon { fill: #009fe3 !important; }

/* =====================================================
   STATISTIK & ZUSAMMENFASSUNGEN  (#83eede / #25a28c)
   ===================================================== */
.summary .data .number, .summary .number        { color: #95c11f !important; }
.summary .stats:hover .graph,
.summary .stats:hover svg,
.summary .stats.active .graph,
.summary .stats.active svg                      { fill: #95c11f !important; }
.large-summary .icon.icon-stats                 { color: #95c11f !important; }
.large-summary .icon.icon-stats:hover           { color: #7da018 !important; }
.large-summary .icon.icon-stats.active          { color: #7da018 !important; }

/* =====================================================
   DRAG & DROP RAHMEN  (#83eede → planGIS-Grün)
   ===================================================== */
.multiple-drag-mirror.us-item-row               { border-color: #95c11f !important; }
.sprints .sprint-table .sprint-empty            { border-color: #95c11f !important; }
.taskboard-table-body .taskboard-table-inner    { border-bottom-color: #95c11f !important; }
.kanban-swimlane-title.folded.pending-to-open   { border-color: #95c11f !important; }
.kanban-swimlane-add                            { border-color: #95c11f !important; }
.card.gu-mirror                                 { border-color: #95c11f !important; }
.zoom-radio:hover .checkmark                    { background-color: #95c11f !important; }
.backlog-table-body .us-item-row.gu-transit     { border-top-color: #95c11f !important; }
.dropdown-project-list .navbar-dropdown::after  { border-bottom-color: #f9f9fb !important; }

/* =====================================================
   DATEPICKER  (#5cbaa9 / #25a28c → planGIS)
   ===================================================== */
.pika-single .pika-button:hover                 { background: #95c11f !important; box-shadow: none !important; }
.pika-single .is-selected .pika-button          { background: #7da018 !important; box-shadow: none !important; }
.pika-single .is-today .pika-button             { color: #95c11f !important; }

/* =====================================================
   AUTOCOMPLETE  (#5cbaa9 → planGIS)
   ===================================================== */
div.awesomplete > ul                            { color: #009fe3 !important; }
div.awesomplete > ul > li:hover,
div.awesomplete mark                            { background: #95c11f !important; color: #ffffff !important; }

/* =====================================================
   LIGHTBOXEN & FORMULARE  (#5cbaa9 → planGIS-Grün)
   ===================================================== */
.lightbox-generic-form .existing-or-new-selector input:checked + label,
.lightbox-relate-to-epic .related-with-selector input:checked + label,
.lightbox-generic-form .settings .iocaine:hover,
.lightbox-generic-form .settings .requirement:hover { background: #95c11f !important; }
.lightbox-generic-loading .progress-bar-wrapper .bar { background: #95c11f !important; }
.colors-table .icon:hover                       { fill: #95c11f !important; }
.ticket-users-actions .ticket-users-action:hover svg { fill: #95c11f !important; }
.backlog-table-body input:checked               { color: #95c11f !important; }

/* =====================================================
   ADMIN  (#25a28c / #5cbaa9 → planGIS)
   ===================================================== */
.admin-membership .limit-users-warning          { color: #95c11f !important; }
.admin-webhooks .history-response-icon.history-success  { background: #95c11f !important; }
.admin-webhooks .history-single-request-header a:hover,
.admin-webhooks .history-single-response-header a:hover { color: #009fe3 !important; }
.invitation-main .button-blackish:hover         { background: #7da018 !important; }
.history-tabs a:hover                           { color: #009fe3 !important; }
.create-project-title-wrapper .icon            { fill: #009fe3 !important; stroke: #7da018 !important; }

/* =====================================================
   ENTDECKEN / DISCOVER (#008aa8 → planGIS-Blau)
   ===================================================== */
.discover-results .statistic.active             { color: #009fe3 !important; }
.discover-results .statistic.active svg         { fill: #009fe3 !important; }

/* =====================================================
   FILTER-BUTTONS
   ===================================================== */
.issue-header .button-filter,
.kanban-header .button-filter,
.taskboard-header .button-filter                { color: #95c11f !important; }
.issue-header .button-filter svg,
.kanban-header .button-filter svg,
.taskboard-header .button-filter svg            { fill: #95c11f !important; }
.filter-button.active, .filter-button:hover     { color: #009fe3 !important; }

/* =====================================================
   TAGS
   ===================================================== */
.tags-table .mix-tags .popover a.active         { background: #95c11f !important; color: #fff !important; }

/* =====================================================
   FEHLERSEITE  (#5cbaa9 → planGIS-Blau)
   ===================================================== */
.error-main a                                   { color: #009fe3 !important; }

/* =====================================================
   LOGIN-SEITE
   ===================================================== */
.auth .logo-svg svg                             { display: none !important; }
.auth .logo-svg {
    display: block !important;
    background: url('/custom/logo.svg') no-repeat center !important;
    background-size: contain !important;
    width: 100% !important;
    height: 70px !important;
}
.auth .logo {
    font-size: 0 !important;
    margin-bottom: 0.5rem !important;
}
.auth .logo::after {
    content: 'planGIS GmbH';
    display: block;
    font-size: 1.4rem;
    font-family: Ubuntu-Regular, Arial, Helvetica, sans-serif;
    color: #2e3440;
    text-align: center;
}
.auth .tagline                                  { display: none !important; }
.auth .btn-small, .auth .btn-big {
    background-color: #95c11f !important;
    color: #ffffff !important;
}
.auth .btn-small:hover, .auth .btn-big:hover    { background-color: #7da018 !important; }
.auth .login-text a:hover,
.auth .register-text a:hover,
.auth a:hover                                   { color: #95c11f !important; }
