/* =========================
   BASE / RESET
========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden; /* 🚫 kein Scrollen */
    font-family: Arial, sans-serif;
    color: #f2f2f2;
    font-size: 18px;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================
   BURGER MENU
========================= */
.burger {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    z-index: 1200;
    transition: transform 0.3s ease;
}

.burger span {
    width: 35px;
    height: 4px;
    background: #f2f2f2;
    border-radius: 2px;
    transition: all 0.4s ease;
}

/* Hover Glow */
.burger:hover span {
    background: #ffffff;
    filter: drop-shadow(0 0 10px #ffffff);
}

/* Active State (X) */
.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Puls-Animation */
@keyframes pulse {
    0%   { transform: scale(1);   filter: drop-shadow(0 0 6px #fff); }
    50%  { transform: scale(1.05);filter: drop-shadow(0 0 16px #fff);}
    100% { transform: scale(1);   filter: drop-shadow(0 0 6px #fff); }
}

/* =========================
   SIDEBAR NAVIGATION
========================= */
#sidebar {
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    height: 100vh;
    background: rgba(25, 25, 25, 0.96);

    display: flex;
    flex-direction: column;
    justify-content: flex-start;   /* ⬆️ oben ausrichten */
    align-items: stretch;          /* volle Breite */

    padding-top: 4rem;
    transition: right 0.4s ease;
    z-index: 1100;
    overflow-y: auto;
}

#sidebar.active {
    right: 0;
}

#sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.0rem;
    width: 100%;
    padding: 0 2rem;   /* etwas Luft links/rechts */
    text-align: left;  /* wirkt wertiger & ruhiger */
}

#sidebar ul li a {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

#sidebar ul li a:hover {
    color: #ffffff;
    text-shadow: 0 0 14px rgba(255,255,255,0.9);
}

/* =========================
   HERO / BACKGROUND
========================= */
.hero {
    height: 100vh;
    background-image: url('../assets/background.jpg');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: scroll;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 0;
}

/* =========================
   BLUR BACKGROUND (Kontakt & Impressum)
========================= */
.blur-bg {
    position: fixed;
    inset: 0;
    background-image: url('../assets/background.jpg');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    filter: blur(8px) brightness(0.2);
    z-index: -1;
}

/* =========================
   CONTACT / IMPRESSUM
========================= */
.contact,
.impressum {
    height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    margin: 0 auto;
    max-width: 600px;
    font-size: 1.25rem;
    position: relative;
    z-index: 1;

    opacity: 0;
    transform: translateY(40px);
    animation: slideIn 1s ease-out forwards;
}

.impressum {
    font-size: 1.5rem;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   CONTACT FORM
========================= */
.contact form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.contact input,
.contact textarea {
    padding: 1rem 1.2rem;
    font-size: 1.1rem;
    border-radius: 6px;
    border: none;
    background: rgba(255,255,255,0.96);
    color: #000;
}

.contact textarea {
    min-height: 150px;
    resize: none;
}

.contact button {
    padding: 1rem;
    font-size: 1.2rem;
    background: #ffffff;
    color: #000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact button:hover {
    text-shadow: 0 0 12px rgba(255,255,255,0.9);
}

/* =========================
   OVERLAY (nur Tiefe)
========================= */
.overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: rgba(0,0,0,0.1);
}

/* =========================
   MOBILE PORTRAIT
========================= */
@media (max-width: 768px) and (orientation: portrait) {
    .hero,
    .blur-bg {
        background-size: 100% auto;
        background-position: top center;
        background-attachment: scroll;
    }

    .contact,
    .impressum {
        height: 100svh;
    }
}
