:root {
    --tas-red: #e2001a;
    --text-color: #222;
    --max-width: 800px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

a {
    color: var(--tas-red);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

/* Startseite */
.start {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    gap: 32px;
}

.logo-start {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.start-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    font-size: 1.1rem;
}

/* Header auf Unterseiten */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid #eee;
}

.logo-link {
    display: inline-block;
}

.logo-small {
    display: block;
    height: 48px;
    width: auto;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 1rem;
}

.site-nav a.active {
    text-decoration: underline;
    font-weight: bold;
}

/* Inhalt */
.content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.content h1 {
    font-size: 1.8rem;
    margin-top: 0;
}

.content h2 {
    font-size: 1.3rem;
    margin-top: 2em;
}

.content h3 {
    font-size: 1.1rem;
    margin-top: 1.5em;
}

.content h4 {
    font-size: 1rem;
    margin-top: 1.2em;
}

@media (max-width: 480px) {
    .site-header {
        justify-content: center;
        text-align: center;
    }

    .logo-small {
        height: 40px;
    }

    .content {
        padding: 16px;
    }

    .content h1 {
        font-size: 1.5rem;
    }
}
