*{
    box-sizing: border-box;
}

html, body{
    margin: 0;
    padding: 0;
    font-size: x-large;
    font-size: clamp(0.8rem, 1vw, 1.3rem);
    
}

h1, h2, h3, h4, h5, h6{
    display: block;
    width: 100%;
    padding: 0.1rem;
    margin: 0;
}

body{
    background: #ddd;
    margin: auto;
    text-align: center;
}


.cursor-line {
    position: fixed; /* Bleibt beim Scrollen an der richtigen Stelle */
    background-color: #ff0000; /* Farbe der Linien (hier rot) */
    pointer-events: none; /* WICHTIG: Damit man durch die Linien hindurchklicken kann */
    z-index: 9999; /* Damit die Linien immer oben liegen */
}

/* Die horizontale Linie */
.cursor-line.horizontal {
    width: 100%;
    height: 1px; /* Dicke der Linie */
    top: 0;
    left: 0;
}

/* Die vertikale Linie */
.cursor-line.vertical {
    height: 100%;
    width: 1px; /* Dicke der Linie */
    top: 0;
    left: 0;
}


.input_large{
    width:80vw;
    display: inline-block;
}

#input_budget{
    width:80%;
    display: inline-block;
}

#root{
    display: none;
}

input, button{
    padding: 0.5rem;
    width: clamp(100px, 100%, 400px);
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
}

button{
    background: #090;
    color: #fff;
    margin-top: 20px;
    margin-bottom: 10px;
}

label{
    width:100%;
    width: clamp(100px, 100%, 400px);
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}


input[type=checkbox] {
    width: 30px;
    height: 30px;
}


#show_pass{
    margin-top: 20px;
}

#label_show_pass{
    text-align: left;
    margin-left: 10px;
    transform: translate(0px, -7px);
}




@keyframes load_main {

    0%{
        box-shadow:#333 0px 0px 0px;
        border: 4px solid #fff;
        background: #ddd;
        
    }

    50%{
        box-shadow:#333 0px 0px 0px;
        border: 4px solid #fff;
        background: #ddd;
    }

    100%{
        box-shadow:#333 0px 0px 50px;
        border: 4px solid #aaa;
        background: #eee;
    }    
}

main{
    
    background: #ddd;
    margin: auto;
    min-height: 100vh;
    
    width: clamp(90vw, 100%, 1200px);
    padding: clamp(0.5rem, 1.5rem, 40px);
    
    animation-name: load_main;
    animation-delay: 0.5s;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-start;
    align-items: flex-start;

    overflow-x: auto;

}


.row{
    width: 100%;
    display: flex;
}

nav, nav ul{
    display: flex;
    margin: 0;
    padding: 0;
    padding-bottom: 0;
    list-style: none;
    margin-bottom: 1rem;
    text-align: right;
    justify-content: flex-end;
    width: 90vw;
    
}

nav li{
    display: inline-block;
    margin: 0.2em;
}


nav li a{
    display: inline-block;
    background:#000;
    margin: auto;
    padding: 0.5rem;
    color: #fff;
    text-decoration: none;
}

#bg_li_small{
    display: flex;
    width: 100vw;
    justify-content: space-around;
}

#bg_li_small input, #bg_li_small button{
    display: inline-block;
    width: 34%;
}

@media screen and (min-width:750px) 
{
    #bg_li_small{
        display: flex;
        width: 50vw;
        justify-content: space-around;
        transform: translate(0px, 60px);
        
    }
}




#bg_li_small button{
    display: inline-block;
    width: 70px;
}

#bg_li_small b{
    font-size: 1.4rem;
    margin-top: 20px;
}


footer{
    background-color: #000;
    color: #fff;
    min-height: 20vw;
    background: linear-gradient(27deg,#151515 5px,transparent 5px) 0 5px,linear-gradient(207deg,#151515 5px,transparent 5px) 10px 0,linear-gradient(27deg,#222 5px,transparent 5px) 0 10px,linear-gradient(207deg,#222 5px,transparent 5px) 10px 5px,linear-gradient(90deg,#1b1b1b 10px,transparent 10px),linear-gradient(#1d1d1d 25%,#1a1a1a 25%,#1a1a1a 50%,transparent 50%,transparent 75%,#242424 75%,#242424);
    background-color: #131313;
    background-size: 20px 20px;

    margin-top: 20px;
}

footer section{

    
    width: min(100%, 300px);
    /*width, max-width */


    display: inline-block;
    margin: 1rem;
}

footer section a{
    color: #fff;
    text-decoration: none;
    
}

.bg_li{
    width: clamp(200px, 100%, 400px);
    display: inline-block;
    min-height: 300px;
    padding: clamp(0.5rem, 1rem, 2rem);
    background:#fffd;
    border-radius: 5px;
    box-shadow: #222 0px 0px 10px;
}


.box_50{
    width:clamp(300px , 50%, 100%);
    
    
    display: inline-block;

}

.warning{
    background: #f90;
    text-align: center;
    padding: 0.5rem;
    border-radius: 5px;
    border:2px solid #f30;
}

.okay{
    background: #0f0;
    text-align: center;
    padding: 0.5rem;
    border-radius: 5px;
    border:2px solid #090;
}

table{
    border:1px solid #444;
    border-radius: 5px;
    padding: 0.5rem;
    width: clamp(600px, 100vw, 1600px);
    margin: auto;
}







table th{
    background:#057;
    color: #fff;
}

table th a{
    color: #f90;
}

table td{
    margin: 0;
    padding: 0.2rem;
    border-bottom: 1px solid #000;
}

table a{
    text-decoration: none;
    color: #930;
}

.td_kurs{
    background:#ccc;
}

.td_ziel_kurz{
    background:#ccf;
}

.td_per_kurz, .td_x_kurz{
    background:#090;
}

.td_x_lang, .td_kurs_lang{
    background:#444;
    color: #fff;

    
}
.td_kurs_lang{
    border-left:3px solid #000;
}


table tr:hover{
    background:#aaf;
    
}

table tr:hover td{
    color:#303640;   
}

table tr:hover td{
    background: none;
}

.ico_up, .ico_down{
    
    display: inline-block;
    background-color: #ccc;
    border: 1px solid #000;
    margin: 0;
    margin-right: 0.5rem;
    font-size: 0;
    padding: 10px;
    border-radius: 90px;
    transform: translate(0px,-5px);
}


.ico_up{
    background: #0c0;    
}

.ico_down{
    background: #c00;    
}


#show_chart{
    
    display: block;
    width: 100vw;
    height: auto;
    position: absolute;
    
    left:0px;
    right: 0px;
    z-index:4;
    

}

.show_chart{
    cursor: pointer;
    padding: 0.5rem;
}

#bg_content{
    background:#0005;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    display: inline-block;
    z-index: 1;
}

#show_chart #chart_pic{
    max-width: 70vw;
    max-height: 70vh;
    position: relative;
    z-index: 5;
}

.link_ready{
    font-size: 2rem;
    color: #000;
    text-decoration: none;
    display: block;
    width: 100%;
    margin: 1rem;
    background:#090;
    color: #fff;
}

#surch_form{
    width: 80vw;
    display: inline-block;
    margin: 1rem;
}

.font-red{
    color: #f00;
}

.font-green{
    color: #090;
}

.font-red{
    color: #f00;
}

.x-green{
    color: #0a0;
    font-size: 1rem;
    border-bottom: 2px solid #0f0;
    display: inline-block;
    background: #0f0;
    padding: 5px;
    border-radius: 5px;
}

.kurs_old{
    font-size: 0.7rem;
    background-color: #f30;
    display: inline-block;
    padding: 5px;
    color: #fff;

    border-radius: 5px;
    margin-left: 10px;
}


#form_new_borse{
    width: 100%;
    margin: 0;
    padding: 0;
}

#form_new_borse input::placeholder
{
    color: #444;
    opacity: 1; /* Firefox */
    font-style: italic;
}

#form_new_borse button{
    width: 100px;
}



.menu_boerse{
    margin-right: 0.2rem;
    text-decoration: none;
    color:#000;
    font-size: 1rem;
    font-weight: normal;
    border-bottom: 1px solid #000;
    display: inline-block;
}

.surch_asset_list{
    width: 80vw;
    background-color:#057 ;
    padding: 0.2rem;
    margin: 0.2rem;
    display: inline-block;
    color:#fff;
    font-size: 1.2rem;
    cursor: pointer;

}

.surch_asset_list:hover{
    background-color:#079 ;
}

#front_action{
    display: block;
    width: 80vw;
    min-height: 80vh;
    background-color: #fff;
    border:4px solid #000;
    position: absolute;
    top:10vh;
    left: 10vw;
    z-index: 3;
    color: #000;
}

#bg_action{
    display: block;
    width: 100vw;
    min-height: 100vh;
    background-color: #0004;
    
    position: fixed;
    top:0px;
    left:0px;
    z-index: 2;
}

.bg_budget{
    margin-bottom:1em;
}

.budget{
    border: none;
}

.sub_nav{
    
    margin-bottom: 0.5em;
}

.sub_nav a{
    font-size: 1.2rem;
    text-decoration: none;
    border:none;
    background-color: #f90;
    color:#fff;
    padding:0.5em;
}

.buy_asset{   
    font-size: 1.2rem;
    text-decoration: none;
    border:none;
    background: #090;
    color:#fff;
    padding:0.2em;
    margin: 0;
    display: inline-block;
    min-width: 100px;
    width: 90%;
    cursor: pointer;
}

.position{
    background:none;
    border:none;
    width: 100%;
}

.position th, .position td{
    background:none;
    border:1px solid #000;
    color: #000;
}

.position th{
    background-color: #000;
    color: #fff;
}


.color_green{
    color:#0a0;
}

.color_red{
    color:#f00;
}



@keyframes blink_green {

    0%{
        background: #090;
    }

    50%{
        background: #ddd;
    }

    100%{
        background: #090;
    }    
}

@keyframes blink_red {

    0%{
        background: #900;
    }

    50%{
        background: #ddd;
    }

    100%{
        background: #900;
    }    
}

.action_wait{
    font-size: 1.5em;
    background: #000;
    color: #fff;
    display: inline-block;

    padding: 0.2em;
    border-radius: 5px;
}


.action_buy{
    font-size: 1.5em;
    background: #090;
    color: #fff;
    animation: blink_green 1s infinite;
    display: inline-block;

    padding: 0.2em;
    border-radius: 5px;
}


.action_sale{
    font-size: 1.5em;
    background: #900;
    color: #fff;
    animation: blink_red 1s infinite;
    display: inline-block;
    padding: 0.2em;
    border-radius: 5px;

}


.bg_boersen{
    border:1px solid #000;
    margin: 1rem;
    border-radius: 5px;
    width: 100%;
}




.bg_assets{
    border:2px solid #000;
    margin: 0.5em;
    background: #ddf;
    border-radius: 8px;
}

.sale_pos, .del_pos{
    cursor: pointer;
}


a[class="del_pos"]
{
    display: block;
}

a[class="del_pos"][data-confirm="okay"]
{
    background:#900;
}

a[class="del_pos"][data-confirm="pending"]
{
    background:#000;
}

#buy_over_view{
    width: 100%;
    background:#000;
    color:#fff;
}

#warten, #kaufen, #verkaufen{
    width: calc(33% - 1em);
    display:inline-block;
    padding: 0.5em;
    font-size: 1.2em;
}


.too_old, .too_old td{
    filter: grayscale(1) blur(0.2px);
}


#trades_balance{
    list-style: none;
    text-align: left;
    
}

#trades_balance li{
    margin:0.5rem;
}


#trades_h3{
    text-align: left;
    padding-left: 2rem;
    
}

#trades_h3 small{
    font-size: 12px;
    color: #222;
}


#trades_portfolio {
    width: 100%; 
    border: 1px solid #ccc; 
    border-radius: 8px; 
    margin: 0.5rem auto;
    display: block; /* Zentriert das Bild sauber, wenn margin: auto gesetzt ist */
    
    /* Der magische Spiegel-Effekt mit sanftem Fade-Out! */
    -webkit-box-reflect: below 2px linear-gradient(transparent, transparent 50%, rgba(0,0,0,0.4));
}


#trades_bg_balance
{
    backdrop-filter: blur(1px);
    cursor: grabbing;
    cursor: grabbing;
    cursor: grabbing;
    backdrop-filter: blur(3px);
    width: 100%;
}



/* =========================================================
   Coin-Track – Modern UI Layer
   Für die Register-/Kurse-Seite
   Bestehende Funktionalität und Klassennamen bleiben erhalten.
   ========================================================= */

:root{
    --ct-bg-top: #f6f8fb;
    --ct-bg-bottom: #e8edf3;
    --ct-panel: rgba(255,255,255,.80);
    --ct-panel-solid: #ffffff;
    --ct-text: #172033;
    --ct-muted: #6b7485;
    --ct-line: rgba(23,32,51,.12);
    --ct-accent: #0b6f86;
    --ct-accent-2: #145f9a;
    --ct-green: #149447;
    --ct-red: #d33d4a;
    --ct-orange: #df9600;
    --ct-dark: #151a22;
    --ct-radius: 14px;
    --ct-shadow: 0 18px 45px rgba(17,30,52,.14);
    --ct-shadow-soft: 0 8px 24px rgba(17,30,52,.09);
}

html,
body{
    color: var(--ct-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body{
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 0%, rgba(11,111,134,.10), transparent 34rem),
        radial-gradient(circle at 88% 8%, rgba(84,93,165,.08), transparent 36rem),
        linear-gradient(180deg, var(--ct-bg-top), var(--ct-bg-bottom));
    background-attachment: fixed;
}

/* Überschriften etwas ruhiger */
h1, h2, h3, h4, h5, h6{
    color: var(--ct-text);
    letter-spacing: -.015em;
}

/* Inputs / Buttons */
input,
button,
select,
textarea{
    font-family: inherit;
}

input,
select,
textarea{
    border: 1px solid var(--ct-line);
    background: rgba(255,255,255,.94);
    color: var(--ct-text);
    border-radius: 9px;
    box-shadow: inset 0 1px 2px rgba(17,30,52,.03);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

input:focus,
select:focus,
textarea:focus{
    outline: none;
    border-color: rgba(11,111,134,.60);
    box-shadow: 0 0 0 3px rgba(11,111,134,.11);
    background: #fff;
}

button{
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, #138f43, #0a7737);
    box-shadow: 0 5px 14px rgba(10,119,55,.20);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

button:hover{
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(10,119,55,.24);
    filter: brightness(1.03);
}

button:active{
    transform: translateY(0);
}

/* Hauptkarte */
main{
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(255,255,255,.80);
    border-radius: 18px;
    box-shadow: var(--ct-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Alte Ladeanimation entschärfen */
@keyframes load_main {
    0%{
        box-shadow: 0 0 0 rgba(17,30,52,0);
        border-color: rgba(255,255,255,.30);
        background: rgba(255,255,255,.45);
    }
    50%{
        box-shadow: 0 8px 20px rgba(17,30,52,.06);
        border-color: rgba(255,255,255,.55);
        background: rgba(255,255,255,.58);
    }
    100%{
        box-shadow: var(--ct-shadow);
        border-color: rgba(255,255,255,.80);
        background: rgba(255,255,255,.72);
    }
}

/* Navigation */
nav,
nav ul{
    gap: .45rem;
}

nav li{
    margin: 0;
}

nav li a{
    margin: 0;
    padding: .62rem .9rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 9px;
    background: linear-gradient(180deg, #202630, #12171e);
    color: #fff;
    box-shadow: 0 5px 14px rgba(0,0,0,.13);
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

nav li a:hover{
    transform: translateY(-1px);
    background: linear-gradient(180deg, #2b3442, #17202a);
    box-shadow: 0 7px 17px rgba(0,0,0,.17);
}

/* Kleine Form-/Info-Boxen */
.bg_li{
    border: 1px solid rgba(255,255,255,.70);
    border-radius: var(--ct-radius);
    background: rgba(255,255,255,.78);
    box-shadow: var(--ct-shadow-soft);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.warning{
    border: 1px solid rgba(211,123,0,.35);
    border-radius: 10px;
    background: #fff3cd;
    color: #7a5200;
}

.okay{
    border: 1px solid rgba(20,148,71,.35);
    border-radius: 10px;
    background: #e8f7ee;
    color: #0b6d33;
}

/* Tabelle */
table{
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--ct-radius);
    padding: 0;
    overflow: hidden;
    background: rgba(255,255,255,.96);
    box-shadow: var(--ct-shadow-soft);
}

table th{
    border: 0;
    border-right: 1px solid rgba(255,255,255,.13);
    padding: .68rem .7rem;
    background: linear-gradient(180deg, #0a6279 0%, #084e61 100%);
    color: #fff;
    font-weight: 700;
    letter-spacing: .01em;
}

table th:last-child{
    border-right: 0;
}

table th a{
    color: #ffc13d;
}

table td{
    border: 0;
    border-bottom: 1px solid var(--ct-line);
    padding: .56rem .62rem;
    background: rgba(255,255,255,.92);
    transition: background .15s ease;
}

table tr:last-child td{
    border-bottom: 0;
}

table tr:hover{
    background: transparent;
}

table tr:hover td{
    background: #f3f7fa;
}

/* Kurs-/Zielzellen weniger hart */
.td_kurs{
    background: #eef2f5;
}

.td_ziel_kurz{
    background: #eef0ff;
}

.td_per_kurz,
.td_x_kurz{
    background: #e8f7ee;
}

.td_x_lang,
.td_kurs_lang{
    background: #303640;
    color: #fff;
}

.td_kurs_lang{
    border-left: 2px solid #141920;
}

/* Links in Tabellen */
table a{
    color: #a74212;
    transition: color .15s ease;
}

table a:hover{
    color: #d45b20;
}

/* Mini Status-Punkte */
.ico_up,
.ico_down{
    border: 2px solid rgba(255,255,255,.85);
    box-shadow: 0 2px 7px rgba(0,0,0,.16);
}

.ico_up{
    background: #18b655;
}

.ico_down{
    background: #dc3d4a;
}

/* Chart Overlay */
#bg_content,
#bg_action{
    background: rgba(10,15,24,.58);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#show_chart #chart_pic{
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,.32);
}

#front_action{
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 16px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 20px 60px rgba(0,0,0,.26);
}

/* Suchergebnisse */
.surch_asset_list{
    border-radius: 9px;
    background: linear-gradient(135deg, #0b6f86, #125e91);
    box-shadow: 0 4px 12px rgba(11,111,134,.15);
    transition: transform .15s ease, filter .15s ease;
}

.surch_asset_list:hover{
    background: linear-gradient(135deg, #0d829c, #176fa8);
    transform: translateY(-1px);
}

/* Subnavigation */
.sub_nav a{
    border-radius: 8px;
    background: linear-gradient(135deg, #efa313, #d98a00);
    box-shadow: 0 4px 12px rgba(217,138,0,.18);
}

.buy_asset,
.link_ready{
    border-radius: 8px;
    background: linear-gradient(135deg, #149447, #0c7437);
    box-shadow: 0 4px 12px rgba(12,116,55,.18);
}

/* Positionsübersicht */
.position th,
.position td{
    border-color: var(--ct-line);
}

.position th{
    background: #171d25;
    color: #fff;
}

.bg_boersen,
.bg_assets{
    border-color: var(--ct-line);
    box-shadow: 0 4px 14px rgba(17,30,52,.05);
}

.bg_assets{
    background: rgba(245,247,255,.92);
}

/* Trade Übersicht */
#buy_over_view{
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(180deg, #1b212b, #11161d);
}

.action_wait{
    background: #232a35;
}

.action_buy{
    background: #149447;
}

.action_sale{
    background: #b92f3d;
}

/* Blink-Effekte etwas weniger aggressiv */
@keyframes blink_green {
    0%{ background: #149447; }
    50%{ background: #71bf8f; }
    100%{ background: #149447; }
}

@keyframes blink_red {
    0%{ background: #b92f3d; }
    50%{ background: #d98790; }
    100%{ background: #b92f3d; }
}

/* Footer moderner, vorhandene Struktur bleibt */
footer{
    background:
        linear-gradient(180deg, #171d25 0%, #0f1319 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

footer section a{
    color: #e9edf3;
}

footer section a:hover{
    color: #fff;
}

/* Responsive */
@media screen and (max-width: 900px){
    main{
        border-radius: 12px;
    }

    nav,
    nav ul{
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    nav li a{
        white-space: nowrap;
    }

    table th,
    table td{
        padding: .48rem .5rem;
        font-size: .92rem;
    }
}

.crypto-container{
    width: min(100%, 900px);
    margin: 1.5rem auto;

    background:
        linear-gradient(
            145deg,
            rgba(37, 43, 54, 0.96),
            rgba(24, 29, 38, 0.96)
        );

    color: #f4f6f8;

    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;

    box-shadow:
        0 12px 35px rgba(0,0,0,0.18),
        inset 0 1px 0 rgba(255,255,255,0.04);

    overflow: hidden;
}


/* Kopfzeile */
.crypto-summary{
    padding: 0.8rem 1.2rem;

    font-size: 1.35rem;
    font-weight: 600;

    cursor: pointer;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.06),
            rgba(255,255,255,0.015)
        );

    border-bottom: 1px solid rgba(255,255,255,0.08);

    user-select: none;
}


/* Standard-Pfeil etwas Abstand */
.crypto-summary::marker{
    color: #aab3c2;
}


/* eigentliche Liste */
.crypto-list-wrapper{
    padding: 0.5rem 1rem 1rem;
}


/* einzelne Nachricht */
.crypto-item{
    display: grid;

    grid-template-columns:
        minmax(110px, 150px)
        minmax(130px, 1fr)
        80px;

    align-items: center;

    padding: 0.55rem 0.8rem;

    border-bottom:
        1px solid rgba(255,255,255,0.06);

    transition:
        background 0.15s ease,
        transform 0.15s ease;
}


.crypto-item:last-child{
    border-bottom: none;
}


.crypto-item:hover{
    background: rgba(255,255,255,0.055);

    transform: translateX(3px);
}


/* alle Spalten */
.crypto-item > span{
    padding: 0 0.45rem;
}


/* Uhrzeit */
.crypto-time{
    color: #9ca7b8;

    font-size: 0.9rem;

    text-align: left;

    font-variant-numeric: tabular-nums;
}


/* Asset */
.crypto-name{
    color: #f4f6f8;

    font-weight: 600;

    text-align: left;
}


/* Status */
.crypto-status{
    justify-self: end;

    min-width: 60px;

    padding: 0.25rem 0.55rem !important;

    border-radius: 6px;

    font-size: 0.82rem;
    font-weight: 700;

    text-align: center;

    letter-spacing: 0.04em;
}


/* UP */
.crypto-status.up{
    color: #79e7a2;

    background: rgba(38, 190, 95, 0.12);

    border: 1px solid rgba(38, 190, 95, 0.25);
}


/* DOWN */
.crypto-status.down{
    color: #ff8d99;

    background: rgba(220, 55, 70, 0.12);

    border: 1px solid rgba(220, 55, 70, 0.25);
}


/* Smartphone */
@media (max-width: 600px){

    .crypto-container{
        margin: 0.8rem auto;

        border-radius: 10px;
    }


    .crypto-summary{
        font-size: 1.1rem;

        padding: 0.7rem 0.9rem;
    }


    .crypto-list-wrapper{
        padding:
            0.4rem
            0.5rem
            0.7rem;
    }


    .crypto-item{
        grid-template-columns:
            85px
            1fr
            65px;

        padding:
            0.5rem
            0.3rem;
    }


    .crypto-time{
        font-size: 0.75rem;
    }


    .crypto-name{
        font-size: 0.85rem;
    }


    .crypto-status{
        font-size: 0.72rem;

        min-width: 50px;

        padding:
            0.2rem
            0.35rem !important;
    }
}





/* ==========================================
   NEUE KLASSEN FÜR DAS BOT-DASHBOARD
============================================= */

/* Abstände & Typografie */
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.p-1 { padding: 1rem; }
.text-gray { color: gray; }
.text-small { font-size: 0.9em; }

/* Dynamische Farben für Tabellen & Gewinne */
.pnl-positive, .dir-buy { 
    color: #008000; /* Grün */
    font-weight: bold; 
}
.pnl-negative, .dir-sell { 
    color: #ff0000; /* Rot */
    font-weight: bold; 
}
.reason-sl { color: darkred; }
.reason-renko { color: darkblue; }

/* Tabellen-Wrapper & Styling */
.table-wrapper { 
    width: 100%; 
    overflow-x: auto; 
    padding: 1rem; 
}
.trades-table { 
    width: clamp(400px, 100%, 1200px); 
    min-width: 400px; 
    margin: 0 auto; 
    text-align: left; 
    border-collapse: collapse; 
}
.trades-table th, 
.trades-table td { 
    padding: 8px;
}
.trades-table tr { 
    border-bottom: 1px solid #eee; 
}
.trades-table-header { 
    background-color: #ddd; 
}
.trades-table-header-alt { 
    background-color: #eee; 
}

/* Renko-Chart Grid & Boxen */
.asset-box { 
    background: #f4f4f4; 
    padding: 15px; 
    border-radius: 8px; 
    margin-bottom: 30px; 
    width: 100%; 
}
.asset-title { 
    margin-top: 0; 
    font-size: 1.2rem; 
    border-bottom: 2px solid #ddd; 
    padding-bottom: 5px; 
}
.charts-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 15px; 
}
.chart-card { 
    border: 1px solid #ccc; 
    border-radius: 8px; 
    overflow: hidden; 
    background: #1e1e1e; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
}
.chart-img { 
    width: 100%; 
    display: block; 
}


/* =========================================
   TRADING SUB-NAVIGATION (Tab-Style)
   ========================================= */

/* Container der Navigation */
.trade-sub-nav {
    display: flex;
    gap: 10px;
    list-style-type: none; /* Entfernt die Bulletpoints */
    padding: 0;
    margin: 20px 0 30px 0;
    border-bottom: 2px solid #e0e0e0; /* Eine durchgehende Linie unter den Tabs */
}

/* Die einzelnen Listenpunkte */
.trade-sub-nav li {
    margin: 0;
}

/* Die Links (Tabs) selbst */
.trade-sub-nav a {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    color: #6c757d; /* Ein modernes Grau */
    background-color: transparent;
    border-radius: 8px 8px 0 0; /* Oben abgerundet, unten eckig */
    transition: all 0.3s ease-in-out;
    position: relative;
}

/* Hover-Effekt: Hintergrund und Textfarbe ändern */
.trade-sub-nav a:hover {
    color: #008CBA; /* Dein Blau aus dem Hinzufügen-Button */
    background-color: #f8f9fa;
}

/* Magie: Der animierte Unterstrich beim Hovern */
.trade-sub-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -2px; /* Überlagert die graue Border des uls */
    left: 0;
    background-color: #008CBA;
    transition: width 0.3s ease-in-out;
}

/* Fährt den Unterstrich auf 100% Breite aus */
.trade-sub-nav a:hover::after {
    width: 100%;
}


/* Grundlegendes Styling für den Container */
  .crypto-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 400px;
    margin: 20px auto;
    background-color: #1e1e24; /* Dunkles Theme */
    color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
    overflow: hidden;
  }

  /* Styling für das aufklappbare Element */
  .crypto-summary {
    background-color: #2b2b36;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 1.1em;
    cursor: pointer;
    list-style: none; /* Versteckt den Standard-Pfeil */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3d3d4a;
    transition: background-color 0.2s;
  }

  .crypto-summary:hover {
    background-color: #353542;
  }

  /* Versteckt den Webkit-Pfeil für Safari/Chrome */
  .crypto-summary::-webkit-details-marker {
    display: none;
  }

  /* Eigener animierter Pfeil */
  .crypto-summary::after {
    content: '▼';
    font-size: 0.8em;
    color: #8a8a9d;
    transition: transform 0.3s ease;
  }

  .table-wrapper details, .tranding_details{
    display: block;
    margin: 5px;
    padding: 5px;
    padding-left:0;
    padding-right: 0;
    font-size: 1.2rem;
    transition: 1s;
    background-color: #444;
    color:#fff;
    width: 90%;
  }



  .table-wrapper details[open], .tranding_details[open]{
    background-color: #fff0;
    color:#000;
    transition: 1s;
  }


  

  /* Pfeil drehen, wenn geöffnet */
  details[open] .crypto-summary::after {
    transform: rotate(180deg);
    
  }

  /* Container für die Liste (mit Scrollbar, falls es zu viele werden) */
  .crypto-list-wrapper {
    max-height: 400px;
    overflow-y: auto;
    background-color: #1e1e24;
  }

  /* Datum-Trenner */
  .date-header {
    background-color: #151519;
    color: #8a8a9d;
    padding: 8px 20px;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    position: sticky;
    top: 0;
  }

  /* Einzelne Zeilen */
  .crypto-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #2b2b36;
    transition: background-color 0.2s;
  }

  .crypto-item:hover {
    background-color: #25252d;
  }

  .crypto-item:last-child {
    border-bottom: none;
  }

  .crypto-time {
    color: #8a8a9d;
    font-size: 0.85em;
    width: 60px;
    flex-shrink: 0;
  }

  .crypto-name {
    font-weight: 600;
    text-transform: uppercase;
    flex-grow: 1;
    letter-spacing: 0.5px;
  }

  /* Rotes "Down" Styling */
  .crypto-status.down {
    color: #ff4d4d;
    background-color: rgba(255, 77, 77, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
  }


  .crypto-status.up {
    color: #0f0;
    background-color: rgba(255, 77, 77, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .crypto-status.up::before {
    content: '↑';
  }

  .crypto-status.down::before {
    content: '↓';
  }

  /* Schicke Scrollbar */
  .crypto-list-wrapper::-webkit-scrollbar { width: 6px; }
  .crypto-list-wrapper::-webkit-scrollbar-track { background: #151519; }
  .crypto-list-wrapper::-webkit-scrollbar-thumb { background: #3d3d4a; border-radius: 4px; }
  .crypto-list-wrapper::-webkit-scrollbar-thumb:hover { background: #5a5a6a; }

  #kurs_eur_usd{
    display: none;
  }


  #equityCandleChart{
    width: 100%;
    min-height: 400px;
  }



/* =========================================================
   COIN-TRACK – DASHBOARD POLISH
   Ergänzt die neu hinzugekommenen Dashboard-Elemente.
   Diese Regeln stehen bewusst am Ende der Datei.
   ========================================================= */

.mt-30{ margin-top: 2rem; }
.mt-40{ margin-top: 2.6rem; }
.text-gray{ color: #7b8595; }
.text-small{ font-size: .84em; }

/* Baby Countdown */
.baby-countdown-container{
    width: 100% !important;
    margin: 0 0 1.5rem 0 !important;
    padding: 1rem 1.1rem !important;
    border: 1px solid rgba(23,32,51,.10) !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, rgba(255,255,255,.86), rgba(245,248,252,.72)) !important;
    box-shadow: 0 8px 24px rgba(17,30,52,.08), inset 0 1px 0 rgba(255,255,255,.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.baby-countdown-container h3{
    margin: 0 0 .65rem 0 !important;
    color: var(--ct-text) !important;
    font-size: 1.05rem;
    font-weight: 700;
}
.baby-countdown-container .progress-bg{
    height: 22px;
    margin: .45rem 0 .65rem !important;
    border: 1px solid rgba(23,32,51,.10);
    border-radius: 999px !important;
    background: linear-gradient(180deg, #dce2e8, #cfd6de) !important;
    box-shadow: inset 0 2px 5px rgba(17,30,52,.10);
    overflow: hidden;
}
.baby-countdown-container .progress-bar{
    height: 100% !important;
    line-height: 22px !important;
    border-radius: 999px;
    background: linear-gradient(90deg, #159447, #20b65c) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 2px 0 10px rgba(21,148,71,.18);
    font-size: .78rem;
    letter-spacing: .02em;
}
.baby-countdown-container > div:last-child{
    color: #5e6878 !important;
    font-size: .82rem !important;
}

/* Trading Subnavigation */
.trade-sub-nav{
    width: 100%;
    display: flex;
    gap: .55rem;
    margin: .3rem 0 1.4rem;
    padding: .35rem;
    border: 1px solid rgba(23,32,51,.09);
    border-radius: 11px;
    background: rgba(255,255,255,.62);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 4px 14px rgba(17,30,52,.045);
}
.trade-sub-nav li{ margin: 0; }
.trade-sub-nav a{
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .62rem .9rem;
    border-radius: 8px;
    color: #465164;
    background: transparent;
    font-size: .88rem;
    font-weight: 650;
    transition: color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.trade-sub-nav a::after{ display: none; }
.trade-sub-nav a:hover{
    color: #075d70;
    background: rgba(11,111,134,.09);
    transform: translateY(-1px);
}

/* Kontostand / Kennzahlen */
#trades_bg_balance{
    width: 100%;
    margin-bottom: 1.6rem;
    padding: 1.1rem;
    border: 1px solid rgba(23,32,51,.10);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(246,249,252,.76));
    box-shadow: var(--ct-shadow-soft);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: default;
}
#trades_h3{
    padding: 0 0 .85rem 0;
    margin: 0 0 .8rem 0;
    border-bottom: 1px solid rgba(23,32,51,.09);
    color: var(--ct-text);
    font-size: 1.08rem;
    font-weight: 720;
    text-align: left;
}
#trades_balance{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: .7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
#trades_balance > li{
    margin: 0;
    padding: .78rem .9rem;
    border: 1px solid rgba(23,32,51,.075);
    border-radius: 10px;
    background: rgba(255,255,255,.64);
    color: #30394a;
    line-height: 1.45;
    box-shadow: 0 3px 10px rgba(17,30,52,.035);
    
}
#trades_balance > li:has(hr){
    grid-column: 1 / -1;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
#trades_balance > li:has(hr) hr{
    margin: .15rem 0 !important;
    border: 0 !important;
    border-top: 1px solid rgba(23,32,51,.09) !important;
}
#trades_balance > li:last-child{ grid-column: 1 / -1; }
#trades_balance > li:last-child > div{
    gap: 1.2rem !important;
    padding: 1rem !important;
    border: 1px solid rgba(23,32,51,.08) !important;
    border-radius: 10px !important;
    background: rgba(28,34,44,.94) !important;
    color: #f4f6f8;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.pnl-positive{ color: #138744; font-weight: 750; }
.pnl-negative{ color: #c83c49; font-weight: 750; }

/* Chart-Karten */
main div:has(> #equityCanvas),
main div:has(> #trendCanvas){
    width: 100% !important;
    margin-bottom: 1.8rem !important;
    padding: 1rem !important;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px !important;
    background: linear-gradient(145deg, #202630, #161b23) !important;
    box-shadow: 0 12px 30px rgba(17,30,52,.16), inset 0 1px 0 rgba(255,255,255,.035);
}
#equityCanvas,
#trendCanvas{ border-radius: 8px; }
#canvasTooltip,
#trendTooltip{
    padding: .7rem .8rem !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 8px !important;
    background: rgba(12,16,23,.94) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.30) !important;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

/* Tabellen-Wrapper / Details */
.table-wrapper{
    width: 100%;
    margin: .5rem 0 1.2rem;
    padding: 0;
    overflow-x: auto;
}
.table-wrapper details,
.tranding_details{
    width: 100%;
    margin: 0;
    padding: .5rem;
    border: 1px solid rgba(23,32,51,.09);
    border-radius: 13px;
    background: rgba(255,255,255,.60);
    color: var(--ct-text);
    box-shadow: 0 6px 18px rgba(17,30,52,.055);
    transition: background .18s ease, box-shadow .18s ease;
}
.table-wrapper details[open],
.tranding_details[open]{
    background: rgba(255,255,255,.73);
    color: var(--ct-text);
    box-shadow: var(--ct-shadow-soft);
}
.table-wrapper details > summary,
.tranding_details > summary{
    padding: .65rem .75rem;
    border-radius: 8px;
    color: #344054;
    font-weight: 700;
    cursor: pointer;
}
.table-wrapper details > summary:hover,
.tranding_details > summary:hover{
    background: rgba(11,111,134,.075);
}

/* Trades-Tabellen */
.trades-table{
    width: 100%;
    min-width: 560px;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255,255,255,.93);
    text-align: left;
}
.trades-table th,
.trades-table td{
    padding: .72rem .8rem;
    border: 0;
    border-bottom: 1px solid rgba(23,32,51,.075);
    vertical-align: middle;
}
.trades-table th{
    position: sticky;
    top: 0;
    z-index: 1;
    background: linear-gradient(180deg, #0a6279, #084e61);
    color: #fff;
    font-size: .86rem;
    font-weight: 700;
}
.trades-table tr{ border: 0; }
.trades-table tr:hover td{
    background: #f3f7fa;
    color: #303640;
}
.trades-table td:first-child{ min-width: 150px; }
.trades-table img{
    max-width: 100%;
    height: auto;
    border: 1px solid rgba(23,32,51,.08);
    border-radius: 9px;
    box-shadow: 0 4px 14px rgba(17,30,52,.07);
}

/* BUY / SELL / SAFE */
.dir-buy,
.dir-sell{
    display: inline-block;
    min-width: 62px;
    padding: .24rem .48rem;
    border-radius: 999px;
    text-align: center;
    font-size: .80rem;
    font-weight: 800;
    letter-spacing: .025em;
}
.dir-buy{
    color: #0f7f3c;
    background: rgba(20,148,71,.10);
    border: 1px solid rgba(20,148,71,.20);
}
.dir-sell{
    color: #b63240;
    background: rgba(211,61,74,.10);
    border: 1px solid rgba(211,61,74,.20);
}
.x-green{
    margin: .3rem 0 .2rem;
    padding: .24rem .55rem;
    border: 1px solid rgba(20,148,71,.22);
    border-radius: 999px;
    background: rgba(20,148,71,.10);
    color: #0f7f3c;
    font-size: .78rem;
    font-weight: 800;
}
.kurs_old{
    margin: .3rem 0 .2rem;
    padding: .24rem .55rem;
    border-radius: 999px;
    background: rgba(211,61,74,.10);
    color: #b63240;
    border: 1px solid rgba(211,61,74,.20);
    font-size: .78rem;
    font-weight: 800;
}
.reason-renko{ color: #536277; }
.reason-sl{ color: #9f3140; }

/* Arena */
main > h2{ margin-top: 2.2rem; }
main > a[href*="arena"]{
    display: block;
    width: 100%;
    margin-top: .7rem;
}
main > a[href*="arena"] img{
    display: block;
    width: 100%;
    max-width: 100%;
    border: 1px solid rgba(23,32,51,.09);
    border-radius: 13px;
    box-shadow: var(--ct-shadow-soft);
}

/* Benachrichtigungen: finaler konsistenter Stand */
.crypto-container{
    width: min(100%, 760px);
    max-width: none;
    margin: 1rem auto 1.4rem;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 13px;
    background: linear-gradient(145deg, #252b35, #181d25);
    color: #f5f7fa;
    box-shadow: 0 10px 28px rgba(17,30,52,.17), inset 0 1px 0 rgba(255,255,255,.035);
    overflow: hidden;
}
.crypto-summary{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .78rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.025);
    color: #f5f7fa;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.crypto-summary::-webkit-details-marker{ display: none; }
.crypto-summary::after{
    content: '▼';
    color: #9aa6b8;
    font-size: .72rem;
    transition: transform .18s ease;
}
details[open] .crypto-summary::after{ transform: rotate(180deg); }
.crypto-list-wrapper{
    max-height: 420px;
    padding: .35rem .45rem;
    overflow-y: auto;
    background: transparent;
}
.crypto-item{
    display: grid;
    grid-template-columns: minmax(105px, 135px) minmax(120px, 1fr) 78px;
    gap: .3rem;
    align-items: center;
    padding: .48rem .55rem;
    border-bottom: 1px solid rgba(255,255,255,.055);
    transition: background .15s ease, transform .15s ease;
}
.crypto-item:hover{
    background: rgba(255,255,255,.045);
    transform: translateX(2px);
}
.crypto-time{
    width: auto;
    color: #9ba6b7;
    font-size: .78rem;
    font-variant-numeric: tabular-nums;
    text-align: left;
}
.crypto-name{
    color: #f4f6f8;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .025em;
    text-align: left;
}
.crypto-status{
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .2rem;
    min-width: 62px;
    padding: .22rem .42rem !important;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
}
.crypto-status.up{
    color: #7de4a2;
    background: rgba(31,170,84,.11);
    border: 1px solid rgba(31,170,84,.22);
}
.crypto-status.down{
    color: #ff909c;
    background: rgba(220,61,76,.11);
    border: 1px solid rgba(220,61,76,.22);
}
.crypto-status.up::before{ content: '↑'; }
.crypto-status.down::before{ content: '↓'; }
.crypto-list-wrapper::-webkit-scrollbar{ width: 7px; }
.crypto-list-wrapper::-webkit-scrollbar-track{ background: transparent; }
.crypto-list-wrapper::-webkit-scrollbar-thumb{
    border-radius: 999px;
    background: rgba(255,255,255,.16);
}
.crypto-list-wrapper::-webkit-scrollbar-thumb:hover{ background: rgba(255,255,255,.25); }

/* Responsive Dashboard */
@media screen and (max-width: 700px){
    .baby-countdown-container{
        padding: .85rem !important;
        border-radius: 11px !important;
    }
    .trade-sub-nav{
        gap: .3rem;
        overflow-x: auto;
    }
    .trade-sub-nav a{
        padding: .52rem .68rem;
        white-space: nowrap;
        font-size: .80rem;
    }
    #trades_bg_balance{ padding: .8rem; }
    #trades_balance{ grid-template-columns: 1fr; }
    #trades_balance > li:last-child,
    #trades_balance > li:has(hr){ grid-column: auto; }
    #trades_balance > li:last-child > div{
        flex-direction: column;
        align-items: flex-start !important;
    }
    main div:has(> #equityCanvas),
    main div:has(> #trendCanvas){
        padding: .65rem !important;
        border-radius: 11px !important;
    }
    .table-wrapper details,
    .tranding_details{
        padding: .3rem;
        border-radius: 10px;
    }
    .trades-table{ min-width: 520px; }
    .trades-table th,
    .trades-table td{
        padding: .52rem .56rem;
        font-size: .82rem;
    }
    .crypto-container{
        margin: .75rem auto 1rem;
        border-radius: 10px;
    }
    .crypto-summary{
        padding: .68rem .75rem;
        font-size: .93rem;
    }
    .crypto-list-wrapper{ padding: .25rem .3rem; }
    .crypto-item{
        grid-template-columns: 82px 1fr 58px;
        padding: .43rem .35rem;
    }
    .crypto-time{ font-size: .68rem; }
    .crypto-name{ font-size: .78rem; }
    .crypto-status{
        min-width: 52px;
        font-size: .66rem;
    }
}

.baby-countdown-container{
     display:block;
     width:100%;
     margin: 20px;
     padding: 15px;
     border: 1px solid #444;
     border-radius: 5px;
     background: rgba(0,0,0,0.2);
}