/**
 * Stylesheet für helferlein.de Startseite
 * 
 * Responsive Design mit Kachel-Menü
 * 
 * @author  Reinhold
 * @version 1.5
 * @date    2025-11-28
 */

@charset "utf-8";
/* ===================================
   LAYOUT - Fußzeile immer unten
   =================================== */
html, body {
    height: 100%;
    margin: 0;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1 0 auto;
    padding: 2rem 1rem;
}

footer {
    flex-shrink: 0;
}

/* ===================================
   PAGE TITLE
   =================================== */
.page-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: bold;
}

.page-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 3rem;
}

/* ===================================
   KACHEL-MENÜ
   =================================== */
.tile-menu {
    max-width: 1200px;
    margin: 0 auto;
}

.tile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Basis-Kachel */
.tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid #e9ecef;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    min-height: 280px;
    position: relative;
}

/* Aktive Kacheln (anklickbar) */
.tile-active {
    cursor: pointer;
}

.tile-active:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
    border-color: #3498db;
}

.tile-active:hover .tile-icon {
    color: #2980b9;
    transform: scale(1.1);
}

/* Platzhalter-Kacheln */
.tile-placeholder {
    opacity: 0.6;
    cursor: default;
    background: linear-gradient(135deg, #f8f9fa 0%, #ecf0f1 100%);
}

.tile-placeholder .tile-icon {
    color: #95a5a6;
}

.tile-placeholder .tile-title {
    color: #7f8c8d;
}

.tile-placeholder .tile-description {
    color: #95a5a6;
    font-style: italic;
}

/* Kachel-Icon */
.tile-icon {
    color: #3498db;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.placeholder-icon {
    opacity: 0.5;
}

/* Kachel-Titel */
.tile-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: bold;
}

/* Kachel-Beschreibung */
.tile-description {
    color: #7f8c8d;
    text-align: center;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===================================
   RESPONSIVE BREAKPOINTS
   =================================== */

/* Tablets und größer (768px+) - 2 Spalten */
@media (min-width: 768px) {
    .tile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tile {
        aspect-ratio: 1 / 1; /* Quadratisch */
        min-height: auto;
    }
    
    .page-title {
        font-size: 2.25rem;
    }
    
    .page-subtitle {
        font-size: 1.2rem;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .main {
        padding: 3rem 2rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .tile {
        padding: 3rem 2rem;
    }
    
    .tile-title {
        font-size: 1.75rem;
    }
    
    .tile-description {
        font-size: 1rem;
    }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .page-title {
        font-size: 2.75rem;
    }
}