:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-dark: #0f172a;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Der Header bleibt oben fixiert */
header {
    flex-shrink: 0;
}

/* Der Container zentriert die Box stabil */
.container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Startet von oben für Stabilität */
    padding-top: 10vh; /* Immer 10% Abstand vom oberen Rand */
    padding-left: 20px;
    padding-right: 20px;
}

.card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
    min-height: 480px; /* Verhindert das Springen der Höhe bei Inhaltswechsel */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.tool-icon {
    width: 80px;
    height: 80px;
    background: #f1f5f9;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    flex-shrink: 0;
}

.tool-icon svg { width: 40px; height: 40px; fill: var(--primary-color); }

.icon-success { background: #dcfce7 !important; }
.icon-success svg { fill: #16a34a !important; }
.icon-error { background: #fee2e2 !important; }
.icon-error svg { fill: #dc2626 !important; }

h2 { margin: 0 0 20px 0; font-size: 1.5rem; color: var(--bg-dark); }

label {
    display: block;
    text-align: left;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

textarea, input[type="url"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    margin-bottom: 5px;
    font-family: inherit;
    resize: none;
}

select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background-color: #f8fafc;
    color: var(--text-main);
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

button {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: auto; /* Schiebt Buttons nach unten */
}

.copy-container {
    background: #f1f5f9;
    padding: 15px;
    border-radius: 12px;
    border: 1px dashed var(--primary-color);
    margin: 20px 0;
    cursor: pointer;
}

footer { flex-shrink: 0; padding: 20px; text-align: center; }
	
/* --- Dashboard Struktur --- */
.dashboard-body { 
    display: block !important; 
}

.dashboard-container {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.dashboard-grid {
    display: grid;
    /* ÄNDERUNG 1: Fest auf 2 Spalten, statt auto-fit (was mobil zu 1 Spalte führt) */
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px;
    margin-top: 50px;
    /* ÄNDERUNG 2: Mehr Abstand nach unten zum Footer */
    margin-bottom: 120px; 
    justify-content: center;
}

/* --- Kachel Design --- */
.tool-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 30px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #e2e8f0;
}

.tool-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.15);
}

.tool-icon-large {
    width: 80px;
    height: 80px;
    background: #f1f5f9;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary-color);
    transition: 0.3s;
}

.tool-card:hover .tool-icon-large {
    background: var(--primary-color);
    color: #ffffff;
}

.tool-icon-large svg {
    width: 40px;
    height: 40px;
}

.tool-card h3 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    color: var(--text-main);
    text-transform: uppercase; /* Einheitlicher Look */
}

.tool-card p {
    font-size: 0.95rem;
    color: #333;
    margin: 0;
}

/* --- Spezielle Mobil-Korrektur --- */
@media (max-width: 600px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Bleibt 2-spaltig */
        gap: 12px; /* Etwas weniger Abstand zwischen den Kacheln */
        margin-bottom: 150px !important; /* Sicherer Abstand zum Footer */
        padding: 0 10px;
    }

    .tool-card {
        padding: 20px 10px !important; /* Kompakteres Padding */
        min-height: 180px; /* Höhe etwas erhöht, damit Text und Untertitel Platz haben */
    }

    .tool-card h3 {
        font-size: 0.9rem !important; /* Haupttitel etwas kleiner */
        margin-top: 10px;
        margin-bottom: 4px;
    }

    .tool-card p {
        display: block !important; /* UNTERTITEL WIEDER ANZEIGEN */
        font-size: 0.75rem !important; /* Kleinere Schrift für den Untertitel */
        line-height: 1.3;
        color: var(--text-muted);
    }

    .tool-icon-large {
        width: 55px !important;
        height: 55px !important;
        margin-bottom: 12px !important;
    }

    .tool-icon-large svg {
        width: 28px !important;
        height: 28px !important;
    }
	
	.container{
		padding-top: 0vh;
	}
}