body{
margin:0;
font-family:Inter,system-ui;
background:#0b1020;
color:white;
}

.app{
display:flex;
height:100vh;
}

.sidebar{
width:260px;
background:#070c18;
padding:20px;
border-right:1px solid #1a2338;
}

.logo{
display:flex;
gap:10px;
align-items:center;
margin-bottom:30px;
}

.logo img{
width:36px;
}

.logo-title{
font-weight:700;
}

.logo-sub{
font-size:12px;
opacity:.6;
}

.nav-item{
display:block;
width:100%;
padding:10px;
margin-bottom:6px;
background:none;
border:none;
color:white;
text-align:left;
cursor:pointer;
}

.nav-item.active{
background:#1a2338;
border-radius:8px;
}

.main{
flex:1;
display:flex;
flex-direction:column;
}

.topbar{
padding:20px;
border-bottom:1px solid #1a2338;
}

.workspace{
display:flex;
flex:1;
}

.center{
flex:1;
padding:30px;
}

.right{
width:300px;
border-left:1px solid #1a2338;
padding:20px;
}

.panel{
background:#121a2f;
padding:15px;
margin-bottom:20px;
border-radius:10px;
}

.regime-item{
padding:8px;
}

.regime-item.active{
color:#ff8a2a;
font-weight:600;
}

.input{
margin-top:20px;
display:flex;
gap:10px;
}

.input input{
flex:1;
padding:10px;
background:#121a2f;
border:none;
color:white;
}

.input button{
background:#ff8a2a;
border:none;
padding:10px 16px;
color:white;
cursor:pointer;
}

/* News Links besser sichtbar im Dark Mode */

.newsItem a {
    color: #ff9d2e;
    text-decoration: none;
    font-weight: 500;
}

.newsItem a:hover {
    color: #ffb45c;
}

.newsItem a:visited {
    color: #ff9d2e;
}

/* Anlagekandidaten schöner darstellen */

#bucketContainer {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bucketCard {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px 16px;
}

.bucketCard h3 {
    margin: 0 0 10px 0;
    font-size: 1.05rem;
    color: #ffffff;
}

.bucketCard ul {
    margin: 0;
    padding-left: 18px;
}

.bucketCard li {
    margin-bottom: 6px;
    color: #d7def0;
    line-height: 1.45;
    font-size: 0.96rem;
}

/* News schöner darstellen */

#newsContainer {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.newsItem {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.newsItem a {
    display: block;
    color: #ff9d2e;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 6px;
}

.newsItem a:hover {
    color: #ffb45c;
}

.newsItem a:visited {
    color: #ff9d2e;
}

.newsMeta {
    font-size: 0.88rem;
    color: #b9c3dc;
}

/* Signal des Tages */

.signalBox {
    background: rgba(255, 157, 46, 0.08);
    border: 1px solid rgba(255, 157, 46, 0.22);
    border-radius: 12px;
    padding: 16px;
}

.signalTitle {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffb45c;
    margin-bottom: 4px;
}

.signalSub {
    font-size: 0.9rem;
    color: #b9c3dc;
    margin-bottom: 10px;
}

.signalText {
    color: #d7def0;
    line-height: 1.5;
}

/* Top Chancen */

#topCandidatesContainer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.topCandidateCard {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px 16px;
}

.topCandidateHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.topCandidateAsset {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.topCandidateScore {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ff9d2e;
}

.topCandidateMeta {
    margin-top: 4px;
    font-size: 0.88rem;
    color: #b9c3dc;
}

.topCandidateDetails {
    margin-top: 8px;
    font-size: 0.92rem;
    color: #d7def0;
    line-height: 1.45;
}

/* View-Umschaltung */

.view-section {
    display: none;
}

.view-section.active-view {
    display: block;
}

/* Regime Probability Grid */

.regimeProbGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.regimeProbCard {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    transition: all 0.2s ease;
}

.regimeProbCard:hover {
    background: rgba(255,255,255,0.07);
}

.regimeProbCardCode {
    font-size: 14px;
    color: #9aa4b2;
}

.regimeProbCardLabel {
    font-size: 12px;
    color: #7f8ea3;
    margin-top: 2px;
}

.regimeProbCardValue {
    font-size: 22px;
    font-weight: 600;
    margin-top: 8px;
}

.regimeProbCardActive {
    border-color: rgba(255, 157, 46, 0.45);
    background: rgba(255, 157, 46, 0.10);
    box-shadow: 0 0 0 1px rgba(255, 157, 46, 0.12) inset;
}

.regimeProbCardActive .regimeProbCardCode,
.regimeProbCardActive .regimeProbCardValue {
    color: #ff9d2e;
}

.overlayComponentRow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px 56px;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.overlayComponentLabel {
    color: #d7def0;
    line-height: 1.35;
}

.overlayComponentBar {
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
}

.overlayComponentFill {
    height: 100%;
    background: #ff9d2e;
    border-radius: 999px;
}

.overlayComponentValue {
    text-align: right;
    color: #ff9d2e;
    font-weight: 600;
    white-space: nowrap;
}

.portfolioHeaderBox {
    margin-bottom: 20px;
}

.portfolioMetaLine {
    color: rgba(255,255,255,0.8);
    margin-top: 6px;
}

.portfolioBucketCard {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
}

.portfolioBucketHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.portfolioBucketTitle {
    font-size: 20px;
    font-weight: 700;
}

.portfolioBucketStats {
    color: #ff9d2e;
    font-weight: 600;
}

.portfolioTable th,
.portfolioTable td {
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.portfolioTable th {
    color: rgba(255,255,255,0.75);
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.portfolioTable td {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

#deepDiveContainer ul li {
    margin-bottom: 8px;
}

#deepDiveContainer .panel {
    margin-bottom: 18px;
}

/* Anlagekandidaten – Signaloptik */

.bucketCard ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.bucketCard li {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
}

.bucketCard li > div:first-child {
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
}

.bucketCard li > div:nth-child(2),
.bucketCard li > div:nth-child(3),
.bucketCard li > div:nth-child(4) {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    line-height: 1.7;
}

.bucketCard li > div:nth-child(2),
.bucketCard li > div:nth-child(3) {
    font-family: inherit;
    letter-spacing: 0.1px;
}

.bucketCard li > div:nth-child(4) {
    margin-top: 8px;
    color: #ff9d2e;
    font-weight: 700;
}

.bucketCard h3 {
    margin-bottom: 16px;
}