/* ============================================
   KENDO LOHHOF – Stylesheet
   Farben: Dunkelbraun, Indigo, Weiß, Akzent Rot
   ============================================ */

:root {
    /* Hauptfarben – Gi, Shinai, Blut */
    
    /* Gi – Nachtblau (Aizome) */
    --color-gi: #0A0534;
    --color-gi-light: #1a1654;
    
    /* Shinai – Bambus-Töne */
    --color-bambus: #BAB4A9;
    --color-bambus-hell: #FCF3EA;
    --color-bambus-dunkel: #DDCDB1;
    
    /* Blut – Rot */
    --color-blut: #C1221F;
    --color-blut-dark: #780000;
    --color-blut-light: #d93a37;
    
    /* Akzent – Himmelblau (sparsam) */
    --color-akzent: #7ABBE4;
    
    /* Text */
    --text-dark: #0A0534;
    --text-medium: #2a2848;
    --text-light: #5c5a78;
    
    /* Abstände */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    /* Typografie – System-Fonts (schnell, kein externer Request) */
    --font-display: Georgia, 'Times New Roman', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Übergänge */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
}

/* Reset & Basis */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.65;
    color: var(--text-dark);
    background-color: var(--color-bambus-hell);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typografie */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-blut-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: 0.02em;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: var(--space-md);
}

h3 {
    font-size: 1.4rem;
}

p {
    margin-bottom: var(--space-sm);
}

a {
    color: var(--color-gi);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-blut);
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
    background: var(--color-gi);
    color: var(--color-bambus-hell);
    padding: var(--space-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(10,5,52,0.3);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.logo-area {
    display: flex;
    flex-direction: column;
}

.logo-area a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.site-title-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.site-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-bambus-hell);
}

.site-kanji {
    font-size: 1.4rem;
    color: var(--color-bambus);
    opacity: 0.8;
}

.site-subtitle-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.site-subtitle {
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-bambus);
    opacity: 0.9;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-xs);
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--color-bambus);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    border-radius: 3px;
    transition: all var(--transition-fast);
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--color-gi-light);
    color: var(--color-bambus-hell);
}

/* Dropdown */
.has-dropdown .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-gi-light);
    min-width: 250px;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 4px 15px rgba(10,5,52,0.3);
    padding: var(--space-xs) 0;
}

.has-dropdown:hover .dropdown {
    display: block;
}

.dropdown a {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--color-blut-dark) 0%, transparent 100%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-md);
    background: linear-gradient(to bottom, 
        rgba(10, 5, 52, 0.3) 0%,
        rgba(10, 5, 52, 0.6) 100%
    );
}

.hero h1 {
    color: var(--color-bambus-hell);
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    margin-bottom: var(--space-sm);
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--color-bambus);
    font-style: normal;
    text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */

section {
    padding: var(--space-md) 0;
}

.welcome {
    background: var(--color-bambus-hell);
    text-align: center;
}

.welcome p {
    max-width: 700px;
    margin: 0 auto var(--space-md);
    font-size: 1.1rem;
    color: var(--text-medium);
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    border-radius: 4px;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-blut);
    color: var(--color-bambus-hell);
    border-color: var(--color-blut);
}

.btn-primary:hover {
    background: var(--color-blut-dark);
    border-color: var(--color-blut-dark);
    color: var(--color-bambus-hell);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(120, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-gi);
    border-color: var(--color-gi);
}

.btn-secondary:hover {
    background: var(--color-gi);
    color: var(--color-bambus-hell);
}

/* Termine Preview */
.upcoming {
    background: var(--color-bambus);
    padding: var(--space-sm) 0;
}

.termine-preview {
    margin: var(--space-sm) 0 var(--space-xs);
}

.termin-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--color-bambus);
    border-left: 4px solid var(--color-gi);
    margin-bottom: var(--space-xs);
    align-items: center;
    transition: border-color var(--transition-fast);
}

.termin-item:hover {
    border-left-color: var(--color-blut);
}

.termin-item.past {
    opacity: 0.5;
    border-left-color: var(--text-light);
}

.termin-date {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-blut-dark);
}

.termin-title {
    font-weight: 500;
}

.termin-location {
    color: var(--text-light);
    font-size: 0.9rem;
}

.termin-pdf {
    font-size: 0.85rem;
    color: var(--color-blut);
    font-weight: 500;
}

.termin-pdf:hover {
    text-decoration: underline;
}

.link-more {
    display: inline-block;
    font-weight: 500;
    color: var(--color-gi);
}

.link-more:hover {
    color: var(--color-blut);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    margin-top: auto;
    background: var(--color-gi);
    color: var(--color-bambus);
    padding: var(--space-md) 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-left p {
    margin-bottom: var(--space-xs);
    font-size: 0.9rem;
}

.footer-left a {
    color: var(--color-bambus);
}

.footer-center {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    color: var(--color-bambus);
    transition: color var(--transition-fast);
}

.social-link:hover {
    color: var(--color-akzent);
}

.footer-right {
    display: flex;
    gap: var(--space-md);
    font-size: 0.9rem;
}

.footer-right a {
    color: var(--color-bambus);
}

.footer-right a:hover {
    color: var(--color-bambus-hell);
}

/* Koshin Link - der geheime Eingang */
.koshin-link {
    font-family: serif;
    font-size: 1.1rem;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.koshin-link:hover {
    opacity: 1;
    color: var(--color-blut) !important;
}

/* ============================================
   TERMINE-SEITE
   ============================================ */

.page-header {
    background: var(--color-gi);
    color: var(--color-bambus-hell);
    padding: var(--space-lg) 0 var(--space-md);
    text-align: center;
}

.page-header h1 {
    color: var(--color-bambus-hell);
}

.termine-section {
    padding: var(--space-lg) 0;
}

.termine-table {
    width: 100%;
    border-collapse: collapse;
}

.termine-table thead {
    background: var(--color-blut-dark);
    color: var(--color-bambus-hell);
}

.termine-table th {
    padding: var(--space-sm);
    text-align: left;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.termine-table td {
    padding: var(--space-sm);
    border-bottom: 1px solid var(--color-bambus-dunkel);
}

.termine-table tr.past {
    opacity: 0.5;
}

.termine-table tr.past td {
    text-decoration: line-through;
    text-decoration-color: var(--text-light);
}

.termine-separator {
    background: var(--color-bambus-dunkel);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-medium);
}

.termine-separator td {
    padding: var(--space-xs) var(--space-sm) !important;
}

/* ============================================
   CHRONIK-SEITE
   ============================================ */

.chronik-entry {
    background: var(--color-bambus);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(10,5,52,0.05);
}

.chronik-entry h3 {
    color: var(--color-gi);
    margin-bottom: var(--space-xs);
}

.chronik-date {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

/* ============================================
   INTERNER BEREICH
   ============================================ */

.password-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 5, 52, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.password-box {
    background: var(--color-bambus-hell);
    padding: var(--space-lg);
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.password-box h2 {
    margin-bottom: var(--space-sm);
}

.password-box input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--color-warm-gray);
    border-radius: 4px;
    margin-bottom: var(--space-sm);
}

.password-box input:focus {
    outline: none;
    border-color: var(--color-gi);
}

.password-error {
    color: var(--color-blut);
    font-size: 0.9rem;
    display: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav a {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .hero {
        height: 50vh;
        min-height: 300px;
    }
    
    .termin-item {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-right {
        flex-direction: column;
        gap: var(--space-sm);
    }
}
