/* ============================================================
   PKD Kampfkunstakademie - Elegantes Design
   ============================================================ */

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

/* Design Tokens */
:root {
    /* Farben - Edles Farbschema */
    --color-primary: #bd3e26;
    --color-primary-dark: #5C1111;
    --color-primary-light: #A62626;
    --color-accent: #C9A962;
    --color-accent-light: #D4BC7D;
    --color-text: #2D2D2D;
    --color-text-light: #5A5A5A;
    --color-text-muted: #888;
    --color-bg: #FDFCFA;
    --color-bg-warm: #F8F5F0;
    --color-bg-card: #FFFFFF;
    --color-border: #E8E4DD;
    --color-border-light: #F0ECE6;
    
    /* Typografie */
    --font-display: "baga", Georgia, serif;
    --font-body: "baga", Georgia, serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    
    /* Layout */
    --container-max: 1140px;
    --container-narrow: 800px;
    
    /* Schatten */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.08);
    --shadow-elegant: 0 20px 60px rgba(139, 26, 26, 0.1);
    
    /* Übergänge */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-style: normal;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    font-style: normal;
    line-height: 1.3;
    color: var(--color-primary);
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: var(--space-md);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--space-md);
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    margin-top: var(--space-sm);
}

h2.no-line::after {
    display: none;
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    margin-bottom: var(--space-sm);
    color: var(--color-primary);
}

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

.lead {
    font-size: 1.15rem;
    color: var(--color-text-light);
    line-height: 1.9;
}

strong, .highlight {
    color: var(--color-primary);
    font-weight: 600;
}

/* Links */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: all var(--transition-fast);
}

.link-arrow::after {
    content: '→';
    transition: transform var(--transition-fast);
}

.link-arrow:hover::after {
    transform: translateX(4px);
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-narrow {
    max-width: var(--container-narrow);
}

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

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    /* background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); */
    padding: var(--space-lg) 0;
    text-align: center;
    background-color: #d92a14;
}

.logo {
    display: inline-block;
    max-width: 500px;
    width: 100%;
    transition: transform var(--transition-smooth);
}

.logo:hover {
    transform: scale(1.02);
}

.logo img,
.logo svg {
    width: 100%;
    height: auto;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
    background: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

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

.nav-list a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    position: relative;
    transition: all var(--transition-fast);
}

.nav-list a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: all var(--transition-smooth);
    transform: translateX(-50%);
}

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

.nav-list a:hover::before,
.nav-list a.active::before {
    width: 100%;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: var(--space-sm);
    cursor: pointer;
    color: var(--color-primary);
    font-size: 1.5rem;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
main {
    flex: 1;
}

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

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

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    padding: var(--space-2xl) 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elegant);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.hero-content {
    padding-top: var(--space-sm);
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    letter-spacing: 0.02em;
}

/* ============================================================
   CONTENT CARDS
   ============================================================ */
.card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-smooth);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.card h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.card h3::before {
    content: '';
    width: 4px;
    height: 1.2em;
    background: var(--color-accent);
    border-radius: 2px;
}

/* ============================================================
   TWO COLUMN LAYOUT
   ============================================================ */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    margin: var(--space-lg) 0;
}

.two-col.reverse {
    direction: rtl;
}

.two-col.reverse > * {
    direction: ltr;
}

.col-image {
    position: relative;
}

.col-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-intro {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-sm);
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(139, 26, 26, 0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    z-index: 1;
}

.gallery-item::after {
    content: '✦';
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: white;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-smooth);
    z-index: 2;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.gallery-item:hover::before,
.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item:hover::after {
    transform: translateY(0);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(30, 20, 15, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: var(--space-lg);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: lightboxZoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lightboxZoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 10px 30px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.15);
}

.lightbox-close {
    position: absolute;
    top: -60px;
    right: -10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    opacity: 1;
    transform: scale(1.1) rotate(90deg);
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 30px rgba(201, 169, 98, 0.4);
}

.lightbox-prev { left: -80px; }
.lightbox-next { right: -80px; }

/* Lightbox Counter */
.lightbox-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    color: var(--color-accent);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(201, 169, 98, 0.4);
}

.back-to-top::before {
    content: '↑';
    font-weight: bold;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-card {
    background: linear-gradient(135deg, var(--color-bg-warm) 0%, var(--color-bg-card) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    max-width: 550px;
    margin: 0 auto var(--space-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-md);
}

.contact-card h3::before {
    display: none;
}

.contact-title {
    font-weight: 600;
    color: var(--color-primary);
}

.contact-phone {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: var(--space-md) 0;
    letter-spacing: 0.02em;
}

.contact-phone a {
    color: inherit;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    transition: all var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(139, 26, 26, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 26, 26, 0.4);
    color: white;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-sm);
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-smooth);
}

.service-item:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.service-content h4 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.service-content p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border-light);
}

.breadcrumb a {
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

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

.breadcrumb span {
    margin: 0 0.5rem;
    opacity: 0.5;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: var(--space-xl) 0 var(--space-md);
    margin-top: auto;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    text-align: left;
}

.footer-contact p {
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-contact a {
    color: var(--color-accent-light);
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: white;
}

.footer-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-title::before {
    content: '';
    width: 3px;
    height: 1em;
    background: var(--color-accent);
    border-radius: 2px;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-phone {
    font-size: 1.1rem;
    font-weight: 600;
    margin: var(--space-sm) 0;
}

.footer-phone a {
    color: var(--color-accent-light);
}

.footer-phone a:hover {
    color: white;
}

.footer-email {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-accent-light);
    font-weight: 600;
}

.footer-alt-email {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

.footer-bottom {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    text-align: center;
}

.footer-bottom a {
    color: var(--color-accent-light);
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: white;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-lg);
    }
    
    .footer-info {
        text-align: center;
    }
    
    .footer-title::before {
        display: none;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .hero-image {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .hero-content {
        text-align: center;
    }
    
    h2::after {
        margin-left: auto;
        margin-right: auto;
    }
    
    .two-col {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .two-col.reverse {
        direction: ltr;
    }
    
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    
    .lightbox-close {
        top: -55px;
        right: 0;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 3rem;
        --space-2xl: 4rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--color-bg-card);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
    }
    
    .nav-list.open {
        display: flex;
    }
    
    .nav-list a {
        padding: var(--space-sm) var(--space-md);
        border-bottom: 1px solid var(--color-border-light);
        text-align: center;
    }
    
    .nav-list a::before {
        display: none;
    }
    
    .site-nav {
        position: relative;
    }
    
    .nav-container {
        justify-content: flex-end;
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .card {
        padding: var(--space-md);
    }
    
    .contact-card {
        padding: var(--space-lg);
    }
    
    .logo {
        max-width: 300px;
    }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.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;
}

*:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

@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;
    }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .site-header,
    .site-nav,
    .site-footer,
    .lightbox,
    .back-to-top {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: black;
        background: white;
    }
    
    .container {
        max-width: 100%;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}
