/* ============================================
   SERVICE PAGES (TYPE A) - HEADER & LAYOUT
   Corporate Design mit Background Shapes
   ============================================ */

.service-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: var(--font-family, 'Segoe UI', system-ui, sans-serif);
}

/* ===== SERVICE HEADER - Wie kids-header aber ohne Icons ===== */
.service-header {
    text-align: center;
    padding: 50px 20px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

/* Weiße Kreise im Hintergrund */
.service-header .header-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.service-header .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.service-header .shape-1 { width: 80px; height: 80px; top: -20px; left: -20px; }
.service-header .shape-2 { width: 120px; height: 120px; top: 40%; right: -30px; }
.service-header .shape-3 { width: 60px; height: 60px; bottom: 10px; left: 25%; }

/* Header-Inhalt über Shapes */
.service-header > *:not(.header-bg-shapes):not(.back-button):not(.header-favorite-btn) {
    position: relative;
    z-index: 1;
}

/* ===== BUTTONS IM HEADER ===== */

/* Back Button */
.service-header .back-button {
    position: absolute;
    top: 20px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    text-decoration: none;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s;
    z-index: 10;
}

.service-header .back-button:hover {
    background: rgba(255,255,255,0.3);
    transform: translateX(-3px);
}

/* Favorite Button */
.service-header .header-favorite-btn {
    position: absolute;
    top: 20px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: rgba(255,255,255,0.8);
    border-radius: 50%;
    transition: all 0.25s ease;
    padding: 0;
    z-index: 10;
}

.service-header .header-favorite-btn:hover {
    background: rgba(255,255,255,0.3);
    color: #ffd700;
    transform: scale(1.1);
}

.service-header .header-favorite-btn .star-empty { display: inline; }
.service-header .header-favorite-btn .star-filled { display: none; }

.service-header .header-favorite-btn.is-favorite {
    color: #ffd700;
    background: rgba(255,215,0,0.3);
}

.service-header .header-favorite-btn.is-favorite .star-empty { display: none; }
.service-header .header-favorite-btn.is-favorite .star-filled { display: inline; }

/* ===== HEADER CONTENT ===== */
.service-header .header-content {
    position: relative;
    z-index: 1;
}

.service-header h1 {
    color: white;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.service-header h2 {
    margin: 0;
}

.service-header .service-subtitle {
    color: rgba(255,255,255,0.95);
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* ===== SERVICE CONTENT ===== */
.service-content {
    margin-bottom: 40px;
}

.content-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* ===== SERVICE NAVIGATION ===== */
.service-navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px 0;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .service-header {
        padding: 40px 16px 24px;
    }

    .service-header h1 {
        font-size: 1.5rem;
    }

    .service-header .service-subtitle {
        font-size: 1rem;
    }

    .service-header .back-button {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    /* FIXED: Favoriten-Button TOP RIGHT (nicht middle!) */
    .service-header .header-favorite-btn {
        position: absolute !important;
        top: 20px !important;
        right: 16px !important;
        left: auto !important;
        transform: none !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 1.2rem;
        border-radius: 50% !important;
    }

    .content-section {
        padding: 20px;
    }

    .service-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .nav-btn {
        justify-content: center;
        width: 100%;
    }
}
