/* ============================================
   home.css - larro.de
   Nur für Startseite (index.html)
   ============================================ */

/* Container für die Kartenraster */
.container { padding: 40px; max-width: 1400px; margin: 0 auto; }

/* Image Grid */
.image-grid { display: grid; gap: 40px; margin-top: 20px; }
@media (min-width: 1200px) { .image-grid { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); } }
@media (min-width: 769px) and (max-width: 1199px) { .image-grid { grid-template-columns: 1fr 1fr; } .hero-card { grid-column: span 2; } }
@media (max-width: 768px) { .image-grid { grid-template-columns: 1fr; gap: 20px; } .container { padding: 20px; } }

/* Image Cards */
.image-card { position: relative; cursor: pointer; transition: all 0.4s ease; background: white; border-radius: 3px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.12); opacity: 0; animation: fadeInUp 0.6s ease forwards; }
.image-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.image-card img { width: 100%; height: 400px; object-fit: cover; transition: transform 0.4s ease; }
.image-card:hover img { transform: scale(1.05); }
.card-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.85)); color: white; padding: 30px; }
.card-title { font-size: 1.5rem; font-weight: 300; margin-bottom: 8px; }
.card-subtitle { font-size: 1rem; opacity: 0.9; }
.hero-card { grid-column: span 2; }
.hero-card img { min-height: 400px; }

/* Text Cards */
.text-card { background: white; padding: 40px; border-radius: 3px; box-shadow: 0 8px 30px rgba(0,0,0,0.12); transition: all 0.4s ease; opacity: 0; animation: fadeInUp 0.6s ease forwards; }
.text-card:hover { transform: translateY(-5px); }
.text-card h2 { font-size: 1.8rem; font-weight: 300; color: #2d5a27; margin-bottom: 20px; }
.text-card p { font-size: 1rem; line-height: 1.7; color: #666; margin-bottom: 15px; }
.text-card .highlight { background: #f0fdf4; padding: 20px; border-left: 4px solid #2d5a27; margin: 20px 0; font-style: italic; }

.contact-info { background: #2d5a27; color: white; padding: 30px; text-align: center; }
.contact-info h3 { font-weight: 300; margin-bottom: 15px; }
.contact-info a { color: #a7f3d0; text-decoration: none; }

/* Modal */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); }
.modal-content { background-color: white; margin: 5% auto; padding: 40px; width: 80%; max-width: 900px; border-radius: 5px; max-height: 80vh; overflow-y: auto; position: relative; }
.close { color: #aaa; float: right; font-size: 28px; font-weight: bold; position: absolute; right: 20px; top: 20px; cursor: pointer; }
.close:hover { color: #000; }

@media (max-width: 768px) {
    .modal-content { width: 95%; margin: 10% auto; padding: 20px; }
}

/* Fade-In Animation für Cards */
.image-card:nth-child(1) { animation-delay: 0.1s; }
.image-card:nth-child(2) { animation-delay: 0.2s; }
.image-card:nth-child(3) { animation-delay: 0.3s; }
.image-card:nth-child(4) { animation-delay: 0.4s; }
.image-card:nth-child(5) { animation-delay: 0.5s; }
.image-card:nth-child(6) { animation-delay: 0.6s; }
.image-card:nth-child(7) { animation-delay: 0.7s; }
.image-card:nth-child(8) { animation-delay: 0.8s; }

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