/* Wankner + Mairhofer · Gerüstbau- und Verleih · wankner-mairhofer.tab-log.cloud */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --grund: #0A1826;
  --grund-2: #0D2032;
  --panel: #102840;
  --linie: #1C3A55;
  --text: #E9EEF3;
  --muted: #9FB0BE;
  --blau: #2E8FCC;
  --blau-tief: #0060A8;
  --gelb: #D6D400;
  --topbar-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--grund);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Archivo", sans-serif; letter-spacing: -0.01em; line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 5.5vw, 3.2rem); font-weight: 800; }
h3 { font-size: clamp(1.3rem, 3.5vw, 1.9rem); font-weight: 700; }
.mono { font-family: "Plex Mono", monospace; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gelb); color: #0A1826; padding: 10px 16px; font-weight: 600;
}
.skip:focus { left: 8px; }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; gap: 18px;
  padding: calc(0.6rem + env(safe-area-inset-top, 0px)) clamp(16px, 4vw, 40px) 0.6rem;
  background: rgba(9, 21, 34, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.02rem; letter-spacing: 0.01em; }
.brand-name .plus { color: var(--gelb); padding: 0 1px; }
.brand-sub { font-family: "Plex Mono", monospace; font-size: 0.58rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted); }
.nav { display: none; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 0.92rem; color: var(--muted); transition: color 0.2s; }
.nav a:hover { color: #fff; }
.nav .nav-jobs { color: var(--gelb); }
.top-tel {
  margin-left: auto;
  font-family: "Plex Mono", monospace; font-size: 0.85rem; font-weight: 600;
  text-decoration: none; color: #fff;
  border: 1px solid var(--linie); border-radius: 999px; padding: 8px 14px;
  transition: border-color 0.2s, background 0.2s;
}
.top-tel:hover { border-color: var(--blau); background: rgba(46, 143, 204, 0.12); }
@media (min-width: 900px) { .nav { display: flex; } .top-tel { margin-left: 0; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.slides, .slides .slide { position: absolute; inset: 0; }
.slides .slide {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.4s ease;
}
.slides .slide.is-active { opacity: 1; animation: kenburns 7s ease-out forwards; }
.slide-portrait { object-position: center 62%; }
@keyframes kenburns { from { transform: scale(1.09); } to { transform: scale(1.0); } }
.hero-shade {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, rgba(10, 24, 38, 0.55) 0%, rgba(10, 24, 38, 0.15) 35%, rgba(10, 24, 38, 0.82) 82%, var(--grund) 100%),
    linear-gradient(75deg, rgba(10, 24, 38, 0.72) 0%, rgba(10, 24, 38, 0.15) 55%);
}
.hero-inner {
  position: relative; z-index: 3;
  padding: 0 clamp(18px, 5vw, 64px) clamp(84px, 12vh, 130px);
  max-width: 900px;
}
.hero-kicker {
  font-family: "Plex Mono", monospace; font-size: clamp(0.68rem, 1.6vw, 0.8rem);
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gelb);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.6rem, 9vw, 6.2rem); font-weight: 800;
  text-transform: none;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero-sub { margin-top: 18px; max-width: 34rem; font-size: clamp(0.98rem, 2.4vw, 1.15rem); color: #D5DEE6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 8px;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 0; transition: transform 0.15s ease, background 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--blau-tief); color: #fff; }
.btn-primary:hover { background: var(--blau); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); }
.btn-ghost:hover { border-color: var(--gelb); color: var(--gelb); }

.hero-dots { position: absolute; z-index: 3; right: clamp(18px, 4vw, 40px); bottom: 26px; display: flex; gap: 8px; }
.hero-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); transition: background 0.3s, transform 0.3s; }
.hero-dots i.on { background: var(--gelb); transform: scale(1.25); }
.hero-hint { position: absolute; z-index: 3; left: 50%; bottom: 18px; transform: translateX(-50%); width: 1px; height: 44px; overflow: hidden; opacity: 0.6; }
.hero-hint span { display: block; width: 1px; height: 100%; background: linear-gradient(#fff0, #fff); animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* ---------- Vertrauensband ---------- */
.band { border-block: 1px solid var(--linie); background: var(--grund-2); }
.band-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 26px 12px; max-width: 1100px; margin: 0 auto;
  padding: clamp(34px, 6vw, 56px) clamp(18px, 4vw, 40px);
}
.fact { text-align: center; }
.fact .num { display: block; font-size: clamp(1.9rem, 5.5vw, 3rem); font-weight: 600; color: #fff; }
.fact .num small { font-size: 0.5em; color: var(--gelb); }
.fact .lbl { display: block; margin-top: 4px; font-size: 0.85rem; color: var(--muted); }
@media (min-width: 760px) { .band-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Leistungen: Panel-Deck ---------- */
.deck-stage { position: relative; }
.deck-head { padding: clamp(56px, 9vw, 96px) clamp(18px, 4vw, 40px) 8px; max-width: 1240px; margin: 0 auto; }
.deck-panels { position: relative; }
.panel {
  padding: 26px clamp(18px, 4vw, 40px) 56px;
  display: grid; gap: 22px; align-content: start;
  background: var(--grund);
}
.panel-media { border-radius: 14px; overflow: hidden; border: 1px solid var(--linie); }
.panel-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.kicker { font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--blau); margin-bottom: 10px; }
.kicker-gelb { color: var(--gelb); }
.panel-text h3 { margin-bottom: 12px; font-size: clamp(1.5rem, 4vw, 2.3rem); }
.panel-text p { color: #C7D2DC; max-width: 32rem; }
.material { margin-top: 16px; font-size: 0.78rem; color: var(--muted); border-top: 1px solid var(--linie); padding-top: 12px; }
.deck-progress { display: none; }

@media (min-width: 900px) {
  .deck-stage { height: 100vh; padding-top: calc(var(--topbar-h) + 12px); overflow: hidden; }
  .deck-head { padding: 8px 40px 0; }
  .deck-panels { position: absolute; inset: calc(var(--topbar-h) + 84px) 0 0 0; }
  .panel {
    position: absolute; inset: 0; padding: 0;
    display: grid; grid-template-columns: 1fr minmax(0, 520px) minmax(0, 500px) 1fr;
    gap: 0 48px; align-items: center; align-content: center;
  }
  .panel-media { grid-column: 2; max-height: calc(100vh - var(--topbar-h) - 150px); }
  .panel-media img { max-height: calc(100vh - var(--topbar-h) - 152px); }
  .panel-text { grid-column: 3; padding-right: 24px; }
  .panel:not(.is-first) { transform: translateY(103%); }
  .deck-progress {
    display: block; position: absolute; right: 40px; bottom: 22px;
    font-size: 0.8rem; color: var(--muted); letter-spacing: 0.12em;
  }
  .deck-current { color: var(--gelb); }
}

/* ---------- Geschichte ---------- */
.story { max-width: 1240px; margin: 0 auto; padding: clamp(64px, 10vw, 120px) clamp(18px, 4vw, 40px); }
.sec-head { margin-bottom: clamp(30px, 6vw, 56px); }
.sec-sub { margin-top: 12px; color: var(--muted); max-width: 36rem; }
.story-list { list-style: none; display: grid; gap: clamp(40px, 7vw, 72px); }
.story-item { display: grid; gap: 20px; }
.story-media { border-radius: 14px; overflow: hidden; border: 1px solid var(--linie); }
.story-media img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.story-year { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 600; color: var(--gelb); }
.story-text h3 { margin: 6px 0 10px; }
.story-text p { color: #C7D2DC; max-width: 30rem; }
@media (min-width: 860px) {
  .story-item { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
  .story-item:nth-child(even) .story-media { order: 2; }
}

/* ---------- Referenzen ---------- */
.refs { max-width: 1240px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px) clamp(64px, 10vw, 120px); }
.refs-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.ref { border-radius: 14px; overflow: hidden; border: 1px solid var(--linie); background: var(--grund-2); }
.ref img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s ease; }
.ref:hover img { transform: scale(1.04); }
.ref figcaption { padding: 12px 16px; font-size: 0.88rem; color: var(--muted); }
@media (min-width: 700px) { .refs-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Jobs ---------- */
.jobs { background: var(--grund-2); border-block: 1px solid var(--linie); position: relative; overflow: hidden; }
.jobs::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--gelb);
}
.jobs-inner { max-width: 1100px; margin: 0 auto; padding: clamp(64px, 10vw, 110px) clamp(18px, 4vw, 40px); }
.jobs-roles { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 30px; }
.role {
  font-family: "Plex Mono", monospace; font-size: 0.88rem; font-weight: 600;
  border: 1px solid var(--gelb); color: var(--gelb);
  border-radius: 999px; padding: 10px 18px;
}
.jobs-benefits-title { margin-bottom: 16px; font-size: 1.15rem; color: #fff; }
.benefits { list-style: none; display: grid; gap: 10px 24px; grid-template-columns: 1fr; margin-bottom: 34px; }
.benefits li { padding-left: 26px; position: relative; color: #C7D2DC; }
.benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--gelb); font-weight: 700; }
.jobs-cta p { font-size: 1.2rem; font-weight: 600; margin-bottom: 14px; }
.jobs-contacts { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 700px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .benefits { grid-template-columns: 1fr 1fr 1fr; } }

/* ---------- Einzugsgebiet ---------- */
.area {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) clamp(18px, 4vw, 40px);
  display: grid; gap: 36px;
}
.area-text p { margin-top: 14px; color: #C7D2DC; max-width: 34rem; }
.area-orte { font-size: 0.82rem; color: var(--blau); letter-spacing: 0.06em; }
.area-hint { color: var(--muted); font-size: 0.92rem; }
.map-card {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--linie);
  background: var(--grund-2); min-height: 320px; display: grid;
}
.map-consent { display: grid; place-content: center; gap: 14px; text-align: center; padding: 28px; }
.map-adr { line-height: 1.5; }
.map-note { font-size: 0.8rem; color: var(--muted); max-width: 26rem; }
.map-note a { color: var(--blau); }
.map-card iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
@media (min-width: 900px) { .area { grid-template-columns: 1fr 1.1fr; align-items: center; } }

/* ---------- Kontakt ---------- */
.contact { max-width: 1240px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px) clamp(64px, 10vw, 110px); }
.tel-big {
  display: inline-block; text-decoration: none; color: #fff;
  font-size: clamp(2rem, 8.4vw, 5.4rem); font-weight: 600; letter-spacing: 0.01em;
  border-bottom: 3px solid var(--gelb); padding-bottom: 6px; margin-bottom: 40px;
  transition: color 0.2s;
}
.tel-big:hover { color: var(--gelb); }
.contact-grid { display: grid; gap: 40px; }
.tel-list { list-style: none; display: grid; gap: 10px; margin-bottom: 22px; }
.tel-list li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--linie); padding-bottom: 10px; flex-wrap: wrap; }
.tel-list span { color: var(--muted); }
.tel-list a { color: #fff; text-decoration: none; }
.tel-list a:hover { color: var(--blau); }
.wa-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 20px; border-radius: 8px;
  border: 1px solid var(--linie); text-decoration: none; font-weight: 600;
  transition: border-color 0.2s;
}
.wa-btn svg { color: #25d366; }
.wa-btn:hover { border-color: #25d366; }
.wa-hint { margin-top: 12px; font-size: 0.9rem; color: var(--muted); max-width: 26rem; }
.urlaub-note { margin-top: 20px; font-size: 0.78rem; color: var(--gelb); border: 1px dashed var(--linie); border-radius: 8px; padding: 10px 14px; max-width: 30rem; }

.contact-form { display: grid; gap: 16px; align-content: start; }
.contact-form label { display: grid; gap: 6px; font-size: 0.9rem; color: var(--muted); }
.contact-form input, .contact-form textarea {
  background: var(--grund-2); border: 1px solid var(--linie); border-radius: 8px;
  color: var(--text); font: inherit; padding: 12px 14px; min-height: 48px;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blau); outline-offset: 0; border-color: transparent; }
.form-hint { font-size: 0.78rem; color: var(--muted); }

.qr-card {
  display: none; align-content: start; justify-items: center; gap: 12px; text-align: center;
  background: #fff; color: #0A1826; border-radius: 14px; padding: 24px 20px; align-self: start;
}
.qr-card img { width: 176px; height: 176px; }
.qr-card p { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1.2fr 1fr 240px; }
  .qr-card { display: grid; }
}
@media (min-width: 700px) and (max-width: 1023px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.reviews { margin-top: clamp(48px, 8vw, 72px); border-top: 1px solid var(--linie); padding-top: 36px; }
.reviews-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.quotes { display: grid; gap: 12px; grid-template-columns: 1fr; }
.quotes blockquote {
  background: var(--grund-2); border: 1px solid var(--linie); border-radius: 10px;
  padding: 16px 18px; font-size: 0.92rem; color: #C7D2DC;
}
.reviews-link { display: inline-block; margin-top: 18px; color: var(--blau); font-size: 0.92rem; }
@media (min-width: 760px) { .quotes { grid-template-columns: 1fr 1fr; } }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--linie); background: #081422;
  padding: 40px clamp(18px, 4vw, 40px) calc(40px + env(safe-area-inset-bottom, 0px));
  display: grid; gap: 10px; font-size: 0.85rem; color: var(--muted);
}
.footer a { color: var(--muted); }
.footer a:hover { color: #fff; }
.footer-brand { display: flex; flex-direction: column; margin-bottom: 6px; }
.tablog-credit a { color: #1e6fa7; text-decoration: none; font-weight: 600; }
.tablog-credit a:hover { color: #f99c00; }

/* ---------- FAB ---------- */
.fab {
  position: fixed; z-index: 90;
  right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blau-tief); color: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
}
.fab.show { opacity: 1; pointer-events: auto; transform: none; }
.fab:hover { background: var(--blau); }
@media (min-width: 1024px) { .fab { display: none; } }

/* ---------- Reveals (nur versteckt, wenn JS aktiv ist und animieren wird) ---------- */
.js:not(.reduced-motion) [data-reveal] { opacity: 0; transform: translateY(24px); }

/* ---------- Legal-Seiten ---------- */
body.legal { background: var(--grund); }
.legal-top { padding: calc(20px + env(safe-area-inset-top, 0px)) clamp(18px, 4vw, 40px) 0; }
.legal-top .back { color: var(--muted); text-decoration: none; }
.legal-top .back:hover { color: #fff; }
.legal-main { max-width: 760px; margin: 0 auto; padding: 40px clamp(18px, 4vw, 40px) 80px; }
.legal-main h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 28px; }
.legal-main h2 { font-size: 1.35rem; margin: 34px 0 10px; }
.legal-main h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal-main p, .legal-main li { color: #C7D2DC; margin-bottom: 10px; }
.legal-main ul { padding-left: 22px; }
.legal-main a { color: var(--blau); }
.legal-foot {
  max-width: 760px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px) 60px;
  color: var(--muted); font-size: 0.85rem;
}
.legal-foot a { color: var(--muted); }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slides .slide.is-active { animation: none; transform: none; }
  .hero-hint { display: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
