/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Roboto', sans-serif;
    background: #000;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }

/* ===== HEADINGS (Bold Condensed) ===== */
.heading {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
}

/* ===== NAVIGATION ===== */
.nav-top {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
}
.nav-sticky {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1001;
    background: rgba(0,0,0,0.95);
    transform: translateY(-100%);
    transition: transform 0.3s;
}
.nav-sticky.visible { transform: translateY(0); }
.nav-logo img { height: 50px; }
.nav-sticky .nav-logo img { height: 40px; }

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}
.hamburger span {
    width: 30px; height: 3px;
    background: #fff;
    border-radius: 2px;
}
.nav-menu {
    display: none;
    list-style: none;
    gap: 25px;
}
.nav-menu li a {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}
.nav-menu li a:hover { color: #ff3300; }
@media (min-width: 1100px) {
    .nav-menu { display: flex; }
    .hamburger { display: none; }
}
.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; right: 0;
    background: rgba(0,0,0,0.95);
    padding: 20px 30px;
    gap: 15px;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('../img/backgrounds/factory-hero.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    position: relative;
}
.hero h1 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 30px;
}
.hero h1 .line1 {
    font-size: clamp(3rem, 8vw, 6rem);
    display: block;
}
.hero h1 .line2 {
    display: none;
}
.hero .description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 700px;
    margin-bottom: 30px;
    font-weight: 300;
    line-height: 1.7;
}
.hero .phone-line {
    font-size: 1.1rem;
    font-weight: 300;
}
.hero .phone-number {
    color: #ff3300;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
}
.hero .phone-number a { color: #ff3300; }

/* ===== CONSTRUCTION TAPE DIVIDER ===== */
.tape {
    height: 120px;
    background: url('../img/backgrounds/warnband.png') repeat-x center/auto 100%;
    width: 100%;
    overflow: hidden;
}
/* Fallback if image not loaded */
.tape.no-img {
    background: repeating-linear-gradient(
        -45deg,
        #d4a017 0px, #d4a017 25px,
        #000 25px, #000 50px
    );
}

/* ===== SECTION DEFAULTS ===== */
section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 40px;
    width: 100%;
}
.section-heading {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.1;
}

/* ===== WER WIR SIND ===== */
.about-text {
    max-width: 850px;
    margin: 0 auto;
}
.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 300;
}

/* ===== WAS WIR MACHEN ===== */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}
.service-item {
    display: block;
    text-align: center;
    width: 180px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease;
}
.service-item:hover {
    transform: translateY(-6px);
}
.service-icon {
    position: relative;
    width: 110px; height: 110px;
    border: 3px solid #ff3300;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2.5rem;
    color: #ff3300;
    background: #111;
    box-shadow: 0 0 25px rgba(255,51,0,0.35), inset 0 0 15px rgba(255,51,0,0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.service-item:hover .service-icon {
    background: #ff3300;
    color: #000;
    border-color: #000;
    box-shadow:
        0 0 0 4px rgba(255,51,0,0.7),
        0 0 20px rgba(255,51,0,0.85),
        0 0 42px rgba(255,51,0,0.55),
        0 0 72px rgba(255,51,0,0.25),
        inset 0 0 12px rgba(0,0,0,0.15);
    transform: scale(1.06);
}
.service-icon i {
    transition: transform 0.25s ease;
}
.service-item:hover .service-icon i {
    transform: scale(0.96);
}
.service-item h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.2rem;
}

/* ===== NEWS SLIDER ===== */
.news-section {
    background: #000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #ff3300;
    z-index: 10;
}
.news-slider-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    min-height: 550px;
}
.news-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}
.news-slide.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}
.news-slide .news-content {
    background: rgba(0,0,0,0.48);
    width: 50%;
    padding: 60px 40px 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 550px;
    position: relative;
    z-index: 2;
}
.news-slide .news-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
}
.news-slide .news-image::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(to right, #000 0%, transparent 100%);
    z-index: 1;
}
.news-slide .news-image img {
    width: 100%;
    height: 100%;
    object-position: center 60%;
    object-fit: cover;
    display: block;

}
.news-label {
    font-size: 1rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #ccc;
}
.news-slide h2 {
    font-family: 'Bebas Neue', cursive;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    font-size: clamp(2.5rem, 5.5vw, 5.2rem);
    color: #ff3300;
    line-height: 1.05;
    margin-bottom: 15px;
}
.news-slide h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.news-slide p {
    color: #fff;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    font-weight: 300;
}
.news-slide img {
    width: 100%;
}
.btn {
    display: inline-block;
    background: #ff3300;
    color: #fff;
    padding: 14px 35px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #fff;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}
.btn:hover {
    background: #fff;
    color: #ff3300;
}
.btn-dark {
    background: #ff3300;
    border-color: #ff3300;
    color: #fff;
}
.btn-dark:hover {
    background: #fff;
    color: #e63900;
}
.slider-dots {
    text-align: center;
    margin-top: 30px;
    position: relative;
    z-index: 10;
}
.slider-dots span {
    display: inline-block;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #666;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s;
}
.slider-dots span.active { background: rgba(29,129,249,1); }
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: none;
    border: none;
    color: #ff3300;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 15px;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.slider-arrow:hover { opacity: 1; }
.slider-arrow-left { left: 10px; }
.slider-arrow-right { right: 10px; }

/* ===== WORKFLOW / BAUPROZESS ===== */
.workflow-header {
    text-align: center;
    margin-bottom: 60px;
}
.workflow-subtitle {
    color: #ff3300;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.3rem;
    margin-bottom: 30px;
}
.vision-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}
.workflow-header .lightbulb {
    width: 120px;
    flex-shrink: 0;
}
.workflow-header .lightbulb img { width: 100%; }
.vision-text {
    color: #ff3300;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    text-transform: uppercase;
    margin: 0;
}

.workflow-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto 80px;
}
.workflow-icon-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}
.workflow-icon-wrap i {
    font-size: 8rem;
    color: rgba(255,255,255,0.08);
}
.step-heading {
    position: relative;
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    margin-bottom: 15px;
    line-height: 1.1;
}
.step-heading::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -20px;
    right: -20px;
    bottom: -15px;
    border: 3px solid #ff3300;
    border-radius: 50%;
    pointer-events: none;
    transform: rotate(-3deg);
}
.step-heading-underline {
    display: none;
}
.workflow-step p {
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 300;
}

/* ===== CMS SECTION ===== */
.cms-section {
    background: #e63900;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 40px;
}
.cms-section .section-heading { color: #000; margin-bottom: 50px; }
.cms-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}
.cms-item { text-align: center; width: 150px; }
.cms-item img {
    width: 120px; height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
}
.cms-item h4 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1rem;
    color: #000;
}

/* ===== REFERENZEN ===== */
.references {
    padding: 80px 0 0;
    position: relative;
    background: #000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}
.references-inner {
    position: relative;
    width: 100%;
    height: 440px;
    min-height: 320px;
}
.references-bg {
    position: absolute;
    top: 0;
    left: -24%;
    width: 128%;
    height: 100%;
    background: url('../img/references/referenzen-rahmen.png') no-repeat center/contain;
    transition: transform 0.15s linear;
}
.references-heading {
    position: relative;
    top: 0;
    text-align: center;
    z-index: 2;
    margin: 0 0 40px;
}

/* ===== KONTAKT ===== */
.contact {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 40px;
}
.contact-watermark {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Oswald', sans-serif;
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    opacity: 0.04;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.contact-form { display: flex; flex-direction: column; }
.contact-form input,
.contact-form textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,51,0,0.4);
    color: #fff;
    padding: 14px 16px;
    margin-bottom: 15px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    border-radius: 0;
    transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #ff3300;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.4);
}
.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}
.contact-form .btn {
    width: 100%;
    text-align: center;
    background: #ff3300;
    border: none;
    padding: 16px;
    font-size: 1rem;
}
.contact-map {
    overflow: hidden;
    margin-bottom: 20px;
}
.contact-map iframe {
    width: 100%;
    height: 250px;
    border: none;
    filter: grayscale(0.3);
}
.contact-info h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 400;
}
.contact-info p {
    margin-bottom: 8px;
    line-height: 1.6;
    font-weight: 300;
}
.contact-info strong { font-weight: 700; }
.contact-info a {
    color: #ff3300;
    font-weight: 500;
}
.contact-info a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
footer {
    padding: 40px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-links {
    margin-bottom: 20px;
}
.footer-links a {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    font-size: 1rem;
    margin: 0 20px;
    color: #fff;
    transition: color 0.3s;
}
.footer-links a:hover { color: #ff3300; }
.footer-logo { margin: 20px 0; }
.footer-logo img { height: 60px; }
.footer-copy {
    font-size: 0.85rem;
    opacity: 0.5;
    font-weight: 300;
}

/* ===== BACK TO TOP ===== */
#backToTop {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 45px; height: 45px;
    background: #ff3300;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    transition: all 0.3s;
}
#backToTop:hover { background: #e63900; transform: translateY(-3px); }
#backToTop.show { display: flex; }

/* ===== HERO ANIMATIONS ===== */
.hero h1 .line1 {
    animation: heroSlideDown 1s ease-out 0.3s both;
}
.hero h1 .line2 {
    animation: heroSlideDown 1s ease-out 0.6s both;
}
.hero .description {
    animation: heroFadeUp 1s ease-out 1s both;
}
.hero .phone-line,
.hero .phone-number {
    animation: heroFadeUp 1s ease-out 1.3s both;
}
@keyframes heroSlideDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== PARALLAX TAPE ===== */
.tape {
    transition: background-position 0.15s linear;
}

/* ===== CUSTOM AOS OVERRIDES ===== */
[data-aos] {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glow pulse for service icons on reveal */
.service-icon.revealed {
    animation: glowPulse 2s ease-in-out infinite alternate;
}
@keyframes glowPulse {
    from { box-shadow: 0 0 20px rgba(255,51,0,0.3), inset 0 0 10px rgba(255,51,0,0.1); }
    to { box-shadow: 0 0 35px rgba(255,51,0,0.5), inset 0 0 20px rgba(255,51,0,0.15); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    section {
        padding: 60px 20px;
        min-height: 100vh;
    }
    .news-slide .news-content { width: 100%; padding: 40px 20px; }
    .news-slide .news-image { display: none; }
    .news-slide::after { display: none; }
    .news-slide { grid-template-columns: 1fr; }
    .workflow-step { grid-template-columns: 1fr; text-align: center; }
    .workflow-icon-wrap { order: -1 !important; }
    .contact-grid { grid-template-columns: 1fr; }
    .tape { height: 100px; }
    .services-grid { gap: 30px; }
    .service-item { width: 140px; }
    .cms-grid { gap: 30px; }
}
