body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #0c1b31;
    color: #ffffff;
    line-height: 1.6;
}

header {
    background-color: #0a1525;
    color: #f1c40f;
    padding: 20px;
    text-align: center;
}

nav {
    background: #102040;
    padding: 10px;
    text-align: center;
}

nav a {
    color: #f1c40f;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

nav a:hover {
    text-decoration: underline;
}

a {
  color: red; /* Standardfarbe für nicht besuchte Links */
}

a:visited {
  color: yellow; /* Farbe für besuchte Links */
}

a:hover {
  color: gray; /* Farbe beim Überfahren mit der Maus */
}

a:active {
  color: orange; /* Farbe beim Klicken */
}

section {
    padding: 20px;
    max-width: 1100px;
    margin: auto;
}

h2, h3 {
    color: #f1c40f;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

th, td {
    border: 1px solid #fff;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #1b2b4f;
}

footer {
    background: #0a1525;
    color: #ccc;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
}

/* ========== Responsives Design ========== */
@media (max-width: 768px) {
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        margin: 5px 10px;
        font-size: 14px;
    }

    section {
        padding: 15px;
    }

    table, thead, tbody, th, td, tr {
        display: block;
        width: 100%;
    }

    thead {
        display: none; /* Tabellenkopf ausblenden bei kleiner Ansicht */
    }

    tr {
        background-color: #1b2b4f;
        margin-bottom: 10px;
        border-radius: 5px;
        overflow: hidden;
        padding: 10px;
    }

    td {
        border: none;
        border-bottom: 1px solid #333;
        position: relative;
        padding-left: 50%;
        text-align: left;
    }

    td:before {
        position: absolute;
        left: 15px;
        top: 10px;
        white-space: nowrap;
        font-weight: bold;
        color: #f1c40f;
    }

    /* Labels für die mobile Tabelle */
    #preise td:nth-of-type(1):before { content: "Plattform"; }
    #preise td:nth-of-type(2):before { content: "Preis ab"; }
    #preise td:nth-of-type(3):before { content: "Besonderheiten"; }

    #produkte td:nth-of-type(1):before { content: "Kategorie"; }
    #produkte td:nth-of-type(2):before { content: "Beispiele"; }
    #produkte td:nth-of-type(3):before { content: "Tickgröße"; }
    #produkte td:nth-of-type(4):before { content: "Punktwert"; }
    #produkte td:nth-of-type(5):before { content: "Börse"; }
}

@media (max-width: 480px) {
    h1 {
        font-size: 20px;
    }

    nav a {
        font-size: 12px;
        padding: 5px;
    }

    footer {
        font-size: 12px;
    }
}

#trading-anfänger {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

#trading-anfänger h2 {
    color: #f1c40f;
    margin-bottom: 20px;
}

.trend-box {
    background-color: #102040;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.trend-box .icon {
    font-size: 36px;
    margin-right: 15px;
}

.trend-box h3 {
    margin-top: 0;
}

.trend-box:nth-child(1) .icon,
.trend-box:nth-child(1) h3 {
    color: #27ae60; /* Grün für Aufwärtstrend */
}

.trend-box:nth-child(2) .icon,
.trend-box:nth-child(2) h3 {
    color: #c0392b; /* Rot für Abwärtstrend */
}

.trend-box:nth-child(3) .icon,
.trend-box:nth-child(3) h3 {
    color: #f39c12; /* Gelb/Orange für Seitwärtstrend */
}

#trading-anfänger ul {
    background-color: #102040;
    padding: 15px;
    border-radius: 6px;
    list-style-type: disc;
    margin-top: 15px;
}

#trading-anfänger ul li {
    margin-bottom: 8px;
}
