/* --- Styles for the List View Renderer --- */

#list-view-content .nodes-container {
    max-width: 48rem; /* equivalent to max-w-3xl */
    margin-left: auto;
    margin-right: auto;
}

.list-node-wrapper {
    background-color: white;
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); /* shadow-md */
    overflow: hidden;
    border: 1px solid #e5e7eb; /* border-gray-200 */
}

.list-node-header {
    display: flex;
    align-items: center;
    padding: 1rem; /* p-4 */
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.list-node-header:hover {
    background-color: #f9fafb; /* gray-50 */
}

.list-node-title {
    font-weight: 600; /* font-semibold */
    flex-grow: 1;
    word-break: break-word;   /* Erzwingt Zeilenumbrüche für zu lange Wörter */
    -webkit-hyphens: auto;   /* Für Webkit-Browser */
    -ms-hyphens: auto;       /* Für Microsoft-Browser */
    hyphens: auto;           /* Standard für andere Browser */
}

.list-node-header .node-locked-icon {
    display: none;
    margin-right: 0.75rem;
}

.list-node-wrapper.locked .list-node-header .node-locked-icon {
    display: block;
}

.expand-icon {
    transition: transform 0.3s ease-in-out;
}

.list-node-wrapper.is-expanded .expand-icon {
    transform: rotate(180deg);
}

.list-node-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    background-color: #f9fafb; /* gray-50 */
    border-top: 1px solid #e5e7eb; /* border-gray-200 */
}

.list-node-wrapper.is-expanded .list-node-body {
    max-height: 2000px; /* Large enough to not clip content */
}

.list-node-header.node-color-default:hover {
    background-color: #f9fafb; /* gray-50 */
}

.list-node-header.node-color-strategy:hover {
    background-color: #dcfce7; /* green-100 */
}

.list-node-header.node-color-future:hover {
    background-color: #f3e8ff; /* purple-100 */
}

.list-node-header.node-color-law:hover {
    background-color: #f1f5f9; /* slate-100 */
}

.list-node-header:hover {
    filter: brightness(90%) saturate(140%);
    transition: filter 0.2s ease-in-out;
}

/* Allgemeine Basis-Stile für den Fortschrittstext */
.list-node-header .node-quiz-status-text {
    margin-right: 1rem; 
    margin-left: 0.5rem; /* Etwas Abstand zum Titel */
    font-size: 0.85rem; /* Kleinerer Text */
    font-weight: 500;
    color: #475569; /* slate-600 */
    white-space: nowrap; /* Verhindert Zeilenumbruch */
    display: none; /* Standardmäßig versteckt */
    flex-shrink: 0;
    align-self: center;
}

.list-node-wrapper.feedback-in-progress .relations-carousel-item {
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.list-node-content p {
    word-break: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}


/* --- Relations Carousel Styles --- */
.relations-carousel-container {
    margin-top: 2rem; /* mt-8 */
    padding-top: 1.5rem; /* pt-6 */
    border-top: 1px dashed #d1d5db; /* border-t border-dashed border-gray-300 */
}

.relations-carousel-tier {
    margin-bottom: 1rem; /* mb-4 */
}

.relations-carousel-tier-title {
    font-size: 0.875rem; /* text-sm */
    font-weight: 600; /* font-semibold */
    color: #4b5563; /* text-gray-600 */
    margin-bottom: 0.5rem; /* mb-2 */
}

.relations-carousel {
    display: flex;
    gap: 0.75rem; /* gap-3 */
    overflow-x: auto;
    padding-bottom: 1rem; /* pb-4 for scrollbar space */
    padding-top: 1rem; /* pb-4 for :after-badge */
    padding-left: 1rem; /* pb-4 for the border */
    scrollbar-width: thin;
    scrollbar-color: #9ca3af #e5e7eb;
}

.relations-carousel::-webkit-scrollbar {
    height: 8px;
}
.relations-carousel::-webkit-scrollbar-track {
    background: #f1f5f9; /* slate-100 */
    border-radius: 4px;
}
.relations-carousel::-webkit-scrollbar-thumb {
    background: #cbd5e1; /* slate-300 */
    border-radius: 4px;
}
.relations-carousel::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; /* slate-400 */
}


.relations-carousel-item {
    flex: 0 0 auto;
    width: 12rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem;
    background-color: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out; /* 'all' für Filter und Transform */
    position: relative; /* Notwendig für das ::after-Element */
}

.relations-carousel-item:hover {
    filter: brightness(90%) saturate(140%);
    transform: translateY(-2px);
}

.relations-carousel-item.is-source-link {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.6), 0 4px 10px rgba(0,0,0,0.1); /* amber-400 */
    filter: none; /* Deaktiviert den Hover-Filter, wenn es der Source-Link ist */
}

.relations-carousel-item.is-source-link::after {
    content: 'Zurück';
    position: absolute;
    top: -0.75rem;
    right: -0.5rem;
    background-color: #0ea5e9; /* sky-500 */
    color: white;
    font-size: 0.65rem; /* text-xs */
    font-weight: 600; /* font-semibold */
    padding: 0.125rem 0.5rem;
    border-radius: 9999px; /* rounded-full */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}


.relation-type {
    font-size: 0.75rem; /* text-xs */
    font-weight: 500; /* font-medium */
    color: #6b7280; /* text-gray-500 */
    margin-bottom: 0.25rem; /* mb-1 */
}

.relation-node-title {
    font-weight: 600; 
    white-space: normal; 
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

