:root {
    --primary: #007bff;
    --bg: #f8f9fa;
    --text: #333;
    --border: #ddd;
    --maerchen: #f59e0b;
    --luege: #ef4444;
    --monolog: #8b5cf6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    padding: 20px;
    line-height: 1.5;
}

.main-container {
    max-width: 700px; /* Etwas breiter für die Kachel-Ansicht */
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

.subtitle {
    color: #64748b;
}

/* Kachel-Grid */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Basis-Karte (aus deinem Original übernommen) */
.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Spezifische Randfarben */
.border-maerchen { border-top: 6px solid var(--maerchen); }
.border-luege { border-top: 6px solid var(--luege); }
.border-monolog { border-top: 6px solid var(--monolog); }
.border-argument { border-top: 6px solid var(--primary); }

/* Badges */
.badge {
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 0px;
    align-self: flex-start;
}

.badge-maerchen { background: var(--maerchen); }
.badge-luege { background: var(--luege); }
.badge-monolog { background: var(--monolog); }
.badge-argument { background: var(--primary); }

/* Text-Inhalt der Kacheln */
.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

h3 {
    margin: 10px 0;
    color: var(--text);
}

.card p {
    font-size: 0.95rem;
    color: #64748b;
    flex-grow: 1;
}

.status-info {
    font-size: 0.8rem;
    color: #10b981;
    font-weight: bold;
    margin-top: 15px;
    text-transform: uppercase;
}

footer {
    margin-top: 50px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}