/* HAUBIZ – Technik · Service · Lösungen
   Dunkles Design. Keine externen Schriften, keine Skripte von Dritten, keine Cookies. */
:root {
  --bg: #090d14;
  --bg-2: #0d131d;
  --surface: #121a27;
  --surface-2: #18222f;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .18);
  --head: #f4f5f7;
  --text: #b4bdc9;
  --muted: #8691a0;
  --gold: #c9a86c;
  --gold-2: #e6cf9f;
  --radius: 2px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Montserrat", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.7; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 4px; }
::selection { background: var(--gold); color: #10151d; }
h1, h2, h3 { color: var(--head); line-height: 1.15; margin: 0 0 .6em; font-weight: 300; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); letter-spacing: -.005em; }
h3 { font-size: .95rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
strong { color: var(--head); font-weight: 600; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #10151d; padding: .7em 1em; z-index: 100; }
.skip:focus { left: 0; }
.eyebrow { display: flex; align-items: center; gap: .9em; font-size: .74rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0 0 1.3em; }
.eyebrow::before { content: ""; width: 2.6em; height: 1px; background: var(--gold); flex: none; }
.center .eyebrow { justify-content: center; }
.center .eyebrow::after { content: ""; width: 2.6em; height: 1px; background: var(--gold); flex: none; }

/* Kopf */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(9, 13, 20, .72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid transparent; transition: background .4s, border-color .4s; }
.site-header.scrolled { background: rgba(9, 13, 20, .93); border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.logo img { width: 172px; filter: brightness(0) invert(1); opacity: .95; }
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nav-btn { display: none; cursor: pointer; padding: .6em 1em; border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--head); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; }
.nav ul { list-style: none; display: flex; gap: 1.7rem; margin: 0; padding: 0; }
.nav a { position: relative; display: block; padding: .6em 0; text-decoration: none; color: #cfd6df; font-size: .82rem; font-weight: 500; letter-spacing: .06em; transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: .2em; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (min-width: 1181px) { .nav-toggle { display: none; } }
@media (max-width: 1180px) {
  .nav-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: rgba(9, 13, 20, .98); border-bottom: 1px solid var(--line); }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem 1.25rem 1.5rem; }
  .nav a { padding: 1em 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--gold-2); }
  .nav-toggle:checked ~ .nav { display: block; animation: drop .35s var(--ease); }
  .nav-toggle:focus-visible + .nav-btn { outline: 2px solid var(--gold-2); outline-offset: 4px; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* Knöpfe */
.btn { position: relative; display: inline-block; padding: 1.05em 2em; border-radius: var(--radius); background: var(--gold); color: #10151d; text-decoration: none; font-weight: 600; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; border: 1px solid var(--gold); font-family: inherit; cursor: pointer; overflow: hidden; isolation: isolate; transition: color .4s, border-color .4s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; transform: translateY(101%); transition: transform .45s var(--ease); }
.btn:hover { color: #10151d; border-color: #fff; }
.btn:hover::before { transform: none; }
.btn.ghost, .btn.line { background: transparent; color: var(--head); border-color: var(--line-2); }
.btn.ghost::before, .btn.line::before { background: var(--gold); }
.btn.ghost:hover, .btn.line:hover { color: #10151d; border-color: var(--gold); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

/* Hero */
.hero { position: relative; display: flex; align-items: flex-end; min-height: min(92vh, 900px); margin-top: -79px; padding: 0; overflow: hidden; isolation: isolate; color: #d8dee6; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--bg-2) center/cover no-repeat; filter: saturate(.55) contrast(1.08) brightness(.8); animation: kenburns 26s ease-out both; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9,13,20,.72) 0%, rgba(9,13,20,.25) 34%, rgba(9,13,20,.78) 78%, var(--bg) 100%), linear-gradient(90deg, rgba(9,13,20,.82) 0%, rgba(9,13,20,.2) 70%); }
.hero-home::before { background-image: url(assets/hero-home.jpg); }
.hero-industrie::before { background-image: url(assets/hero-industrie.jpg); }
.hero-montage::before { background-image: url(assets/hero-montage.jpg); }
.hero-objekt::before { background-image: url(assets/hero-objekt.jpg); }
.hero-ueber::before { background-image: url(assets/hero-ueber.jpg); }
.hero-kontakt::before { background-image: url(assets/hero-kontakt.jpg); }
.hero .wrap { padding-block: 11rem clamp(4rem, 9vw, 7rem); }
.hero h1 { max-width: 17ch; color: #fff; }
.hero p.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); max-width: 54ch; color: #cbd3dd; }
.hero.small { min-height: min(64vh, 620px); }
.hero.small h1 { max-width: 22ch; font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.hero .wrap > * { animation: rise 1s var(--ease) both; }
.hero .wrap > :nth-child(2) { animation-delay: .12s; }
.hero .wrap > :nth-child(3) { animation-delay: .26s; }
.hero .wrap > :nth-child(4) { animation-delay: .4s; }
.scroll-hint { position: absolute; right: clamp(1.25rem, 4vw, 3rem); bottom: 2.5rem; writing-mode: vertical-rl; font-size: .68rem; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 1em; }
.scroll-hint::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--gold), transparent); animation: hint 2.4s ease-in-out infinite; transform-origin: top; }
@media (max-width: 700px) { .scroll-hint { display: none; } }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes hint { 0%, 100% { transform: scaleY(.35); opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }

/* Laufband Branchen */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 1.15rem 0; }
.marquee ul { list-style: none; display: flex; gap: 3.5rem; margin: 0; padding: 0; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover ul { animation-play-state: paused; }
.marquee li { font-size: .74rem; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 3.5rem; }
.marquee li::after { content: ""; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Abschnitte */
section { padding-block: clamp(4rem, 9vw, 7.5rem); }
section.soft { background: var(--bg-2); }
section.dark { background: var(--surface); border-block: 1px solid var(--line); }
.lead { font-size: 1.18rem; max-width: 60ch; color: #c9d1db; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.grid { display: grid; gap: 1.5rem; }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); }
.mt { margin-top: 2.6rem; }
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); align-items: center; }
.split.top { align-items: start; }
.frame { position: relative; margin: 0 1.1rem 1.1rem 0; isolation: isolate; }
.frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.7) contrast(1.05); transition: filter .8s; }
.frame:hover img { filter: none; }
.frame::after { content: ""; position: absolute; inset: 1.1rem -1.1rem -1.1rem 1.1rem; border: 1px solid var(--gold); opacity: .45; z-index: -1; pointer-events: none; }
.frame.portrait { max-width: 400px; justify-self: center; }
.frame.portrait img { aspect-ratio: auto; filter: none; }

/* Leistungskarten */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; transition: border-color .5s, transform .6s var(--ease); }
.card:hover { border-color: rgba(201, 168, 108, .55); transform: translateY(-6px); }
.card .pic { overflow: hidden; position: relative; }
.card .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, var(--surface) 100%); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; filter: saturate(.6) brightness(.85); transition: transform 1.2s var(--ease), filter .8s; }
.card:hover img { transform: scale(1.07); filter: saturate(1) brightness(1); }
.card .num { position: absolute; top: 1rem; left: 1.2rem; z-index: 1; font-size: .72rem; letter-spacing: .3em; color: var(--gold-2); }
.card .body { padding: .4rem 1.7rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: .8em; }
.card p.sub { color: #d5dbe3; }
.card ul { list-style: none; padding: 0; color: var(--muted); font-size: .97rem; }
.card ul li { padding: .45em 0; border-top: 1px solid var(--line); }
.card .more { margin-top: auto; padding-top: 1rem; font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--gold); }
.card .more::after { content: "→"; display: inline-block; margin-left: .7em; transition: transform .4s var(--ease); }
.card:hover .more::after { transform: translateX(6px); }
.card .more::before { content: ""; position: absolute; inset: 0; }

/* Kacheln */
.tile { position: relative; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); padding: 1.7rem 1.6rem; transition: border-color .5s, background .5s; }
.tile::before { content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.tile:hover { background: rgba(255, 255, 255, .045); border-color: var(--line-2); }
.tile:hover::before, .tile.in::before { transform: scaleX(.22); }
.tile:hover::before { transform: scaleX(1); }
.tile h3 { margin-bottom: .7em; }
.tile p, .tile ul { margin-bottom: 0; color: var(--muted); font-size: .98rem; }
.tile ul { padding-left: 1.1em; }

/* Ablauf */
.steps { counter-reset: step; display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); border-top: 1px solid var(--line-2); }
.step { counter-increment: step; padding: 2rem 1.6rem 0 0; position: relative; }
.step::before { content: "0" counter(step); display: block; font-size: 2.6rem; font-weight: 200; color: var(--gold); line-height: 1; margin-bottom: .5em; }
.step::after { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.step h3 { margin-bottom: .6em; }
.step p { color: var(--muted); font-size: .98rem; margin: 0; }

/* Bildergalerie */
.gallery { display: grid; gap: .8rem; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 19vw, 250px); }
.gallery figure { margin: 0; position: relative; overflow: hidden; background: var(--surface); }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery.three { grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(200px, 26vw, 340px); }
.gallery.three figure:first-child { grid-column: auto; grid-row: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.45) brightness(.78) contrast(1.08); transition: transform 1.4s var(--ease), filter .9s; }
.gallery figure:hover img { transform: scale(1.06); filter: saturate(1) brightness(1); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1.1rem .9rem; font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: #e8ebef; background: linear-gradient(transparent, rgba(9, 13, 20, .88)); }
@media (max-width: 760px) {
  .gallery, .gallery.three { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; }
  .gallery.three figure:first-child { grid-column: span 2; }
}

.check { list-style: none; padding: 0; }
.check li { position: relative; padding: .6em 0 .6em 2em; border-bottom: 1px solid var(--line); color: #cdd4dd; }
.check li::before { content: ""; position: absolute; left: .2em; top: 1.2em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }

/* Abschluss-Band */
.cta { position: relative; text-align: center; isolation: isolate; overflow: hidden; border-top: 1px solid var(--line); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 50% 0%, rgba(201, 168, 108, .16), transparent 70%), var(--bg-2); }
.cta h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
.cta .btn-row { justify-content: center; }
.note { font-size: .9rem; color: var(--muted); }

/* Kontakt */
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.contact-list li { padding: 1.2rem 0; border-bottom: 1px solid var(--line); color: #d5dbe3; }
.contact-list strong { display: block; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: .4em; }
.contact-list a { font-size: 1.35rem; font-weight: 300; text-decoration: none; color: var(--head); }
.contact-list a:hover { color: var(--gold-2); }
form.mail { display: grid; gap: 1.2rem; background: var(--surface); border: 1px solid var(--line); padding: clamp(1.4rem, 3vw, 2.4rem); }
form.mail label { display: grid; gap: .5rem; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
form.mail input, form.mail textarea { font: inherit; font-size: 1rem; letter-spacing: normal; text-transform: none; padding: .8em 0; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; color: var(--head); width: 100%; border-radius: 0; transition: border-color .3s; }
form.mail input:focus, form.mail textarea:focus { outline: none; border-bottom-color: var(--gold); }
form.mail textarea { min-height: 8rem; resize: vertical; }
form.mail .btn { justify-self: start; }

/* Rechtstexte */
.legal { max-width: 76ch; padding-top: 2rem; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.legal h2 { font-size: 1.3rem; font-weight: 400; margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.legal address { font-style: normal; margin-bottom: 1em; color: #d5dbe3; }

/* Fuß */
.site-footer { background: #06090e; color: var(--muted); font-size: .95rem; border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 4.5rem 1.8rem; }
.site-footer .cols { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.site-footer img { width: 170px; filter: brightness(0) invert(1); opacity: .9; margin-bottom: 1.2rem; }
.site-footer h2 { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 1.4em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55em; }
.site-footer a { color: #cfd6df; text-decoration: none; transition: color .3s; }
.site-footer a:hover { color: var(--gold-2); }
.site-footer address { font-style: normal; }
.site-footer .bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .8rem; letter-spacing: .04em; }

/* Einblenden beim Scrollen (nur mit JavaScript aktiv) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease), border-color .5s, background .5s; }
.js .reveal.in { opacity: 1; transform: none; }

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

/* Karten-Anhebung auch nach dem Einblenden */
.js .card.reveal.in:hover { transform: translateY(-6px); }
