/* Basis-Resets */
* {
    box-sizing: border-box;
}

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

/* Höhe von Header & Footer zentral definieren */
:root {
    --header-height: 80px;
    --footer-height: 60px;
    --bg-body: #343232;
    --bg-header: #150f0f;
    --bg-footer: #150f0f;
    --fg-header: #a19e9e;
    --fg-footer: #a19e9e;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-body);
    color: var(--fg-header);
}


/* Layout: Header & Footer fix, Main scrollt dahinter */
.site-header,
.site-footer {
    left: 0;
    right: 0;
    z-index: 10; /* immer über dem Inhalt */
    background: var(--bg-header);
    color: var(--fg-footer);
}

/* Header oben */
.site-header {
    position: fixed !important;
    top: 0;
    height: var(--header-height);
    border-bottom: 1px solid #ddd;
}

/* Footer unten */
.site-footer {
    position: fixed !important;
    bottom: 0;
    height: var(--footer-height);
    border-top: 1px solid #ddd;
}

/* Innenabstand im Header/Footer, damit Inhalt nicht klebt */
.header-inner,
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

/* Main-Bereich: hat oben/unten Platz für Header/Footer */
.site-main {
    padding-top: var(--header-height);
    padding-bottom: var(--footer-height);
    min-height:100vh; /* Basis für alle Seiten */
}

.site-header h1
{
    color: var(--fg-footer);
    text-decoration: none;
}

.menu-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .menu-btn .burger {
        display: block;
        width: 24px;
        height: 2px;
        background: #fff; /* Linienfarbe */
        position: relative;
    }

        .menu-btn .burger::before,
        .menu-btn .burger::after {
            content: "";
            position: absolute;
            left: 0;
            width: 24px;
            height: 2px;
            background: #fff;
            transition: transform .3s ease;
        }

        .menu-btn .burger::before {
            top: -7px; /* obere Linie */
        }

        .menu-btn .burger::after {
            top: 7px; /* untere Linie */
        }

.drawer {
    position: fixed;
    z-index:20;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(90vw, 340px);
    max-width: 100%;
    background: #fff;
    color: #111;
    box-shadow: -12px 0 28px rgba(0,0,0,.35);
    transform: translateX(100%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
}

    .drawer header {
        background: #fff;
        color: #111;
        border-bottom: 1px solid #eee;
        padding: 1rem;
        justify-content: space-between;
    }

        .drawer header h2 {
            font-size: 1.1rem;
            font-weight: 700;
        }

.close-btn {
    background: transparent;
    border: 0;
    font-size: 1.25rem;
    cursor: pointer;
    padding: .25rem .5rem;
}

.drawer nav {
    padding: .75rem 1rem 1rem;
}

.drawer a {
    display: block;
    padding: .625rem .5rem;
    border-radius: .5rem;
    color: #111;
    text-decoration: none;
}

    .drawer a:hover {
        background: #f2f2f2;
    }

/* Offen-Status */
.drawer.open {
    transform: translateX(0);
}

.overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* Animations-Respekt */
@media (prefers-reduced-motion: reduce) {
    .drawer, .overlay {
        transition: none;
    }
}

/* --------------------------- MAIN PAGE ------------------------------*/
/* Nur auf der Startseite (body class="home") soll der sichtbare Bereich
   exakt zwischen Header & Footer liegen */
body.home .site-main {
  /*  min-height: calc(100vh - var(--header-height) - var(--footer-height));*/
}

/* Wrapper für das Bild in der Main */
.home-hero {
    /* min-height: calc(100vh - var(--header-height)); */
    height: 80vh;
    display: flex;
    padding: var(--footer-height);
    align-items: center; /* vertikal mittig */
    justify-content: center; /* horizontal mittig */
  /*  padding: 0; /* kleiner Abstand zu Header/Footer */
 
}

    /* Bild selbst: komplett sichtbar, ohne abgeschnitten zu werden */
    .home-hero img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain; /* Bild wird komplett skaliert, ohne Beschnitt */
        display: block;
    }

/* ------------------------------------------------------------------------- */
footer a, header a, a.mail {
    color: #ccc; /* weiß */
    text-decoration: none; /* optional: Unterstreichung weg */
}

    footer a:hover,
    footer a:visited,
    footer a:active, header a:hover, header a:visited, header a:active, a.mail:hover, a.mail:visited, a.mail:active {
        color: #ccc; /* bleibt weiß in allen Zuständen */
    }

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #555;
    border-radius: 6px;
    background: #1a1a1a;
    color: #eee;
    font-size: 1rem;
}

    .contact-form input:focus,
    .contact-form textarea:focus {
        border-color: #70b5ff;
        outline: none;
    }

.contact-form button {
    background: #70b5ff;
    color: #111;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

    .contact-form button:hover {
        background: #559adf;
    }

section {
    margin-top: 20px;
}

h2 {
    margin-top: 20px;
}

.app-grid {
    display: grid;
    margin-top: 30px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.app-card {
    background: #222;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform .2s ease;
}

    .app-card:hover {
        transform: translateY(-5px);
    }

.app-image {
    width: 100%;
    height: auto;
    margin: 0 auto 1rem;
    border-radius: 24px;
    object-fit: cover;
    background: #fff;
}

.app-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #eee;
    text-align: center;
}

.app-card .btn {
    display: inline-block;
    background-color: #f52768;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    font-family: sans-serif;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

    .app-card .btn:hover {
        background-color: #bd1e65;
    }