/* =========================================================
   Funkenerosion Petzold & Emmrich GmbH – Stylesheet
   ========================================================= */

:root {
    --c-bg: #ffffff;
    --c-bg-muted: #f4f6f9;
    --c-ink: #0f1722;
    --c-ink-soft: #475569;
    --c-line: #e2e8f0;

    --c-navy: #0c1a2b;
    --c-navy-2: #122a44;
    --c-steel: #1d4e7a;
    --c-accent: #ff6a13;       /* Funkenorange */
    --c-accent-2: #ffb347;
    --c-spark: #38bdf8;        /* Funkenblau */

    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 10px rgba(15, 23, 42, .06);
    --shadow: 0 18px 50px rgba(12, 26, 43, .12);
    --shadow-lg: 0 30px 80px rgba(12, 26, 43, .25);

    --container: 1180px;
    --ease: cubic-bezier(.4, 0, .2, 1);

    --ff-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ff-head: 'Sora', 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
    margin: 0;
    font-family: var(--ff-body);
    color: var(--c-ink);
    background: var(--c-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--ff-head); line-height: 1.15; margin: 0; letter-spacing: -.01em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 1000;
    background: var(--c-accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 600; font-family: var(--ff-body); font-size: 1rem;
    padding: 14px 26px; border-radius: 8px; border: 1.5px solid transparent;
    cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
    white-space: nowrap;
}
.btn--sm { padding: 9px 18px; font-size: .92rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--c-accent); color: #fff; box-shadow: 0 10px 24px rgba(255, 106, 19, .32); }
.btn--primary:hover { background: #ff7d33; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 106, 19, .42); }
.btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .5); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }

/* ---------- Topbar ---------- */
.topbar { background: var(--c-navy); color: #c6d4e3; font-size: .85rem; }
.topbar__inner { display: flex; align-items: center; gap: 18px; min-height: 40px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__item svg { width: 15px; height: 15px; fill: var(--c-accent-2); }
.topbar__sep { flex: 1; }
.topbar__phone { color: #fff; font-weight: 600; }
.topbar__phone:hover { color: var(--c-accent-2); }
.topbar__hours .dot { width: 9px; height: 9px; border-radius: 50%; background: #64748b; box-shadow: 0 0 0 3px rgba(100, 116, 139, .25); }
.topbar__hours.is-open .dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); }
.topbar__hours.is-closed .dot { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .25); }

/* ---------- Header ---------- */
.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-line);
    transition: box-shadow .3s var(--ease);
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { color: var(--c-accent); flex: none; }
.brand__mark svg { width: 38px; height: 38px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--ff-head); font-size: 1.18rem; letter-spacing: -.02em; }
.brand__text small { font-size: .74rem; color: var(--c-ink-soft); letter-spacing: .02em; }
.brand--light .brand__text strong { color: #fff; }
.brand--light .brand__text small { color: #9fb1c4; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav > a { padding: 10px 14px; font-weight: 500; color: var(--c-ink-soft); border-radius: 8px; transition: color .2s, background .2s; }
.nav > a:hover { color: var(--c-ink); background: var(--c-bg-muted); }
.nav__cta { margin-left: 8px; color: #fff !important; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease) !important; }
.nav__cta:hover { background: #ff7d33 !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; border: none; background: none; cursor: pointer; padding: 10px; }
.nav-toggle span { height: 2.5px; width: 100%; background: var(--c-ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(115deg, rgba(8, 17, 28, .94) 0%, rgba(10, 22, 38, .8) 42%, rgba(10, 22, 38, .35) 100%),
        linear-gradient(to top, rgba(8, 17, 28, .9), transparent 40%);
}
.hero__content { position: relative; z-index: 2; padding-block: 90px; max-width: 720px; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .8rem; font-weight: 600; color: var(--c-accent-2); margin: 0 0 18px; }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; margin-bottom: 22px; }
.hero__title span { color: var(--c-accent); position: relative; white-space: nowrap; }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: #d4e0ec; max-width: 600px; margin: 0 0 34px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 38px; margin-top: 54px; flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--ff-head); font-size: 1.9rem; color: #fff; }
.hero__stats span { font-size: .85rem; color: #9fb1c4; text-transform: uppercase; letter-spacing: .12em; }

/* ---------- Trust ---------- */
.trust { background: var(--c-navy-2); color: #cdd9e6; }
.trust__inner { display: flex; justify-content: center; align-items: center; gap: 22px; flex-wrap: wrap; padding-block: 18px; font-size: .92rem; }
.trust__inner > span { font-weight: 600; color: #8fa6bd; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }
.trust ul { display: flex; gap: 10px 26px; flex-wrap: wrap; }
.trust li { position: relative; padding-left: 20px; font-weight: 500; }
.trust li::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 8px; height: 8px; border-radius: 2px; background: var(--c-accent); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 110px); }
.section--muted { background: var(--c-bg-muted); }
.section--dark { background: var(--c-navy); color: #e5edf5; }
.section--dark .section__sub { color: #aebfd0; }

.section__head { max-width: 680px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section__eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; font-weight: 700; color: var(--c-accent); margin: 0 0 12px; }
.section__title { font-size: clamp(1.9rem, 3.6vw, 2.85rem); font-weight: 800; margin-bottom: 16px; }
.section__sub { font-size: 1.08rem; color: var(--c-ink-soft); margin: 0; }

/* ---------- Cards (Leistungen) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
    background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); transition: 0.2s ease-in-out; }
.card__media { aspect-ratio: 16 / 11; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 26px 26px 30px; }
.card__body h3 { font-size: 1.35rem; margin-bottom: 10px; }
.card__body > p { color: var(--c-ink-soft); margin: 0 0 18px; font-size: .98rem; }
.card__list { display: flex; flex-direction: column; gap: 9px; }
.card__list li { position: relative; padding-left: 26px; font-size: .94rem; font-weight: 500; }
.card__list li::before {
    content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px;
    background: var(--c-accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.split--reverse .split__aside { order: -1; }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
.feature { display: flex; gap: 14px; }
.feature__icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 106, 19, .14); color: var(--c-accent) !important; }
.feature__icon svg { width: 22px; height: 22px; fill: var(--c-accent); }
.feature h4 { font-size: 1.05rem; margin-bottom: 3px; }
.feature p { margin: 0; font-size: .92rem; color: var(--c-ink-soft); }
.section--dark .feature p { color: #9fb1c4; }

/* Process */
.process { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg); padding: 34px; }
.section:not(.section--dark) .process { background: var(--c-bg-muted); border-color: var(--c-line); }
.process__title { font-size: 1.4rem; margin-bottom: 22px; }
.process__list { display: flex; flex-direction: column; gap: 22px; }
.process__list li { display: flex; gap: 18px; }
.process__list span { flex: none; font-family: var(--ff-head); font-weight: 800; font-size: 1.05rem; color: var(--c-accent); width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 106, 19, .14); }
.process__list strong { display: block; font-size: 1.02rem; }
.process__list p { margin: 2px 0 0; font-size: .92rem; color: var(--c-ink-soft); }
.section--dark .process__list p { color: #9fb1c4; }

/* Company facts */
.company-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; margin-top: 30px; }
.company-facts div { border-left: 3px solid var(--c-accent); padding-left: 16px; }
.company-facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--c-ink-soft); margin-bottom: 2px; }
.company-facts dd { margin: 0; font-family: var(--ff-head); font-weight: 700; font-size: 1.05rem; }

/* Quote */
.quote { position: relative; background: linear-gradient(150deg, var(--c-steel), var(--c-navy)); color: #fff; border-radius: var(--radius-lg); padding: 46px 38px 38px; box-shadow: var(--shadow); overflow: hidden; }
.quote::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 106, 19, .25); filter: blur(20px); }
.quote__mark { font-family: var(--ff-head); font-size: 5rem; line-height: 0; position: absolute; top: 36px; left: 26px; color: rgba(255, 255, 255, .18); }
.quote p { position: relative; font-size: 1.2rem; font-weight: 500; margin: 0 0 24px; }
.rating { display: flex; align-items: center; gap: 12px; position: relative; }
.rating .stars { color: var(--c-accent-2); font-size: 1.2rem; letter-spacing: 2px; }
.rating span:last-child { font-size: .9rem; color: #cdd9e6; }

/* ---------- Industries ---------- */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.industry { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 30px 26px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.industry:hover { transform: translateY(-5px); box-shadow: var(--shadow); transition: 0.2s ease-in-out;}
.industry__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--c-navy); margin-bottom: 16px; color: var(--c-accent-2) !important; }
.industry__icon svg { width: 26px; height: 26px; fill: var(--c-accent-2); }
.industry h3 { font-size: 1.2rem; margin-bottom: 6px; }
.industry p { margin: 0; color: var(--c-ink-soft); font-size: .94rem; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 56px); align-items: start; }
.contact__list { display: flex; flex-direction: column; gap: 22px; margin-bottom: 26px; }
.contact__list li { display: flex; gap: 16px; }
.contact__icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: var(--c-accent-2); }
.contact__icon svg { width: 22px; height: 22px; fill: var(--c-accent-2); }
.contact__list strong { display: block; font-family: var(--ff-head); margin-bottom: 2px; }
.contact__list p { margin: 0; color: #aebfd0; }
.contact__list a:hover { color: var(--c-accent-2); }
.hours { border-collapse: collapse; font-size: .95rem; color: #aebfd0; }
.hours th { text-align: left; font-weight: 600; padding-right: 18px; color: #cdd9e6; }

.map { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); }
.map iframe { width: 100%; height: 220px; border: 0; display: block; filter: grayscale(.2) contrast(1.05); }
.map__link { display: block; text-align: center; padding: 12px; background: rgba(255, 255, 255, .06); font-size: .9rem; font-weight: 600; color: var(--c-accent-2); }
.map__link:hover { background: rgba(255, 255, 255, .12); }

/* Form */
.contact__form { background: #fff; color: var(--c-ink); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 15px; font: inherit; color: var(--c-ink);
    border: 1.5px solid var(--c-line); border-radius: 10px; background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 4px rgba(255, 106, 19, .14); }
.field input.is-error, .field textarea.is-error { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .12); }
.field--check { display: flex; align-items: flex-start; gap: 10px; }
.field--check input { width: auto; margin-top: 4px; flex: none; }
.field--check label { font-weight: 400; font-size: .88rem; color: var(--c-ink-soft); margin: 0; }
.field--check a { color: var(--c-accent); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { margin: 14px 0 0; font-size: .92rem; font-weight: 600; min-height: 1.2em; }
.form-note.is-ok { color: #16a34a; }
.form-note.is-err { color: #dc2626; }

/* ---------- Footer ---------- */
.footer { background: #08111c; color: #9fb1c4; padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer__about { margin: 18px 0 0; font-size: .94rem; max-width: 320px; }
.footer__col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a:hover { color: var(--c-accent-2); transition: 0.2s ease-in-out; }
.footer address { font-style: normal; font-size: .94rem; line-height: 1.9; }
.footer address a:hover { color: var(--c-accent-2); transition: 0.2s ease-in-out; }
.footer__bar { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 20px; font-size: .85rem; }
.footer__bar-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer__bar p { margin: 0; }

/* ---------- Legal pages ---------- */
.legal { padding-block: clamp(48px, 7vw, 84px); background: var(--c-bg-muted); min-height: 60vh; }
.legal__inner { max-width: 820px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: clamp(28px, 5vw, 56px); }
.legal__title { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 28px; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 10px; }
.legal p { color: var(--c-ink-soft); margin: 0 0 14px; }
.legal a { color: var(--c-steel); font-weight: 500; word-break: break-word; }
.legal a:hover { color: var(--c-accent); }
.legal__hint { background: rgba(255, 106, 19, .08); border-left: 3px solid var(--c-accent); border-radius: 0 8px 8px 0; padding: 14px 18px; font-size: .92rem; margin-top: 32px; }
.legal__back { margin-top: 28px; background: var(--c-navy); color: #fff; border-color: var(--c-navy); }
.legal__back:hover { background: var(--c-steel); color: #fff; transform: translateY(-2px); }

/* ---------- To-top ---------- */
.to-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 90;
    width: 48px; height: 48px; border-radius: 50%; background: var(--c-accent); color: #fff;
    display: grid; place-items: center; box-shadow: 0 10px 26px rgba(255, 106, 19, .4);
    opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease);
}
.to-top svg { width: 26px; height: 26px; fill: currentColor; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: #ff7d33; transform: translateY(-3px); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .cards, .industries { grid-template-columns: 1fr 1fr; }
    .split, .contact { grid-template-columns: 1fr; }
    .split--reverse .split__aside { order: 0; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .topbar__inner { justify-content: center; }
    .topbar__sep { display: none; }
    .nav {
        position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
        flex-direction: column; align-items: stretch; gap: 4px;
        background: #fff; padding: 92px 24px 32px; box-shadow: -20px 0 60px rgba(12, 26, 43, .2);
        transform: translateX(100%); transition: transform .35s var(--ease); z-index: 99;
    }
    .nav.is-open { transform: translateX(0); }
    .nav > a { padding: 14px 12px; border-bottom: 1px solid var(--c-line); border-radius: 0; }
    .nav__cta { margin: 14px 0 0; border-bottom: none; }
    .nav-toggle { display: flex; z-index: 100; }
    body.nav-open { overflow: hidden; }
    .nav-backdrop { position: fixed; inset: 0; background: rgba(8, 17, 28, .5); z-index: 98; opacity: 0; visibility: hidden; transition: opacity .3s; }
    .nav-backdrop.is-open { opacity: 1; visibility: visible; }
}

@media (max-width: 620px) {
    .cards, .industries, .features, .field-row, .company-facts, .footer__grid { grid-template-columns: 1fr; }
    .hero__stats { gap: 26px; }
    .hero { min-height: 0; padding-top: 20px; }
    .footer__bar-inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
