/* =========================================
   CSS VARIABLEN – Hier Farben anpassen!
   ========================================= */
:root {
    --color-primary: #2e7d32;        /* Hauptfarbe (Grün) */
    --color-primary-dark: #1b5e20;   /* Dunklere Variante */
    --color-primary-light: #4caf50;  /* Hellere Variante */
    --color-accent: #ff9800;         /* Akzentfarbe (Orange) */
    --color-text: #333333;           /* Textfarbe */
    --color-text-light: #666666;     /* Helle Textfarbe */
    --color-bg: #ffffff;             /* Hintergrund */
    --color-bg-alt: #f5f5f5;        /* Alternativer Hintergrund */
    --color-bg-dark: #1a1a2e;       /* Dunkler Hintergrund (Footer) */
    --color-white: #ffffff;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --transition: 0.3s ease;
    --font-body: 'Open Sans', Arial, sans-serif;
    --font-heading: 'Montserrat', Arial, sans-serif;
}

/* =========================================
   RESET & BASIS
   ========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   HEADER / NAVIGATION
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.08);
    transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

.main-nav a {
    display: block;
    padding: 8px 18px;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
}

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

/* Hamburger Menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-text);
    border-radius: 3px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* =========================================
   HERO / BANNER
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Hintergrundbild hier anpassen: */
    background: url('../images/Tennisplatz_Eingang.jpg') center/cover no-repeat;
    color: var(--color-white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.85), rgba(46, 125, 50, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero-logo {
    width: 150px;
    height: auto;
    margin: 0 auto 20px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5);
    color: var(--color-white);
}

/* =========================================
   SECTIONS – Allgemein
   ========================================= */
.section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-primary-dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-accent);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* =========================================
   ÜBER UNS
   ========================================= */
.section-about {
    background: var(--color-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--color-text-light);
    font-size: 1.05rem;
}

.info-card {
    background: var(--color-bg-alt);
    padding: 25px 30px;
    border-radius: var(--radius);
    border-left: 4px solid var(--color-primary);
    margin-top: 20px;
}

.info-card h3 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    margin-bottom: 15px;
}

.info-list {
    list-style: none;
}

.info-list li {
    padding: 5px 0;
    font-size: 0.95rem;
}

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

/* =========================================
   ANGEBOT / LEISTUNGEN
   ========================================= */
.section-services {
    background: var(--color-bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    color: var(--color-text);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    color: var(--color-text);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.service-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.service-card .price {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 10px 0;
}

.service-card.highlight {
    border: 2px solid var(--color-primary);
    position: relative;
}

.service-card.highlight .price {
    color: var(--color-accent);
}

.services-footnote {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-style: italic;
}

.services-booking {
    text-align: center;
    margin-top: 30px;
}

/* =========================================
   CLUBREGELN
   ========================================= */
.section-clubregeln {
    background: var(--color-bg);
}

.clubregeln-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.clubregeln-card {
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    padding: 35px 30px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--color-primary);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.clubregeln-card-title {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    font-size: 1.15rem;
    margin-bottom: 20px;
}

.clubregeln-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.clubregeln-list li {
    position: relative;
    padding: 8px 0 8px 26px;
    font-size: 0.97rem;
    color: var(--color-text-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    line-height: 1.6;
}

.clubregeln-list li:last-child {
    border-bottom: none;
}

.clubregeln-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 10px;
    height: 10px;
    background: var(--color-primary-light);
    border-radius: 50%;
    flex-shrink: 0;
}

/* =========================================
   GALERIE
   ========================================= */
.section-gallery {
    background: var(--color-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
    background: var(--color-bg-alt);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* =========================================
   KONTAKT
   ========================================= */
.section-contact {
    background: var(--color-bg-alt);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form-wrapper {
    display: none;
}

.contact-info h3,
.contact-form-wrapper h3 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

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

.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 450px;
}

.contact-map iframe {
    display:block;
    width: 100%;
    height: 100%;
    min-height: 450px;
    border-radius: var(--radius);
    margin-top: 20px;
}

/* Formular */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition);
    background: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.contact-form .btn {
    align-self: flex-start;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 25px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-right {
    display: flex;
    gap: 20px;
}

.footer-right a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

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

/* =========================================
   BACK TO TOP
   ========================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    background: var(--color-primary-dark);
}

/* =========================================
   ANIMATIONEN
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-white);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 20px;
    }

    .main-nav a {
        padding: 12px 20px;
        font-size: 1.05rem;
    }

    .section {
        padding: 60px 0;
    }

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

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-logo {
        width: 100px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
