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

:root {
    --primary-bg: #14635f;
    --accent-pink: #f4a9c8;
    --text-light: #ffffff;
    --iaro-bg: #f5f2ed;
    --iaro-card-bg: #ffffff;
    --iaro-text: #2d2d2d;
    --iaro-text-light: #666666;
    --iaro-accent: #d4a574;
    --iaro-border: #e8e5e0;
}

html {
    scroll-behavior: smooth;
}

@font-face {
    font-family: 'CustomFont';
    src: local('Futura'), local('Century Gothic'), local('Arial');
}

body {
    font-family: 'CustomFont', 'Futura', 'Century Gothic', sans-serif;
    background-color: var(--primary-bg);
    color: var(--accent-pink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Header & Logo Animation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(20, 99, 95, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 1rem;
    transition: padding 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, height 0.3s ease;
    height: 80px;
}

header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background-color: rgba(20, 99, 95, 0.98);
    padding: 0.5rem 1rem;
    height: 50px; /* Significantly reduced height on scroll */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
}

.logo-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    background: linear-gradient(90deg, var(--accent-pink) 0%, #ff8fab 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: font-size 0.3s ease;
}

/* More significant logo shrinking on scroll */
header.scrolled .logo-text {
    font-size: 0.9rem; /* Much smaller on scroll */
    letter-spacing: 0.15em;
}

.logo-image {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 50px;
    height: 50px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-radius: 50%;
    /* Temporary placeholder styling - replace with your actual logo */
    background: linear-gradient(45deg, var(--accent-pink), rgba(244, 169, 200, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--primary-bg);
    font-weight: bold;
    overflow: hidden;
}

.logo-image::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--primary-bg);
    background: radial-gradient(circle at center, var(--primary-bg) 8px, transparent 8px);
}

/* Permanent Event Teaser styling (reused from original) */
.permanent-event-teaser {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: .85rem;
    line-height: 1.4;
    background: var(--iaro-bg);
    color: var(--iaro-text);
    padding: .8rem 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--iaro-border);
    box-shadow: 0 4px 12px rgba(45, 45, 45, 0.1);
    flex-direction: column;
    text-align: center;
}

/* Button Container */
.event-buttons {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Add this keyframe animation at the top of your CSS file */
@keyframes slideInFromBottom {
    from {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Kalender-Button & Event-Button - IARO-Stil */
.calendar-btn {
    padding: .4rem .8rem;
    border: 1px solid var(--iaro-accent);
    border-radius: 8px;
    font-size: .8rem;
    text-decoration: none;
    color: var(--iaro-text);
    background: var(--iaro-card-bg);
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.calendar-btn:hover {
    background: var(--iaro-accent);
    color: var(--iaro-card-bg);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.3);
}

/* Update the Desktop Event Sidebar */
.event-sidebar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 2rem;
    display: none;
    z-index: 999;
    /* Add animation */
    animation: slideInFromBottom 1.5s ease-out forwards;
}

/* Update the Mobile Event Teaser */
.mobile-event-teaser {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    width: 100%;
    max-width: 90%;
    z-index: 998;
    /* Add animation */
    animation: slideInFromBottom 1.5s ease-out forwards;
}

/* Optional: Add a slight delay to make it appear after page content loads */
.event-sidebar,
.mobile-event-teaser {
    animation-delay: 0.2s;
    /* Initially hide it until animation starts */
    opacity: 0;
    transform: translateX(-50%) translateY(100%);
}

/* Remove the old padding */
.mobile-event-teaser .permanent-event-teaser {
    max-width: 100%;
    margin: 0 auto;
}

/* Main Content */
main {
    flex: 1;
    padding: 100px 1rem 2rem; /* Adjusted for new header height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - 100px);
}

.content-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.text-section {
    margin: 2rem 0;
    padding: 0 1rem;
}

.text-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-pink) 0%, #ff8fab 50%, var(--accent-pink) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    animation: shimmer 3s ease-in-out infinite;
    background-size: 200% 200%;
}

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

.text-section p {
    font-size: 1.15rem;
    line-height: 1.8;
    font-weight: 300;
    letter-spacing: 0.03em;
    opacity: 0.9;
}

/* Scroll Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay {
    transition-delay: 0.2s;
}

.fade-in-delay-2 {
    transition-delay: 0.4s;
}

/* Video Container */
.video-container {
    width: 100%;
    max-width: 400px;
    margin: 2rem auto;
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: rgba(244, 169, 200, 0.1);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Desktop Floating Social Bar */
.social-sidebar {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    flex-direction: column;
    gap: 1rem;
    background-color: rgba(20, 99, 95, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem 0.75rem;
    border-radius: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
}

.social-sidebar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    color: var(--accent-pink);
    transition: transform 0.3s, opacity 0.3s;
    position: relative;
}

.social-sidebar a:hover {
    transform: scale(1.1);
}

.social-sidebar a::after {
    content: attr(data-label);
    position: absolute;
    right: 100%;
    margin-right: 10px;
    background-color: rgba(20, 99, 95, 0.98);
    color: var(--accent-pink);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    font-size: 0.9rem;
}

.social-sidebar a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Sticky Footer */
.mobile-social-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(20, 99, 95, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.75rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: none;
}

.mobile-social-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    color: var(--accent-pink);
    transition: transform 0.3s, opacity 0.3s;
}

.mobile-social-footer a:active {
    transform: scale(0.9);
}

/* Footer */
footer {
    background-color: rgba(20, 99, 95, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-text {
    font-size: 0.9rem;
    opacity: 0.7;
    letter-spacing: 0.05em;
}

.social-links svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Responsive Design */
@media (max-width: 767px) {
    .mobile-social-footer {
        display: flex;
    }

    .mobile-event-teaser {
        display: block;
    }

    main {
        padding-bottom: 160px; /* Space for both event teaser and social footer */
    }

    .logo-text {
        font-size: 1.2rem;
    }

    header.scrolled .logo-text {
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) {
    .text-section h1 {
        font-size: 3.5rem;
        letter-spacing: 0.12em;
    }

    .text-section p {
        font-size: 1.2rem;
    }

    .video-container {
        max-width: 500px;
    }

    .social-sidebar {
        display: flex;
    }

    /* ADD THESE TWO NEW RULES */
    .event-sidebar {
        display: block;
    }
    
    .permanent-event-teaser {
        max-width: 300px;
    }
}

@media (min-width: 1024px) {
    .text-section h1 {
        font-size: 4.5rem;
        letter-spacing: 0.1em;
    }

    .video-container {
        max-width: 600px;
    }
}

/* --- MOBILE OPTIMIERUNG (<480 px) ----------------------- */
@media (max-width: 480px) {
    .permanent-event-teaser {
        padding: 1rem;
    }
    
    .event-buttons {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .calendar-btn {
        font-size: 0.75rem;
        padding: .4rem .8rem;
        width: 100%;
        text-align: center;
    }

    .mobile-event-teaser {
        padding: 0 0.5rem;
    }

    header {
        height: 70px;
    }

    header.scrolled {
        height: 45px;
        padding: 0.4rem 1rem;
    }

    header.scrolled .logo-text {
        font-size: 0.75rem;
    }
}

/* ===== IARO-OST PAGE SPECIFIC STYLES ===== */

/* Body override for iaro page - make more specific */
body.iaro-page {
    background-color: var(--iaro-bg) !important;
    color: var(--iaro-text) !important;
}

/* Override main content for iaro page - make more specific */
body.iaro-page main {
    background-color: var(--iaro-bg) !important;
    padding: 100px 0 2rem !important;
    min-height: auto !important;
    display: block !important;
    text-align: left !important;
}

/* Event date badge */
.event-date {
    display: inline-block;
    background: var(--accent-pink);
    color: var(--primary-bg);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

/* Hero section for iaro page */
.iaro-hero {
    padding: 2rem 1.5rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.iaro-hero h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: var(--iaro-text);
    background: none;
    -webkit-text-fill-color: initial;
    animation: none;
}

.iaro-hero .time {
    font-size: 1.1rem;
    color: var(--iaro-text-light);
    font-weight: 300;
}

/* Quick info strip */
.quick-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 1.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--iaro-border);
    margin-bottom: 3rem;
}

.quick-info-item {
    text-align: center;
}

.quick-info-item strong {
    display: block;
    font-size: 1.1rem;
    color: var(--iaro-text);
    font-weight: 500;
}

.quick-info-item span {
    font-size: 0.9rem;
    color: var(--iaro-text-light);
}

.location-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--accent-pink);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.location-link:hover {
    text-decoration-color: var(--primary-bg);
}

/* Content sections for iaro page */
.iaro-content-section {
    padding: 0 1.5rem 1rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.iaro-content-section h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--iaro-text);
    position: relative;
    padding-left: 1.5rem;
}

.iaro-content-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--iaro-accent);
    border-radius: 2px;
}

.iaro-content-section p {
    color: var(--iaro-text-light);
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

/* Feature cards */
.feature-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.feature-card {
    background: var(--iaro-card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--iaro-text);
}

.feature-content p {
    color: var(--iaro-text-light);
    font-size: 0.95rem;
}

/* Image sections */
.image-section {
    padding: 2rem 0;
    background: var(--iaro-card-bg);
    border-top: 1px solid var(--iaro-border);
    border-bottom: 1px solid var(--iaro-border);
}

.image-section + .iaro-content-section {
    margin-top: 3rem;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.image-placeholder {
    background: var(--iaro-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.image-placeholder.hero-image {
    aspect-ratio: 2/1;
}

.image-placeholder.square {
    aspect-ratio: 1/1;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Location section */
.location-section {
    padding: 3rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.location-content {
    background: var(--iaro-card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.location-content h2 {
    margin-bottom: 1rem;
    padding-left: 0;
}

.address {
    font-style: normal;
    color: var(--iaro-text-light);
    margin: 1rem 0;
    line-height: 1.8;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--iaro-text-light);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* CTA section */
.cta-section {
    padding: 3rem 1.5rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--iaro-text);
}

.cta-section p {
    color: var(--iaro-text-light);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-primary {
    background: var(--iaro-text);
    color: white;
}

.btn-primary:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: white;
    border: 1px solid var(--iaro-border);
    color: var(--iaro-text);
}

.btn-secondary:hover {
    background: var(--iaro-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Decorative divider */
.divider {
    width: 60px;
    height: 3px;
    background: var(--iaro-accent);
    margin: 3rem auto;
    border-radius: 1.5px;
}

/* Desktop responsive adjustments for iaro page */
@media (min-width: 768px) {
    body.iaro-page {
        background-color: var(--primary-bg) !important;
    }

    body.iaro-page main {
        max-width: 900px;
        margin: 2rem auto;
        border-radius: 12px;
        /* We keep the 100px top padding but add horizontal and more bottom padding */
        padding: 100px 4rem 4rem !important;
        /* Add a subtle shadow to lift the content off the background */
        box-shadow: 0 8px 40px rgba(0,0,0,0.15);
    }

    .iaro-hero h1 {
        font-size: 3.5rem;
    }

    .quick-info {
        gap: 4rem;
    }

    .feature-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .feature-card {
        flex-direction: column;
        text-align: center;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-placeholder.hero-image {
        grid-column: 1 / -1;
    }

    .location-content {
        padding: 3rem;
    }
}

/* Back-Button specifically for iaro-page */
.iaro-page .back-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 35px;
    height: 35px;
    background-color: var(--iaro-text);
    color: var(--iaro-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
    z-index: 1000;
}

.iaro-page .back-button:hover {
    transform: scale(1.05);
    background-color: #000;
}