*{
    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;
    background-color: #ff0000;
    pointer-events: none;
    z-index: 9999;
}

.cursor-line.horizontal {
    width: 100%;
    height: 1px;
    top: 0;
    left: 0;
}

.cursor-line.vertical {
    height: 100%;
    width: 1px;
    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{
    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);
    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{
    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;
}

.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;
    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;
    -webkit-box-reflect: below 2px linear-gradient(transparent, transparent 50%, rgba(0,0,0,0.4));
}

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


/* ==========================================
   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;
  }