/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #1a3d2e 0%, #2d4a3a 100%);
    min-height: 100vh;
}

/* Accessibility */
:focus {
    outline: 2px solid #6bbf6b;
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 6px;
}

/* Header and Navigation */
.header {
    background: #2d5a3d;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 0 1rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-brand .brand-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-brand .brand-link:hover {
    color: #6bbf6b;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: #ffffff;
    position: relative;
    transition: background 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: transform 0.3s ease;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: translateY(0) rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    transform: translateY(0) rotate(-45deg);
}

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

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #6bbf6b;
    background: rgba(107, 191, 107, 0.1);
}

/* Main Content */
.main {
    min-height: calc(100vh - 120px);
    padding-top: 60px;
}

.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('../img/bodenkampf.avif') center/cover;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

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

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    border: 2px solid #ffffff;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.cta-button:hover {
    background: #ffffff;
    color: #0f3460;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Content Sections */
.content-section {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    padding: 3rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #6bbf6b;
}

.page-header p {
    font-size: 1.125rem;
    color: #b0b0b0;
}

/* Info Page Styles */
.info-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.info-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.info-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #6bbf6b;
}

.info-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #e0e0e0;
}

.info-map {
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Info Carousel Section */
.info-carousel-section {
    padding: 3rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* JuJutsu Page Styles */
.jujutsu-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.jujutsu-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.text-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #6bbf6b;
}

.section-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #e0e0e0;
}

.jujutsu-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.kanji-image {
    width: 300px;
    height: auto;
    max-width: 100%;
}

/* Impressum Page Styles */
.impressum-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.impressum-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.impressum-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #6bbf6b;
}

.impressum-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #e0e0e0;
    margin-bottom: 1rem;
}

.impressum-card p:last-child {
    margin-bottom: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.label {
    font-weight: 600;
    color: #6bbf6b;
}

.impressum-card a {
    color: #6bbf6b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.impressum-card a:hover {
    color: #8fdb8f;
    text-decoration: underline;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    background: #8b2635;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.carousel {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 2rem;
    text-align: center;
}

.carousel-slide.active {
    opacity: 1;
}

.slide-content {
    max-width: 600px;
}

.slide-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.slide-content h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.5;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: #6bbf6b;
}

/* Footer */
.footer {
    background: #2d5a3d;
    padding: 2rem 1rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-content p {
    color: #b0b0b0;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: #6bbf6b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #8fdb8f;
    text-decoration: underline;
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: #0f3460;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        gap: 1rem;
    }
    
.nav-menu.active {
    left: 0;
    background: #2d5a3d;
}
    
    .nav-link {
        padding: 1rem 2rem;
        font-size: 1.125rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .info-card,
    .text-section,
    .impressum-card {
        padding: 1.5rem;
    }
    
    .carousel {
        height: 250px;
    }
    
    .slide-content h3 {
        font-size: 1.125rem;
    }
    
    .slide-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 300px;
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .content-section {
        padding: 2rem 1rem;
    }
    
    .page-header {
        padding: 2rem 1rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .info-card,
    .text-section,
    .impressum-card {
        padding: 1rem;
    }
    
    .carousel {
        height: 200px;
    }
    
    .carousel-slide {
        padding: 1rem;
    }
    
    .slide-content h3 {
        font-size: 1rem;
    }
    
    .slide-icon {
        font-size: 2rem;
    }
    
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 1.25rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Medium Screens (Tablet) */
@media (min-width: 769px) and (max-width: 1024px) {
    .info-content {
        grid-template-columns: 2fr 1fr;
    }
    
    .jujutsu-content {
        grid-template-columns: 3fr 2fr;
    }
}

/* Large Screens (Desktop) */
@media (min-width: 1025px) {
    .info-content {
        grid-template-columns: 2fr 1fr;
    }
    
    .jujutsu-content {
        grid-template-columns: 3fr 2fr;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .page-header h1 {
        font-size: 2.75rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .carousel-controls,
    .nav-toggle {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .page {
        display: block;
    }
    
    .info-card,
    .text-section,
    .impressum-card {
        background: white;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .info-card,
    .text-section,
    .impressum-card {
        border: 2px solid #ffffff;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: #6bbf6b;
        color: #000000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}