/* ========================================================================
   style.css — ausgelagerte und bereinigte Styles für index.html
   Inhalt & Layout unverändert, nur organisiert und kommentiert.
   Leg die Datei neben index.html ab: /your-site/style.css
   ======================================================================== */

/* ----------------- GLOBAL ----------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #0b0b0b url('img/bg-tech.png') center/cover no-repeat fixed;
    color: #e4e4e4;
    line-height: 1.6;
}

/* ----------------- SECTIONS ----------------- */
section {
    padding: 80px 20px;
    max-width: 1100px;
    margin: auto;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #aa0000;
}

p {
    margin-bottom: 20px;
    max-width: 900px;
}

/* ----------------- LOGO ----------------- */
.logo-fixed {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 1.4rem;
    font-weight: bold;
    color: #aa0000;
    z-index: 999;
    letter-spacing: 1px;
}

.logo-fixed img {
    width: 330px;
    height: auto;
    display: block;
}

/* ----------------- BURGER ----------------- */
.burger {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 23px;
    cursor: pointer;
    z-index: 1000;
}

.burger div {
    height: 4px;
    background: #aa0000;
    margin: 5px 0;
    transition: 0.3s;
}

/* ----------------- NAV (BURGER PANEL) ----------------- */
.nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 20%;
    height: 100%;
    background: rgba(15, 15, 15, 0.97);
    padding: 80px 40px;
    transition: 0.4s ease;
    z-index: 900;
}

.nav a {
    display: block;
    margin: 20px 0;
    color: #e4e4e4;
    text-decoration: none;
    font-size: 1.3rem;
}

.nav a:hover {
    color: #aa0000;
}

.nav.open {
    right: 0;
}

/* ----------------- HERO / INTRO ----------------- */
.hero {
    padding-top: 120px;
    text-align: left;
    max-width: 1000px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero p {
    font-size: 1.2rem;
    color: #cccccc;
}

/* ----------------- FULL-WIDTH IMAGE SECTIONS ----------------- */
.full-image {
    width: 100%;
    height: 520px;
    margin: 10px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

/* spezifische Regeln für sample3 */
.full-image--sample3 {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 560px;
}

/* ----------------- GALLERY ----------------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 60px;
}

.gallery-item {
    position: relative;
    height: 210px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    max-height: 100%;
    transition: transform 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.2);
}

.caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 8px 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.9rem;
}

/* ----------------- CONTACT ----------------- */
.contact {
    font-size: 1.2rem;
}

.contact a {
    color: #aa0000;
    text-decoration: none;
}

.contact a:hover {
    text-decoration: underline;
}

/* ----------------- FOOTER ----------------- */
footer {
    text-align: center;
    padding: 40px;
    font-size: 0.9rem;
    color: #888;
}

footer a {
    color: #aa0000;
    text-decoration: none;
}

/* ----------------- RESPONSIVE ----------------- */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .nav {
        width: 80%;
    }

    .logo-fixed img {
        width: 240px;
    }
}

/* ----------------- CONTACT OVERLAY (beibehaltener Stil) ----------------- */
.contact-section {
    position: relative;
    height: 540px;
    margin: 10px 0;
}

.contact-section .full-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    z-index: 1;
}

.contact-overlay {
    position: relative;
    z-index: 2;
    padding: 130px 20px;
    max-width: 1100px;
    margin: auto;
    color: #363636;
}
