* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #9F2321;
    --sand-beige: #F4E8D0;
    --ocean-blue: #1E5A7A;
    --light-blue: #5BA3C7;
    --wave-blue: #89CFF0;
    --white: #FFFFFF;
    --dark-text: #2C3E50;
    --light-gray: #ECF0F1;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, var(--wave-blue) 0%, var(--sand-beige) 100%);
    color: var(--dark-text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Wellen-Hintergrund Animation */
.waves-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        linear-gradient(180deg, 
            rgba(137, 207, 240, 0.3) 0%, 
            rgba(244, 232, 208, 0.5) 60%,
            rgba(244, 232, 208, 0.9) 100%);
}

.waves-background::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 0;
    width: 100%;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,64 C150,90 350,30 600,64 C850,98 1050,38 1200,64 L1200,120 L0,120 Z" fill="%2389CFF0" opacity="0.3"/></svg>');
    background-size: cover;
    animation: wave 8s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-red) 0%, #C9302C 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '🌊';
    position: absolute;
    font-size: 100px;
    opacity: 0.1;
    top: -20px;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

header::after {
    content: '⛵';
    position: absolute;
    font-size: 80px;
    opacity: 0.1;
    bottom: -10px;
    right: 15%;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

header h1 {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header .subtitle {
    font-size: 1.3em;
    font-weight: 300;
}

/* Main Content */
main {
    padding: 40px 20px;
}

/* Party Details Section */
.party-details-section {
    margin-bottom: 50px;
}

.party-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.party-detail-card {
    background: var(--white);
    border-radius: 15px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.party-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--primary-red);
}

.party-detail-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(159, 35, 33, 0.25);
}

.card-icon {
    font-size: 4em;
    margin-bottom: 15px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.party-detail-card h3 {
    color: var(--primary-red);
    font-size: 1.6em;
    margin-bottom: 15px;
    font-weight: bold;
}

.party-detail-card p {
    margin: 8px 0;
    font-size: 1.1em;
    line-height: 1.6;
}

.party-detail-card .highlight {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--primary-red);
    margin: 12px 0;
}

.party-detail-card a {
    color: var(--ocean-blue);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
}

.party-detail-card a:hover {
    text-decoration: underline;
    color: var(--primary-red);
}

.location-card {
    border-top: 6px solid var(--primary-red);
}

.date-card {
    border-top: 6px solid var(--ocean-blue);
}

.contact-card {
    border-top: 6px solid var(--light-blue);
}

/* Info Section */
.info-section {
    margin-bottom: 40px;
}

.island-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--primary-red);
}

.island-card h2 {
    color: var(--primary-red);
    margin-bottom: 15px;
    font-size: 2em;
}

.island-card p {
    font-size: 1.1em;
    line-height: 1.6;
}

/* Ferry Section */
.ferry-section {
    margin-bottom: 40px;
}

.ferry-section h2 {
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2em;
}

.ferry-schedule {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.ferry-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--ocean-blue);
}

.ferry-card h3 {
    color: var(--ocean-blue);
    margin-bottom: 20px;
    font-size: 1.5em;
}

.ferry-card table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.ferry-card table thead {
    background: var(--ocean-blue);
    color: var(--white);
}

.ferry-card table th,
.ferry-card table td {
    padding: 12px;
    text-align: center;
}

.ferry-card table tbody tr:nth-child(even) {
    background: var(--light-gray);
}

.ferry-card table tbody tr:hover {
    background: var(--wave-blue);
    cursor: pointer;
    transition: background 0.3s ease;
}

.ferry-note {
    font-size: 0.9em;
    color: #666;
    margin-top: 15px;
    padding: 10px;
    background: #FFF3CD;
    border-radius: 5px;
}

.ferry-note a {
    color: var(--ocean-blue);
    font-weight: bold;
}

/* Registration Section */
.registration-section {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-top: 6px solid var(--primary-red);
    margin-bottom: 40px;
}

.registration-section h2 {
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 15px;
    font-size: 2.2em;
}

.form-intro {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #555;
}

.registration-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-text);
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input[type="date"] {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    cursor: pointer;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    background: var(--primary-red);
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(159, 35, 33, 0.3);
}

.submit-btn:hover {
    background: #C9302C;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(159, 35, 33, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Footer */
footer {
    background: var(--dark-text);
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
    margin-top: 60px;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: var(--wave-blue);
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .ferry-schedule {
        grid-template-columns: 1fr;
    }

    .registration-section {
        padding: 20px;
    }
}
