/* Grunddesign & Schriften */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* Container für die App */
.container {
    width: 100%;
    max-width: 600px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

/* Header / Begrüßung */
header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

header h2 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

header p {
    color: #7f8c8d;
    font-size: 1rem;
}

/* Termin-Liste */
.date-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.date-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 5px solid #bdc3c7;
    transition: all 0.3s ease;
}

/* Status-Farben für die Kärtchen */
.date-item.accepted {
    border-left-color: #2ecc71;
    background: #e8f8f5;
}

.date-info .date {
    font-weight: bold;
    font-size: 1.1rem;
    color: #2c3e50;
}

/* Buttons */
.btn-group {
    display: flex;
    gap: 8px;
}

.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.btn-yes {
    background-color: #e2e8f0;
    color: #27ae60;
}

/* Aktive Zustände der Buttons */
.date-item.accepted .btn-yes {
    background-color: #2ecc71;
    color: white;
}

.btn:hover {
    opacity: 0.9;
}

#growl-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.growl {
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out, fadeOut 0.5s ease-in 2.5s forwards;
    font-size: 0.9rem;
}

a {
    color: #333;
}

.growl.success { border-left: 4px solid #2ecc71; }
.growl.error { border-left: 4px solid #e74c3c; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Responsive Anpassung für kleine Bildschirme */
@media (max-width: 480px) {
    .date-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .btn-group {
        width: 100%;
    }

    .btn {
        flex: 1;
        text-align: center;
    }
}

.invite-form { display: grid; gap: 10px; grid-template-columns: 1fr 1fr auto; }
.invite-input {
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
}
.btn-invite {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.btn-invite:hover { background-color: #2980b9; }