/* Base Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #00354c 0%, #004a66 50%, #00354c 100%);
    color: #fff;
    width: 100%;
    min-height: 960px;
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(175, 202, 11, 0.15);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(175, 202, 11, 0.2);
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}

.shape-4 {
    width: 70px;
    height: 70px;
    bottom: 10%;
    right: 10%;
    animation-delay: 3s;
}

.shape-5 {
    width: 90px;
    height: 90px;
    top: 50%;
    right: 5%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(-40px) rotate(180deg); }
    75% { transform: translateY(-20px) rotate(270deg); }
}

/* Header Styles */
.animated-header {
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid rgba(175, 202, 11, 0.3);
}

.logo {
    height: 64px;
    max-width: 80%;
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Main Content */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 70vh;
    position: relative;
    z-index: 1;
    padding-bottom: 40px;
    padding-top: 0px;
}

.main-title {
    text-align: center;
    font-size: 2.5rem;
    margin: 24px 0 16px 0;
    font-weight: 700;
    animation: slideInDown 1s ease-out;
}

.gradient-text {
    background: linear-gradient(45deg, #afca0b, #d4e834, #afca0b);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(175, 202, 11, 0.3);
}

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

.subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 32px 0;
    font-weight: 300;
}

.fade-in {
    animation: fadeIn 1.5s ease-out 0.5s both;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    padding: 0 32px;
    max-width: 800px;
}

/* Menu Items */
.menu-item {
    padding-top:20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    height: 160px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    user-select: none;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(175, 202, 11, 0.1);
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease-out forwards;
}

.menu-content {
    display: flex;
    flex-direction: column;
    align-items:center;
    justify-content: start;
    height: 100%;
    padding: 16px;
    position: relative;
    z-index: 2;
}

.menu-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    animation: bounce 2s ease-in-out infinite;
}

.menu-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #00354c;
    margin-bottom: 4px;
    line-height: 1.2;
}

.menu-subtitle {
    font-size: 0.85rem;
    color: #666;
    font-weight: 400;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered Animation Delays */
.item-delay-1 { animation-delay: 0.1s; }
.item-delay-2 { animation-delay: 0.2s; }
.item-delay-3 { animation-delay: 0.3s; }
.item-delay-4 { animation-delay: 0.4s; }
.item-delay-5 { animation-delay: 0.5s; }
.item-delay-6 { animation-delay: 0.6s; }
.item-delay-7 { animation-delay: 0.7s; }
.item-delay-8 { animation-delay: 0.8s; }
.item-delay-9 { animation-delay: 0.9s; }
.item-delay-10 { animation-delay: 1.0s; }

/* Hover Effects */
.menu-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(175, 202, 11, 0.4);
}

.menu-item:hover .menu-icon {
    transform: scale(1.2) rotate(10deg);
    animation-play-state: paused;
}

.menu-item:hover .menu-title {
    color: #afca0b;
}

.menu-item:active {
    transform: translateY(-4px) scale(0.98);
}

/* Ripple Effect */
.menu-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(175, 202, 11, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.menu-item:active::before {
    width: 300px;
    height: 300px;
}

/* Footer */
.footer-text {
    margin-top: 32px;
    text-align: center;
}

.glow-text {
    color: #afca0b;
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 0 0 20px rgba(175, 202, 11, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { 
        text-shadow: 0 0 20px rgba(175, 202, 11, 0.5);
        color: #afca0b;
    }
    to { 
        text-shadow: 0 0 30px rgba(175, 202, 11, 0.8), 0 0 40px rgba(175, 202, 11, 0.3);
        color: #d4e834;
    }
}

/* Detail Pages Styles */
body {
    background: linear-gradient(135deg, #00354c 0%, #004a66 50%, #00354c 100%);
    padding-bottom: 100px;

}

/* Header for detail pages */
header {

    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0 20px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-top: 2px solid rgba(175, 202, 11, 0.3);
    position: fixed;
    bottom:0;
    right:0;
    left:0;
    z-index:100;
}

.logo {
    height: 64px;
    max-width: 80%;
    display: block;
    margin: 0 auto;
}

.header-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius:0px; /* 18px; */
    margin: 0 auto 24px auto;
    background: #e3e7fd;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.sub-title {
    text-align: center;
    font-size: 1.7rem;
    margin: 12px 0 18px 0;
    color: #afca0b;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.content-text {
    font-size: 1.15rem;
    line-height: 1.5;
    padding: 0 24px;
    text-align: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    margin: 0 24px;
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(175, 202, 11, 0.2);
}

.content-text h2 {
    color: #afca0b;
    font-size: 1.4rem;
    margin: 24px 0 16px 0;
    font-weight: 600;
}

.intro-text {
    margin-bottom: 24px;
    font-size: 1.2rem;
}

.intro-text strong {
    color: #afca0b;
}

.benefits-list {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
    padding-left: 0;
    list-style: none;
}

.benefits-list li {
    margin-bottom: 16px;
    padding: 16px;
    background: rgba(175, 202, 11, 0.1);
    border-radius: 12px;
    border-left: 4px solid #afca0b;
    transition: all 0.3s ease;
}

.benefits-list li:hover {
    background: rgba(175, 202, 11, 0.15);
    transform: translateX(4px);
}

.benefits-list li strong {
    color: #afca0b;
}

.tool-section {
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(175, 202, 11, 0.3);
    transition: all 0.3s ease;
}

.tool-section:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(175, 202, 11, 0.5);
}

.tool-section h2 {
    color: #afca0b;
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.tool-description {
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.tool-description strong {
    color: #afca0b;
}

/* Messerabatt Button - Fixed Position */
.messerabatt-button {
    position: fixed;
    bottom: 90px;
    right: 30px;
    z-index: 1000;
    cursor: pointer;
    animation: messerabattPulse 2s ease-in-out infinite;
    border-radius: 50px;
    z-index: 1500;

}

.messerabatt-content {
    background: linear-gradient(135deg, #afca0b 0%, #d4e834 100%);
    color: #00354c;
    padding: 16px 24px;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(175, 202, 11, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.messerabatt-content:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(175, 202, 11, 0.6);
    background: linear-gradient(135deg, #d4e834 0%, #afca0b 100%);
}

.messerabatt-content:active {
    transform: translateY(-2px) scale(1.02);
}

.messerabatt-icon {
    font-size: 1.4rem;
    animation: messerabattBounce 1.5s ease-in-out infinite;
}

.messerabatt-text {
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.messerabatt-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.messerabatt-button:hover .messerabatt-arrow {
    transform: translateX(4px);
}

@keyframes messerabattPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(175, 202, 11, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 12px 40px rgba(175, 202, 11, 0.6);
    }
}

@keyframes messerabattBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-6px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.back-link {
    position: fixed;
    left: 18px;
    top: 18px;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    background: rgba(175, 202, 11, 0.9);
    padding: 18px 18px;
    border-radius: 12px;
    box-shadow: 1px 1px 15px rgba(20, 20, 20, 0.5);
    z-index: 10;
    transition: all 0.3s ease;
    font-weight: 600;
}

.back-link:hover {
    background: #afca0b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(175, 202, 11, 0.4);
}

.back-link:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 600px) {
    body {
        width: 100vw;
        min-height: 100vh;
    }
    .menu-grid {
        padding: 0 16px;
        gap: 16px;
    }
    .content-text {
        padding: 16px;
        margin: 0 16px;
    }
    .main-title {
        font-size: 2rem;
        padding: 0 16px;
    }
    .menu-item {
        height: 120px;
    }
    .menu-icon {
        font-size: 2rem;
    }
    .menu-title {
        font-size: 1rem;
    }
    .floating-shape {
        display: none; /* Hide floating shapes on mobile for better performance */
    }
    .sub-title {
        font-size: 1.4rem;
        padding: 0 16px;
    }
    .header-image {
        margin: 0 16px 24px 16px;
        width: calc(100% - 32px);
    }
    .tool-section {
        margin: 0 16px 24px 16px;
        padding: 16px;
    }
    .benefits-list li {
        padding: 12px;
    }
    
    /* Messerabatt Button responsive */
    .messerabatt-button {
        bottom: 20px;
        right: 20px;
    }
    
    .messerabatt-content {
        padding: 12px 18px;
        font-size: 0.95rem;
        gap: 8px;
    }
    
    .messerabatt-text {
        font-size: 0.9rem;
    }
    
    .messerabatt-icon {
        font-size: 1.2rem;
    }
    
    .messerabatt-arrow {
        font-size: 1rem;
    }
}
