/**
 * TycoSim v0.3 - Base Styles
 * Reset, Body, Typography, Focus Styles
 */

/* Reset / Normalisierung */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

/* Body - OHNE Flex-Center (wird nur in pages/auth.css hinzugefügt) */
body {
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    line-height: var(--line-height-normal);
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: var(--space-3);
    line-height: var(--line-height-tight);
    font-weight: 600;
}

h1 {
    font-size: var(--font-size-xl);
}

h2 {
    font-size: var(--font-size-lg);
}

h3 {
    font-size: var(--font-size-md);
}

h4,
h5,
h6 {
    font-size: var(--font-size-base);
}

p {
    margin-top: 0;
    margin-bottom: var(--space-4);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--success);
}

/* Focus Styles - sichtbarer und konsistenter Fokus */
:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    padding: var(--space-5);
    margin: 0 auto;
}

/* App Content (für Navbar/Footer Spacing) */
#app-content {
    margin-top: 80px;
    /* Space for fixed navbar */
    margin-bottom: 60px;
    /* Space for fixed footer */
    width: 100%;
}