/* ============================================================
   FBH Nachrüsten Landing Page – Stylesheet
   Opti Therm GmbH · fbh-nachruesten.de
   ============================================================ */

:root {
    --navy:        #0f1c33;
    --navy-mid:    #1a2744;
    --orange:      #f26522;
    --orange-dark: #d4561a;
    --white:       #ffffff;
    --light:       #f5f7fa;
    --gray:        #5a6272;
    --border:      #e2e6ed;
    --text:        #1a2744;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4, h5 { font-family: 'Montserrat', sans-serif; line-height: 1.2; }

/* BUTTONS */
.btn {
    display: inline-block; padding: 14px 34px; border-radius: 50px;
    font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.9rem;
    cursor: pointer; transition: all 0.28s ease; border: none;
    letter-spacing: 0.4px; text-align: center;
}
.btn-primary { background: var(--orange); color: var(--white); box-shadow: 0 4px 14px rgba(242,101,34,0.25); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(242,101,34,0.38); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.7); }
.btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* HEADER */
header {
    position: fixed; top: 0; width: 100%; z-index: 999;
    background: var(--navy); padding: 0 6%;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; box-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.logo { display: flex; align-items: center; gap: 11px; }
.logo img { height: 42px; width: auto; }
.logo-text { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.95rem; color: var(--white); line-height: 1.25; }
.logo-text .accent { color: var(--orange); }
.logo-text .sub { font-weight: 400; font-size: 0.7rem; opacity: 0.6; display: block; margin-top: 1px; }
.header-nav { display: flex; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.82); font-family: 'Montserrat', sans-serif; font-size: 0.82rem; font-weight: 600; margin-left: 28px; transition: color 0.2s; }
.nav-links a:hover { color: var(--orange); }
.header-cta { margin-left: 24px; padding: 9px 22px; font-size: 0.82rem; }

/* HERO */
#hero {
    min-height: 100vh; padding: 64px 6% 0;
    display: flex; align-items: center; position: relative; overflow: hidden;
    background: linear-gradient(135deg, rgba(10,20,42,0.75) 0%, rgba(15,28,51,0.55) 60%, rgba(15,28,51,0.40) 100%),
                url('images/hero.jpg') center/cover no-repeat;
}
.hero-inner { max-width: 620px; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(242,101,34,0.15); border: 1px solid rgba(242,101,34,0.4); border-radius: 50px; padding: 6px 16px; margin-bottom: 22px; }
.hero-badge span { color: var(--orange); font-family: 'Montserrat', sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.hero-badge .dot { width: 7px; height: 7px; background: var(--orange); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.4); } }
.hero-inner h1 { color: var(--white); font-size: clamp(1.9rem, 3.8vw, 3.1rem); font-weight: 800; margin-bottom: 14px; }
.hero-inner h1 em { color: var(--orange); font-style: italic; }
.hero-inner .hero-sub { color: rgba(255,255,255,0.78); font-size: 1.05rem; line-height: 1.75; margin-bottom: 36px; max-width: 510px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* STATS */
.stats-bar { background: var(--navy-mid); padding: 26px 6%; display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.stat { text-align: center; padding: 10px 0; }
.stat-num { font-family: 'Montserrat', sans-serif; font-size: 1.85rem; font-weight: 800; color: var(--white); line-height: 1; }
.stat-num sup { color: var(--orange); font-size: 1.1rem; }
.stat-lbl { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.8px; color: rgba(255,255,255,0.45); margin-top: 5px; }

/* DIVIDER */
.dot-divider { height: 4px; background: repeating-linear-gradient(90deg, var(--orange) 0, var(--orange) 8px, transparent 8px, transparent 14px); }

/* SECTIONS */
.section { padding: 84px 6%; }
.section-lbl { font-family: 'Montserrat', sans-serif; font-size: 0.73rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.section-heading { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.section-intro { color: var(--gray); font-size: 0.98rem; line-height: 1.8; max-width: 640px; }

/* FRÄSEN */
#fraesen { background: var(--white); }
.fraesen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: 48px; }
.fraesen-copy p { color: var(--gray); line-height: 1.85; margin-bottom: 18px; font-size: 0.97rem; }
.vorteile { list-style: none; margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.vorteil { display: flex; align-items: flex-start; gap: 14px; }
.v-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.05rem; }
.v-body strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 0.9rem; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.v-body span { font-size: 0.85rem; color: var(--gray); line-height: 1.55; }
.fraesen-img { border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(15,28,51,0.18); }
.fraesen-img img { width: 100%; height: 420px; object-fit: cover; }

/* VIDEO */
#video { background: var(--light); }
.video-center { max-width: 860px; margin: 0 auto; }
.video-center .section-lbl, .video-center .section-heading { text-align: center; }
.video-center .section-heading { margin-bottom: 36px; }
.video-box { border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(15,28,51,0.2); background: var(--navy-mid); aspect-ratio: 16/9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; border: 2px dashed rgba(255,255,255,0.15); padding: 40px; }
.play-btn { width: 76px; height: 76px; background: var(--orange); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 12px rgba(242,101,34,0.15); transition: transform 0.25s, box-shadow 0.25s; cursor: pointer; }
.play-btn:hover { transform: scale(1.08); box-shadow: 0 0 0 18px rgba(242,101,34,0.12); }
.play-btn svg { fill: white; width: 28px; height: 28px; margin-left: 4px; }
.video-box .vt { color: var(--white); font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.05rem; }
.video-box .vs { color: rgba(255,255,255,0.55); font-size: 0.88rem; text-align: center; max-width: 340px; }
.yt-link { margin-top: 6px; color: var(--orange); font-family: 'Montserrat', sans-serif; font-size: 0.85rem; font-weight: 700; border-bottom: 1px solid rgba(242,101,34,0.3); transition: color 0.2s; }
.yt-link:hover { color: var(--orange-dark); }

/* ABLAUF */
#ablauf { background: var(--navy); }
#ablauf .section-heading { color: var(--white); }
#ablauf .section-intro { color: rgba(255,255,255,0.6); max-width: 560px; margin-bottom: 50px; }
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 48px; }
.step { background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 32px 22px 28px; text-align: center; transition: transform 0.28s, border-color 0.28s, background 0.28s; }
.step:hover { transform: translateY(-7px); border-color: var(--orange); background: rgba(242,101,34,0.07); }
.step-nr { width: 52px; height: 52px; border-radius: 50%; background: var(--orange); color: var(--white); font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.step h4 { color: var(--white); font-size: 0.95rem; font-weight: 700; margin-bottom: 10px; }
.step p { color: rgba(255,255,255,0.58); font-size: 0.85rem; line-height: 1.65; }

/* FORMULAR */
#formular { background: var(--white); }
.form-wrap { max-width: 840px; margin: 48px auto 0; background: var(--white); border-radius: 20px; border: 1.5px solid var(--border); padding: 44px 48px; box-shadow: 0 12px 40px rgba(15,28,51,0.08); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; row-gap: 18px; }
.fg { display: flex; flex-direction: column; }
.fg.full { grid-column: 1 / -1; }
.form-block-title { grid-column: 1 / -1; font-family: 'Montserrat', sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; color: var(--orange); padding-top: 22px; border-top: 1px solid var(--border); margin-top: 8px; }
.form-block-title:first-child { padding-top: 0; border-top: none; margin-top: 0; }
label { font-family: 'Montserrat', sans-serif; font-size: 0.78rem; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
label .req { color: var(--orange); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
    width: 100%; padding: 11px 15px; border: 1.5px solid var(--border); border-radius: 10px;
    font-family: 'Open Sans', sans-serif; font-size: 0.9rem; color: var(--text);
    background: var(--white); transition: border-color 0.2s, box-shadow 0.2s;
    outline: none; -webkit-appearance: none; appearance: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,101,34,0.11); }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath stroke='%235a6272' stroke-width='1.5' fill='none' d='M1 1l4.5 4.5L10 1'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 38px; cursor: pointer; }
textarea { resize: vertical; min-height: 96px; }
.cond { display: none; grid-column: 1 / -1; }
.cond.show { display: flex; }
.cond-half { display: none; }
.cond-half.show { display: flex; }
.upload-area { border: 2px dashed var(--border); border-radius: 10px; padding: 22px 18px; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; background: var(--light); position: relative; }
.upload-area:hover, .upload-area.drag-over { border-color: var(--orange); background: rgba(242,101,34,0.04); }
.upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: none; padding: 0; box-shadow: none; }
.upload-icon { font-size: 1.6rem; margin-bottom: 6px; }
.upload-label { font-family: 'Montserrat', sans-serif; font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.upload-hint { font-size: 0.78rem; color: var(--gray); margin-top: 4px; }
.upload-hint span { color: var(--orange); }
#upload-list { margin-top: 10px; text-align: left; }
.upload-item { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--gray); padding: 4px 0; border-bottom: 1px solid var(--border); }
.upload-item:last-child { border-bottom: none; }
.upload-item .fi { color: var(--orange); }
.submit-row { grid-column: 1 / -1; text-align: center; margin-top: 10px; }
.submit-row .btn { padding: 15px 50px; font-size: 0.97rem; }
.submit-note { font-size: 0.78rem; color: var(--gray); margin-top: 11px; }
#form-success { display: none; text-align: center; padding: 48px 20px; }
#form-success.show { display: block; }
.success-circle { width: 68px; height: 68px; border-radius: 50%; background: #22c55e; color: white; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 18px; }
#form-success h3 { font-size: 1.5rem; color: var(--navy); margin-bottom: 10px; }
#form-success p { color: var(--gray); font-size: 0.95rem; line-height: 1.7; }

/* FOOTER */
footer { background: var(--navy); padding: 44px 6% 24px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .f-name { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--white); font-size: 1rem; margin-bottom: 8px; }
.footer-brand .f-name span { color: var(--orange); }
.footer-brand address { font-style: normal; color: rgba(255,255,255,0.55); font-size: 0.85rem; line-height: 1.75; }
.footer-brand address a { color: var(--orange); }
.footer-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.footer-links a { color: rgba(255,255,255,0.55); font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom { text-align: center; padding-top: 18px; color: rgba(255,255,255,0.3); font-size: 0.78rem; }

/* RESPONSIVE */
@media (max-width: 960px) {
    .fraesen-grid { grid-template-columns: 1fr; gap: 40px; }
    .fraesen-img img { height: 300px; }
    .steps { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
}
@media (max-width: 640px) {
    .section { padding: 60px 5%; }
    .stats-bar { grid-template-columns: repeat(2,1fr); }
    .steps { grid-template-columns: 1fr; }
    .form-wrap { padding: 28px 20px; }
    .form-grid { grid-template-columns: 1fr; }
    .fg.full, .form-block-title, .submit-row, .cond-half { grid-column: 1; }
    .footer-top { flex-direction: column; }
    .footer-links { align-items: flex-start; }
    .hero-btns { flex-direction: column; }
}
