/* ============================================
   OZ Calisthenics – Modern "Electric Focus" Theme
   ============================================ */

:root {
    /* Core Colors */
    --color-bg-main: #0a0a0a;      /* Deepest Black */
    --color-bg-secondary: #121212; /* Slightly lighter BG for sections */
    --color-bg-card: #1a1a1a;      /* Card Background */
    --color-bg-input: #222222;     /* Form inputs */
    
    /* Accent Colors - ELECTRIC LIME */
    --color-accent: #c6ff00;       /* The main punchy lime green */
    --color-accent-hover: #d4ff33; /* Lighter hover state */
    --color-accent-muted: rgba(198, 255, 0, 0.15); /* For subtle glows */
    --color-text-on-accent: #0a0a0a; /* Black text on lime button */

    /* Text Colors */
    --color-text-primary: #ffffff;
    --color-text-secondary: #a0a0a0; /* Muted text */
    --color-text-tertiary: #666666;  /* Very muted text */
    
    /* Borders & Effects */
    --border-light: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(198, 255, 0, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.09);
    --blur-amount: 12px;
    
    /* Typography & Structure */
    --font-stack: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    font-size: 16px;
}

body {
    font-family: var(--font-stack);
    background-color: var(--color-bg-main);
    color: var(--color-text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Helpers */
h1, h2, h3, h4 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h1 { font-size: clamp(2.5rem, 8vw, 5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: 1.5rem; font-weight: 700; }
p { color: var(--color-text-secondary); }

.text-accent { color: var(--color-accent); }
.text-stroke-accent {
    /* Cool outline effect for hero text */
    color: transparent;
    -webkit-text-stroke: 1.5px var(--color-accent);
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}
.section-tag::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 1rem; height: 2px;
    background: var(--color-accent);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin-inline: auto;
}

/* ============================================
   Buttons & Interactive Elements
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    cursor: pointer;
    font-family: var(--font-stack);
}

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-text-on-accent);
    box-shadow: 0 4px 20px rgba(198, 255, 0, 0.2);
}
.btn-accent:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(198, 255, 0, 0.4);
}

.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    color: var(--color-text-primary);
}
.btn-glass:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-outline {
    border: 2px solid var(--border-light);
    color: var(--color-text-primary);
    background: transparent;
}
.btn-outline:hover {
    border-color: var(--color-text-primary);
}

.btn-sm { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
.btn-full { width: 100%; }

/* ============================================
   Navbar
   ============================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    z-index: 1000;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
}
.navbar.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    width: 92%;
    max-width: 1300px;
    margin-inline: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: auto;
    width: 160px; /* Breite angepasst für das breite Logo */
    max-height: 50px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}
.nav-link:not(.btn-nav-cta):hover {
    color: var(--color-accent);
    background: var(--glass-bg);
}
.btn-nav-cta {
    background-color: var(--color-accent);
    color: var(--color-text-on-accent) !important;
    margin-left: 0.5rem;
}
.btn-nav-cta:hover {
    background-color: var(--color-accent-hover);
}

/* Modern Nav Toggle (Hamburger) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 6px;
    z-index: 1100;
}
.toggle-line {
    width: 28px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
/* Hamburger Animation to X */
.nav-toggle.active .toggle-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active .toggle-line:nth-child(2) { transform: rotate(-45deg); }


/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 95vh; /* Slightly less than full height for modern look */
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Abstract dynamic background pattern */
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: var(--color-bg-main);
    /* Subtle geometric pattern overlay */
    background-image: 
        linear-gradient(to bottom, rgba(10,10,10,0.1), var(--color-bg-main)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c6ff00' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
/* Subtle accent glow in the corner */
.hero-bg-pattern::after {
    content: '';
    position: absolute;
    top: -10%; right: -10%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, var(--color-accent-muted) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.6;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero-badge {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 500px;
    margin-bottom: 2.5rem;
    color: var(--color-text-primary);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   Sections General
   ============================================ */
.section {
    padding: 6rem 0;
}
.section-darker {
    background-color: var(--color-bg-secondary);
}
.section-header { margin-bottom: 4rem; }
.section-header.center-text { text-align: center; }
.section-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

/* ============================================
   About Section & Target Groups
   ============================================ */
.about-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
}
.about-content p + p {
    margin-top: 1rem;
}

.target-groups {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}
.target-groups h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.tag-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.tag-list li {
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* About Photo */
.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    aspect-ratio: 3 / 4;
}

/* ============================================
   Bento Grid Layout (Training)
   ============================================ */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.bento-card {
    background: var(--color-bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}
.bento-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-5px);
}

/* All three cards are equal columns now */

.icon-wrapper {
    width: 60px; height: 60px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
    background: var(--glass-bg);
}
.icon-wrapper.accent-bg {
    background: var(--color-accent);
    color: var(--color-text-on-accent);
}
.icon-wrapper.icon-glow {
    box-shadow: 0 0 20px var(--color-accent-muted);
}
.icon-wrapper svg { width: 32px; height: 32px; }

.bento-card h3 { margin-bottom: 1rem; }

/* Big background text effect */
.card-bg-icon {
    position: absolute;
    bottom: -10px; right: -10px;
    font-size: 5rem;
    font-weight: 900;
    color: var(--color-bg-main);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   Kurse Section
   ============================================ */
.course-highlight-card {
    background: linear-gradient(135deg, var(--color-bg-card), var(--color-bg-secondary));
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2.5rem;
    align-items: center;
    box-shadow: 0 10px 40px -10px rgba(198, 255, 0, 0.1);
}

.course-timing {
    text-align: center;
    padding: 1.5rem 2.5rem;
    background: var(--color-accent);
    color: var(--color-text-on-accent);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
}
.course-timing .day { font-weight: 700; font-size: 1.1rem; }
.course-timing .time { font-size: 2rem; font-weight: 900; line-height: 1; }
.course-timing small { font-size: 1rem; font-weight: 600; }

.course-info h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.meta-info {
    display: flex; gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary); font-weight: 500;
}
.meta-info span { display: flex; align-items: center; gap: 0.5rem; }

.location-address {
    font-style: normal;
    display: flex; align-items: flex-start; gap: 0.75rem;
    color: var(--color-text-primary);
}
.location-address svg { color: var(--color-accent); flex-shrink: 0; margin-top: 3px; }

.pt-teaser {
    margin-top: 3rem;
    padding: 2rem;
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    border: 1px dashed var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}
.pt-teaser h3 { margin-bottom: 0.5rem; color: var(--color-accent); }
.pt-teaser p { margin-bottom: 0; max-width: 600px;}

/* ============================================
   Preise Grid
   ============================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: start;
}

.pricing-card {
    background: var(--color-bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
}
/* Highlight the popular card */
.pricing-card.popular {
    border-color: var(--color-accent);
    background: linear-gradient(to bottom, rgba(198, 255, 0, 0.05), var(--color-bg-card));
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 10px 30px -10px rgba(198, 255, 0, 0.2);
}
.popular-badge {
    position: absolute;
    top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--color-accent); color: var(--color-text-on-accent);
    font-weight: 700; font-size: 0.8rem; text-transform: uppercase;
    padding: 0.25rem 1rem; border-radius: 20px;
}

.pricing-header { text-align: center; margin-bottom: 2rem; }
.pricing-header h4 { color: var(--color-text-secondary); margin-bottom: 1rem; }
.price { font-size: 3.5rem; font-weight: 900; line-height: 1; color: var(--color-text-primary); }
.currency { font-size: 2rem; vertical-align: super; }
.period { font-size: 1rem; color: var(--color-text-secondary); font-weight: 500; }
.onRequest { font-size: 2rem; color: var(--color-accent); }

.feature-list { list-style: none; margin-bottom: 2.5rem; }
.feature-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    display: flex; align-items: center; gap: 0.75rem;
}
/* Custom checkmark bullet */
.feature-list li::before {
    content: '✓'; color: var(--color-accent); font-weight: 900;
}
.feature-list li.disabled { color: var(--color-text-tertiary); }
.feature-list li.disabled::before { content: '✕'; color: var(--color-text-tertiary); }

/* ============================================
   Kontakt & Formular (Modern Input Styles)
   ============================================ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-links {
    margin-top: 3rem;
    display: flex; flex-direction: column; gap: 1.5rem;
}
.contact-item {
    display: flex; align-items: center; gap: 1rem;
    text-decoration: none;
    padding: 1rem;
    border-radius: var(--radius-md);
    transition: background 0.3s ease;
}
.contact-item:hover { background: var(--glass-bg); }
.icon-box {
    width: 48px; height: 48px; background: var(--glass-bg); color: var(--color-accent);
    display: flex; align-items: center; justify-content: center; border-radius: 12px;
}
.contact-item .label { display: block; font-size: 0.8rem; color: var(--color-text-secondary); }
.contact-item .value { font-weight: 600; color: var(--color-text-primary); }

/* Modern Form Styling with floating labels idea */
.modern-form {
    display: flex; flex-direction: column; gap: 1.5rem;
    background: var(--color-bg-card);
    padding: 2.5rem; border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.input-group { position: relative; }

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--color-bg-input);
    border: 2px solid transparent;
    border-bottom-color: var(--border-light);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    font-family: inherit; color: var(--color-text-primary); font-size: 1rem;
    transition: all 0.3s ease;
}
.input-group textarea { resize: vertical; min-height: 120px; }

/* Floating Label Effect */
.input-group label {
    position: absolute;
    left: 1.25rem; top: 1rem;
    color: var(--color-text-secondary);
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}
/* Move label up when input has focus or content */
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label,
.input-group select:focus ~ label,
.input-group select:valid ~ label {
    top: -0.6rem;
    left: 0;
    font-size: 0.8rem;
    color: var(--color-accent);
    font-weight: 600;
}
/* Underline highlight on focus */
.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    border-bottom-color: var(--color-accent);
    background: #2a2a2a;
    outline: none;
}

/* Custom select styling */
.select-group select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23c6ff00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
}

.form-status { margin-top: 1rem; text-align: center; font-weight: 600; min-height: 1.5em; }
.form-status.success { color: var(--color-accent); }
.form-status.error { color: #ff3333; }

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--color-bg-secondary);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-light);
}
.footer-content {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
    margin-bottom: 3rem;
}
.footer-logo { width: 120px; margin-bottom: 1rem; }
.footer-brand p { color: var(--color-text-secondary); }

.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 0.75rem; }
.footer-nav a {
    text-decoration: none; color: var(--color-text-secondary);
    transition: color 0.3s ease;
}
.footer-nav a:hover { color: var(--color-accent); }

.footer-bottom {
    padding-top: 2rem; border-top: 1px solid var(--border-light);
    display: flex; justify-content: space-between;
    color: var(--color-text-tertiary); font-size: 0.9rem;
}
.impressum-link { text-decoration: none; color: inherit; }
.impressum-link:hover { color: var(--color-text-primary); }


/* ============================================
   Animations & Scroll Reveal
   ============================================ */
/* Simple Fade Up */
.animated-fade-up {
    opacity: 0; transform: translateY(30px);
    animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

/* Transition delays for scroll-reveal elements */
.scroll-reveal.delay-1 { transition-delay: 0.2s; }
.scroll-reveal.delay-2 { transition-delay: 0.4s; }

/* Scroll Reveal Class (triggered by JS) */
.scroll-reveal {
    opacity: 0; transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }


/* ============================================
   MOBILE OPTIMIZATION (Media Queries)
   ============================================ */

/* Tablet & Smaller Desktop */
@media (max-width: 1024px) {
    h1 { font-size: 3.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
    .about-image { order: -1; }
    .about-photo { aspect-ratio: 16 / 9; max-height: 350px; }
    .bento-grid { grid-template-columns: 1fr; }
}

/* Mobile Phones */
@media (max-width: 768px) {
    :root { --header-height: 70px; }

    /* Mobile Navigation */
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: var(--header-height); right: -100%;
        width: 85%; height: calc(100vh - var(--header-height));
        background: var(--color-bg-secondary);
        flex-direction: column; align-items: flex-start;
        padding: 2rem; gap: 1.5rem;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        border-left: 1px solid var(--border-light);
    }
    .nav-menu.active { right: 0; box-shadow: -10px 0 30px rgba(0,0,0,0.5); }
    .nav-link { font-size: 1.2rem; padding: 0; }
    .btn-nav-cta { margin-left: 0; width: 100%; text-align: center; padding: 1rem; }

    /* Hero Mobile */
    .hero { align-items: center; text-align: left; padding-bottom: 4rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-large { width: 100%; }

    /* Section Adjustments */
    .section { padding: 4rem 0; }
    .section-header { margin-bottom: 3rem; }

    .bento-card { padding: 2rem; min-height: auto; }

    /* Kurse Mobile */
    .course-highlight-card {
        grid-template-columns: 1fr; gap: 1.5rem; text-align: center; padding: 2rem;
    }
    .course-timing { flex-direction: row; justify-content: center; gap: 1rem; align-items: center; padding: 1rem; }
    .meta-info, .location-address { justify-content: center; }
    .pt-teaser { flex-direction: column; text-align: center; gap: 1.5rem; }

    /* Pricing Mobile */
    .pricing-card.popular { transform: scale(1); }

    /* Footer Mobile */
    .footer-content { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .footer-brand { align-items: center; display: flex; flex-direction: column; }
    .footer-bottom { flex-direction: column-reverse; gap: 1rem; text-align: center; }
}
