/* --- FONT IMPORTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=JetBrains+Mono:wght@400;700&display=swap');

/* --- CSS VARIABLES --- */
:root {
    --primary: #06b6d4;      /* Cyan 500 */
    --secondary: #0891b2;    /* Cyan 600 */
    --accent: #84cc16;       /* Lime 500 */
    --negative: #f43f5e;     /* Rose 500 */
    --background: #0a0a0a;   /* Neutral 950 */
    --surface: #171717;      /* Neutral 900 */
    --card: #262626;         /* Neutral 800 */
    --text: #fafafa;         /* Neutral 50 */
    --muted: #a3a3a3;        /* Neutral 400 */

    --font-heading: 'JetBrains Mono', monospace;
    --font-body: 'Inter', sans-serif;
    --font-data: 'JetBrains Mono', monospace;

    --glow-primary: 0 0 5px var(--primary), 0 0 10px var(--primary), 0 0 15px var(--secondary);
    --glow-accent: 0 0 5px var(--accent), 0 0 10px var(--accent);
}

/* --- RESET & GLOBAL STYLES --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(rgba(100, 100, 100, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 100, 100, 0.1) 1px, transparent 1px);
    background-size: 2rem 2rem;
    z-index: -2;
}

/* --- UTILITIES & LAYOUT --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }
.full-width-image { width: 100%; height: auto; border-radius: 4px; margin-bottom: 2rem; }

.content-section {
    padding: 6rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary);
    text-shadow: var(--glow-primary);
    margin-bottom: 2rem;
    font-weight: 700;
}
.section-intro {
    max-width: 800px;
    margin: -1rem auto 3rem auto;
    color: var(--muted);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--accent);
    text-shadow: var(--glow-accent);
}

/* --- HEADER --- */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--card);
    transition: background-color 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}
.logo:hover {
    color: var(--primary);
    text-shadow: none;
}

#main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

#main-nav a {
    color: var(--muted);
    font-family: var(--font-data);
    font-size: 0.9rem;
    padding: 0.5rem;
}
#main-nav a:hover, #main-nav a.active {
    color: var(--primary);
}

.ticker-container {
    font-family: var(--font-data);
    font-size: 0.9rem;
    color: var(--muted);
}
.ticker-item {
    margin-left: 1.5rem;
}
.data-value {
    color: var(--text);
    font-weight: 700;
}
.data-value.up { color: var(--accent); }
.data-value.down { color: var(--negative); }

#mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}
#mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 70px; /* Header height */
    background-color: var(--background);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
    text-align: left;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary);
    text-shadow: var(--glow-primary);
    margin-bottom: 1.5rem;
}

.blinking-cursor {
    animation: blink 1s step-end infinite;
    color: var(--primary);
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary);
    color: var(--background);
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    border: 2px solid var(--primary);
    border-radius: 4px;
    transition: all 0.3s ease;
}
.cta-button:hover {
    background-color: transparent;
    color: var(--primary);
    text-shadow: none;
    box-shadow: var(--glow-primary);
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
}

/* --- RISK WARNING --- */
.risk-warning-section {
    padding: 2rem 0;
    background-color: var(--surface);
}
.risk-warning-box {
    border: 2px solid var(--negative);
    padding: 1.5rem;
    border-radius: 4px;
    background-color: rgba(244, 63, 94, 0.1);
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.3);
    color: var(--text);
}
.risk-warning-box p {
    margin: 0;
}

/* --- CONTENT SECTIONS --- */
.content-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.content-container.reverse {
    grid-template-columns: 1fr 1fr;
}
.content-container.reverse .text-content {
    order: 2;
}
.content-container.reverse .image-content {
    order: 1;
}

.text-content p {
    color: var(--muted);
    margin-bottom: 1rem;
}

.image-content img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--card);
}

/* --- CARDS GRID --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.card {
    background-color: var(--card);
    padding: 2rem;
    border-radius: 4px;
    border-left: 4px solid var(--primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2), var(--glow-primary);
}
.card h3 {
    font-family: var(--font-heading);
    color: var(--text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.card .terminal-icon {
    color: var(--accent);
}
.card p {
    color: var(--muted);
    font-size: 0.95rem;
}
.risk-rules .card {
    border-left-color: var(--accent);
}

/* --- TABLE --- */
.table-container {
    overflow-x: auto;
    background: var(--card);
    border: 1px solid var(--surface);
    border-radius: 4px;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-data);
}
th, td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--surface);
}
thead {
    background-color: var(--surface);
    color: var(--primary);
}
tbody tr:hover {
    background-color: var(--background);
}
td[data-label="Volatilität"] {
    font-weight: 700;
}

/* --- SESSIONS TIMELINE --- */
.sessions-timeline {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--card);
    border-radius: 4px;
}
.session {
    font-family: var(--font-data);
    color: var(--text);
}

/* --- TABS --- */
.tabs-container {
    max-width: 900px;
    margin: 0 auto;
}
.tab-buttons {
    display: flex;
    border-bottom: 1px solid var(--card);
    margin-bottom: 2rem;
}
.tab-button {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: var(--muted);
    font-family: var(--font-heading);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 3px solid transparent;
}
.tab-button.active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}
.tab-content-inner {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}
.tab-content-inner img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- FAQ --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--card);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem 1rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text);
    cursor: pointer;
    position: relative;
    padding-right: 2rem;
}
.faq-question::after {
    content: '+';
    font-family: var(--font-heading);
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}
.faq-question.active::after {
    transform: translateY(-50%) rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}
.faq-answer p {
    padding: 0 1rem 1.5rem 1rem;
    color: var(--muted);
}

/* --- CONTACT --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.contact-info ul {
    list-style: none;
    margin: 2rem 0;
}
.contact-info li {
    margin-bottom: 1rem;
    color: var(--muted);
}
.contact-info li strong {
    color: var(--text);
    min-width: 80px;
    display: inline-block;
}
.map-container iframe {
    border-radius: 4px;
    border: 1px solid var(--card) !important;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-data);
    color: var(--muted);
}
.contact-form input, .contact-form textarea {
    width: 100%;
    background-color: var(--surface);
    border: 1px solid var(--card);
    color: var(--text);
    padding: 0.8rem;
    border-radius: 4px;
    font-family: var(--font-body);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

/* --- FOOTER --- */
#main-footer {
    background-color: #000;
    padding-top: 4rem;
    border-top: 1px solid var(--card);
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-bottom: 4rem;
}
.footer-column h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 1rem;
}
.footer-column p, .footer-column li {
    color: var(--muted);
    font-size: 0.9rem;
}
.footer-column ul {
    list-style: none;
}
.footer-column ul li {
    margin-bottom: 0.5rem;
}
.footer-column ul a {
    color: var(--muted);
}
.footer-column ul a:hover {
    color: var(--primary);
    text-shadow: none;
}
.footer-bottom {
    background-color: var(--background);
    padding: 1.5rem 0;
    border-top: 1px solid var(--card);
}
.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--muted);
}
.disclaimer {
    font-family: var(--font-data);
    color: var(--accent);
}

/* --- ANIMATIONS --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE DESIGN --- */

@media (max-width: 1024px) {
    .content-container, .content-container.reverse {
        grid-template-columns: 1fr;
    }
    .content-container.reverse .text-content,
    .content-container.reverse .image-content {
        order: 0;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    html { font-size: 15px; }

    .section-title { font-size: 2rem; }
    .hero-title { font-size: 2.5rem; }

    #main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--background);
        flex-direction: column;
    }
    #main-nav.active {
        display: flex;
    }
    #main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    #main-nav li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--card);
    }
    #main-nav a {
        display: block;
        padding: 1.5rem;
    }
    #mobile-menu-toggle {
        display: block;
        z-index: 1001;
    }
    #mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    #mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    #mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .ticker-container {
        display: none;
    }
    .tab-content-inner {
        grid-template-columns: 1fr;
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
    table, thead, tbody, th, td, tr {
        display: block;
    }
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    tr {
        border: 1px solid var(--surface);
        margin-bottom: 1rem;
    }
    td {
        border: none;
        border-bottom: 1px solid var(--surface);
        position: relative;
        padding-left: 50%;
        text-align: right;
    }
    td::before {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: var(--primary);
        content: attr(data-label);
    }
}

/* === Contact Form Styles (Auto-Injected) === */
.contact-form-wrapper {
    background-color: var(--surface, #ffffff);
    padding: 2.5rem;
    border-radius: var(--border-radius, 8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 2rem auto;
}

.contact-form-wrapper h3 {
    margin-bottom: 1rem;
    color: var(--primary, #333);
}

.contact-form-wrapper p {
    margin-bottom: 2rem;
    color: var(--text, #666);
    opacity: 0.8;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text, #333);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd; /* Fallback border */
    border-radius: var(--border-radius, 4px);
    background-color: var(#ffffff, #fff);
    color: var(--text, #333);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary, #007bff);
    box-shadow: 0 0 0 3px var(--primary);
}

.contact-form .submit-button {
    display: inline-block;
    width: 100%;
    padding: 1rem 2rem;
    background-color: var(--primary, #007bff);
    color: #ffffff;
    border: none;
    border-radius: var(--border-radius, 4px);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s, transform 0.1s;
    margin-top: 1rem;
}

.contact-form .submit-button:hover {
    filter: brightness(110%);
    transform: translateY(-1px);
}

.contact-form .submit-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}
