/* LOKALE SCHRIFTART */
@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

:root {
    --primary-color: #2563eb;
    --bg-dark: #0f172a;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #94a3b8;
    --max-width: 1100px;
}

* {
    box-sizing: border-box;
}

body {
    padding-top: 140px; 
    padding-bottom: 100px;
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    padding: 0 20px;
}

/* HEADER BASIS */
.site-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: var(--max-width);
    height: 80px;
    background: var(--card-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    /* Dies drückt Logo (links) und Nav/Hamburger (rechts) auseinander */
    justify-content: space-between; 
    padding: 0 25px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    z-index: 1000;
}

.logo-area {
    display: flex;
    align-items: center;
}

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

/* NAVIGATION (DESKTOP) */
.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* HAMBURGER BUTTON */
.menu-toggle {
    display: none; /* Standardmäßig aus */
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-right: -10px; /* Optischer Ausgleich zum Rand */
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: 0.3s ease;
}

button.menu-toggle {
	margin-top: 0;
}

/* RESPONSIVE DESIGN (MOBILE) */
@media (max-width: 767px) {
    .site-header {
        justify-content: space-between; /* Zwingt Logo nach links, Hamburger nach rechts */
    }

    .menu-toggle {
        display: flex; /* Hamburger wird sichtbar */
		align-items: flex-end;
    }

    .nav-links {
        display: none; /* Versteckt normale Links im Header-Fluss */
        position: absolute;
        top: 90px; 
        left: 0;
        right: 0;
        width: 100%;
        background: var(--card-bg);
        flex-direction: column;
        padding: 25px;
        border-radius: 12px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        gap: 20px;
        text-align: center;
    }

    .nav-links.active {
        display: flex; /* Erscheint bei JS-Trigger */
    }

    /* Animation zum X */
    .menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

/* DASHBOARD GRID */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin-top: 30px;
    width: 100%;
}

@media (min-width: 768px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .tool-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; } }

.tool-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s;
}

.tool-card:hover { transform: translateY(-8px); }

.tool-icon {
    width: 80px; height: 80px;
    background: #f1f5f9;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    font-size: 2rem; font-weight: 800; color: var(--primary-color);
}

/* FOOTER */
.site-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 20px 10px;
    background: rgba(15, 23, 42, 0.95);
    color: var(--text-muted);
    font-size: 0.8rem;
    z-index: 900;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

.site-footer a { color: var(--text-muted); text-decoration: none; }