/* ===== PRIVATIMKEREI SEITZ - LANDING PAGE STYLES ===== */

/* CSS Reset & Base Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #fffbe7;
    overflow-x: hidden;
}

body {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    position: relative;
}

/* Main Container */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    margin-top: 7vh;
    width: 100%;
    max-width: 800px;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

/* Message Card */
.message-card {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 32px rgba(60, 60, 60, 0.13);
    border: 2.5px solid #f5e6b2;
    padding: 2.2rem;
    min-width: 320px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.15rem;
    color: #222222;
    letter-spacing: 0.01em;
    margin-bottom: 1.2rem;
    opacity: 0;
    animation: fade-in-up-then-float-card 0.8s ease-out 0.6s forwards, float-gently-reverse-card 3.2s ease-in-out 1.4s infinite;
    z-index: 2;
}

.message-card::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -32px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 32px solid #ffffff;
    filter: drop-shadow(0 2px 0 #f5e6b2);
}

.message-text {
    display: inline-block;
    min-height: 2.5em;
    font-size: 1.15rem;
    color: #222222;
    letter-spacing: 0.01em;
    text-align: center;
    width: 100%;
    white-space: pre-line;
    overflow-wrap: break-word;
    line-height: 1.4;
}

.timer-text {
    display: block;
    margin-top: 1.2rem;
    font-size: 0.95rem;
    color: #666666;
    font-weight: 400;
}

/* Brand Section */
.brand-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
    opacity: 0;
    animation: fade-in-up-then-float-logo 0.8s ease-out 0.2s forwards;
}

.logo-container {
    position: relative;
    display: inline-block;
}

.brand-logo {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 22px;
    box-shadow: 0 6px 32px rgba(60, 60, 60, 0.13);
    background: #fff8e1;
    border: 2px solid #f5e6b2;
    pointer-events: none;
}


/* Animations */
@keyframes float-gently {
    0% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
    100% { transform: translateY(0); }
}

@keyframes float-gently-reverse-card {
    0% { transform: translateY(0); }
    50% { transform: translateY(18px); }
    100% { transform: translateY(0); }
}

@keyframes float-gently-reverse {
    0% { transform: translateY(-50%); }
    50% { transform: translateY(calc(-50% + 18px)); }
    100% { transform: translateY(-50%); }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up-then-float-card {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up-then-float-logo {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .brand-logo {
        max-width: 600px;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .container {
        margin-top: 5vh;
        padding: 0 0.5rem;
    }
    
    .brand-logo {
        max-width: 340px;
        width: 100%;
    }
    
    .message-card {
        min-width: 0;
        width: 90vw;
        font-size: 0.95rem;
        padding: 1.2rem 0.5rem;
    }
    
    .message-card::after {
        left: 50%;
        bottom: -18px;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 18px solid #ffffff;
        filter: drop-shadow(0 1.5px 0 #f5e6b2);
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .message-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .brand-logo {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .message-card {
        border-color: #000000;
        box-shadow: 0 0 0 2px #000000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .message-card {
        animation: fade-in-up-then-float-card 0.8s ease-out 0.6s forwards;
    }
    
    .brand-section {
        animation: fade-in-up-then-float-logo 0.8s ease-out 0.2s forwards;
    }
    
    .brand-logo {
        animation: none;
    }
    
    body {
        transition: none;
    }
    
    .message-text span {
        transition: none !important;
    }
}
