/* yadda.ch Theme - CSS */
:root {
    --color-primary: #3b82f6;
    --color-primary-dark: #2563eb;
    --color-bg: #1a1f2e;
    --color-bg-alt: #151924;
    --color-text: #e2e8f0;
    --color-text-light: #94a3b8;
    --color-border: #2d3548;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-bg);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(26, 31, 46, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 36px;
    width: auto;
}

/* Hero Logo */
.hero-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Section header image */
.section-header-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-list a:hover {
    color: var(--color-primary);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section--alt {
    background: var(--color-bg-alt);
}

.section--hero {
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1d4ed8 100%);
    color: #fff;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.section--hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.section--hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.section--hero p img.hero-logo {
    opacity: 1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    margin: 0.5rem;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Typography */
h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

h3 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.section--hero h2 {
    color: #fff;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

ul {
    margin: 0.5rem 0 1.5rem 1.5rem;
}

li {
    margin-bottom: 0.4rem;
    color: var(--color-text-light);
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    overflow-x: auto;
    display: block;
}

thead th {
    background: var(--color-primary);
    color: #fff;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
}

tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
}

tbody tr:hover {
    background: #1e2538;
}

/* Footer */
.site-footer {
    background: #0f1219;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 0;
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-list li:last-child {
        border-bottom: none;
    }

    .section--hero h2 {
        font-size: 1.8rem;
    }

    .section {
        padding: 3rem 0;
    }

    h2 {
        font-size: 1.6rem;
    }

    table {
        font-size: 0.85rem;
    }
}

/* First section offset for fixed header */
.section:first-child {
    padding-top: 5rem;
}
