@charset "utf-8";

/* ========================================
   1. FONT DEFINITION & GLOBAL STYLES
   ========================================
*/


@font-face {
    font-family: 'Madras Extra Bold Italic';
    src:url('Fonts/MadrasExtra.otf') format('opentype');
    font-weight: 800;
    font-style: italic;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Madras Extra Bold Italic", sans-serif; 
    background-color: #feffff;
    color: #333333;
}

/* ========================================
   2. LAYOUT & SEKTIONEN
   ========================================
*/

header, main, footer {
    position: relative;
    z-index: 1; /* Stellt sicher, dass der Inhalt über dem Hintergrundlogo liegt */
    width: 100%;
}

header {
    text-align: center;
    padding: 2rem 1rem 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

header img {
    max-width: 320px;
    height: auto;
    vertical-align: middle;
}

nav {
    padding: 0.5rem 1rem;
}

section {
    padding: 4rem 2rem;
    max-width: 900px;
    margin: auto;
}

footer {
    text-align: center;
    padding: 1.5rem;
    margin-top: 4rem;
}

.background-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
    z-index: 0;
    width: 90%;
    max-width: 700px;
    height: auto;
    pointer-events: none;
}

/* ========================================
   3. TYPOGRAFIE & TEXTELEMENTE
   ========================================
*/

h1, h2 {
    color: #0d7ebb;
    text-align: center;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

nav ul {
    list-style-type: none;
    text-align: center;
}

nav a {
    color: #0d7ebb;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: block;
    padding: 0.5rem;
    transition: color 0.2s ease-in-out;
}

nav a:hover {
    color: #25d2e0;
}

/* ========================================
   4. FORMULAR
   ========================================
*/

form {
    display: flex;
    flex-direction: column;
    text-align: left;
}

label {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

input, textarea {
    margin-bottom: 1rem;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 15px;
    font-family: sans-serif;
}

button {
    padding: 0.8rem;
    background-color: #0d7ebb;
    color: #feffff;
    border: none;
    cursor: pointer;
    border-radius: 15px;
    font-size: 1rem;
    margin-top: 0.5rem;
    font-weight: 600;
    transition: background-color 0.2s ease-in-out;
}

button:hover {
    background-color: #25d2e0;
}

/* ========================================
   5. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================
*/

/* Tablet & grösser (ab 768px) */
@media (min-width: 768px) {
    nav ul {
        display: flex;
        justify-content: center;
        gap: 2rem;
    }

    nav a {
        display: inline-block;
    }
}

/* Desktop (ab 1024px) */
@media (min-width: 1024px) {
    /* Layout für Header anpassen */
    header {
        display: flex; /* Aktiviert Flexbox */
        justify-content: space-between; /* Schiebt Logo nach links und Nav nach rechts */
        align-items: center; /* Zentriert beide Elemente vertikal */
        padding: 1rem 3rem; /* Passt Innenabstand für horizontale Ansicht an */
    }

    nav {
        padding: 0; /* Entfernt den überflüssigen Innenabstand vom Nav-Container */
    }
    
    h1 {
        font-size: 3.5rem;
    }
}