/* --------------------------------------------------------
   GLOBAL STYLES
-------------------------------------------------------- */

body {
    font-family: "Hind", sans-serif;
    margin: 0;
    background: #f3f4f6;
    color: #111827;
}

h1, h2, h3 {
    margin-top: 0;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.readonly-input {
    background-color: #e5e7eb;
    cursor: not-allowed;
}


/* --------------------------------------------------------
   NAVIGATION (BUTTON STYLE)
-------------------------------------------------------- */

.navbar {
    background: #143A84;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    color: white;
}

/* Branding links */
.nav-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    height: 36px;
    width: auto;
}

.app-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
}

/* Navigation Buttons */
.nav-links {
    display: flex;
    gap: 0.75rem;
}

.nav-button {
    background: #4a4a49;
    color: white;
    padding: 0.45rem 1.2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background 0.15s ease-out;
}

.nav-button:hover {
    background: #555;
}

/* Aktiver Button */
.nav-button.active {
    background: #8bafdd;
    color: white;
}

.nav-dropdown {
    position: relative;
    display: inline-flex;
}

.nav-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 0.4rem;
}

.nav-dropdown-toggle {
    border: 0;
    cursor: pointer;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.2rem);
    left: 0;
    min-width: 220px;
    background: #f9fafb;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.35rem;
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    z-index: 1000;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.22);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: flex;
}

.nav-dropdown-item {
    width: 100%;
    display: block;
    box-sizing: border-box;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    color: #1f2937;
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    justify-content: flex-start;
}

.nav-dropdown-item:hover {
    background: #e5e7eb;
    text-decoration: none;
}

.nav-dropdown-item.active {
    background: #8bafdd;
    color: #ffffff;
}

/* Rechts (Login/Logout) */
.nav-right {
    margin-left: auto;
    display: flex;
    gap: 0.75rem;
}

.nav-right .nav-button {
    padding: 0.4rem 1rem;
}

.user-info {
    color: #d1d5db;
    font-size: 0.9rem;
}


/* --------------------------------------------------------
   GLOBAL CONTAINER
-------------------------------------------------------- */

.container {
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* --------------------------------------------------------
   FOOTER
-------------------------------------------------------- */

.site-footer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.site-footer a {
    color: #143A84;
    font-weight: 500;
}

.terms-link {
    color: #143A84;
}

/* --------------------------------------------------------
   FORMS
-------------------------------------------------------- */

form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 500px;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.55rem;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    font-size: 1rem;
    box-sizing: border-box;
    resize: vertical;
}

button {
    padding: 0.45rem 0.9rem;
    border: none;
    border-radius: 6px;
    background: #2563eb;
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
}

button:hover {
    background: #1d4ed8;
}

.error {
    color: #b91c1c;
}

/* --------------------------------------------------------
   BUG PAGE LAYOUT
-------------------------------------------------------- */

.bug-page {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.bug-grid {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bug-page-title {
    margin-bottom: 1rem;
}

.info-video {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #0f172a;
}

.info-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --------------------------------------------------------
   BUG STATUS
-------------------------------------------------------- */

.bug-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.bug-status-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bug-status-metric {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 1.05rem;
}

.bug-status-label {
    font-weight: 600;
    color: #1f2937;
}

.bug-status-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #143A84;
}

.bug-status-chart-card {
    grid-column: 1 / -1;
}

.bug-status-chart-body {
    gap: 1rem;
}

.bug-status-chart {
    width: 100%;
    min-height: 320px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    overflow-x: auto;
}

.bug-status-empty {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.bug-status-chart-svg {
    width: 100%;
    min-width: 680px;
    height: 320px;
}

.bug-status-chart-grid line {
    stroke: #e5e7eb;
    stroke-width: 1;
}

.bug-status-chart-grid text,
.bug-status-chart-xlabels text {
    fill: #6b7280;
    font-size: 12px;
    font-family: "Hind", sans-serif;
}

.bug-status-chart-xlabels text {
    font-size: 11px;
}

.bug-status-chart-svg polyline {
    fill: none;
    stroke-width: 2.5;
}

.bug-status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    font-size: 0.9rem;
    color: #1f2937;
}

.bug-status-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.bug-status-legend-swatch {
    position: relative;
    width: 34px;
    height: 10px;
    color: var(--legend-color, #2563eb);
}

.bug-status-legend-swatch::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 3px;
    background: currentColor;
    border-radius: 999px;
    transform: translateY(-50%);
}

.bug-status-legend-swatch::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 10px;
    height: 10px;
    background: currentColor;
    border-radius: 999px;
    border: 2px solid #ffffff;
    transform: translateY(-50%);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
}

.bug-category-list {
    display: grid;
    gap: 0.85rem;
}

.bug-category-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    background: #f9fafb;
}

.bug-category-item h3 {
    margin: 0 0 0.35rem 0;
    font-size: 1rem;
    color: #111827;
}

.bug-category-item p {
    margin: 0;
    color: #374151;
}

@media (max-width: 900px) {
    .bug-status-grid {
        grid-template-columns: 1fr;
    }
}


/* --------------------------------------------------------
   PROGRESS BOARD
-------------------------------------------------------- */

.progress-page {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.progress-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.progress-column-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid #e5e7eb;
}

.progress-card {
    /* nutzt die bestehenden .bug-card Styles, kann aber bei Bedarf schlanker gemacht werden */
}

.progress-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.3rem;
}

.column-empty {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Responsive: bei schmalen Bildschirmen weniger Spalten */
@media (max-width: 1100px) {
    .progress-page {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .progress-page {
        grid-template-columns: 1fr;
    }
}


/* --------------------------------------------------------
   BUG CARD STYLES
-------------------------------------------------------- */

.bug-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.2s ease-out;
}

.bug-card:hover {
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}

.bug-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.bug-badge-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
}

.bug-badge-row .bug-status-badge {
    flex-shrink: 0;          /* prevent wrapping under the status badge */
}

.bug-badge-row .bug-status-jira {
    margin-left: 0;
}

/* --------------------------------------------------------
   STATUS BADGES
-------------------------------------------------------- */

.bug-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.1;
    white-space: nowrap;
}

.bug-severity-badge {
    border: 1px solid transparent;
}

.bug-status-new {
    background: #eff6ff;
    color: #1d4ed8;
}

.bug-status-known {
    background: #fef3c7;
    color: #b45309;
}

.bug-status-in_progress,
.bug-status_in_progress {
    background: #ecfeff;
    color: #0891b2;
}

.bug-status-solved {
    background: #dcfce7;
    color: #15803d;
}

.bug-status-no_bug {
    background: #f3f4f6;
    color: #4b5563;
}

.bug-status-jira {
    background: #dbeafe;
    color: #1e3a8a;
    border: none;
}

.severity-critical {
    background: #fee2e2;
    color: #b91c1c;
}

.severity-major {
    background: #fef3c7;
    color: #92400e;
}

.severity-normal {
    background: #e0f2fe;
    color: #075985;
}

.severity-minor {
    background: #e5e7eb;
    color: #374151;
}

.severity-trivial {
    background: #f3f4f6;
    color: #6b7280;
}

/* --------------------------------------------------------
   UPVOTE BUTTON
-------------------------------------------------------- */

.bug-vote {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vote-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: none;
    padding: 0.35rem 0.55rem;
    font-size: 1.2rem;
    cursor: pointer;
    background: #e1effe;
    color: #1e40af;
    box-shadow: 0 3px 6px rgba(37, 99, 235, 0.2);
}

.vote-button:hover {
    background: #d0e2ff;
}

.bug-score-value {
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 1.75rem;
    text-align: center;
}

/* --------------------------------------------------------
   CARD BODY
-------------------------------------------------------- */

.bug-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.bug-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.bug-description {
    margin: 0;
    font-size: 0.95rem;
    color: #4b5563;
    white-space: pre-wrap;
}

.bug-detail {
    margin-top: 0.6rem;
}

.bug-detail-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.bug-detail-text {
    margin: 0.15rem 0 0;
    font-size: 0.95rem;
    color: #4b5563;
    white-space: pre-wrap;
}

/* --------------------------------------------------------
   CARD FOOTER
-------------------------------------------------------- */

.bug-card-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

.bug-meta {
    font-size: 0.85rem;
    color: #6b7280;
}

.bug-admin-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bug-admin-form select {
    font-size: 0.85rem;
    padding: 0.2rem 0.45rem;
}

.bug-admin-form button {
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
}

.invitation-list {
    margin-top: 1rem;
}

.invitation-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.invitation-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.invitation-customer {
    font-weight: 600;
}

.invitation-key {
    font-family: Consolas, monospace;
    background: #e0e7ff;
    color: #1e3a8a;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    white-space: nowrap;
}

.invitation-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* --------------------------------------------------------
   BUG MELDEN ― FORMULAR LAYOUT
-------------------------------------------------------- */

.bug-form {
    display: grid;
    grid-template-columns: 1fr 2fr auto;   /* drei Spalten: links | mitte | rechts */
    gap: 2rem;
    max-width: 1300px;
    align-items: flex-start;
    margin-top: 1.5rem;
}

.bug-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* Linke Spalte */
.bug-form-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Mittlere Spalte (Beschreibung) */
.bug-form-middle {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bug-form-middle textarea {
    width: 100%;
    min-height: 300px;
    resize: vertical;
}

/* Rechte Spalte – Button */
.bug-form-right {
    display: flex;
    align-items: center;     /* Button vertikal mittig */
}

.submit-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
}

.bug-submit {
    background: #143A84;
}

.bug-submit:hover {
    background: #8bafdd;
}

.feedback-submit {
    background: #143A84;
}

.feedback-submit:hover {
    background: #8bafdd;
}

/* Checkbox */
.checkbox-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    max-width: none;
}

.form-section {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.section-subtitle {
    margin: 0;
    color: #4b5563;
    font-size: 0.95rem;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
}

.fieldset {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fieldset-title {
    font-weight: 600;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.radio-inline {
    flex-direction: row;
    flex-wrap: wrap;
}

.radio-inline .radio-option {
    min-width: 210px;
}

.form-actions {
    display: flex;
    justify-content: center;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hint {
    font-size: 0.8rem;
    color: #6b7280;
}

.label-row {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
}

.info-icon {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.info-text {
    position: absolute;
    left: 0;
    top: 1.6rem;
    min-width: 220px;
    max-width: 280px;
    background: #111827;
    color: #ffffff;
    padding: 0.45rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    line-height: 1.2;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 10;
}

.info-tooltip:hover .info-text,
.info-tooltip:focus-within .info-text {
    display: block;
}

.usability-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 1rem;
    align-items: start;
}

.usability-grid-full {
    grid-template-columns: minmax(0, 1fr);
}

.radio-scale {
    display: grid;
    grid-template-columns: repeat(5, minmax(2.5rem, 1fr));
    gap: 0.5rem;
}

.radio-scale-extended {
    grid-template-columns: repeat(6, minmax(2.5rem, 1fr));
}

.radio-scale-labeled {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.radio-scale .radio-option {
    justify-content: center;
}

.radio-scale-labeled .radio-option {
    justify-content: flex-start;
}

.radio-scale .radio-value {
    font-weight: 600;
    font-size: 0.9rem;
}

.radio-label {
    font-size: 1rem;
    color: #4b5563;
}

.usability-statements .fieldset {
    margin-bottom: 0.75rem;
}

.usability-statements .fieldset:last-child {
    margin-bottom: 0;
}

.usability-legend {
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    padding: 0.75rem;
    background: #ffffff;
}

.legend-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.legend-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
}

.legend-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-weight: 700;
    margin-right: 0.4rem;
}

@media (max-width: 900px) {
    .usability-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsiv: untereinander auf kleineren Displays */
@media (max-width: 1100px) {
    .bug-form {
        grid-template-columns: 1fr;  /* 1 Spalte */
    }

    .bug-form-right {
        justify-content: flex-end;
        margin-top: 1rem;
    }
}

/* --------------------------------------------------------
   FEATURE FEEDBACK
-------------------------------------------------------- */

.feature-admin {
    margin-bottom: 2rem;
}

.feature-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 600px;
}

.feature-form textarea {
    min-height: 120px;
}

.feature-thumbnails {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-thumb {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.feature-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-vote {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.feature-vote-count {
    font-weight: 600;
    min-width: 1.6rem;
    text-align: center;
}

/* Downvote optisch leicht anders */
.vote-button-down {
    background: #fee2e2;
    color: #b91c1c;
}

.vote-button-down:hover {
    background: #fecaca;
}

/* --------------------------------------------------------
   NEWS VOM PO
-------------------------------------------------------- */

.news-admin {
    margin-bottom: 2rem;
}

.news-form {
    max-width: 700px;
}

.news-alert-form {
    margin-bottom: 1.25rem;
}

.news-alert-state-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.news-alert-state-select {
    display: block !important;
    width: 100%;
    visibility: visible !important;
    opacity: 1 !important;
    appearance: auto;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
}

.news-rollout-alert {
    margin: 0 0 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 0.8rem;
    border: 1px solid #f59e0b;
    background: #fed7aa;
    color: #000000;
}

.news-rollout-alert h2 {
    margin: 0 0 0.6rem;
    font-size: 1.45rem;
    text-align: center;
}

.news-rollout-alert p {
    margin: 0.5rem 0 0;
    color: #000000;
}

.news-rollout-alert.news-rollout-alert--lifted {
    border-color: #16a34a;
    background: #bbf7d0;
}

.news-card {
    gap: 1rem;
}

.news-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.news-date {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.news-content {
    color: #4b5563;
}

.news-content iframe,
.news-content video {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: none;
}

.news-delete-form {
    margin: 0;
    display: flex;
    justify-content: flex-end;
}

.news-delete-button {
    background: #b91c1c;
}

.news-delete-button:hover {
    background: #991b1b;
}

.news-thumbnails {
    margin-top: 0;
}

/* --------------------------------------------------------
   CHANGELOG
-------------------------------------------------------- */

.changelog-admin {
    margin-bottom: 1.5rem;
}

.changelog-form {
    max-width: 600px;
}

.changelog-admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.changelog-admin-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.changelog-admin-card h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.changelog-admin-card .changelog-form {
    max-width: none;
}

.changelog-section {
    margin-top: 1.5rem;
}

.changelog-version {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.changelog-entries {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.changelog-category {
    font-weight: 600;
    color: #1e3a8a;
    background: #dbeafe;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
}

.changelog-details {
    margin-top: 0.5rem;
}

.changelog-details summary {
    cursor: pointer;
    font-weight: 600;
    color: #1f2937;
}

.changelog-details-body {
    margin-top: 0.35rem;
    color: #374151;
    white-space: pre-wrap;
}

.changelog-edit-form {
    margin-top: 0.5rem;
    gap: 0.5rem;
}

.changelog-delete-form {
    margin-left: auto;
}

.changelog-delete-button {
    background: #b91c1c;
}

.changelog-delete-button:hover {
    background: #991b1b;
}

.bug-delete-button {
    background: #b91c1c;
}

.bug-delete-button:hover {
    background: #991b1b;
}

/* --------------------------------------------------------
   USER DB TABLE
-------------------------------------------------------- */

.table-container {
    width: 100%;
    overflow-x: auto;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

.user-table th,
.user-table td {
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0.65rem;
    text-align: left;
    font-size: 0.9rem;
    vertical-align: top;
}

.user-table thead th {
    background: #f3f4f6;
    font-weight: 600;
}

.user-filter-row input {
    width: 100%;
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
}

.user-role-cell {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-role-list {
    font-size: 0.85rem;
    color: #4b5563;
}

.user-role-form {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.user-role-form select {
    min-width: 160px;
}

.user-role-assign {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.user-role-assign-form {
    max-width: 600px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.pagination-info {
    font-size: 0.9rem;
    color: #4b5563;
}

.pagination-disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* --------------------------------------------------------
   SUPPORT PRIO
-------------------------------------------------------- */

.support-prio-form {
    max-width: 600px;
}

.support-prio-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.support-prio-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.9rem;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.support-prio-text {
    font-size: 0.95rem;
    color: #1f2937;
    flex: 1;
}

.support-prio-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.support-prio-jira {
    font-weight: 600;
    color: #1e3a8a;
    background: #dbeafe;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
}

.support-prio-status {
    font-size: 0.85rem;
    color: #374151;
    background: #f3f4f6;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.support-prio-delete-form {
    margin: 0;
}

.support-prio-delete-button {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: none;
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.support-prio-delete-button:hover {
    background: #fecaca;
}

/* --------------------------------------------------------
   UX AUSWERTUNG
-------------------------------------------------------- */

.ux-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.ux-summary-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.9rem 1rem;
}

.ux-summary-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.35rem;
}

.ux-summary-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #143A84;
}

.ux-avg-badge {
    background: #e0f2fe;
    color: #075985;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
}

.ux-subtitle {
    margin: 0.8rem 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.ux-bar-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.ux-bar-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 2fr auto;
    gap: 0.75rem;
    align-items: center;
}

.ux-bar-label {
    font-size: 0.9rem;
    color: #111827;
}

.ux-bar {
    height: 10px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.ux-bar-fill {
    height: 100%;
    background: #143A84;
}

.ux-bar-value {
    font-size: 0.85rem;
    color: #4b5563;
    min-width: 48px;
    text-align: right;
}

.ux-score-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.ux-score-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.4rem 0.6rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.ux-score-label {
    font-size: 0.9rem;
    color: #111827;
}

.ux-score-value {
    font-weight: 600;
    color: #143A84;
    min-width: 48px;
    text-align: right;
}

@media (max-width: 700px) {
    .ux-bar-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
    .ux-bar-value {
        text-align: left;
    }
}

.support-prio-draggable {
    cursor: grab;
}

.support-prio-card.dragging {
    opacity: 0.6;
    cursor: grabbing;
}

.pjm-prio-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.pjm-prio-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.9rem;
    padding: 1rem 1.1rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.nidamobile-prio-draggable {
    cursor: grab;
}

.pjm-prio-card.dragging {
    opacity: 0.6;
    cursor: grabbing;
}

.pjm-prio-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
}

.pjm-prio-head-main {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.pjm-prio-head-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pjm-prio-jira {
    width: fit-content;
    font-weight: 700;
    color: #1e3a8a;
    background: #dbeafe;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
}

.pjm-prio-status {
    font-size: 0.82rem;
    color: #374151;
    background: #f3f4f6;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
}

.nidamobile-tech-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #065f46;
    background: #d1fae5;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
}

.pjm-prio-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
    color: #111827;
}

.pjm-prio-details {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-wrap: wrap;
}

.pjm-prio-detail {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.pjm-prio-detail dt {
    font-size: 0.82rem;
    color: #6b7280;
}

.pjm-prio-detail dd {
    margin: 0;
    color: #111827;
    font-weight: 600;
}

.pjm-prio-confirm-form {
    margin-top: 0.35rem;
}

.pjm-prio-confirm-button {
    background: #1d4ed8;
    color: #fff;
    border: 0;
    border-radius: 0.5rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.pjm-prio-confirm-button:hover {
    background: #1e40af;
}

@media (max-width: 900px) {
    .pjm-prio-card-header {
        flex-direction: column;
    }
}

.nidapo-changelog-components {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.nidapo-changelog-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    color: #1f2937;
    background: #f8fafc;
    text-decoration: none;
    font-weight: 600;
}

.nidapo-changelog-badge.active {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e3a8a;
}

.changelog-release-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
    align-items: end;
}

.changelog-release-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.nidapo-changelog-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.nidapo-changelog-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.85rem;
    padding: 1rem 1.1rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.nidapo-changelog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.7rem;
}

.nidapo-changelog-head-main {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nidapo-changelog-version {
    margin: 0;
    font-size: 1.05rem;
}

.nidapo-changelog-state {
    text-transform: lowercase;
    font-size: 0.82rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-weight: 700;
}

.nidapo-changelog-state.released {
    background: #dcfce7;
    color: #166534;
}

.nidapo-changelog-state.unreleased {
    background: #fee2e2;
    color: #991b1b;
}

.nidapo-changelog-delete {
    border: none;
    border-radius: 8px;
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    cursor: pointer;
}

.nidapo-changelog-issues {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.nidapo-changelog-issue-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 0.7rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    align-items: start;
}

.nidapo-changelog-issue-key {
    font-weight: 700;
    color: #1e3a8a;
    text-decoration: none;
}

.nidapo-changelog-issue-text {
    color: #111827;
    white-space: pre-wrap;
}

/* --------------------------------------------------------
   ROLES DB
-------------------------------------------------------- */

.roles-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.roles-admin-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.roles-form {
    max-width: none;
}

.roles-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.roles-item {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.roles-permissions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.roles-permissions-form {
    max-width: none;
}

.roles-permissions-row {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto auto;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.roles-permissions-name {
    font-weight: 600;
}

@media (max-width: 900px) {
    .roles-admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .changelog-admin-grid {
        grid-template-columns: 1fr;
    }
}



/* Klickbare Feature-Kachel */
.feature-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Kommentare */
.feature-comments {
    grid-column: 1 / 2;
    margin-top: 0.5rem;
    width: 100%;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.comment-item {
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.comment-author {
    font-weight: 600;
}

.comment-text {
    margin: 0;
    font-size: 0.95rem;
    color: #111827;
    white-space: pre-wrap;
}

.comment-form-wrapper {
    max-width: 600px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}


/* --------------------------------------------------------
   IMAGE MODAL (FEATURE DETAIL)
-------------------------------------------------------- */

.image-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.image-modal.open {
    display: flex;
}

.image-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
}

.image-modal-content {
    position: relative;
    z-index: 51;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 0.75rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.4);
}

.image-modal-close {
    background: #111827;
    color: white;
    border: none;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* --------------------------------------------------------
   FEATURE DETAIL LAYOUT
-------------------------------------------------------- */

.feature-detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: flex-start;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

/* Linke Spalte – nimmt einfach die normalen bug-card Styles */
.feature-main {
    min-width: 0;
}

.comment-form-panel {
    background: #ffffff;
    border-radius: 0.85rem;
    border: 1px solid #d1d5db;

    /* Gleichmäßiges Padding links/rechts/oben/unten */
    padding: 1.5rem;

    max-width: 380px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);

    display: flex;
    flex-direction: column;
    gap: 1rem; /* gleichmäßiger Abstand zwischen Abschnitten */
}

.comment-form-panel h3 {
    margin: 0;
}

/* Formular: gleichmäßige vertikale Abstände */
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Labels bekommen KEINEN extra Abstand innen */
.comment-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
}

/* Inputs & Textareas: immer volle Breite */
.comment-form-panel input[type="text"],
.comment-form-panel textarea {
    width: 100%;              /* <<< ganz wichtig */
    box-sizing: border-box;   /* <<< verhindert Überlauf */
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.55rem 0.7rem;
    font-size: 0.95rem;
    background: #f9fafb;
}

/* Fokuseffekt */
.comment-form-panel input[type="text"]:focus,
.comment-form-panel textarea:focus {
    outline: none;
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* Checkbox in einer Linie */
.checkbox-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Info-Hinweis */
.comment-form-panel .hint {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}

/* Button schön bündig mit Innenrand */
.comment-form-panel button {
    align-self: flex-end;
    padding: 0.6rem 1.4rem;
    background: #2563eb;
    border-radius: 0.6rem;
    color: white;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease-in-out;
}

.comment-form-panel button:hover {
    background: #1e4fc7;
}

/* Responsive: untereinander auf kleineren Screens */
@media (max-width: 1000px) {
    .feature-detail-layout {
        grid-template-columns: 1fr;
    }

    .comment-form-panel {
        max-width: 100%;
    }
}


/* --------------------------------------------------------
   DANKE-SEITE NACH BUG-MELDUNG
-------------------------------------------------------- */

.thank-page {
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;   /* statt center */
    padding-top: 3rem;             /* damit es nicht direkt an der Topbar klebt */
    gap: 1.5rem;
    text-align: center;
}

.thank-logo {
    max-width: 260px;
    width: auto;
    height: 180px;
    padding: 1rem 0;          /* verhindert optisches Abschneiden */
    display: block;
}

.thank-text {
    font-size: 1.6rem;
    font-weight: 600;
    color: #143A84;
}

.title-secondary {
    display: inline-block;
}

.terms-card .bug-card-body {
    gap: 0;
}

.terms-description p {
    margin: 0 0 0.75rem 0;
}

.terms-description p:first-child {
    margin-top: 0;
}

.terms-heading {
    margin-bottom: 0.35rem;
}

.terms-description {
    white-space: normal;
}

/* --------------------------------------------------------
   PRODUCT VISION
-------------------------------------------------------- */

.product-vision {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-vision__hero {
    background: linear-gradient(135deg, #0f2f6f 0%, #143a84 100%);
    border-radius: 1.15rem;
    padding: clamp(2.25rem, 5vw, 3.5rem);
    color: #f8fafc;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.24);
}

.product-vision__hero-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.product-vision__title {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.12;
}

.product-vision__subtitle {
    margin: 0.9rem 0 0;
    max-width: 780px;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.5;
    color: rgba(219, 234, 254, 0.94);
}

.product-vision__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    border: 1px solid rgba(191, 219, 254, 0.38);
    background: rgba(219, 234, 254, 0.12);
    color: #f8fafc;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.3rem 0.72rem;
    white-space: nowrap;
}

.product-vision__statement-card {
    margin: 2.3rem auto 0;
    max-width: 860px;
    border-radius: 0.95rem;
    border: 1px solid rgba(191, 219, 254, 0.24);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    padding: clamp(1.4rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.25rem);
}

.product-vision__statement {
    margin: 0;
    text-align: center;
    font-size: clamp(1.24rem, 2.05vw, 1.52rem);
    font-weight: 600;
    line-height: 1.68;
    color: #ffffff;
    text-wrap: balance;
}

.product-vision__section {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.product-vision__section + .product-vision__section {
    margin-top: 0;
}

.product-vision__section-title {
    margin: 0;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid #d5deea;
    font-size: clamp(1.36rem, 2.05vw, 1.56rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #0f172a;
}

.product-vision__grid {
    display: grid;
    gap: 1.2rem;
}

.product-vision__grid--guidelines {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-vision__grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-vision__card {
    position: relative;
    gap: 1.08rem;
    min-height: 0;
    padding: 1.42rem 1.56rem;
    border-color: #e6ecf3;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.product-vision__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    border-color: #d4deea;
}

.product-vision__card h3 {
    margin: 0;
    font-size: 1.14rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0f172a;
}

.product-vision__card ul {
    margin: 0;
    padding-left: 1.2rem;
    color: #1f2937;
    display: flex;
    flex-direction: column;
    gap: 0.52rem;
    line-height: 1.58;
}

.product-vision__card li::marker {
    color: #4b5563;
}

.product-vision__icon-wrap {
    width: 2.62rem;
    height: 2.62rem;
    border-radius: 0.72rem;
    background: #e8f0ff;
    color: #0f3b84;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px #c9daf8;
    margin-bottom: 0.08rem;
}

.product-vision__icon {
    width: 1.56rem;
    height: 1.56rem;
    fill: currentColor;
}

.product-vision__section--guidelines,
.product-vision__section--target,
.product-vision__section--ecosystem {
    background: #f4f8fc;
    border: 1px solid #e2eaf4;
    border-radius: 1rem;
    padding: clamp(1.3rem, 2.6vw, 1.95rem);
}

.product-vision__section--target {
    padding-bottom: clamp(2.1rem, 3.6vw, 2.8rem);
    overflow: visible;
}

.product-vision__section--target .product-vision__card {
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.07);
}

.product-vision__section--ecosystem .product-vision__card:nth-child(2) {
    border-color: #d3deec;
}

.product-vision__grid--ecosystem {
    position: relative;
    isolation: isolate;
    padding-top: 1.7rem;
}

.product-vision__grid--ecosystem::before {
    content: "";
    position: absolute;
    left: clamp(1.5rem, 2.8vw, 2.25rem);
    right: clamp(1.5rem, 2.8vw, 2.25rem);
    top: 0.2rem;
    height: 1.2rem;
    background:
        radial-gradient(circle, rgba(126, 161, 213, 0.95) 0 3px, transparent 3.5px) left top / 10px 10px no-repeat,
        radial-gradient(circle, rgba(126, 161, 213, 0.95) 0 3px, transparent 3.5px) center top / 10px 10px no-repeat,
        radial-gradient(circle, rgba(126, 161, 213, 0.95) 0 3px, transparent 3.5px) right top / 10px 10px no-repeat,
        linear-gradient(90deg, rgba(158, 180, 214, 0.58), rgba(158, 180, 214, 0.58)) center 4px / calc(100% - 10px) 1px no-repeat,
        linear-gradient(180deg, rgba(158, 180, 214, 0.5), rgba(158, 180, 214, 0.05)) left 4px top 8px / 1px calc(100% - 8px) no-repeat,
        linear-gradient(180deg, rgba(158, 180, 214, 0.5), rgba(158, 180, 214, 0.05)) center top 8px / 1px calc(100% - 8px) no-repeat,
        linear-gradient(180deg, rgba(158, 180, 214, 0.5), rgba(158, 180, 214, 0.05)) right 4px top 8px / 1px calc(100% - 8px) no-repeat;
    z-index: 0;
    pointer-events: none;
}

.product-vision__grid--ecosystem::after {
    content: "";
    position: absolute;
    top: -0.12rem;
    left: 50%;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 1px solid rgba(126, 161, 213, 0.42);
    background: rgba(250, 252, 255, 0.9);
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
}

.product-vision__grid--ecosystem > * {
    position: relative;
    z-index: 1;
}

.product-vision__section--ecosystem .product-vision__card {
    border-color: #dbe5f2;
    box-shadow: 0 7px 15px rgba(15, 23, 42, 0.07);
}

.product-vision__final {
    background: #0f172a;
    border-radius: 1.05rem;
    border: 1px solid #1e2d45;
    color: #f8fafc;
    padding: clamp(1.9rem, 3.2vw, 2.45rem) clamp(1.55rem, 3.1vw, 2.2rem);
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-vision__final-title {
    margin: 0 0 0.72rem;
    font-size: clamp(1.22rem, 1.9vw, 1.45rem);
    line-height: 1.3;
}

.product-vision__final p {
    margin: 0;
    font-size: clamp(1.16rem, 2vw, 1.3rem);
    font-weight: 600;
    line-height: 1.68;
}

.product-vision__final p + p {
    padding-top: 0.72rem;
    border-top: 1px solid rgba(148, 163, 184, 0.26);
}

.product-vision :focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
    border-radius: 0.35rem;
}

@media (max-width: 1180px) {
    .product-vision__grid--guidelines {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-vision__grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-vision__grid--ecosystem::before,
    .product-vision__grid--ecosystem::after {
        display: none;
    }

    .product-vision__grid--ecosystem {
        padding-top: 0;
    }
}

@media (max-width: 760px) {
    .product-vision {
        gap: 0.95rem;
    }

    .product-vision__hero {
        padding: 1.5rem 1.2rem;
    }

    .product-vision__hero-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .product-vision__statement-card {
        margin-top: 1.4rem;
        padding: 1.2rem 1rem;
    }

    .product-vision__grid--guidelines,
    .product-vision__grid--three {
        grid-template-columns: 1fr;
    }

    .product-vision__section {
        gap: 1.05rem;
    }

    .product-vision__section--guidelines,
    .product-vision__section--target,
    .product-vision__section--ecosystem {
        padding: 1rem;
        border-radius: 0.9rem;
    }

    .product-vision__final {
        margin-top: 0;
        padding: 1.35rem 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-vision__card {
        transition: none;
    }

    .product-vision__card:hover {
        transform: none;
    }
}

/* --------------------------------------------------------
   STRATEGIC PRODUCT ROADMAP
-------------------------------------------------------- */

.roadmap-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.roadmap-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1.15rem;
    border: 1px solid #d9e2ef;
    background:
        radial-gradient(circle at 12% 18%, rgba(140, 174, 221, 0.32) 0, rgba(140, 174, 221, 0) 45%),
        radial-gradient(circle at 85% 0%, rgba(15, 59, 132, 0.12) 0, rgba(15, 59, 132, 0) 50%),
        linear-gradient(135deg, #f8fbff 0%, #eef4fb 100%);
    padding: clamp(1.6rem, 4vw, 2.5rem);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.09);
}

.roadmap-kicker {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f3b84;
}

.roadmap-title {
    margin: 0.5rem 0 0;
    font-size: clamp(1.55rem, 2.8vw, 2.2rem);
    font-weight: 700;
    line-height: 1.18;
    color: #0f172a;
}

.roadmap-subtitle {
    margin: 0.9rem 0 0;
    max-width: 920px;
    line-height: 1.6;
    color: #334155;
}

.roadmap-initiative {
    border-radius: 1.08rem;
    border: 1px solid #e1e8f2;
    background: #f8fbff;
    padding: clamp(1.1rem, 2.8vw, 1.8rem);
}

.roadmap-initiative-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem 0.9rem;
    margin-bottom: 1.1rem;
}

.roadmap-initiative-header h2 {
    margin: 0;
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    color: #0f172a;
}

.roadmap-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0f3b84;
    background: #e2edff;
    border: 1px solid #bfd3f8;
}

.roadmap-epic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.roadmap-epic-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.72rem;
    border: 1px solid #dce5f2;
    border-radius: 0.95rem;
    background: #ffffff;
    padding: 1.7rem 1.15rem 1.1rem 1.15rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.roadmap-epic-card--wide {
    grid-column: 1 / -1;
}

.roadmap-epic-title {
    margin: 0;
    font-size: 1.06rem;
    line-height: 1.4;
}

.roadmap-epic-title a {
    color: #0f3b84;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.roadmap-epic-title a:hover {
    border-bottom-color: #0f3b84;
}

.roadmap-epic-card p {
    margin: 0;
    color: #1f2937;
    line-height: 1.6;
}

.roadmap-epic-summary {
    font-weight: 600;
    color: #0f172a;
}

.roadmap-epic-placeholder {
    color: #475569;
    font-style: italic;
}

.roadmap-epic-goal-title {
    margin: 0.25rem 0 0;
    font-size: 0.98rem;
    color: #0f172a;
}

.roadmap-epic-goals {
    margin: 0;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: #1f2937;
    line-height: 1.55;
}

.roadmap-initiative-intro {
    margin: 0 0 0.8rem 0;
    color: #1f2937;
    line-height: 1.6;
}

.roadmap-component-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.roadmap-component-card {
    position: relative;
    border: 1px solid #dce5f2;
    border-radius: 0.9rem;
    background: #ffffff;
    padding: 1.55rem 1rem 1rem 1rem;
}

.roadmap-target-window {
    position: absolute;
    top: 0.75rem;
    right: 0.9rem;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #d5dee9;
}

.roadmap-component-title {
    margin: 0 0 0.65rem 0;
    font-size: 1.02rem;
    color: #0f172a;
}

.roadmap-epic-progress-list {
    display: flex;
    flex-direction: column;
    gap: 0.62rem;
}

.roadmap-epic-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.roadmap-epic-progress-row a {
    color: #0f3b84;
    text-decoration: none;
    font-weight: 600;
}

.roadmap-epic-progress-row a:hover {
    text-decoration: underline;
}

.roadmap-epic-progress-row span {
    color: #334155;
    font-size: 0.92rem;
    white-space: nowrap;
}

.roadmap-progress-track {
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.roadmap-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #0ea5e9);
}

.roadmap-component-empty {
    margin: 0;
    color: #64748b;
}

@media (max-width: 920px) {
    .roadmap-epic-grid {
        grid-template-columns: 1fr;
    }

    .roadmap-component-grid {
        grid-template-columns: 1fr;
    }
}
