/* Self-hosted Roboto Font - GDPR compliant */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/roboto-300.woff2') format('woff2');
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/roboto-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/roboto-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/roboto-700.woff2') format('woff2');
}
/* Light Mode (Default) */
:root {
    --primary: #1a365d;
    --primary-light: #2c5282;
    --primary-dark: #1a365d;
    --accent: #B8860B;
    --accent-hover: #996515;
    --warning: #c53030;
    --warning-dark: #9b2c2c;
    --text: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --bg: #ffffff;
    --bg-alt: #f7fafc;
    --bg-card: #ffffff;
    --bg-footer: #1a202c;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-strong: rgba(0, 0, 0, 0.15);
    --hero-text: #ffffff;
    --footer-text: #e2e8f0;
    --footer-muted: #a0aec0;
}

/* Dark Mode */
[data-theme="dark"] {
    --primary: #90cdf4;
    --primary-light: #63b3ed;
    --primary-dark: #2b6cb0;
    --accent: #D4AF37;
    --accent-hover: #E6C54B;
    --warning: #fc8181;
    --warning-dark: #c53030;
    --text: #f7fafc;
    --text-secondary: #e2e8f0;
    --text-muted: #a0aec0;
    --bg: #1a202c;
    --bg-alt: #2d3748;
    --bg-card: #2d3748;
    --bg-footer: #171923;
    --border: #4a5568;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-strong: rgba(0, 0, 0, 0.4);
    --hero-text: #ffffff;
    --footer-text: #e2e8f0;
    --footer-muted: #a0aec0;
}

/* System preference detection */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --primary: #90cdf4;
        --primary-light: #63b3ed;
        --primary-dark: #2b6cb0;
        --accent: #D4AF37;
        --accent-hover: #E6C54B;
        --warning: #fc8181;
        --warning-dark: #c53030;
        --text: #f7fafc;
        --text-secondary: #e2e8f0;
        --text-muted: #a0aec0;
        --bg: #1a202c;
        --bg-alt: #2d3748;
        --bg-card: #2d3748;
        --bg-footer: #171923;
        --border: #4a5568;
        --shadow: rgba(0, 0, 0, 0.3);
        --shadow-strong: rgba(0, 0, 0, 0.4);
        --hero-text: #ffffff;
        --footer-text: #e2e8f0;
        --footer-muted: #a0aec0;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    box-shadow: none;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

nav.scrolled {
    background: var(--bg);
    box-shadow: 0 2px 10px var(--shadow);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav.scrolled .logo {
    color: var(--primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: color 0.3s;
}

nav.scrolled .nav-links a {
    color: var(--text);
}

.nav-links a:hover {
    color: var(--accent);
}

/* Theme Toggle Button */
.theme-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    color: #ffffff;
}

nav.scrolled .theme-toggle {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text);
}

.theme-toggle:hover {
    background: var(--primary);
    color: var(--hero-text);
    border-color: var(--primary);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    display: none;
}

/* Show sun in dark mode, moon in light mode */
:root:not([data-theme]) .theme-toggle .icon-moon,
[data-theme="light"] .theme-toggle .icon-moon {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .theme-toggle .icon-moon {
        display: none;
    }
    :root:not([data-theme]) .theme-toggle .icon-sun {
        display: block;
    }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: background-color 0.3s;
}

nav.scrolled .menu-toggle span {
    background: var(--text);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: var(--hero-text);
    padding: 120px 20px 80px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.hero-logo {
    width: 280px;
    max-width: 80%;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4));
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: #ffffff;
}

.hero .subtitle {
    font-size: 1.6rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    color: #ffffff;
}

.scroll-indicator span {
    font-size: 0.85rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.scroll-indicator .arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    40% {
        transform: rotate(45deg) translateY(8px);
    }
    60% {
        transform: rotate(45deg) translateY(4px);
    }
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Notice Banner */
.notice-banner {
    background: linear-gradient(135deg, #c53030 0%, #9b2c2c 100%);
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
}

.notice-banner .notice-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.notice-banner h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 10px;
}

.notice-banner p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
}

/* Sections */
section {
    padding: 80px 20px;
    background: var(--bg);
    transition: background-color 0.3s ease;
}

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

h2 {
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 40px;
    text-align: center;
}

h3 {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 15px;
}

p {
    color: var(--text-secondary);
}

strong {
    color: var(--text);
    font-weight: 500;
}

/* Ju-Jutsu Section */
.jujutsu-content {
    max-width: 800px;
    margin: 0 auto;
}

.jujutsu-content p {
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-secondary);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature {
    text-align: center;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.feature h4 {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 10px;
}

.feature p {
    color: var(--text-muted);
}

/* Vorstand */
.vorstand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.vorstand-item {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 15px var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.vorstand-item .position {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.vorstand-item .name {
    font-weight: 500;
    color: var(--text);
}

.vorstand-item .dan {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Chronik */
.timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--border);
}

.timeline-item {
    padding: 20px 0;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
}

.timeline-content {
    width: 45%;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 15px var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-year {
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 5px;
}

.timeline-content p:not(.timeline-year) {
    color: var(--text-secondary);
}

/* Kontakt */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.contact-item h3 {
    margin-bottom: 20px;
}

.contact-item p {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.contact-item a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--bg-footer);
    color: var(--footer-text);
    padding: 60px 20px 30px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-content h3 {
    color: var(--footer-text);
    margin-bottom: 20px;
}

.footer-content p {
    color: var(--footer-muted);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-content strong {
    color: var(--footer-text);
}

.footer-legal {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: var(--footer-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 20px var(--shadow);
        border-top: 1px solid var(--border);
    }

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

    .menu-toggle {
        display: flex;
    }

    .nav-right {
        gap: 15px;
    }

    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .hero-logo {
        width: 200px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .notice-banner h2 {
        font-size: 1.5rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item::before {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px !important;
    }

    .contact-item {
        padding: 25px;
    }
}
