/*
 * alle9.de - Kegeln & Bowling seit 1998
 * Design: Classic mit Holz-Textur (Variante 1A)
 * Farben: Weinrot + Gold
 * Schrift: Lato
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --primary: #8B0000;
    --primary-dark: #6B0000;
    --primary-light: #A52A2A;
    --secondary: #D4AF37;
    --secondary-light: #E5C048;
    --accent: #FF6B00;
    --wood: #DEB887;
    --wood-dark: #BC8F5F;
    --cream: #FDF5E6;
    --background: #FAFAF8;
    --card-bg: #FFFFFF;
    --text: #2D2D2D;
    --text-light: #666666;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
}

/* ============================================
   Reset & Base
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

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

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

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1em;
}

/* ============================================
   Header
   ============================================ */
header {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-wood-strip {
    height: 8px;
    background: linear-gradient(90deg, var(--wood-dark), var(--wood), var(--wood-dark));
}

.header-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 65px;
    width: auto;
    border: 3px solid var(--secondary);
    border-radius: 8px;
    padding: 3px;
    background: white;
}

.logo-text {
    color: white;
}

.logo-text .brand {
    font-size: 1.6rem;
    font-weight: 900;
    display: block;
    line-height: 1.1;
}

.logo-text .tagline {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 700;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
    background: rgba(0,0,0,0.2);
    padding: 5px;
    border-radius: 8px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 5px;
    font-weight: 700;
    transition: all 0.3s;
    font-size: 0.95rem;
}

nav a:hover,
nav a.active {
    background: var(--secondary);
    color: var(--primary-dark);
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 50%, #1a0000 100%);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hero-lanes {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: repeating-linear-gradient(
        90deg,
        var(--wood) 0px,
        var(--wood) 80px,
        var(--wood-dark) 80px,
        var(--wood-dark) 82px
    );
    opacity: 0.3;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: bottom;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 20px 100px;
    text-align: center;
}

.hero-pins {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.hero h1 {
    color: white;
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero h1 span {
    color: var(--secondary);
}

.hero p {
    color: var(--cream);
    font-size: 1.25rem;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page Hero (kleiner, für Unterseiten) */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 40px 20px;
    text-align: center;
}

.page-hero h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-hero p {
    color: var(--cream);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    padding: 16px 35px;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--secondary);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(212,175,55,0.4);
}

.btn-primary:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    color: var(--primary-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--secondary);
}

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

/* btn-secondary auf dunklem Hintergrund (Hero, Teaser) */
.hero .btn-secondary,
.teaser-section .btn-secondary,
.page-hero .btn-secondary {
    color: white;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* ============================================
   Stats Bar
   ============================================ */
.stats-bar {
    background: var(--cream);
    border-top: 4px solid var(--secondary);
    border-bottom: 4px solid var(--secondary);
}

.stats-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    border-right: 2px solid var(--wood);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* ============================================
   Content Container
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-section {
    padding: 70px 20px;
}

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

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.section-header .divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.section-header .divider span {
    font-size: 1.5rem;
}

.section-header .divider::before,
.section-header .divider::after {
    content: '';
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

/* ============================================
   Cards
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: var(--cream);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 3px solid var(--wood);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(139,0,0,0.2);
    border-color: var(--secondary);
}

.card-image {
    height: 160px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--secondary);
}

.card-content {
    padding: 25px;
    background: var(--cream);
    flex: 1;
}

.card h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.card p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.card-link {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.card-link:hover {
    color: var(--primary);
}

/* ============================================
   Game Cards (Kegelspiele)
   ============================================ */
.game-card {
    background: var(--card-bg);
    border: 2px solid var(--wood);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
}

.game-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 5px 20px rgba(139,0,0,0.15);
}

.game-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.game-card .meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.game-card p {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* ============================================
   Teaser Section (Unterhaltung)
   ============================================ */
.teaser-section {
    background: #1a1a1a;
    padding: 70px 20px;
    position: relative;
}

.teaser-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg, var(--wood-dark), var(--wood), var(--wood-dark));
}

.teaser-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.teaser-text h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 15px;
}

.teaser-text h2 span {
    color: var(--secondary);
}

.teaser-text p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.8;
}

.teaser-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.teaser-card {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(212,175,55,0.3);
    padding: 25px 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
    transition: all 0.3s;
}

.teaser-card:hover {
    background: var(--primary);
    border-color: var(--secondary);
    transform: scale(1.05);
}

.teaser-card span {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.teaser-card p {
    font-weight: 700;
    margin: 0;
    color: white;
}

/* ============================================
   Breadcrumbs
   ============================================ */
.breadcrumbs {
    background: var(--cream);
    padding: 15px 20px;
    border-bottom: 2px solid var(--wood);
}

.breadcrumbs ul {
    max-width: 1200px;
    margin: 0 auto;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumbs li::after {
    content: '/';
    margin-left: 10px;
    color: var(--text-light);
}

.breadcrumbs li:last-child::after {
    content: '';
}

.breadcrumbs a {
    color: var(--primary);
}

.breadcrumbs li:last-child {
    color: var(--text-light);
}

/* ============================================
   Alphabet Navigation
   ============================================ */
.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    padding: 20px;
    background: var(--cream);
    border-radius: 10px;
    margin-bottom: 30px;
}

.alphabet-nav a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid var(--wood);
    border-radius: 5px;
    font-weight: 700;
    color: var(--primary);
    transition: all 0.3s;
}

.alphabet-nav a:hover,
.alphabet-nav a.active {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--primary-dark);
}

/* ============================================
   Article Content
   ============================================ */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 20px;
}

.article-content h1 {
    margin-bottom: 20px;
}

.article-content h2 {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid var(--cream);
}

.article-content img {
    border-radius: 8px;
    margin: 20px 0;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

.article-content li {
    margin-bottom: 0.5em;
}

.article-content blockquote {
    border-left: 4px solid var(--secondary);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--text-light);
}

/* Game Rules Box */
.rules-box {
    background: var(--cream);
    border: 2px solid var(--wood);
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.rules-box h3 {
    margin-bottom: 15px;
}

.rules-box ul {
    margin-bottom: 0;
}

/* Kegel Position Graphic */
.kegel-graphic {
    background: white;
    border: 2px solid var(--wood);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.kegel-graphic img {
    max-width: 200px;
}

/* ============================================
   Sidebar
   ============================================ */
.with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-box {
    background: var(--card-bg);
    border: 2px solid var(--wood);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-box h4 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--cream);
}

.sidebar-box ul {
    list-style: none;
}

.sidebar-box li {
    padding: 8px 0;
    border-bottom: 1px solid var(--cream);
}

.sidebar-box li:last-child {
    border-bottom: none;
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: var(--primary-dark);
    color: white;
    margin-top: auto;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-col p {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-col a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 20px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.hidden { display: none; }

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .teaser-content {
        grid-template-columns: 1fr;
    }

    .stats-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item {
        border-right: none;
        border-bottom: 2px solid var(--wood);
        padding-bottom: 20px;
    }

    .stat-item:nth-child(3),
    .stat-item:nth-child(4) {
        border-bottom: none;
    }

    .with-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .hero-pins {
        font-size: 2.5rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .teaser-cards {
        grid-template-columns: 1fr;
    }

    .stats-content {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-bottom: 2px solid var(--wood);
        padding-bottom: 20px;
    }

    .stat-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 50px 15px 70px;
    }

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

    .btn {
        padding: 12px 25px;
        font-size: 0.85rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    /* Navigation kompakter */
    nav a {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    /* Alphabet-Navigation kleiner */
    .alphabet-nav a {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

/* ============================================
   Mobile Table Fix
   ============================================ */
.rules-box {
    overflow-x: auto;
}

.rules-box table {
    min-width: 600px;
}

@media (max-width: 768px) {
    .rules-box table {
        font-size: 0.85rem;
    }

    .rules-box table img {
        max-width: 80px;
        height: auto;
    }

    /* Breadcrumbs kompakter */
    .breadcrumbs ul {
        font-size: 0.8rem;
    }

    /* Article padding reduzieren */
    .article-content {
        padding: 30px 15px;
    }

    /* Page Hero kleiner */
    .page-hero {
        padding: 25px 15px;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }
}
