/*
    Document   : index
    Created on : 2026-07-25
    Description: Styles for the landing/hub page.
*/

.hub-title {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.hub-title h1 {
    color: #004d99;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hub-title p {
    font-size: 1.2rem;
    color: var(--muted-color);
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tile {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    border-color: var(--primary-background);
}

.tile-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.tile-logo {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e6f7ff;
    border-radius: 50%;
    color: var(--primary);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.tile:hover .tile-logo {
    transform: scale(1.1);
    background: #bae7ff;
}

.tile-logo img {
    max-width: 75%;
    max-height: 75%;
    object-fit: contain;
}

.tile-logo svg {
    width: 48px;
    height: 48px;
}

/* Bildmarken, die einen eigenen runden Grund mitbringen, füllen die Fläche
   ganz aus; der helle Kreis darunter würde sonst als Ring hervorstehen. */
.tile-logo-fuellend,
.tile:hover .tile-logo-fuellend {
    background: none;
}

.tile-logo-fuellend svg {
    width: 100%;
    height: 100%;
}

.tile h2 {
    color: #004d99;
    margin: 0 0 0.8rem;
    font-size: 1.6rem;
    text-align: center;
}

.tile-description {
    color: var(--text-color);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* Expandable logic */
.tile-expandable {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease, 
                margin-top 0.4s ease, 
                padding-top 0.4s ease;
    margin-top: 0;
    border-top: 1px dashed var(--border-color);
    padding-top: 0;
}

.tile.expanded .tile-expandable {
    max-height: 400px;
    opacity: 1;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.tile-expand-title {
    font-weight: bold;
    color: #004d99;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.tile-features {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--muted-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.tile-features li {
    margin-bottom: 0.5rem;
}

.tile-actions {
    margin-top: 1.8rem;
    display: flex;
    gap: 1rem;
    width: 100%;
}

.tile-btn {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1.25rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tile-btn-primary {
    background-color: var(--primary);
    color: #fff;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.25);
}

.tile-btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.35);
}

.tile-btn-secondary {
    background-color: #f5f5f5;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.tile-btn-secondary:hover {
    background-color: #e8e8e8;
}

@media (max-width: 480px) {
    .tile-actions {
        flex-direction: column;
    }
}
