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

body {
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(239, 246, 255, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 50px 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.hero h1 {
    font-size: 2.5em;
    color: #3b82f6;
    margin-bottom: 15px;
}

.hero .subtitle {
    font-size: 1.2em;
    color: #6c757d;
    font-weight: 300;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.1);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15);
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-text {
    flex: 1;
}

.card-button {
    margin-top: auto;
    padding-top: 15px;
}

.card h2 {
    color: #3b82f6;
    font-size: 1.6em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card h2::before {
    content: '';
    width: 4px;
    height: 28px;
    background: #3b82f6;
    border-radius: 2px;
}

.full-width {
    grid-column: 1 / -1;
}

.meeting-schedule {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
}

.day, .time, .activity {
    font-weight: 500;
}

.day {
    font-size: 1.1em;
    color: #2c3e50;
    font-weight: 600;
}

.email {
    display: inline-block;
    background: #3b82f6;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.email:hover {
    background: #2563eb;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.maps-link {
    display: inline-block;
    background: #3b82f6;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.maps-link:hover {
    background: #2563eb;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.address {
    font-size: 1.1em;
    font-weight: 500;
    margin: 0;
    padding: 0;
    color: #2c3e50;
}

/* Termine-Alert in der Kachel */
.termine-alert {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #ef4444;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.termine-alert h3 {
    color: #ef4444;
    margin: 0 0 10px 0;
    font-size: 1.3em;
    font-weight: bold;
}

.termine-alert p {
    color: #991b1b;
    margin: 0;
    font-weight: 500;
    line-height: 1.6;
}

.video-thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.video-thumbnail-item {
    position: relative;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.08);
    cursor: pointer;
}

.video-thumbnail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.video-thumbnail-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 2px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.video-thumbnail-item:hover img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
}

.video-thumbnail-item:hover .play-overlay {
    opacity: 1;
}

.play-button {
    background: rgba(59, 130, 246, 0.9);
    color: white;
    font-size: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.play-button:hover {
    transform: scale(1.1);
    background: #3b82f6;
}

.video-thumbnail-item h3 {
    padding: 15px;
    font-size: 0.95em;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    margin: 0;
    min-height: 65px;
    display: flex;
    align-items: center;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}

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

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #6c757d;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #3b82f6;
}

.modal-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    background: #000;
}

.modal-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px 15px 0 0;
}

.modal-content h3 {
    padding: 20px;
    font-size: 1.2em;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    text-align: center;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.seelenretter-link {
    display: inline-block;
    background: #3b82f6;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.seelenretter-link:hover {
    background: #2563eb;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    text-decoration: none;
}

/* Styles für dynamische Aktuelles-Inhalte */
.aktuelles-entry {
    margin-bottom: 25px;
}

.aktuelles-entry:last-child {
    margin-bottom: 0;
}

.aktuelles-entry .entry-title {
    font-weight: bold;
    font-size: 1.1em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.aktuelles-entry .entry-content {
    margin-bottom: 15px;
    white-space: pre-line;
}

.aktuelles-entry .entry-button {
    display: inline-block;
    background: #3b82f6;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    margin-bottom: 15px;
}

.aktuelles-entry .entry-button:hover {
    background: #2563eb;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    text-decoration: none;
}

.website-preview {
    display: block;
    margin: 15px 0;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
    text-decoration: none;
    background: white;
}

.website-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    text-decoration: none;
}

.website-preview iframe {
    width: 100%;
    height: 200px;
    border: none;
    pointer-events: none;
    transform: scale(0.7);
    transform-origin: 0 0;
    width: 142.86%; /* 100% / 0.7 */
    height: 285px; /* 200px / 0.7 */
}

.website-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 10;
}

.website-preview-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.aktuelles-entry .additional-link {
    display: block;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.aktuelles-entry .additional-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.loading-message {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.loading-message p {
    margin-top: 15px;
    font-size: 1.1em;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(59, 130, 246, 0.3);
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    text-align: center;
    color: #6c757d;
}

.error-message p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.fallback-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero {
        padding: 40px 20px;
    }
    
    .hero h1 {
        font-size: 2.2em;
    }
    
    .container {
        padding: 15px;
    }
    
    .meeting-schedule {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
    }
    
    .video-thumbnails-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .fallback-videos {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-content {
        width: 95vw;
        max-width: 95vw;
        margin: 20px;
    }
    
    .modal-video-wrapper {
        padding-bottom: 56.25%;
    }
    
    .modal-content h3 {
        font-size: 1em;
        padding: 15px;
    }
    
    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

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

.staggered {
    animation-delay: var(--delay, 0ms);
}