/* #region General Reset */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    color: var(--text);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    overflow-x: clip;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    background: linear-gradient(135deg, var(--gradientTop), var(--gradientbottom));
    background-attachment: fixed;
}
/* #endregion */
/* #region Header & Hero */
header {
    width: 100%;
    background-color: var(--headerBgnd);
    display: flex;
    justify-content: center;
}

header .profile-container {
    width: 100%;
    position: relative; /* Wichtig für die Positionierung des Buttons */
    display: inline-block;
}

header img.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero-button {
    position: absolute;
    top: 50%; /* Vertikale Position */
    left: 10%; /* Horizontale Position */
    background-color: #3d405b;
    color: white;
    padding: 15px 40px; /* Etwas schmaler für bessere Optik */
    text-decoration: none;
    text-transform: uppercase; /* Capital schrift bei Button */
    border-radius: 8px;
    width: fit-content;
    font-size: 25px;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 10;
}

.hero-button:hover {
    background-color: var(--hover);
    transform: translateY(-2px);
}


/* #region STICKY NAVIGATION (Desktop & Mobile) */
nav {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(253, 251, 249, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px var(--boxShadow);
    padding: 15px 0;
    text-align: center;
    z-index: 1000;
}
nav a {
    text-decoration: none;
    margin: 0 15px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    display: inline-block;
}

nav a:hover {
    color: var(--hover);
}
/* #endregion */

/* #hide hamburger side mobile */
#hamburger, #menu {
    display: none;
}
/* #endregion */

/* #region Content Sections */
section {
    max-width: 900px;
    margin: 30px auto;
    background: var(--sectionBgnd);
    border-radius: 20px;
    width: calc(100% - 40px);
    box-shadow: 0 10px 30px var(--boxShadow);
    padding: 40px;
    cursor: pointer;
    transition: transform 0.2s ease;
    scroll-margin-top: 100px; /* Platz für sticky nav beim Scrollen */
}

section h2 {
    font-size: 1.8rem;
        text-align: center;

    margin-bottom: 15px;
    color: var(--text);
}

.intro {
    display: grid;
    grid-template-columns: 3fr 1fr; 
    align-items: center;
}

.intro span{
    margin: auto;
}
.intro .icon {
    font-size: 3rem;
    color: var(--text);
    margin-left: auto;
    margin-top: auto;
    line-height: 0;
}


/* Logic for JS Toggles */
.container, .containerGrid { display: none; }
.notShow { display: none; }
.showGrid { display: grid; animation: fadeIn 0.4s ease forwards; }
.show { display: block; animation: fadeIn 0.4s ease forwards; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* #region Buttons */
#kontakt, #leistung {
    display: inline-block;
    background: var(--button);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 20px;
    transition: background 0.3s ease;
}

#kontakt:hover, #leistung:hover {
    background: var(--hover);
}
/* #endregion */

/* Wenn das Menü die Klasse .show bekommt (durch JS) */
#menu.show {
    display: flex;
    text-align: center;
}

#menu {
    display: none;
    list-style: none;
    padding: 10px;
    flex-direction: column;
    position: fixed;
    max-width: 200px;
    width: 50%;
    min-width: min-content;
    height: 100%;
    background-color: var(--theme);
    box-shadow: 0 2px 10px var(--boxShadow);
    z-index: 10;
    flex-wrap: wrap;
    justify-content: center;
}
#menu a {
    text-decoration: none;
    color: black;
    padding: 10px;
    font-size: 1em;
    display: block;
}
#menu li{
    margin: 5px;
}
#hamburger span {
    width: 30px;
    height: 5px;
    background-color: var(--text);
    border-radius: 2px;
}

.impressum-card h1{
    text-align: center;
    padding-bottom: 40px;
}
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* #region Media Queries */
@media (max-width: 1000px) {
    #hamburger {
        display: flex; /* Hamburger anzeigen */
        flex-direction: column;
        justify-content: space-around;
        width: 25px;
        height: 25px;
        position: fixed;
        top: 15px;
        left: 15px; /* Position auf der linken Seite */
        z-index: 10001;
        cursor: pointer;
    }
    #menu {
        top: 0;
    }
    #menu a {
        font-size: 1.2em;
    }
    /* Die normale Navigationsleiste oben auf Mobile eventuell ausblenden */
    nav {
        display: none !important;
    }
    .intro {
        grid-template-columns: 1fr;
        gap: 10px;
    
    }
    .intro .icon {
        display: inline-block;
        font-size: 3rem;
        margin-left: auto;
        line-height: 1;
        transform: rotate(90deg);
        transform-origin: center;
    }
    .hero-button {
        position: absolute;
        top: 50%; /* Vertikale Position */
        left: 10%; /* Horizontale Position */
        background-color: #3d405b;
        color: white;
        padding: 15px 10px; /* Etwas schmaler für bessere Optik */
        text-decoration: none;
        text-transform: uppercase; /* Capital schrift bei Button */
        border-radius: 8px;
        width: fit-content;
        font-size: 12px;
        transition: background 0.3s ease, transform 0.2s ease;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        z-index: 10;
    }
}
/* #endregion */