/* ---------------------------------------------------------
   BASE
--------------------------------------------------------- */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* Einheitliche Max-Breite aller Seiten */
.page-container,
main {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

/* Default typography inside <main> (legal pages) */
main {
    font-size: 14px;
    line-height: 1.5;
}

/* ---------------------------------------------------------
   HEADINGS
--------------------------------------------------------- */

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}

h2 {
    color: #34495e;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Legal pages: unified smaller headings */
main h1 { font-size: 1.6em; }
main h2 { font-size: 1.3em; }

/* ---------------------------------------------------------
   FOOTER (Shared)
--------------------------------------------------------- */

.footer-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 34px;
}

.footer-back {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #4CAF50;
    text-decoration: none;
}

.footer-back:hover {
    text-decoration: underline;
}

.site-footer {
    width: 100%;
    max-width: 600px;
    margin: 18px auto 0 auto;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.site-footer .footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
}

.site-footer .footer-nav a {
    font-size: 12px;
    color: #666;
    text-decoration: none;
}

.site-footer .footer-nav a:hover {
    color: #333;
    text-decoration: underline;
}

.site-footer .footer-meta {
    margin-top: 10px;
    text-align: center;
    font-size: 11px;
    color: #999;
    line-height: 1.4;
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 600px) {
    body {
        padding: 15px;
    }

    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.3em;
    }
}

/* ---------------------------------------------------------
   LANDING PAGE (index.html)
   - Required because public/.htaccess enforces a CSP that blocks inline <style>
--------------------------------------------------------- */

body.landing {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    width: 100%;
    padding: 0 20px;
    background: #fff;
}

body.landing .page-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
}

body.landing h1 {
    margin-bottom: 6px;
}

body.landing h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.landing-spacer {
    margin: 0;
    height: 14px;
}

body.landing .site-footer {
    width: 100%;
    max-width: 700px;
}
