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

:root {
    --bg-dark: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #252525;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent: #7c3aed;
    --accent-hover: #8b5cf6;
    --border-color: #333333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile-first Padding für Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    border-left: 3px solid var(--accent);
    padding-left: 12px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    object-fit: cover;
}

.background-video.active {
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.6) 0%, rgba(10, 10, 10, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1.2s ease-out;
}

.hero-time {
    font-size: 1.5rem;
    color: var(--accent);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1.4s ease-out;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 2rem;
    color: var(--text-primary);
    opacity: 0.7;
}

@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);
    }
}

/* Details Section */
.details {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.details h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.detail-card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
    border-color: var(--accent);
}

.detail-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    line-height: 1;
}

.detail-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.detail-card p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.map-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.map-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Teilnehmer Übersicht */
.participants-overview {
    max-width: 800px;
    margin: 0 auto 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.participants-section {
    background-color: var(--bg-card);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.participants-section h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.participants-section h4:first-child {
    color: #10b981;
}

.participants-list {
    min-height: 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.participant-name {
    background-color: var(--bg-dark);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.empty-message {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.9rem;
}

/* Raclette Liste Section */
.raclette-list {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.raclette-list h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.entry-form {
    max-width: 600px;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.entry-form input {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.entry-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.entry-form input::placeholder {
    color: var(--text-secondary);
}

.btn-primary {
    padding: 15px 30px;
    background-color: var(--accent);
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.items-list {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 15px;
}

.item-entry {
    background-color: var(--bg-card);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s ease;
    animation: slideIn 0.3s ease-out;
}

.item-entry:hover {
    border-color: var(--accent);
}

.item-info {
    flex: 1;
}

.item-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.item-item {
    color: var(--text-secondary);
}

.delete-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.delete-btn:hover {
    background-color: #ff4444;
    border-color: #ff4444;
    color: var(--text-primary);
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px;
    font-style: italic;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Login Modal */
.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.modal-content h2 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content input {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Einladungsstatus */
.invitation-status {
    max-width: 600px;
    margin: 0 auto 40px;
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.invitation-status h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.status-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
}

.status-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 200px;
}

.btn-accept {
    background-color: #10b981;
    color: var(--text-primary);
}

.btn-accept:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

.btn-accept.active {
    background-color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.btn-decline {
    background-color: #6b7280;
    color: var(--text-primary);
}

.btn-decline:hover {
    background-color: #4b5563;
    transform: translateY(-2px);
}

.btn-decline.active {
    background-color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.status-message {
    color: var(--text-secondary);
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    padding: 40px 0;
    background-color: var(--bg-secondary);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Responsive Design - Tablet & Mobile */
@media (max-width: 768px) {
    /* Navigation */
    .nav-container {
        padding: 0 15px;
        height: 56px;
    }

    .nav-logo {
        font-size: 0.9rem;
        padding-left: 10px;
    }

    .nav-menu {
        gap: 15px;
    }

    .nav-link {
        font-size: 0.875rem;
        padding: 5px 0;
    }

    /* Hero Section */
    .hero {
        padding-top: 56px;
    }

    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.375rem;
        margin-bottom: 0.375rem;
    }

    .hero-time {
        font-size: 1.125rem;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .scroll-indicator span {
        font-size: 1.5rem;
    }

    /* Details Section */
    .details {
        padding: 60px 0;
    }

    .details h2,
    .raclette-list h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* Teilnehmer Übersicht */
    .participants-overview {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .participants-section {
        padding: 20px;
    }

    .participants-section h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .participant-name {
        padding: 6px 12px;
        font-size: 0.875rem;
    }

    /* Einladungsstatus */
    .invitation-status {
        padding: 25px 20px;
        margin-bottom: 30px;
    }

    .invitation-status h3 {
        font-size: 1.25rem;
        margin-bottom: 18px;
    }

    .status-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .status-btn {
        padding: 14px 20px;
        font-size: 0.95rem;
        max-width: 100%;
    }

    /* Detail Cards */
    .details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .detail-card {
        padding: 25px 20px;
    }

    .detail-icon {
        font-size: 2.25rem;
        margin-bottom: 0.875rem;
    }

    .detail-card h3 {
        font-size: 1.375rem;
        margin-bottom: 0.875rem;
    }

    .detail-card p {
        font-size: 0.95rem;
        margin-bottom: 0.375rem;
    }

    /* Raclette Section */
    .raclette-list {
        padding: 60px 0;
    }

    .section-description {
        font-size: 1rem;
        margin-bottom: 1.75rem;
        padding: 0 10px;
    }

    .entry-form {
        padding: 0;
        gap: 12px;
    }

    .entry-form input {
        padding: 14px;
        font-size: 16px; /* Verhindert Zoom auf iOS */
    }

    .btn-primary {
        padding: 14px 25px;
        font-size: 1rem;
    }

    /* Items List */
    .items-list {
        gap: 12px;
    }

    .item-entry {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 18px;
    }

    .item-name {
        font-size: 1rem;
    }

    .item-item {
        font-size: 0.9rem;
    }

    .delete-btn {
        margin-left: 0;
        width: 100%;
        padding: 10px;
    }

    /* Modal */
    .modal-content {
        padding: 30px 25px;
        margin: 20px;
        width: calc(100% - 40px);
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }

    .modal-content p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .modal-content input {
        padding: 14px;
        font-size: 16px; /* Verhindert Zoom auf iOS */
    }
}

/* Responsive Design - Kleine Mobile Geräte */
@media (max-width: 480px) {
    /* Navigation */
    .nav-container {
        height: 52px;
        padding: 0 12px;
    }

    .nav-logo {
        font-size: 0.85rem;
        padding-left: 8px;
    }

    .nav-menu {
        gap: 12px;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    /* Hero Section */
    .hero {
        padding-top: 52px;
    }

    .hero-content {
        padding: 15px;
    }

    .hero-title {
        font-size: 1.875rem;
        margin-bottom: 0.625rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 0.25rem;
    }

    .hero-time {
        font-size: 1rem;
    }

    .scroll-indicator {
        bottom: 15px;
    }

    .scroll-indicator span {
        font-size: 1.25rem;
    }

    /* Details Section */
    .details {
        padding: 50px 0;
    }

    .details h2,
    .raclette-list h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    /* Teilnehmer Übersicht */
    .participants-overview {
        gap: 15px;
        margin-bottom: 35px;
    }

    .participants-section {
        padding: 18px 15px;
    }

    .participants-section h4 {
        font-size: 1rem;
    }

    .participant-name {
        padding: 5px 10px;
        font-size: 0.8125rem;
    }

    /* Einladungsstatus */
    .invitation-status {
        padding: 20px 15px;
        margin-bottom: 25px;
    }

    .invitation-status h3 {
        font-size: 1.125rem;
    }

    .status-btn {
        padding: 12px 18px;
        font-size: 0.9rem;
    }

    /* Detail Cards */
    .details-grid {
        gap: 15px;
    }

    .detail-card {
        padding: 20px 15px;
    }

    .detail-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .detail-card h3 {
        font-size: 1.25rem;
    }

    .detail-card p {
        font-size: 0.9rem;
    }

    /* Raclette Section */
    .raclette-list {
        padding: 50px 0;
    }

    .section-description {
        font-size: 0.9375rem;
        padding: 0 5px;
    }

    .entry-form {
        gap: 10px;
    }

    .entry-form input {
        padding: 12px;
    }

    /* Items List */
    .item-entry {
        padding: 15px;
        gap: 10px;
    }

    .item-name {
        font-size: 0.9375rem;
    }

    .item-item {
        font-size: 0.875rem;
    }

    /* Modal */
    .modal-content {
        padding: 25px 20px;
        margin: 15px;
        width: calc(100% - 30px);
        border-radius: 12px;
    }

    .modal-content h2 {
        font-size: 1.375rem;
    }

    .modal-content p {
        font-size: 0.9rem;
    }

    /* Footer */
    .footer {
        padding: 30px 0;
    }

    .footer p {
        font-size: 1rem;
    }
}

/* Touch-Optimierungen für Mobile */
@media (hover: none) and (pointer: coarse) {
    /* Größere Touch-Targets */
    .nav-link {
        padding: 8px 12px;
        margin: -8px -12px;
    }

    .btn-primary,
    .status-btn,
    .delete-btn {
        min-height: 44px; /* Apple HIG Mindestgröße */
    }

    /* Entferne Hover-Effekte auf Touch-Geräten */
    .detail-card:hover {
        transform: none;
        box-shadow: none;
    }

    .nav-link:hover::after {
        width: 0;
    }
}
