/* ============================================================================================= */
/*   */
/* ============================================================================================= */

/* Grundlegende Farbpalette: Hell, freundlich & naturnah */
:root {
    --bg-main: #f4f7f9;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent: #0284c7;
    --accent-hover: #0369a1;
    --border-light: #e2e8f0;
    --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 10px 20px rgba(2, 132, 199, 0.12);
    --radius: 10px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
}

.container {
    max-width: 1080px; /* Etwas breiter, damit 5 Kacheln bequem Platz haben */
    margin: 0 auto;
    padding: 0 30px;
}


/* Kopfbereich (Hero) mit Skyline über die volle Breite */
.hero {
    background-image: url("/images/skyline-large.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100px; /* Hält das Bild trotz höherem Text schön sichtbar */
    padding: 6px 0 12px;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}

/* Fester Abstand zum linken und rechten Bildschirmrand */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 16px; /* Fester Abstand links und rechts */
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Transparente Hintergründe mit feinem Lichtschein für gute Lesbarkeit */
.domain-badge,
.clock {
    background: transparent;
    padding: 4px 0;
    font-weight: 500;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.95), 0 1px 3px rgba(255, 255, 255, 0.9);
}

.domain-badge {
    color: var(--accent-hover);
}

/* Peppiges Smaragdgrün für die Uhrzeit */
.clock {
    font-variant-numeric: tabular-nums;
    color: #059669;
    font-size: 0.95rem;
}

/* Positionierung weiter oben und leicht nach rechts in die Himmelslücke */
.welcome-card {
    display: inline-block;
    background: transparent;
    padding: 4px 0;
    margin-top: 0px;   /* Schiebt den Titel ganz nach oben auf Höhe der Top-Bar */
    margin-left: 16%;
}

.welcome-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.welcome-link:hover {
    text-decoration: none;
}

/* Peppiges Ozeanblau für Herzlich Willkommen */
.hero h1 {
    font-size: 1.65rem;
    font-weight: 500;
    color: #0369a1;
    margin: -120px;  
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.98), 0 2px 4px rgba(255, 255, 255, 0.95);
}

/* Kompakte Suchleiste direkt unter dem Banner */
.search-wrapper {
    padding: 0 20px;
    margin-top: -20px; /* Zieht die Suchleiste elegant auf die untere Bildkante */
    margin-bottom: 10px;
}

.search-box {
    display: flex;
    max-width: 400px; /* Deutlich kompakter als vorher */
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 6px 14px;
    font-size: 0.9rem;
    border-radius: 24px;
    background: transparent;
}

.search-box button {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-box button:hover {
    background-color: var(--accent-hover);
}



/* Kategorien & Kacheln */
main {
    padding: 40px 0 60px;
}

.category {
    margin-bottom: 24px;
}

.category h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-left: 30px;
    border-left: 4px solid var(--accent);
}

/* Bis zu 7 Kacheln in einer Zeile auf großen Bildschirmen (~28 % schmaler) */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-card);
    padding: 8px 8px; /* Etwas kompakteres Padding für schmalere Kacheln */
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    min-width: 0; /* Verhindert, dass lange Wörter das Raster sprengen */
}

.card:hoverXX {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: #bae6fd;
}

/* ~10 % mehr Fläche für das Icon (63x63px statt 60x60px) */
.card .icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    background-color: #f0f9ff;
    border-radius: 5px;
    flex-shrink: 0;
}

.card-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-text strong {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-text span {
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsives Verhalten bei schmaleren Fenstern entsprechend angepasst */
@media (max-width: 1250px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 950px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 650px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 450px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* Fußbereich (Footer) – optisch klar abgesetzt */
.footer {
    background-color: #e2e8f0; /* Deutlich abgesetztes, freundliches Blaugrau */
    border-top: 3px solid var(--accent); /* Klare Trennlinie in Deiner Akzentfarbe */
    padding: 20px 0 20px;
    margin-top: 12px;
    text-align: center;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.disclaimer {
    max-width: 90%;
    margin: 0 auto 12px;
    color: #475569;
    line-height: 1.6;
}

.footer-nav {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background-color: rgba(255, 255, 255, 0.65); /* Dezente helle Kapsel für die Links */
    padding: 8px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid #cbd5e1;
}

.footer-nav a {
    color: var(--accent-hover);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-nav span {
    color: #94a3b8;
}

.copyright {
    font-size: 0.84rem;
    color: #64748b;
}


/* ============================================================================================= */
/*  End of File -------------------------------------------------------------------------------- */
/* ============================================================================================= */
