/* ---------------------------------
    Global Reset & Base
----------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body {
    height: 100%;
}

body {
    background: #f3f4f6;
    color: #1f2933;
    line-height: 1.6;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* ---------------------------------
    Header
----------------------------------- */
header {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 10px;
    background: linear-gradient(135deg, #1f2937, #4b5563);
    color: #f9fafb;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
    position: relative;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* optional: Unterzeile */
header p {
    margin-top: 8px;
    font-size: 1rem;
    opacity: 0.85;
}

/* ---------------------------------
    Container
----------------------------------- */
.container {
    max-width: 900px;
    margin: 30px auto 0 auto;
    padding: 0 10px;
}

/* ---------------------------------
    Cards / Boxen
----------------------------------- */
.card {
    background: #ffffff;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
    margin-bottom: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
}

.card h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #111827;
}

.card p {
    font-size: 1rem;
    opacity: 0.9;
}

/* ---------------------------------
    Buttons
----------------------------------- */
button,
.btn {
    display: inline-block;
    padding: 12px 22px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #ffffff;
    border-radius: 14px;
    text-decoration: none;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

button:hover,
.btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.4);
}

/* Sekundärer Button */
.btn-secondary {
    background: #e5e7eb;
    color: #111827;
    box-shadow: none;
}

.btn-secondary:hover {
    background: #d1d5db;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

/* ---------------------------------
    Formulare
----------------------------------- */
input[type="text"],
input[type="password"],
input[type="email"],
textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #f9fafb;
}

input:focus,
textarea:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* ---------------------------------
    Bilder – zentral & responsive
----------------------------------- */
img {
    display: block;                 /* nötig zum Zentrieren */
    margin: 20px auto;              /* zentriert horizontal */
    max-width: min(100%, 400px);    /* max. 400px breit, aber nie breiter als der Screen */
    height: auto;                   /* Proportionen beibehalten */
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
}

/* ---------------------------------
    Footer
----------------------------------- */
footer {
    margin-top: auto;
    padding: 18px 10px;
    text-align: center;
    font-size: 0.9rem;
    color: #e5e7eb;
    background: linear-gradient(135deg, #111827, #1f2937);
    border-radius: 0px 0px 20px 20px;
    box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.35);
}

/* ---------------------------------
    Responsive
----------------------------------- */
@media (max-width: 768px) {
    body {
        padding: 16px;
    }

    header {
        padding: 18px 10px;
    }

    header h1 {
        font-size: 2rem;
    }

    .card {
        padding: 20px;
    }

    button,
    .btn {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    header h1 {
        font-size: 1.7rem;
    }

    .card {
        padding: 18px;
    }
}



/* ----------------------------
    BURGER BUTTON
---------------------------- */
.burger {
    width: 35px;
    height: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: absolute;
    left: 20px;        
    top: 50%;          
    transform: translateY(-50%); 
    z-index: 200;
}

.burger span {
    display: block;
    height: 4px;
    width: 100%;
    background: #f9fafb;
    border-radius: 3px;
    transition: 0.3s ease;
}

/* Animation zum X */
.burger.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* ----------------------------
    MOBILE NAVIGATION
---------------------------- */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -250px;      /* Menü steht LINKS außerhalb */
    height: 100vh;
    width: 250px;
    background: #1f2937;
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: left 0.35s ease;   /* Animation über LEFT */
    z-index: 150;
}

.mobile-nav a {
    display: block;
    text-decoration: none;
    color: white;        /* Anpassen an dein Farbschema */
    font-size: 20px;
    text-align: center;
    padding: 8px 0;
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav li {
    margin: 10px 0;      /* Abstand zwischen den Punkten */
}



.mobile-nav.open {
    left: 0; /* Menü reinfahren */
}
