/* =========================================
   1. GRUNDLEGENDE EINSTELLUNGEN (BASIS)
   ========================================= */
:root {
    --primary-color: #0056b3;
    --accent-color: #e3f2fd;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f9f9f9;
    --border-color: #e0e0e0;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
header {
    background-color: #fff;
    padding: 15px 5%;
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
    font-weight: bold;
}

.nav-btn-highlight {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
}

.nav-btn-highlight:hover {
    background-color: #004494;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* =========================================
   3. FOOTER
   ========================================= */
footer {
    background-color: #222;
    color: #fff;
    padding: 40px 10%;
    text-align: center;
    margin-top: auto;
}

footer a {
    color: white;
}

/* =========================================
   4. STARTSEITE (HERO & SERVICES)
   ========================================= */
.hero-split-wrapper {
    display: flex;
    height: 55vh;
    background-color: #222;
    position: relative;
}

.hero-text-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5% 0 10%;
    color: white;
    z-index: 2;
    background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.4));
}

.hero-text-side h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-text-side p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
    max-width: 500px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
    align-self: flex-start;
}

.btn:hover {
    background-color: #004494;
}

.hero-slideshow-side {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.services {
    padding: 60px 10%;
    background-color: var(--bg-light);
    text-align: center;
}

.services h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.services h2 span {
    display: block;
    font-size: 1rem;
    font-weight: normal;
    color: #777;
    margin-top: 5px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: var(--primary-color);
    margin-top: 0;
}

/* =========================================
   5. LEISTUNGSSEITEN (TRAININGSPLANUNG)
   ========================================= */
.service-hero {
    /* HIER DAS BILD FÜR DIE TRAININGSPLANUNG */
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('Bilder/Startseite/alexanderengel_fitnesstudio.jpg');
    
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 0 20px;
}

.service-hero h1 { font-size: 2.5rem; margin: 0; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.service-hero p { font-size: 1.2rem; margin-top: 10px; font-weight: 300; }

.content-container {
    max-width: 900px;
    margin: -50px auto 50px;
    background: white;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
}

.intro-text { font-size: 1.1rem; margin-bottom: 40px; color: var(--text-light); }

.process-step {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.step-number {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 5px;
}

.step-content h3 { margin: 0 0 10px 0; font-size: 1.3rem; }
.step-content p { margin: 0; color: var(--text-light); }

.outdoor-info {
    background-color: var(--accent-color);
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 0.95rem;
    border-left: 4px solid var(--primary-color);
}

.result-box {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.cta-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 20px;
    transition: background 0.3s;
}
.cta-btn:hover { background-color: #004494; }

/* =========================================
   6. ÜBER MICH
   ========================================= */
.about-section {
    display: flex;
    flex-wrap: wrap;
    padding: 80px 10%;
    background-color: white;
    align-items: center;
    gap: 50px;
}

.about-image { flex: 1; min-width: 300px; }
.about-image img { width: 100%; border-radius: 8px; box-shadow: 0 10px 20px rgba(0,0,0,0.15); object-fit: cover; }

.about-text { flex: 1; min-width: 300px; }
.about-text h1 { font-size: 2.5rem; margin-bottom: 20px; line-height: 1.2; }
.about-text h3 { color: var(--primary-color); font-weight: normal; margin-top: -10px; margin-bottom: 30px; font-size: 1.2rem; }
.highlight-box { background-color: var(--bg-light); border-left: 4px solid var(--primary-color); padding: 20px; margin: 30px 0; font-style: italic; }
.cta-button { display: inline-block; background-color: var(--primary-color); color: white; padding: 12px 30px; text-decoration: none; border-radius: 5px; font-weight: bold; margin-top: 10px; transition: background 0.3s; }
.cta-button:hover { background-color: #004494; }


/* =========================================
   7. WISSENSCENTER (ÜBERSICHT & BEITRÄGE)
   ========================================= */
.knowledge-header { text-align: center; padding: 60px 20px 40px; }
.knowledge-header h1 { margin-bottom: 10px; color: var(--primary-color); }

.feed-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 80px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Kacheln Design (mit Clickable Area Fix) */
.post-card {
    position: relative; /* WICHTIG: Damit der Link sich darauf beziehen kann */
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.post-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.post-image-container { flex: 1; max-width: 400px; position: relative; }
.post-image-container img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; display: block; }
.post-content { flex: 1.5; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.post-date { color: #888; font-size: 0.9rem; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }

/* Read More Button mit "Stretched Link" Technik */
.read-more-btn {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    border-bottom: 2px solid transparent;
    width: fit-content;
}

.read-more-btn:hover { border-color: var(--primary-color); }

/* Dieser unsichtbare Block spannt sich über die ganze Karte */
.read-more-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Artikel Detailansicht */
.article-container { max-width: 800px; margin: 40px auto; background: white; padding: 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.back-link { display: inline-block; margin-bottom: 20px; text-decoration: none; color: #777; font-size: 0.9rem; }
.article-hero-image { width: 100%; height: auto; max-height: 500px; object-fit: cover; border-radius: 8px; margin-bottom: 30px; }
.meta-info { color: #888; font-size: 0.9rem; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.share-container { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 50px; text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: all 0.3s ease; cursor: pointer; border: 1px solid transparent; position: relative; z-index: 10; /* Z-Index hoch, damit klickbar trotz Stretched Link */ }
.share-btn.whatsapp { background-color: #25D366; color: white; }
.share-btn.email { background-color: #f0f0f0; color: #333; }
.share-btn.copy { background-color: #eef6fc; color: var(--primary-color); border: 1px solid var(--primary-color); }
.share-btn.facebook { background-color: #1877F2; color: white; }
.share-btn.facebook:hover { background-color: #145dbf; }
.summary-box { background-color: #eef6fc; border-left: 5px solid var(--primary-color); padding: 20px; margin-top: 40px; border-radius: 4px; }

/* =========================================
   8. FAQ & SUCHE
   ========================================= */
.faq-hero { background-color: #fff; text-align: center; padding: 60px 20px 40px; }
.search-container { max-width: 600px; margin: 0 auto; position: relative; }
.search-input { width: 100%; padding: 15px 20px; border: 2px solid var(--border-color); border-radius: 50px; font-size: 1rem; outline: none; box-sizing: border-box; }
.search-input:focus { border-color: var(--primary-color); }
.faq-container { max-width: 800px; margin: 0 auto 60px; padding: 0 20px; width: 100%; box-sizing: border-box; }
.faq-category { margin-top: 40px; }
.faq-category h2 { font-size: 1.5rem; color: #444; border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; margin-bottom: 20px; display: inline-block; }
details.faq-item { background: white; margin-bottom: 15px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); overflow: hidden; transition: all 0.3s ease; }
summary { padding: 20px; font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: 50px; }
summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--primary-color); font-weight: bold; }
details[open] summary::after { content: '-'; }
details[open] summary { background-color: #f0f8ff; color: var(--primary-color); }
.faq-answer { padding: 20px; border-top: 1px solid #eee; color: #555; background-color: #fff; line-height: 1.7; }

/* =========================================
   9. KONTAKT & FORMULARE
   ========================================= */
.contact-container {
    max-width: 800px;
    margin: 60px auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.contact-container h1 { color: var(--primary-color); margin-top: 0; text-align: center; }
.contact-container p { text-align: center; margin-bottom: 30px; color: #666; }
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-weight: bold; font-size: 0.9rem; }
input, textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-family: inherit; font-size: 1rem; box-sizing: border-box; transition: border-color 0.3s; }
input:focus, textarea:focus { border-color: var(--primary-color); outline: none; }
textarea { height: 150px; resize: vertical; }
button.submit-btn { width: 100%; background-color: var(--primary-color); color: white; padding: 15px; border: none; border-radius: 5px; font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: background 0.3s; }
button.submit-btn:hover { background-color: #004494; }

/* =========================================
   10. KUNDENZONE (LOGIN)
   ========================================= */
.login-wrapper { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('Bilder/Startseite/alexanderengel_fitnesstudio.jpg'); background-size: cover; background-position: center; }
.login-card { background: white; padding: 40px; border-radius: 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); max-width: 400px; width: 100%; text-align: center; }
.login-icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; display: block; }
.login-option { background-color: #f0f4f8; border: 1px solid #dceefc; border-radius: 8px; padding: 20px; margin-bottom: 15px; transition: transform 0.2s, background-color 0.2s; cursor: pointer; text-decoration: none; display: block; color: var(--text-dark); }
.login-option:hover { transform: translateY(-3px); background-color: #e3f2fd; border-color: var(--primary-color); }
.support-link { display: block; margin-top: 20px; font-size: 0.9rem; color: #888; text-decoration: underline; }

/* =========================================
   11. MEDIA QUERIES (MOBILE ANPASSUNG)
   ========================================= */
@media (max-width: 900px) {
    /* Navigation Mobile */
    .menu-toggle { display: block; }
    .nav-links { display: none; width: 100%; flex-direction: column; text-align: center; padding-top: 20px; background-color: #fff; border-top: 1px solid #eee; margin-top: 15px; }
    .nav-links.active { display: flex; }
    .nav-links a { padding: 10px 0; width: 100%; display: block; }
    .nav-btn-highlight { margin-top: 10px; display: inline-block !important; width: auto !important; }

    /* Layout Anpassungen */
    .desktop-only-slideshow { display: none !important; }
    .hero-split-wrapper { display: block; height: auto; padding: 100px 5% 60px 5%; background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('Bilder/Startseite/PXL_20251212_175400079.PORTRAIT~2.jpg'); background-size: cover; background-position: center top; }
    .hero-text-side { background: none; padding: 0; align-items: center; text-align: center; }
    .hero-text-side h1 { font-size: 2.2rem; }
    .btn { align-self: center; }
    
    .content-container { margin: 0; border-radius: 0; padding: 30px 20px; }
    .process-step { flex-direction: column; gap: 10px; }
    .step-number { width: 30px; height: 30px; font-size: 1rem; }
    
    .about-section { padding: 40px 5%; flex-direction: column-reverse; }
    .about-text h1 { font-size: 2rem; }
    
    .post-card { flex-direction: column; }
    .post-image-container { max-width: 100%; }
    .post-content { padding: 25px; }
    .article-container { padding: 20px; margin: 20px; }
}