/* ============================================================
   H&B BESCHAFFUNG — STYLESHEET
   Rot / Weiß / Schwarz
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #fff;
    color: #111;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    animation: page-in 0.55s ease-out both;
}
@keyframes page-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---- Variables ---- */
:root {
    --red:       #C8102E;
    --red-dark:  #A40D25;
    --black:     #0C0C0C;
    --white:     #FFFFFF;
    --off-white: #F5F4F0;
    --text:      #111;
    --gray:      #565656;
    --gray-l:    #999;
    --border:    #E0DDDA;
    --max:       1200px;
    --px:        clamp(1.25rem, 5vw, 4rem);
    --py:        clamp(5rem, 10vw, 8.5rem);
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
    font-family: 'Syne', sans-serif;
    line-height: 1.05;
    letter-spacing: -0.025em;
    font-weight: 700;
}
h1 { font-size: clamp(3rem, 7.5vw, 6.25rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1rem, 1.8vw, 1.2rem); font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 0.98rem; font-weight: 600; }
p  { max-width: 60ch; }
a  { text-decoration: none; color: inherit; }

/* ---- Layout ---- */
.container {
    max-width: var(--max);
    margin: 0 auto;
    padding-left: var(--px);
    padding-right: var(--px);
}
.section       { padding: var(--py) 0; background: #fff; }
.section--dark { background: var(--black); color: var(--white); }
.section--off  { background: var(--off-white); }

.section__head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.section--dark .section__head h2 { color: var(--white); }

/* ---- Utility labels ---- */
.tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.875rem;
}
.tag--muted { color: rgba(255,255,255,0.38); }

.overline {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.42);
    margin-bottom: 1.75rem;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1.5px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}
.btn--red   { background: var(--red); color: #fff; border-color: var(--red); }
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--ghost { background: transparent; color: rgba(255,255,255,0.78); border-color: rgba(255,255,255,0.28); }
.btn--ghost:hover { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn--white { background: #fff; color: var(--black); border-color: #fff; }
.btn--white:hover { background: var(--off-white); }
.btn--full  { width: 100%; }


/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--red);
    z-index: 2000;
    width: 0%;
    transition: width 0.05s linear;
    pointer-events: none;
}


/* ============================================================
   NAVIGATION
   Startet transparent (über dunklem Hero),
   wechselt zu Weiß nach dem Scrollen
   ============================================================ */
.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
.nav.is-light {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--px);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--white);
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    flex-shrink: 0;
    transition: color 0.4s ease;
}
.logo em { color: var(--red); font-style: normal; font-weight: 400; }
.logo--sm { font-size: 0.95rem; }
.nav.is-light .logo { color: var(--black); }

.nav__menu {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}
.nav__menu a {
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255,255,255,0.62);
    transition: color 0.2s;
}
.nav__menu a:hover { color: #fff; }
.nav.is-light .nav__menu a { color: rgba(0,0,0,0.52); }
.nav.is-light .nav__menu a:hover { color: var(--black); }

.nav__cta {
    background: var(--red) !important;
    color: var(--white) !important;
    padding: 0.55rem 1.25rem;
    border-radius: 2px;
    font-weight: 600 !important;
    transition: background 0.18s !important;
}
.nav__cta:hover { background: var(--red-dark) !important; }

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--white);
    transition: color 0.4s ease;
}
.nav.is-light .nav__toggle { color: var(--black); }
.nav__toggle span {
    display: block;
    height: 1.5px;
    width: 22px;
    background: currentColor;
    transform-origin: center;
    transition: transform 0.28s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(5.5px, 5.5px); }
.nav__toggle.is-open span:nth-child(2) { transform: rotate(-45deg) translate(5.5px, -5.5px); }

.nav__mobile {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--black);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    z-index: 999;
    flex-direction: column;
    padding: 2rem var(--px);
    gap: 1.5rem;
}
.nav__mobile.is-open { display: flex; }
.nav__mobile-link {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    transition: color 0.15s;
}
.nav__mobile-link:hover { color: #fff; }


/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: var(--black);
    color: var(--white);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: calc(70px + clamp(4rem, 8vw, 6rem));
    padding-bottom: clamp(5rem, 10vw, 7rem);
}

/* Riesiger Hintergrund-Text — bewegt sich beim Scrollen mit (parallax) */
.hero__ghost {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Syne', sans-serif;
    font-size: clamp(120px, 30vw, 300px);
    font-weight: 800;
    line-height: 1;
    color: rgba(255,255,255,0.027);
    letter-spacing: -0.05em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    will-change: transform;
}

/* Roter Balken links — wie ein Buchzeichen */
.hero__red-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--red);
}

.hero__inner {
    position: relative;
    z-index: 1;
    will-change: transform;
}

.hero__inner h1 { color: var(--white); margin-bottom: 1.75rem; }
.hero__inner h1 span { color: var(--red); }

.hero__sub {
    font-size: clamp(0.95rem, 1.6vw, 1.06rem);
    color: rgba(255,255,255,0.58);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 46ch;
}

.hero__ctas { display: flex; gap: 0.875rem; flex-wrap: wrap; }

/* Scroll-Indikator unten links */
.hero__scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: var(--px);
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255,255,255,0.28);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s;
}
.hero__scroll-hint:hover { color: rgba(255,255,255,0.55); }
.hero__scroll-line {
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,0.12);
    overflow: hidden;
    position: relative;
}
.hero__scroll-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--red);
    animation: slide-tick 2s ease-in-out infinite;
}
@keyframes slide-tick {
    0%   { transform: translateX(-100%); }
    50%  { transform: translateX(0); }
    100% { transform: translateX(100%); }
}


/* ============================================================
   TICKER (rotes Laufband)
   ============================================================ */
.ticker {
    background: var(--red);
    overflow: hidden;
    padding: 0.9rem 0;
    user-select: none;
}
.ticker__track {
    display: flex;
    align-items: center;
    gap: 2rem;
    white-space: nowrap;
    width: max-content;
    animation: ticker-scroll 24s linear infinite;
}
.ticker__track span {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.88);
}
.ticker__dot { color: rgba(255,255,255,0.35) !important; }
@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}


/* ============================================================
   LEISTUNGEN
   ============================================================ */
.services { border-top: 1px solid var(--border); }

.service {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 2.5rem;
    padding: clamp(2rem, 4vw, 2.75rem) 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
    transition: background 0.22s;
}
.service:hover { background: var(--off-white); }

.service__n {
    font-family: 'Syne', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--red);
    padding-top: 0.18rem;
    transition: letter-spacing 0.35s;
}
.service:hover .service__n { letter-spacing: 0.22em; }

.service h3 { margin-bottom: 0.875rem; }
.service p  { font-size: 0.9rem; color: var(--gray); line-height: 1.78; }


/* ============================================================
   ABLAUF
   ============================================================ */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(2rem, 4vw, 3rem);
}

.step__num {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: rgba(200, 16, 46, 0.28);
    line-height: 1;
    margin-bottom: 1.5rem;
}
.step h4 { color: var(--white); margin-bottom: 0.75rem; }
.step p  { font-size: 0.87rem; color: rgba(255,255,255,0.48); line-height: 1.78; max-width: 26ch; }


/* ============================================================
   VORTEILE
   ============================================================ */
.why {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2.5rem, 5vw, 4rem);
}

.why__num {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: rgba(200, 16, 46, 0.1);
    line-height: 1;
    margin-bottom: 1.25rem;
}
.why__item h4 { margin-bottom: 0.75rem; }
.why__item p  { font-size: 0.88rem; color: var(--gray); line-height: 1.78; }


/* ============================================================
   BANNER
   ============================================================ */
.banner {
    background: var(--red);
    padding: clamp(5rem, 10vw, 8rem) 0;
    text-align: center;
}
.banner__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.banner__pre {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}
.banner h2 { color: var(--white); }


/* ============================================================
   KONTAKT
   ============================================================ */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 8vw, 7rem);
    align-items: start;
}

.contact__info h2 { margin: 0.75rem 0 1.5rem; }
.contact__text { font-size: 0.9rem; color: var(--gray); line-height: 1.78; margin-bottom: 2.5rem; }

.contact__meta { display: flex; flex-direction: column; gap: 1.25rem; }
.contact__meta-item { display: flex; flex-direction: column; gap: 0.3rem; }
.contact__meta-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-l);
}
.contact__meta-item a,
.contact__meta-item span { font-size: 0.9rem; font-weight: 500; }
.contact__meta-item a:hover { color: var(--red); }

/* Formular */
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__field { display: flex; flex-direction: column; gap: 0.45rem; }

.form__field label { font-size: 0.78rem; font-weight: 600; }
.form__opt { font-weight: 400; color: var(--gray-l); }

.form__field input,
.form__field textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: var(--text);
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 2px;
    outline: none;
    resize: vertical;
    transition: border-color 0.18s;
}
.form__field input::placeholder,
.form__field textarea::placeholder { color: #B5B2AD; }
.form__field input:focus,
.form__field textarea:focus { border-color: var(--red); }
.form__field input.is-invalid,
.form__field textarea.is-invalid { border-color: #c0392b; }

.form__note { font-size: 0.74rem; color: var(--gray-l); line-height: 1.65; max-width: none; }
.form__success {
    background: #F0FAF4;
    border: 1.5px solid #27ae60;
    border-radius: 2px;
    padding: 1rem 1.125rem;
    font-size: 0.88rem;
    color: #1a6636;
    line-height: 1.65;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--black);
    color: rgba(255,255,255,0.42);
    padding: 3.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.footer__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
}
.footer__brand .logo { margin-bottom: 0.75rem; }
.footer__brand p { font-size: 0.8rem; line-height: 1.7; max-width: none; color: rgba(255,255,255,0.32); }

.footer__nav { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__nav a { font-size: 0.82rem; color: rgba(255,255,255,0.42); transition: color 0.15s; }
.footer__nav a:hover { color: #fff; }

.footer__legal { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.footer__legal a { font-size: 0.78rem; color: rgba(255,255,255,0.32); transition: color 0.15s; }
.footer__legal a:hover { color: rgba(255,255,255,0.7); }
.footer__legal span { font-size: 0.72rem; color: rgba(255,255,255,0.18); }


/* ============================================================
   SCROLL-ANIMATIONEN
   ============================================================ */
[data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity  0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}
[data-reveal][data-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-delay="2"] { transition-delay: 0.2s; }
[data-reveal][data-delay="3"] { transition-delay: 0.32s; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .steps { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
    .nav__menu  { display: none; }
    .nav__toggle { display: flex; }

    .hero__red-bar { display: none; }
    .hero__scroll-hint { display: none; }

    .service { grid-template-columns: 52px 1fr; gap: 1.5rem; }

    .steps { grid-template-columns: 1fr 1fr; gap: 2rem; }

    .why { grid-template-columns: 1fr; gap: 2.5rem; }

    .contact { grid-template-columns: 1fr; }
    .form__row { grid-template-columns: 1fr; }

    .footer__inner { flex-direction: column; gap: 2.5rem; }
    .footer__legal { align-items: flex-start; }
}

@media (max-width: 500px) {
    .steps { grid-template-columns: 1fr; }
    .hero__ctas { flex-direction: column; }
    .hero__ctas .btn { width: 100%; }
}
