/* Gemeinsame Styles für alle Unterseiten der Fröhlichen Kinderoase */
:root {
    --rainbow-1: #ff6b9d;
    --rainbow-2: #c44569;
    --rainbow-3: #f8b500;
    --rainbow-4: #6c5ce7;
    --rainbow-5: #a29bfe;
    --rainbow-6: #fd79a8;
    --rainbow-7: #00b894;
    --rainbow-8: #00cec9;
    --rainbow-9: #55a3ff;
    --rainbow-10: #fd79a8;
    --primary: #ff6b9d;
    --secondary: #6c5ce7;
    --accent: #f8b500;
    --success: #00b894;
    --warning: #f39c12;
    --danger: #e74c3c;
    --dark: #2d3436;
    --light: #ddd;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Fredoka', 'Comic Neue', cursive;
    line-height: 1.7;
    color: #2d3436;
    background: linear-gradient(45deg, #ff9a9e 0%, #fecfef 25%, #fecfef 50%, #b6feff 75%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    font-size: 16px;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Shapes */
.floating-shapes { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.shape { position: absolute; opacity: 0.4; animation: float 8s ease-in-out infinite; }
.shape:nth-child(1) { left: 10%; animation-delay: 0s; }
.shape:nth-child(2) { left: 30%; animation-delay: 3s; }
.shape:nth-child(3) { left: 50%; animation-delay: 6s; }
.shape:nth-child(4) { left: 70%; animation-delay: 9s; }
@keyframes float {
    0%, 100% { transform: translateY(100vh) rotate(0deg); }
    50% { transform: translateY(-100px) rotate(180deg); }
}

/* Container */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1rem; position: relative; z-index: 2; }

/* Header */
header {
    background: linear-gradient(135deg, var(--rainbow-1) 0%, var(--rainbow-4) 25%, var(--rainbow-7) 50%, var(--rainbow-9) 75%, var(--rainbow-6) 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    color: white;
    padding: 2.5rem 0 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

header::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 2px, transparent 2px);
    background-size: 30px 30px;
    animation: sparkleMove 20s linear infinite;
}

@keyframes sparkleMove {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-60px) rotate(360deg); }
}

header h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 0.5rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    position: relative; z-index: 1;
    font-weight: 700;
}

header p.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    opacity: 0.95;
    position: relative; z-index: 1;
    font-weight: 400;
    font-family: 'Comic Neue', cursive;
    margin-top: 0.5rem;
}

/* Navigation */
nav {
    display: flex; gap: 0.5rem;
    justify-content: center; flex-wrap: wrap;
    margin-top: 1.5rem;
    position: relative; z-index: 1;
}

nav a {
    color: white; text-decoration: none;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    font-weight: 600; font-size: 0.95rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

nav a:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

nav a.active {
    background: rgba(255,255,255,0.3);
    border-color: white;
}

/* Breadcrumbs */
.crumbs {
    font-size: 0.9rem; margin: 1.2rem 0 0 0;
    position: relative; z-index: 1;
    text-align: center; opacity: 0.9;
}
.crumbs a { color: white; text-decoration: underline; }

/* Main Content */
main { padding: 2rem 0; position: relative; z-index: 2; }

/* Cards */
.card {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    margin: 2rem 0; padding: 2.5rem;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    position: relative; overflow: hidden;
    transition: all 0.4s ease;
    border: 3px solid transparent;
    background-clip: padding-box;
}

.card::before {
    content: '';
    position: absolute; top: -3px; left: -3px; right: -3px; bottom: -3px;
    background: linear-gradient(45deg, var(--rainbow-1), var(--rainbow-4), var(--rainbow-7), var(--rainbow-9));
    border-radius: 33px; z-index: -1; opacity: 0.5;
    transition: opacity 0.4s ease;
}

.card:hover::before { opacity: 0.8; }
.card:hover { transform: translateY(-5px); box-shadow: 0 25px 50px rgba(0,0,0,0.15); }

.card h2 {
    font-size: 1.6rem; margin-bottom: 1rem;
    color: var(--secondary);
    display: flex; align-items: center; gap: 0.5rem;
}

.card h3 {
    font-size: 1.25rem; margin: 1.5rem 0 0.5rem;
    color: var(--primary);
}

.card p { margin-bottom: 1rem; font-size: 1.05rem; }

.card ul, .card ol {
    padding-left: 1.5rem; margin-bottom: 1rem;
}

.card li {
    margin-bottom: 0.5rem; font-size: 1.05rem;
}

/* CTA Buttons */
.cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.5rem; }

.btn {
    display: inline-block; text-decoration: none;
    padding: 0.8rem 1.5rem; border-radius: 25px;
    font-weight: 600; font-size: 1rem;
    transition: all 0.3s ease; cursor: pointer;
    font-family: 'Fredoka', cursive;
    border: 2px solid var(--secondary);
    color: var(--secondary); background: transparent;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.btn.primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn.primary:hover { background: var(--rainbow-2); border-color: var(--rainbow-2); }
.btn.secondary { background: var(--secondary); color: white; }
.btn.secondary:hover { background: var(--rainbow-5); border-color: var(--rainbow-5); }

/* Cross-links section */
.cross-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem; margin-top: 1.5rem;
}

.cross-link {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 1rem 1.2rem; background: rgba(108, 92, 231, 0.08);
    border-radius: 15px; text-decoration: none;
    color: var(--secondary); font-weight: 600;
    transition: all 0.3s ease; border: 2px solid transparent;
}
.cross-link:hover { background: rgba(108, 92, 231, 0.15); border-color: var(--secondary); transform: translateY(-2px); }
.cross-link .icon { font-size: 1.3rem; }

/* Footer */
footer {
    background: linear-gradient(135deg, #2d3436, #636e72);
    color: white; text-align: center;
    padding: 2rem 0; margin-top: 2rem;
    font-size: 0.95rem;
}
footer a { color: #ffeaa7; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .footer-nav { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
footer .footer-nav a { color: rgba(255,255,255,0.8); }

/* Print */
@media print { nav, .floating-shapes, footer { display: none; } header { clip-path: none; } }

/* Responsive */
@media (max-width: 768px) {
    header { padding: 1.5rem 0 2.5rem; }
    .card { padding: 1.5rem; margin: 1rem 0; }
    nav a { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
    .cross-links { grid-template-columns: 1fr; }
}
