/* --- Schriften & Grund-Setup --- */
@font-face {
  font-display: swap; 
  font-family: 'Oxanium';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/oxanium-v20-latin-regular.woff2') format('woff2'); 
}
@font-face {
  font-display: swap; 
  font-family: 'Oxanium';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/oxanium-v20-latin-700.woff2') format('woff2'); 
}

html {
    overflow-y: scroll;
}

:root {
    --primary-color: #0C529E;
    --text-color: #020A0A;
    --background-color: #f8f9fa;
    --container-bg: #ffffff;
    --border-color: #dee2e6;
}

body {
    font-family: 'Oxanium', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* --- Layout-Container --- */
.container {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 140px;
    margin-bottom: 100px;
    padding: 2rem;
    background-color: var(--container-bg);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* --- Header & Logo --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background-color: var(--container-bg);
    border-bottom: 2px solid var(--primary-color);
    padding: 1.5rem 0;
}

.logo a {
    display: block;
    width: 300px;
    height: 100px;
    background-image: url('logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto; 
}

/* --- Hauptinhalt & Überschriften --- */


hr {
    border: none;
    border-top: 2px solid var(--primary-color);
    margin: 2rem 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h1 { font-size: 1.5em; margin-top: 0; }
h2 { font-size: 1.3em; }
h3 { font-size: 1.15em; }
h4 { font-size: 1em; }
h5 { font-size: 0.9em; }
h6 { font-size: 0.8em; }

/* --- Footer & Navigation --- */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--container-bg);
    text-align: center;
    padding-top: 1rem; 
    border-top: 2px solid var(--primary-color);
    font-size: 0.9em;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

footer ul {
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
}

footer ul li {
    margin: 5px 15px; 
}

footer ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.2s;
}

footer ul li a:hover {
    color: var(--primary-color);
}

/* --- Formulare & Nachrichten --- */
form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 600px;
    margin: 2rem auto;
}

form label {
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1em;
    font-family: 'Oxanium', sans-serif;
    box-sizing: border-box; 
}

button {
    width: 100%;
    margin-top: 1.5rem;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #004494;
}

.form-heading {
    text-align: center;
}

/* --- NEU: Stil für den Datenschutzhinweis --- */
.privacy-notice {
    font-size: 0.8em;
    color: #6c757d;
    text-align: center;
    margin-top: 1rem;
}

.flash-container {
    margin-top: 1.5rem;
}

.flash {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}
.flash.success {
    background-color: #d4edda;
    color: #155724;
}
.flash.danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* --- Regeln für mobile Geräte (Responsive Design) --- */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 1rem;
        margin-top: 110px; 
    }
    
    header {
        padding: 1rem 0;
    }

    .logo a {
        width: 200px;
        height: 67px;
    }

    h1 {
        font-size: 1.8em;
    }

    footer ul {
        margin-bottom: 0.5rem;
    }

    footer ul li {
        margin: 5px 8px;
    }
}
