/* ========================================
   KinderUni Website Styles
   ======================================== */

/* CSS Variables */
:root {
    --color-blue: #023047;
    --color-yellow: #FFB703;
    --color-orange: #FB8500;
    --color-sky-bottom: #c0dbe8;
    --color-sky-top: #ffffff;
    --color-white: #ffffff;
    --color-text: #252525;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
    --font-main: 'Inika', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

h1 {
    padding-top: 20px;
    padding-bottom: 20px;
}

body {
    font-family: var(--font-main);
    line-height: 1.5;
    font-size: 1.1rem;
    color: var(--color-text);
    overflow-x: hidden;
    background: var(--color-sky-top);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    background: url('../assets/cover.jpg') center/cover no-repeat;
    overflow: hidden;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--color-white);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--color-white);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-info {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--color-yellow);
    font-weight: 500;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-logos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
}

.hero-logo-left {
    position: absolute;
    top: 30px;
    right: 160px;
    animation: fadeIn 1s ease-out 0.6s both;
}

.hero-logo-right {
    position: absolute;
    top: 30px;
    right: 30px;
    animation: fadeIn 1s ease-out 0.6s both;
}

.hero-logo {
    position: fixed;
    top: 30px;
    left: 30px;
    animation: fadeIn 1s ease-out 0.6s both;
    z-index: 1000;
}

.main-logo {
    width: 120px;
    height: auto;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.owl-logo {
    width: 100px;
    height: auto;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 180px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
    z-index: 10;
}

.scroll-arrow {
    width: 25px;
    height: 25px;
    border-right: 3px solid var(--color-white);
    border-bottom: 3px solid var(--color-white);
    transform: rotate(45deg);
}

/* ========================================
   Glass Windows Section
   ======================================== */

.windows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
}

.glass-window {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 0px;
    padding: 40px 10px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-window:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.window-blue {
    background: linear-gradient(135deg, rgba(02, 30, 47, 0.45), rgba(02, 30, 47, 0.25));
}

.window-yellow {
    background: linear-gradient(135deg, rgba(255, 183, 3, 0.45), rgba(255, 183, 3, 0.25));
}

.window-orange {
    background: linear-gradient(135deg, rgba(251, 133, 0, 0.45), rgba(251, 133, 0, 0.25));
}

.window-content {
    color: white;
    font-size: 1.4rem;
}

.window-logo {
    width: 250px;
    height: auto;
}

/* ========================================
   Sky Section
   ======================================== */
.sky-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--color-sky-top) 0%, var(--color-sky-bottom) 100%);
    overflow: hidden;
}

.sky-animations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Cloud Animations */
.cloud {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
    animation: cloudMove linear infinite;
}

@keyframes cloudFly {
    from {
        transform: translateX(-600px);
    }

    to {
        transform: translateX(calc(100vw + 200px));
    }
}


/* Airplane Animation - Fixed to stay visible longer */
.airplane {
    position: absolute;
    background-image: url('../assets/Airplane_Orange.png');
    background-size: contain;
    background-repeat: no-repeat;
    animation: airplaneFly linear infinite;
}


@keyframes planeFly {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(100vw + 800px));
    }
}


/* Air Balloon Animation */
.airballoon {
    position: absolute;
    background-image: url('../assets/AirBalloon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    bottom: -300px;
    animation: balloonFloatVertical ease-in-out infinite;
}


@keyframes balloonRise {
    from {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    2% {
        opacity: 1;
    }

    to {
        transform: translateY(calc(var(--travel-distance, 200vh) * -1)) scale(0.2);
        opacity: 0.9;
    }
}

/* Intro Section */
.intro-section {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px 40px;
    text-align: center;
}

/* RLP Logo */
.logo {
    display: block;
    width: 70%;
    margin: 0 auto;
    filter: brightness(0) invert(1);
}

/* ========================================
   Events Section
   ======================================== */
.events-section {
    position: relative;
    z-index: 10;
    padding: 40px 20px 40px;
}

.events-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--color-blue);
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Event Card */
.event-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(50px);
    animation: cardAppear 0.6s ease-out forwards;
}

.event-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.event-card:hover .card-glow {
    opacity: 0.20;
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 22px;
    background: linear-gradient(45deg, var(--color-blue), var(--color-yellow), var(--color-orange));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(10px);
}

.event-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 15px;
}

.event-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.event-type {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-white);
}

.type-workshop {
    background: var(--color-blue);
}

.type-labor {
    background: var(--color-yellow);
    color: var(--color-text);
}

.type-spiel {
    background: #9b59b6;
}

.type-vortrag {
    background: #e74c3c;
}

.type-exkursion {
    background: #27ae60;
}

.type-show {
    background: #8e44ad;
}

.event-logo {
    height: 35px;
    width: auto;
}

.event-title {
    font-size: 1.4rem;
    color: var(--color-text);
    margin-bottom: 15px;
    line-height: 1.3;
}

.event-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #555;
}

.detail-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes cardAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Contact Section
   ======================================== */

.contact-section {
    padding: 80px 20px;
    margin-top: 40px;
    position: relative;
    z-index: 10;
}

.contact-section .container {
    max-width: 900px;
}

.contact-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.contact-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-blue);
    margin-bottom: 15px;
}

.contact-text {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

.contact-form {
    background: transparent;
    padding: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-main);
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 4px rgba(33, 158, 188, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 12px 25px;
    border: none;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 600;
    font-family: var(--font-main);
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-yellow), var(--color-orange));
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    position: relative;
    z-index: 10;
    background: var(--color-text);
    padding: 40px 20px;
    color: var(--color-white);
}

.footer-content {
    text-align: center;
}

.footer-logo img {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-yellow);
}

.footer-copy {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .hero-logo-right {
        top: 15px;
        right: 15px;
    }

    .owl-logo {
        width: 70px;
    }

    .hero-logo-left {
        left: 2%;
    }

    .main-logo {
        width: 120px;
    }

    /* Hide university logos on mobile - keep only the main owl logo */
    .hero-logo-left,
    .hero-logo-right {
        display: none;
    }

    .windows-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .glass-window {
        padding: 30px 20px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .contact-form {
        padding: 0;
    }

    /* Larger touch-friendly inputs on mobile */
    .form-group input,
    .form-group textarea {
        padding: 18px 20px;
        font-size: 1.1rem;
    }

    .submit-btn {
        padding: 16px 25px;
        font-size: 1.2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    /* Improve event cards on mobile */
    .event-card {
        padding: 20px;
    }

    .event-header {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .event-logo {
        height: 30px;
        align-self: flex-start;
    }

    .event-title {
        font-size: 1.2rem;
    }

    .event-description {
        font-size: 0.9rem;
    }

    /* Improve intro section on mobile */
    .intro-section {
        padding: 60px 20px 30px;
    }

    .intro-section h1 {
        font-size: 1.5rem;
    }

    .intro-section p {
        font-size: 1rem;
    }

    /* Improve sky section spacing on mobile */
    .sky-section {
        padding-bottom: 40px;
    }

    /* Improve glass windows on mobile */
    .glass-windows {
        padding: 20px 0;
    }

    .window-logo {
        width: 180px;
    }

    .window-content {
        font-size: 1.1rem;
    }

    /* Disable hover effects on mobile/touch devices */
    .glass-window:hover,
    .event-card:hover,
    .main-logo:hover,
    .submit-btn:hover,
    .footer-links a:hover {
        transform: none;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }

    .glass-window {
        transition: none;
    }

    .event-card {
        transition: none;
        animation: cardAppear 0.6s ease-out forwards;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .intro-text {
        padding: 20px;
    }

    .event-card {
        padding: 20px;
    }
}

/* ========================================
   Imprint Page Styles
   ======================================== */
.imprint-section {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding: 100px 20px 60px;
}

.imprint-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.imprint-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-blue);
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

.imprint-section-block {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.imprint-section-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.imprint-section-block h2 {
    font-size: 1.3rem;
    color: var(--color-blue);
    margin-bottom: 12px;
}

.imprint-section-block p {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 10px;
}

.imprint-section-block a {
    color: var(--color-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.imprint-section-block a:hover {
    color: var(--color-orange);
    text-decoration: underline;
}

.president-photo {
    display: inline-block;
    width: 150px;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Data Privacy Page Styles
   ======================================== */
.privacy-section {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding: 100px 20px 60px;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.privacy-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-blue);
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

.privacy-intro {
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-yellow);
}

.privacy-section-block {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.privacy-section-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.privacy-section-block h2 {
    font-size: 1.3rem;
    color: var(--color-blue);
    margin-bottom: 12px;
}

.privacy-section-block p {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 10px;
}

.privacy-section-block p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Responsive Styles for Imprint & Privacy
   ======================================== */
@media (max-width: 768px) {
    .imprint-content,
    .privacy-content {
        padding: 25px;
        border-radius: 15px;
    }

    .imprint-title,
    .privacy-title {
        font-size: 2rem;
    }

    .president-photo {
        width: 120px;
    }
}

@media (max-width: 480px) {
    .imprint-section,
    .privacy-section {
        padding: 80px 15px 40px;
    }

    .imprint-content,
    .privacy-content {
        padding: 20px;
    }

    .imprint-section-block h2,
    .privacy-section-block h2 {
        font-size: 1.1rem;
    }

    .president-photo {
        width: 100px;
    }
}
