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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #ffeef8 0%, #ffe0f0 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 15px;
    padding: 20px;
    max-width: 100vw;
    filter: blur(1px);
}

.photo-item {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.2);
    position: relative;
    aspect-ratio: 4 / 5;
    width: 100%;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(1px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-card {
    background: white;
    border-radius: 25px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(255, 105, 180, 0.3);
    text-align: center;
    max-width: 400px;
    width: 100%;
    animation: slideIn 0.5s ease-out;
    border: 3px solid #ff6b9d;
}

@keyframes slideIn {
    from {
        transform: scale(0.8) translateY(50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.heart-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: heartBeat 1.5s infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20%, 40% { transform: scale(0.95); }
}

h1 {
    color: #ff1744;
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-yes {
    background: linear-gradient(135deg, #ff1744 0%, #ff6b9d 100%);
    color: white;
}

.btn-yes:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 23, 68, 0.4);
}

.btn-yes:active {
    transform: scale(0.98);
}

.btn-no {
    background: white;
    color: #ff1744;
    border: 2px solid #ff1744;
    position: relative;
}

.btn-no:hover {
    background: #fff5f7;
}

.btn-no.shrink {
    animation: shrinkButton 0.3s ease forwards;
}

@keyframes shrinkButton {
    to {
        transform: scale(0.8);
        opacity: 0.7;
    }
}

.celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ff1744;
    animation: confettiFall 3s linear forwards;
}

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    z-index: 10000;
    box-shadow: 0 20px 60px rgba(255, 105, 180, 0.4);
    animation: popIn 0.5s ease-out;
}

@keyframes popIn {
    from {
        transform: translate(-50%, -50%) scale(0);
    }
    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

.success-message h2 {
    color: #ff1744;
    font-size: 2rem;
    margin-bottom: 10px;
}

.success-message p {
    color: #ff6b9d;
    font-size: 1.2rem;
}

/* iPhone Optimierung */
@media (max-width: 430px) {
    .photo-grid {
        gap: 10px;
        padding: 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .modal-card {
        padding: 30px 25px;
    }

    .heart-icon {
        font-size: 3rem;
    }
}

/* Kleine iPhones (SE, Mini) */
@media (max-width: 390px) {
    .photo-grid {
        gap: 8px;
        padding: 12px;
    }
}

/* Landscape Modus */
@media (max-height: 700px) and (orientation: landscape) {
    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 8px;
        padding: 10px;
    }
}
