/* ==========================================================================
   COMPONENTS.CSS - Visuelle Bausteine, Karten, Buttons & Overlays
   ========================================================================== */

/* --- CTA BUTTONS --- */
.cta-btn {
    display: inline-block;
    background: transparent;
    color: #00f2ff;
    border: 2px solid #3b82f6;
    padding: 0.85rem 2.5rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.cta-btn:hover {
    background: linear-gradient(135deg, #00f2ff 0%, #3b82f6 100%);
    color: #020617;
    border-color: transparent;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.4);
    transform: translateY(-3px);
}

/* --- PORTRAIT / IMAGES --- */
.image-container-clean {
    position: relative;
    display: inline-block;
    width: 100%;
}

.web-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

/* --- TECH-STACK CARDS & TAGS --- */
.tech-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tech-card:hover {
    border-color: rgba(0, 242, 255, 0.2);
    background: rgba(15, 23, 42, 0.9);
}

.tech-card h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1.2rem;
    border-left: 3px solid #00f2ff;
    padding-left: 0.5rem;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tech-tag {
    background: rgba(2, 242, 255, 0.06);
    color: #00f2ff;
    border: 1px solid rgba(2, 242, 255, 0.15);
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: monospace;
    font-weight: 600;
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: rgba(2, 242, 255, 0.15);
    border-color: #00f2ff;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}

/* --- SERVICES CARDS (Mit Hintergrundbild-Overlays) --- */
.card {
    position: relative;
    background: #0f172a;
    padding: 3rem 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #00f2ff 0%, #3b82f6 100%);
    opacity: 0.4;
    transition: opacity 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 242, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0, 242, 255, 0.15);
}

.card:hover::before {
    opacity: 1;
}

.card-embedded {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%), url('/embedded.jpg') center/cover;
}

.card-embedded:hover {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.90) 100%), url('/embedded.jpg') center/cover;
}

.card-safety {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%), url('/safety.jpg') center/cover;
}

.card-safety:hover {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.90) 100%), url('/safety.jpg') center/cover;
}

.card-medtech {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%), url('/medtech.jpg') center/cover;
}

.card-medtech:hover {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.90) 100%), url('/medtech.jpg') center/cover;
}

.card-device {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%), url('/device.jpg') center/cover;
}

.card-device:hover {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.90) 100%), url('/device.jpg') center/cover;
}

.card-ai {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%), url('/KI.jpg') center/cover;
}

.card-ai:hover {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.90) 100%), url('/KI.jpg') center/cover;
}

.card-iot {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%), url('/iot.jpg') center/cover;
}

.card-iot:hover {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.90) 100%), url('/iot.jpg') center/cover;
}

.card h3 {
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    color: #f8fafc;
}

.card h3 span {
    background: linear-gradient(135deg, #00f2ff 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.3rem;
    font-family: monospace;
    font-weight: 700;
}

.card p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* --- CONTACT BOX --- */
.contact-box {
    background: linear-gradient(145deg, #0f172a, #020617);
    padding: 4rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.contact-box h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff 30%, #00f2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- MODAL POPUPS (Impressum / Datenschutz) --- */
.modal {
    display: none;
    /* Wird per JS zu 'flex' geändert */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.open {
    display: flex;
}

.modal-content {
    background-color: #0f172a;
    border: 1px solid rgba(0, 242, 255, 0.2);
    padding: 3rem 2rem;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    color: #94a3b8;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    text-align: left;
}

.modal-content h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: #94a3b8;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #00f2ff;
}

/* --- SCROLL-ANIMATIONEN --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- MODERN FOOTER DESIGN --- */
.main-footer {
    background: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 5rem 2rem 2rem;
    color: var(--text-muted);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand .logo {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.95rem;
    max-width: 320px;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links h4 {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s, transform 0.2s;
    display: inline-block;
    width: fit-content;
}

.footer-links a:hover {
    color: #00f2ff !important;
    transform: translateX(3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 4rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    text-align: center;
    font-size: 0.85rem;
}

/* --- SCREEN OPTIMIZATION / RESPONSIVENESS --- */
@media (max-width: 768px) {
    .web-image {
        height: 210px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: left;
    }

    .footer-links a:hover {
        transform: none;
    }
}