/* 1. GRUND-EINSTELLUNGEN */
:root {
    --bg-color: #7aa8c8;         /* Exaktes Blau aus deinem background.png (Himmelton) */
    --card-bg: rgba(255, 255, 255, 0.80);  /* Transparenter – mehr Hintergrund sichtbar */
    --text-color: #2c3e50;
    --accent-color: #3498db;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --card-height: 220px;
}

/* Box-Sizing */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    background-image: url('images/background.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-attachment: fixed;
    background-size: contain;
    
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    
    position: relative;
}

/* Subtiler Overlay */
body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(1px);
    z-index: -1;
}

/* 2. HEADER */
.page-header {
    text-align: center;
    padding: 80px 15px 40px;
    background: transparent;
    position: relative;
}

h1 {
    margin: 20px 0 0;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    color: var(--text-color);
    word-wrap: break-word;
    text-shadow: 0 2px 6px rgba(255, 255, 255, 0.9);
}

/* 3. LAYOUT-GRID */
.grid-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    flex-grow: 1;
    width: 100%;
    position: relative;
}

/* 4. KACHEL-DESIGN – jetzt transparenter */
.link-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px 15px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);  /* Stärkerer Glas-Effekt für edles Gefühl */
    
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);  /* Leichter Rand für bessere Abgrenzung */
    
    height: var(--card-height);
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.90);  /* Beim Hover etwas weniger transparent */
}

/* 5. ICON-STYLING */
.icon-box {
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-box img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: filter 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}

.link-card:hover .icon-box img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* 6. TEXT-STYLING */
.link-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    hyphens: auto;
}

/* 7. FOOTER */
.page-footer {
    text-align: center;
    padding: 25px;
    font-size: 0.85rem;
    opacity: 0.8;
    background: transparent;
    position: relative;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

/* 8. MOBILE ANPASSUNG */
@media (max-width: 768px) {
    body::before {
        background: rgba(255, 255, 255, 0.6);
    }
    
    .page-header {
        padding-top: 60px;
    }
}

@media (max-width: 450px) {
    .grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .link-card {
        height: auto;
        min-height: 160px;
        padding: 25px 15px;
    }
}