/* ===== Global ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    background: #f8f8f8;
    color: #111;
    line-height: 1.6;
}

/* ===== Header ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

header nav a {
    margin-left: 30px;
    text-decoration: none;
    color: #111;
    font-weight: 500;
    transition: color 0.3s;
}

header nav a:hover {
    color: #007aff;
}

.logo {
    height: 60px;
}

@media (max-width: 768px) {
    .logo {
        height: 45px;
    }
    header {
        padding: 15px 20px;
    }
}

/* ===== Hero Section ===== */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: url('images/hero-bg.jpg') center/cover no-repeat;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
}

/* ===== Technik Section ===== */
.technik {
    text-align: center;
    padding: 60px 20px;
}

.technik h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.cards-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.card {
    width: 220px;
    height: 300px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.card img {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.9rem;
    color: #333;
    opacity: 0;
    transition: opacity 0.3s;
    text-align: center;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.card:hover p {
    opacity: 1;
}

/* ===== Portfolio Section ===== */
.portfolio-page { padding: 60px 20px; }
.portfolio-intro { max-width:800px; margin:0 auto 60px auto; text-align:center; }

.portfolio-grid-container { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:20px; }
.portfolio-card { position:relative; border-radius:20px; overflow:hidden; cursor:pointer; box-shadow:0 8px 20px rgba(0,0,0,0.1); transition:transform 0.3s, box-shadow 0.3s; }
.portfolio-card img { width:100%; display:block; }
.portfolio-card:hover { transform:translateY(-5px); box-shadow:0 12px 30px rgba(0,0,0,0.2); }
.portfolio-overlay { position:absolute; bottom:0; width:100%; background:rgba(0,0,0,0.6); color:#fff; padding:10px; text-align:center; font-weight:600; }

/* Lightbox */
.lightbox { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.8); justify-content:center; align-items:center; flex-direction:column; z-index:1000; display:none; }
.lightbox-img { max-width:90%; max-height:70%; border-radius:15px; margin-bottom:20px; }
.lightbox-caption { color:#fff; text-align:center; font-size:1.1rem; max-width:80%; }
.close { position:absolute; top:20px; right:40px; color:#fff; font-size:2rem; cursor:pointer; }

/* ===== About / Contact / Impressum Sections ===== */
.about-section,
.contact-section {
    display: flex;
    justify-content: center;
    padding: 80px 20px;
}

.glass-box {
    max-width: 700px;
    width: 100%;
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Contact Formular */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px 20px;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    outline: none;
    background: rgba(255,255,255,0.6);
    transition: background 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: rgba(255,255,255,0.85);
}

.contact-form button {
    padding: 15px;
    border: none;
    border-radius: 20px;
    font-size: 1.1rem;
    cursor: pointer;
    background: #007aff;
    color: white;
    transition: background 0.3s, transform 0.3s;
}

.contact-form button:hover {
    background: #005bb5;
    transform: translateY(-3px);
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 30px 20px;
    background: #111;
    color: #fff;
    font-size: 0.9rem;
}