/* 
================================================================
    ELEKTROTECHNIK CEDRIK STIEGEMANN - STYLESHEET
================================================================
*/

/* ===== 1. VARIABLEN & RESET ===== */
:root {
    --primary: #004aad;
    --primary-dark: #003080;
    --primary-light: #0066ff;
    --accent: #f39c12;
    --accent-dark: #d68910;
    --text: #1a1a2e;
    --text-light: #6b7280;
    --bg-light: #f8faff;
    --bg-white: #ffffff;
    --border: #e5e7eb;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --transition: all 0.3s ease;
}

*, *::before, *::after { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: 'Inter', Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bg-white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== 2. ALLGEMEINE LAYOUT-ELEMENTE ===== */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 2rem; 
}

.section { 
    padding: 5rem 0; 
}

.section-light { 
    background: var(--bg-light); 
}

.section-header { 
    text-align: center; 
    margin-bottom: 3.5rem; 
}

.section-tag {
    display: inline-block;
    background: rgba(0,74,173,0.1);
    color: var(--primary);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Animationen für Fade-In Effekte */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,74,173,0.3);
}

.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 30px rgba(0,74,173,0.4); 
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
}

.btn-secondary:hover { 
    background: #fff; 
    color: var(--primary); 
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px rgba(243,156,18,0.35);
}

.btn-accent:hover { 
    background: var(--accent-dark); 
    transform: translateY(-2px); 
}

/* ===== 3. NAVIGATION ===== */
nav {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo img { 
    height: 60px; 
    width: auto; 
    transition: transform 0.3s; 
}

.logo img:hover { 
    transform: scale(1.04); 
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.nav-links a {
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
    transition: var(--transition);
}

.nav-links a:hover, 
.nav-links a[aria-current="page"] {
    background: rgba(0,74,173,0.08);
    color: var(--primary);
}

.nav-links .nav-cta {
    background: var(--gradient);
    color: #fff !important;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    margin-left: 0.5rem;
}

.nav-links .nav-cta:hover { 
    opacity: 0.9; 
    transform: translateY(-1px); 
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    border: none;
    background: none;
}

.mobile-menu span {
    width: 24px; 
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
    display: block;
}

.mobile-menu.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu.active span:nth-child(2) { opacity: 0; }
.mobile-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* 4. HIRING BANNER */
#hiringBanner {
    position: fixed;
    right: 0;
    bottom: 120px;
    z-index: 9999;
    display: grid !important;
    grid-template-columns: auto auto;
    grid-auto-flow: column;
    align-items: center;
    justify-content: end;
    pointer-events: none;
    animation: hiringSlideIn 0.7s cubic-bezier(0.175,0.885,0.32,1.275) forwards;
}

#hiringTab {
    grid-column: 1;
    position: relative;
    pointer-events: auto;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #fff;
    writing-mode: vertical-rl;
    -webkit-writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    padding: 1.4rem 0.65rem;
    width: 44px;
    min-width: 44px;
    height: 180px;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 2px;
    user-select: none;
    white-space: nowrap;
    animation: hiringGlow 4s ease-in-out infinite;
    overflow: hidden;
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

#hiringTab::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: rgba(255,255,255,0.25);
    transform: skewY(-15deg);
    animation: shimmer 2.5s ease-in-out infinite;
}

.hiring-icon {
    display: inline-block;
    transform: rotate(90deg);
    margin-bottom: 0.2rem;
}

#hiringPanel {
    grid-column: 2;
    display: none;
    pointer-events: auto;
    flex-direction: column;
    gap: 0.85rem;
    background: linear-gradient(160deg, #004aad 0%, #0057cc 60%, #003d94 100%);
    color: #fff;
    padding: 1.5rem 1.3rem;
    width: 280px;
    min-width: 280px;
    border-radius: 0;
    box-shadow: -8px 0 40px rgba(0,0,0,0.35);
    border-left: 4px solid #f39c12;
    position: relative;
    overflow: hidden;
}

/* Fix für sehr schmale Handys (iPhone SE etc.) */
@media (max-width: 360px) {
    #hiringPanel {
        width: 240px;
        min-width: 240px;
        padding: 1rem;
    }
    #hiringTab {
        width: 40px;
        min-width: 40px;
        height: 160px;
    }
}

.hiring-panel-badge {
    display: inline-block;
    background: #f39c12;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    width: fit-content;
}

.hiring-panel-title {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.3;
}

.hiring-panel-title span { color: #f39c12; }

.hiring-panel-jobs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.hiring-panel-jobs li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    background: rgba(255,255,255,0.08);
    padding: 0.45rem 0.7rem;
    border-radius: 8px;
    border-left: 3px solid #f39c12;
}

.hiring-panel-meta { font-size: 0.78rem; opacity: 0.75; }

.hiring-panel-cta {
    display: block;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff !important;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.95rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(243,156,18,0.5);
    transition: var(--transition);
}

.hiring-panel-close {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 0.4rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.78rem;
    width: 100%;
}

/* ===== 5. HERO SEKTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #001a40;
}
@supports (min-height: 100dvh) { .hero { min-height: 100dvh; } }

.hero video, .hero .video-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.55;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,26,64,0.85) 0%, rgba(0,74,173,0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    color: #fff;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    max-width: 750px;
}

.hero h1 span { color: #f9c74f; }

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.9;
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-actions { 
    display: flex; 
    gap: 1rem; 
    flex-wrap: wrap; 
    margin-bottom: 3rem; 
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.hero-stat .num {
    font-size: 2rem;
    font-weight: 800;
    color: #f9c74f;
    display: block;
}

.hero-stat .label { font-size: 0.8rem; opacity: 0.8; }

/* ===== 6. LEISTUNGEN (SERVICES) ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover { 
    transform: translateY(-6px); 
    box-shadow: var(--shadow-lg); 
    border-color: transparent; 
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 60px; height: 60px;
    background: rgba(0,74,173,0.08);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
}

.service-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; }
.service-card p { color: var(--text-light); font-size: 0.92rem; line-height: 1.7; }

/* ===== 7. ÜBER UNS (ABOUT) ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
}

.about-image img { 
    border-radius: var(--radius-lg); 
    width: 100%; 
    height: 450px; 
    object-fit: cover; 
    box-shadow: var(--shadow-lg); 
}

.about-badge-float {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background: var(--gradient);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.about-badge-float .big-num { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.about-badge-float .small-text { font-size: 0.78rem; opacity: 0.85; }

.trust-items { display: flex; flex-direction: column; gap: 0.75rem; margin: 1.5rem 0; }
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.92rem;
    font-weight: 500;
}

/* ===== 8. PROJEKTE & SLIDER ===== */
.projects-wrapper { 
    position: relative; 
    overflow: hidden; 
    width: 100%;
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.project-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 280px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.project-card:hover { 
    transform: translateY(-6px); 
    box-shadow: var(--shadow-lg); 
}

/* Projekt Slider Styles */
.project-slider {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-slides {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.project-slides img {
    min-width: 100%;
    width: 100%;
    object-fit: cover;
    height: 100%;
}

.project-slider .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px; height: 32px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-slider .slider-btn.prev { left: 10px; }
.project-slider .slider-btn.next { right: 10px; }

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.slider-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.slider-dot.active { background: white; }

.project-tag {
    position: absolute;
    top: 1rem; left: 1rem;
    background: var(--gradient);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 5;
}

.project-content { padding: 1.5rem; }
.project-content h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.project-content p { color: var(--text-light); font-size: 0.88rem; }

/* ===== 9. PV KONFIGURATOR SEKTION ===== */
.pv-inner { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 3rem; 
    align-items: center; 
}

.reonic-container {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    position: relative;
    width: 100%;
    align-self: start;
    height: 720px; /* Mittelding für PC: Alles sichtbar, kein großer Balken */
    overflow: hidden;
}

#reonic-widget {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .pv-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .reonic-container {
        height: auto !important; /* Auf dem Handy flexibel bleiben */
        min-height: 850px;
    }
}

.pv-info h3 { 
    font-size: 1.6rem; 
    font-weight: 800; 
    margin-bottom: 2rem; 
    color: var(--text);
}

.pv-fact { 
    display: flex; 
    gap: 1.25rem; 
    align-items: flex-start; 
    margin-bottom: 2rem; /* Mehr Platz zwischen den Blöcken */
}

.pv-fact-icon { 
    font-size: 1.8rem; 
    flex-shrink: 0; 
    line-height: 1;
    margin-top: 0.2rem;
}

.pv-fact strong { 
    display: block; 
    font-size: 1.05rem; 
    font-weight: 700;
    margin-bottom: 0.4rem; /* Mehr Platz zum Beschreibungstext */
    color: var(--text);
}

.pv-fact small { 
    display: block;
    color: var(--text-light); 
    font-size: 0.92rem; 
    line-height: 1.5;
}

.pv-info .btn-primary {
    margin-top: 1.5rem !important;
}

/* ===== 10. KARRIERE (JOBS & BENEFITS) ===== */
.karriere-hero { 
    background: var(--gradient); 
    color: #fff; 
    border-radius: var(--radius-lg); 
    padding: 3rem; 
    margin-bottom: 3rem; 
    text-align: center;
}

.jobs-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 1.5rem; 
    margin-bottom: 3rem;
}

.job-card { 
    background: var(--bg-white); 
    border: 2px solid var(--border); 
    border-radius: var(--radius-lg); 
    padding: 1.75rem; 
    transition: var(--transition); 
}

.job-card:hover { 
    box-shadow: var(--shadow-md); 
    border-color: var(--primary); 
    transform: translateY(-4px); 
}

.job-header { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    margin-bottom: 1.25rem; 
}

.job-icon { 
    width: 50px; 
    height: 50px; 
    background: rgba(0,74,173,0.08); 
    border-radius: var(--radius); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.5rem; 
    flex-shrink: 0; 
}

.job-header h3 { 
    font-size: 1rem; 
    font-weight: 700; 
    margin: 0;
}

.job-type { 
    font-size: 0.8rem; 
    color: var(--accent); 
    font-weight: 600; 
}

.job-tasks { 
    list-style: none; 
    margin-bottom: 1.25rem; 
    padding: 0;
}

.job-tasks li { 
    font-size: 0.88rem; 
    color: var(--text-light); 
    padding: 0.4rem 0; 
    border-bottom: 1px solid var(--border); 
}

.job-tasks li:last-child { 
    border: none; 
}

.job-requirements { 
    background: var(--bg-light); 
    border-radius: var(--radius); 
    padding: 1.25rem; 
    font-size: 0.85rem; 
}

.job-requirements strong { 
    display: block; 
    margin-bottom: 0.5rem; 
    color: var(--text);
}

.job-requirements ul { 
    list-style: disc; 
    padding-left: 1.2rem; 
    color: var(--text-light); 
}

.job-requirements li { 
    margin-bottom: 0.3rem; 
}

.benefits-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 1.25rem; 
}

.benefit-card { 
    background: var(--bg-white); 
    border: 1px solid var(--border); 
    border-radius: var(--radius-lg); 
    padding: 1.5rem; 
    text-align: center; 
    transition: var(--transition); 
}

.benefit-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.benefit-icon { font-size: 2rem; display: block; margin-bottom: 0.75rem; }

/* ===== 11. KONTAKT HUB ===== */
.contact-hub {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.contact-hub-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    background: var(--bg-white);
    transition: var(--transition);
}

.contact-hub-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.contact-hub-card.primary {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
}

.contact-hub-card.whatsapp { border-color: #25d366; }
.contact-hub-card.whatsapp:hover { background: #25d366; color: #fff; }

.hub-icon { font-size: 2.8rem; margin-bottom: 1rem; }
.hub-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    background: rgba(0,0,0,0.08);
}

.contact-hub-card.primary .hub-badge { background: rgba(255,255,255,0.25); }

/* ===== 12. FAQ SEKTION ===== */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--bg-white);
    border: none;
    cursor: pointer;
    font-size: 0.97rem;
    font-weight: 600;
    text-align: left;
}

.faq-icon { font-size: 1.2rem; transition: transform 0.3s; color: var(--primary); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-answer { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.4s ease, padding 0.3s ease; 
}

.faq-answer.open { max-height: 400px; }
.faq-answer p { padding: 0 1.5rem 1.25rem; color: var(--text-light); font-size: 0.92rem; }

/* ===== 13. FOOTER ===== */
footer {
    background: #0d1b2a;
    color: rgba(255,255,255,0.8);
    padding: 4rem 0 0;
    margin-top: 5rem;
    width: 100%;
    position: relative;
    /* Verhindert horizontales Scrollen falls der Breakout-Hintergrund minimal zu groß ist */
    overflow: hidden; 
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding: 0 2rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.footer-brand img { height: 50px; margin-bottom: 1rem; filter: brightness(0) invert(1) opacity(0.8); }

.footer-col h4 { color: #fff; font-weight: 700; margin-bottom: 1.25rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem 2rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.82rem;
    opacity: 0.6;
    position: relative;
    z-index: 2;
}

/* Der Full-Width-Hintergrund Trick ohne den Body zu beeinflussen */
footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50vw;
    right: -50vw;
    bottom: 0;
    background: #0d1b2a;
    z-index: 1;
}

/* Grundfarben wiederherstellen */
html {
    background-color: var(--bg-white);
}
body {
    background-color: var(--bg-white);
    color: var(--text);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .footer-grid { 
        grid-template-columns: 1fr; 
        gap: 2rem; 
        text-align: center;
    }
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== 14. MODALS & SCROLL TO TOP ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--bg-white);
}

.close-modal {
    background: var(--bg-light);
    border: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body { padding: 2rem; color: var(--text-light); }

#scrollTop {
    position: fixed;
    bottom: 2rem;
    right: 5rem;
    width: 44px; height: 44px;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transition: var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#scrollTop.visible { opacity: 1; }

/* ===== 15. KEYFRAMES & ANIMATIONEN ===== */
@keyframes hiringGlow {
    0%, 100% { box-shadow: 0 0 12px rgba(243,156,18,0.35); }
    50%       { box-shadow: 0 0 22px rgba(243,156,18,0.55); }
}
@keyframes hiringPulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.06); }
}
@keyframes hiringSlideIn {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
@keyframes shimmer {
    0%   { left: -100%; }
    100% { left: 200%;  }
}

/* ===== 16. RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .about-grid, .pv-inner { grid-template-columns: 1fr; }
    .about-image img { height: 350px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .project-card { flex: 0 0 calc(50% - 0.75rem); }
}

@media (max-width: 768px) {
    .section { padding: 3.5rem 0; }
    .nav-links { 
        display: none; 
        position: absolute; top: 100%; left: 0; right: 0; 
        background: #fff; padding: 1.5rem 2rem; 
        flex-direction: column; gap: 0.25rem; 
        box-shadow: var(--shadow-md); 
    }
    .nav-links.open { display: flex; }
    .mobile-menu { display: flex; }
    .hero video { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    
    /* Projekte auf Handy zentrieren */
    .projects-wrapper {
        padding: 0 1rem;
    }
    .projects-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
    }
    .project-card { 
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto 1.5rem auto !important;
    }
    
    .about-image img { height: 280px; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
