
:root {
    --bg-main: #080f0b;
    --bg-card: #142019;
    --bg-input: #1c2b21;
    --border: #2b4133;
    --text-main: #f4fff7;
    --text-soft: #a6b8ab;
    --accent: #33d17a;
    --accent-dark: #20ad60;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
            radial-gradient(circle at 50% 10%,
            #14291b 0%, #080f0b 55%);
    color: var(--text-main);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    text-decoration: none;
}

/* Navigation */
.topbar {
    max-width: 1200px;
    margin: auto;
    padding: 28px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 1.35rem;
    font-weight: 800;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--accent);
    color: #07110c;
    font-size: 1.4rem;
    box-shadow: 0 0 20px rgba(51,209,122,0.3);
}

.green {
    color: var(--accent);
}

.back-link {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--accent);
}

/* Hauptbereich */
.container {
    max-width: 1150px;
    margin: auto;
    padding: 0 24px;
}

.hero {
    text-align: center;
    padding: 55px 0 45px;
}

.eyebrow {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin: 18px 0;
    font-weight: 800;
    text-shadow: 0 0 35px rgba(51,209,122,0.2);
}

.hero p {
    color: var(--text-soft);
    max-width: 550px;
    margin: auto;
    line-height: 1.7;
}

/* Layout */
.trading-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.panel {
    min-width: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;

    box-shadow:
            0 0 25px rgba(51,209,122,0.08),
            0 15px 35px rgba(0,0,0,0.3);
}

.panel-header {
    margin-bottom: 30px;
}

.panel-header h2 {
    margin: 12px 0;
    font-size: 1.5rem;
}

.panel-header p {
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Eingabefelder */
.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.2s;
}

.input-wrapper:focus-within {
    border-color: var(--accent);
}

.input-wrapper input {
    width: 100%;
    min-width: 0;
    padding: 16px;
    border: none;
    outline: none;
    background: transparent;
    color: white;
    font-size: 1rem;
}

.input-wrapper span {
    padding-right: 16px;
    color: var(--text-soft);
    font-size: 0.85rem;
}

/* Buttons */
.primary-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: #07110c;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;

    box-shadow: 0 0 18px rgba(51,209,122,0.25);
}

.primary-btn:hover {
    background: var(--accent-dark);
    box-shadow: 0 0 25px rgba(51,209,122,0.4);
}

.switch-btn {
    width: 100%;
    margin-top: 18px;
    padding: 13px;
    background: transparent;
    color: var(--text-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
}

.switch-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* Ergebnis */
.result-card {
    margin-top: 28px;
    padding: 25px;
    border-radius: 14px;
    text-align: center;
    background: #172e20;
    border: 1px solid #315b3e;

    box-shadow: inset 0 0 25px rgba(51,209,122,0.06);
}

.result-label {
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 2px;
    font-weight: 700;
}

.result-value {
    margin: 18px 0;
    color: var(--accent);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.result-value small {
    font-size: 0.9rem;
    color: var(--text-soft);
}

.result-card p {
    color: var(--text-soft);
    font-size: 0.8rem;
}

/* Historie */
#history-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

#history-list li {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    color: var(--text-main);
    font-size: 0.85rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

#history-list li:hover {
    border-color: var(--accent);
}

.history-info {
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 0.8rem;
    line-height: 1.6;
}

.history-info span {
    color: var(--accent);
    margin-right: 6px;
}

/* Footer */
footer {
    padding: 60px 20px 25px;
    text-align: center;
    color: var(--text-soft);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 800px) {
    .trading-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 35px 0;
    }

    .panel {
        padding: 20px;
    }
}
