/* ===========================================
   KIDSZONE HUB PAGES - UNIFIED CSS
   Zentral verwaltet via Plugin kidszone-hub-styles
   =========================================== */

/* --- CSS Variables --- */
:root {
    --primary: #f73838;
    --primary-hover: #e02525;
    --secondary: #dd9933;
    --secondary-hover: #c4862e;
    --teal: #2b9a8a;
    --teal-light: #3ab5a3;
    --cream: #f5f0e8;
    --cream-dark: #e8e0d4;
    --paper: #f5f4d7;
    --text-dark: #3d3d3d;
    --text-muted: #666666;
    --border-sketch: #8b7355;
    --shadow-soft: rgba(139, 115, 85, 0.15);
}

/* --- Base --- */
.lpagery-template * {
    box-sizing: border-box;
}

.lpagery-template {
    font-family: 'Open Sans', sans-serif;
    background-color: #faf6c5;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0 -30px;
}

.lpagery-template h1,
.lpagery-template h2,
.lpagery-template h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
}

/* Content-Bereich für Hub-Seiten (wird via PHP nur auf LPagery-Seiten geladen) */
.site-content {
    padding: 0 !important;
    flex: 1 1 auto;
    background: #fffbe3;
}

/* --- Hero Section --- */
.lp-hero {
    position: relative;
    background: linear-gradient(180deg, #f5f4d7 0%, #faf6c5 100%);
    padding: 40px 20px 60px;
    overflow: hidden;
}

#content .lpagery-template .lp-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
}

/* Hero: Simple (zentriert) */
.lp-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.lp-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 12px;
}

.lp-hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Hero: Zweispaltig (Bild + Text) */
.lp-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	gap: 22px;
	grid-template-columns: 1.15fr .85fr;
	align-items: stretch;
}

.lp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px 0 10px;
}

.lp-hero-left {
    background: var(--paper);
    border: 2px solid var(--border-sketch);
    border-radius: 16px;
    padding: 32px 36px;
    box-shadow: 4px 4px 0 var(--shadow-soft);
}

.lp-quick {
    background: var(--paper);
    border-radius: 18px;
    box-shadow: 3px 3px 0 var(--shadow-soft);
    padding: 0;
    overflow: hidden;
}

.lp-quick img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 18px;
}

/* --- Buttons --- */
.lp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.lp-btn-primary {
    background: #f74242;
    color: white !important;
    box-shadow: 0 4px 15px rgba(43, 154, 138, 0.3);
}

.lp-btn-primary:hover {
    background: #dc4534;
    transform: translateY(-2px);
}

.lp-btn-secondary {
    background: var(--paper);
    color: var(--text-dark) !important;
    border: 2px solid var(--border-sketch);
}

.lp-btn-secondary:hover {
    border-color: var(--secondary-hover);
    color: var(--secondary-hover) !important;
}

.lp-btn-ghost {
    background: transparent;
    color: var(--text-dark) !important;
    border: 2px solid var(--border-sketch);
}

.lp-btn-ghost:hover {
    border-color: var(--secondary-hover);
    color: var(--secondary-hover) !important;
}

.lp-mini {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid var(--border-sketch);
    background: var(--paper);
    color: var(--text-dark) !important;
}

.lp-mini:hover {
    border-color: var(--secondary-hover);
    color: var(--secondary-hover) !important;
}

.lp-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* --- Trust Badges --- */
.lp-trust-badges {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.lp-trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.lp-trust-badge svg {
    width: 20px;
    height: 20px;
    color: var(--teal);
}

/* --- Info Box --- */
.lp-info-box {
    max-width: 700px;
    margin: 30px auto 0;
    background: var(--paper);
    border: 2px solid var(--border-sketch);
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 3px 3px 0 var(--shadow-soft);
}

.lp-info-box p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.lp-info-tip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 20px;
    background: var(--cream);
    border: 1px dashed var(--border-sketch);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
}

.lp-info-tip:hover {
    background: var(--cream-dark);
    color: var(--text-dark);
}

/* --- Sections --- */
.lp-section {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.lp-section-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 40px;
}

/* --- Category Grid --- */
.lp-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.lp-category-card {
    background: var(--paper);
    border: 2px solid #000000;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 0 var(--shadow-soft);
}

.lp-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 5px 8px 0 var(--shadow-soft);
    border-color: var(--secondary-hover);
}

.lp-category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: var(--cream);
    border: 2px solid var(--border-sketch);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.lp-category-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.lp-category-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.lp-category-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #dd9933;
    color: white !important;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.lp-category-btn:hover {
    background: var(--secondary-hover);
}

/* --- Highlights Grid --- */
.lp-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.lp-highlight {
	background: var(--paper);
    	border: 2px solid var(--border-sketch);
    	border-radius: 14px;
    	padding: 22px 20px;
    	box-shadow: 3px 3px 0 var(--shadow-soft);
    	transition: all 0.3s ease;
}

.lp-highlight:hover {
	transform: translateY(-3px);
	box-shadow: 5px 6px 0 var(--shadow-soft);
	border-color: var(--secondary-hover);
}

.lp-highlight-card {
    background: var(--paper);
    border: 2px solid var(--border-sketch);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    box-shadow: 3px 3px 0 var(--shadow-soft);
}

.lp-highlight-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.lp-highlight-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* --- Matrix Grid --- */
.lp-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.lp-matrix-card {
    background: var(--paper);
    border: 2px solid var(--border-sketch);
    border-radius: 14px;
    padding: 22px 20px;
    box-shadow: 3px 3px 0 var(--shadow-soft);
    transition: all 0.3s ease;
}

.lp-matrix-card:hover {
    transform: translateY(-3px);
    box-shadow: 5px 6px 0 var(--shadow-soft);
    border-color: var(--secondary-hover);
}

.lp-matrix-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.lp-matrix-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

/* --- Listing Grid (HivePress Integration) --- */
.kz-hub-grid-wrap .hp-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
}

/* --- Age Section --- */
.lp-age-section {
    background: #faf6c5;
    border-top: 2px solid #fffef1;
    border-bottom: 2px solid #fffef1;
    padding: 50px 20px;
}

.lp-age-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.lp-age-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--paper);
    border: 2px solid var(--border-sketch);
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark) !important;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 2px 2px 0 var(--shadow-soft);
}

.lp-age-btn:hover {
    border-color: var(--secondary-hover);
    color: var(--secondary-hover) !important;
    transform: translateY(-2px);
}

.lp-popular-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cc 100%);
    border: 2px solid #e6c84a;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #8b7722;
}

/* --- Vacation Grid (2x2) --- */
.lp-vacation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.lp-vacation-card {
    background: var(--paper);
    border: 2px solid var(--border-sketch);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 3px 3px 0 var(--shadow-soft);
    transition: all 0.3s ease;
}

.lp-vacation-card:hover {
    transform: translateY(-5px);
    box-shadow: 5px 8px 0 var(--shadow-soft);
}

.lp-vacation-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 2px solid var(--border-sketch);
}

.lp-vacation-content {
    padding: 20px;
}

.lp-vacation-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.lp-vacation-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.lp-vacation-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--secondary);
    color: white !important;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.lp-vacation-btn:hover {
    background: var(--secondary-hover);
}

/* --- FAQ Section --- */
.lp-faq-section {
    background: #faf6c5;
    padding: 50px 20px;
}

.lp-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.lp-faq-item {
    display: block;
    background: var(--paper);
    border: 2px solid var(--border-sketch);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.lp-faq-item:hover {
    border-color: var(--secondary-hover);
}

.lp-faq-item summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.lp-faq-item summary::-webkit-details-marker {
    display: none;
}

.lp-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
}

.lp-faq-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 2px solid var(--border-sketch);
    background: var(--cream);
    transition: transform 0.2s ease, border-color 0.2s ease;
    flex: 0 0 auto;
}

.lp-faq-item[open] .lp-faq-chevron {
    transform: rotate(90deg);
    border-color: var(--secondary-hover);
}

.lp-faq-answer {
    padding: 0 24px 18px 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.lp-faq-answer p {
    margin: 0;
}

/* --- SEO Content Section --- */
.lp-seo-section {
    background: #faf6c5;
    padding: 50px 20px 70px;
    border-top: 2px solid #fffef1;
}

.lp-seo-container {
    max-width: 1200px;
    margin: 0 auto;
}

.lp-seo-intro {
    max-width: 850px;
    margin: 0 auto 28px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    text-align: center;
}

.lp-seo-block {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: center;
    background: var(--paper);
    border: 2px solid var(--border-sketch);
    border-radius: 16px;
    box-shadow: 3px 3px 0 var(--shadow-soft);
    padding: 22px;
    margin-top: 18px;
}

.lp-seo-block:nth-of-type(even) {
    grid-template-columns: 0.9fr 1.1fr;
}

.lp-seo-block:nth-of-type(even) .lp-seo-media {
    order: -1;
}

.lp-seo-text h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

.lp-seo-text p {
    margin: 0 0 12px;
    color: var(--text-muted);
}

.lp-seo-text ul {
    margin: 0;
    padding-left: 18px;
    color: var(--text-muted);
}

.lp-seo-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    border: 2px solid var(--border-sketch);
    box-shadow: 2px 2px 0 var(--shadow-soft);
}

.lp-trust {
        display: flex;
        gap: 14px;
        flex-wrap: wrap;
        margin-top: 14px;
        color: var(--text-muted);
        font-size: .9rem;
}

.lp-trust svg {
	width: 18px;
	height: 18px;
	color: var(--teal);
}

/* --- Responsive --- */
@media (max-width: 980px) {
    .lp-hero-inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .lp-highlights {
        grid-template-columns: 1fr;
    }

    .lp-matrix {
        grid-template-columns: 1fr;
    }

    .kz-hub-grid-wrap .hp-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .lp-hero {
        padding: 30px 16px 50px;
    }

    .lp-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .lp-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .lp-trust-badges {
        flex-direction: column;
        align-items: center;
    }

    .lp-category-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .lp-age-buttons {
        flex-direction: column;
    }

    .lp-vacation-grid {
        grid-template-columns: 1fr;
    }

    .lp-seo-block,
    .lp-seo-block:nth-of-type(even) {
        grid-template-columns: 1fr;
    }

    .lp-seo-block:nth-of-type(even) .lp-seo-media {
        order: 0;
    }

    .lp-faq-answer {
        padding: 0 18px 16px 18px;
    }

    .lp-faq-question {
        padding: 16px 18px;
    }

    .kz-hub-grid-wrap .hp-grid {
        grid-template-columns: 1fr !important;
    }
}
