/* =====================================================================
   ALPINE SECURITY DAVOS — "Tactical Stealth" variant
   Discreet, elite, monochrome. Single amber signal accent.
   Display: Archivo (heavy, uppercase). Mono: JetBrains Mono. Body: Inter.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg:    #0B0B0C;        /* true black */
  --panel: #121214;        /* slightly raised surface */
  --line:  rgba(231, 231, 233, .16);
  --line-strong: rgba(231, 231, 233, .28);
  --text:  #E7E7E9;        /* steel white */
  --muted:  #8A8A90;
  --amber: #C8A24B;        /* the only signal accent — used sparingly */

  --display: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Space Mono", monospace;
  --body: "Inter", system-ui, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --img-filter: grayscale(100%) contrast(1.06) brightness(.92);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 800; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--amber); color: #000;
  font-family: var(--mono); font-size: 13px; letter-spacing: .06em;
  padding: 10px 16px; text-transform: uppercase;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

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

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2, .6, .2, 1),
              transform .7s cubic-bezier(.2, .6, .2, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Mono labels: index / tags / kicker ---------- */
.index,
.kicker,
.tag {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  color: var(--muted);
}
.tag { color: var(--amber); letter-spacing: .14em; }

/* =====================================================================
   BUTTONS — sharp rectangle, amber hairline border, mono uppercase
   ===================================================================== */
.btn {
  --pad-y: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--pad-y) 26px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary {
  border-color: var(--amber);
  color: var(--amber);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--amber);
  color: #000;
}
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--text);
}
.btn--block { width: 100%; }

/* =====================================================================
   HEADER
   ===================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 12, .82);
  border-bottom: 1px solid var(--line);
  transition: background .25s ease, border-color .25s ease;
}
.header.is-scrolled {
  background: rgba(11, 11, 12, .96);
  border-bottom-color: var(--line-strong);
}
@supports (backdrop-filter: blur(6px)) {
  /* light frosted only — not a glassmorphism card, just header legibility */
  .header { backdrop-filter: blur(6px); }
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}
.brand__logo { height: 34px; width: auto; }

.header__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
  margin-right: auto;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 14px;
  position: relative;
  transition: color .18s ease;
}
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 1px;
  background: var(--amber);
}
.nav__cta {
  margin-left: 14px;
  padding: 11px 20px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 1.5px;
  margin-inline: auto;
  background: var(--text);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =====================================================================
   HERO — full bleed, heavy scrim, corner ticks
   ===================================================================== */
.hero {
  position: relative;
  min-height: clamp(560px, 92vh, 880px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: var(--img-filter);
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,12,.55) 0%, rgba(11,11,12,.35) 40%, rgba(11,11,12,.92) 100%),
    linear-gradient(90deg, rgba(11,11,12,.78) 0%, rgba(11,11,12,.18) 70%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(48px, 9vh, 96px);
  max-width: 920px;
}
.kicker { margin: 0 0 22px; color: var(--text); }

.hero__title {
  font-size: clamp(2.3rem, 6.4vw, 5.1rem);
  line-height: .98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  max-width: 16ch;
  margin: 0;
}
.hero__rule {
  display: block;
  width: 84px; height: 2px;
  background: var(--amber);
  margin: 30px 0 26px;
}
.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 36px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__coords {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.hero__coords .dot {
  width: 5px; height: 5px;
  background: var(--amber);
  display: inline-block;
}

/* Corner ticks / crosshair marks */
.tick {
  position: absolute;
  width: 18px; height: 18px;
  z-index: 3;
  pointer-events: none;
}
.tick::before, .tick::after {
  content: "";
  position: absolute;
  background: var(--line-strong);
}
.tick::before { width: 18px; height: 1px; top: 0; }
.tick::after  { width: 1px; height: 18px; left: 0; }
.tick--tl { top: 24px; left: 24px; }
.tick--tr { top: 24px; right: 24px; }
.tick--tr::before { right: 0; left: auto; }
.tick--tr::after  { right: 0; left: auto; }
.tick--bl { bottom: 24px; left: 24px; }
.tick--bl::before { bottom: 0; top: auto; }
.tick--br { bottom: 24px; right: 24px; }
.tick--br::before { bottom: 0; top: auto; right: 0; left: auto; }
.tick--br::after  { bottom: 0; top: auto; right: 0; left: auto; }

/* =====================================================================
   SECTION SCAFFOLD
   ===================================================================== */
.section {
  padding-block: clamp(72px, 11vh, 140px);
  position: relative;
}
.section + .section { border-top: 1px solid var(--line); }

.section__head { margin-bottom: clamp(44px, 6vh, 72px); }
.index { display: block; margin: 0 0 18px; }
.section__title {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.section__sub {
  margin: 22px 0 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.02rem;
}

/* =====================================================================
   SERVICES — technical spec list, hairline rows
   ===================================================================== */
.spec { border-top: 1px solid var(--line); }
.spec__row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 28px;
  padding: clamp(26px, 4vh, 40px) 0;
  border-bottom: 1px solid var(--line);
  transition: background .25s ease, padding-left .25s ease;
}
.spec__row:hover {
  background: var(--panel);
  padding-left: 16px;
}
.spec__idx {
  font-family: var(--mono);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 700;
  color: var(--amber);
  letter-spacing: .04em;
  line-height: 1.1;
}
.spec__title {
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
}
.spec__title .tag { font-size: 11px; }
.spec__desc {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}
.spec__desc + .spec__desc { margin-top: 4px; }

/* =====================================================================
   ABOUT
   ===================================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.about__content .section__head { margin-bottom: 32px; }
.about__content .section__title { line-height: .98; }
.about__text { color: var(--muted); margin: 0 0 30px; max-width: 52ch; }

.checklist { margin: 0 0 36px; display: grid; gap: 14px; }
.checklist li {
  position: relative;
  padding-left: 28px;
  font-size: .98rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 10px; height: 1px;
  background: var(--amber);
}

.about__media {
  position: relative;
  margin: 0;
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.about__media img {
  filter: var(--img-filter);
  width: 100%;
}
.about__cap {
  margin: 20px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
}

/* =====================================================================
   SLOGAN BAND (alpine divider, monochrome)
   ===================================================================== */
.band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band__media { position: absolute; inset: 0; z-index: 0; }
.band__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1) brightness(.5);
}
.band__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,11,12,.9) 0%, rgba(11,11,12,.55) 60%, rgba(11,11,12,.8) 100%);
}
.band__inner {
  position: relative; z-index: 2;
  padding-block: clamp(80px, 14vh, 160px);
}
.band__coords {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--amber);
  margin: 0 0 22px;
}
.band__slogan {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.8vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
  max-width: 22ch;
}
.band__sub {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

/* =====================================================================
   EINSÄTZE — monochrome grid, color returns subtly on hover
   ===================================================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.grid__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
}
.grid__item--tall { grid-row: span 2; }
.grid__item--wide { grid-column: span 2; }
.grid__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: var(--img-filter);
  transition: filter .5s ease, transform .6s ease;
}
.grid__item:hover img {
  filter: grayscale(0%) contrast(1.02);
  transform: scale(1.03);
}
.grid__cap {
  position: absolute;
  left: 12px; bottom: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--text);
  background: rgba(11,11,12,.66);
  padding: 5px 9px;
  display: flex;
  gap: 8px;
  text-transform: uppercase;
}
.grid__cap .tag { color: var(--amber); }

/* =====================================================================
   KONTAKT
   ===================================================================== */
.kontakt__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(40px, 6vw, 88px);
}
.kontakt__info .section__head { margin-bottom: 30px; }
.kontakt__info .section__sub { margin-bottom: 38px; }

.coord-list { display: grid; border-top: 1px solid var(--line); }
.coord-list__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.coord-list__row dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--muted);
  padding-top: 3px;
}
.coord-list__row dd { margin: 0; color: var(--text); }
.coord-list__row a:hover { color: var(--amber); }

/* Form */
.kontakt__form {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(26px, 4vw, 44px);
}
.form-index {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--muted);
  margin: 0 0 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.field input,
.field select,
.field textarea {
  font-family: var(--body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 13px 14px;
  width: 100%;
  transition: border-color .18s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber);
}
.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
}
.kontakt__form .btn { margin-top: 6px; }

.form-note {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  min-height: 1.2em;
}
.form-note.is-ok  { color: var(--amber); }
.form-note.is-err { color: #d97a6c; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-block: clamp(56px, 8vh, 88px);
}
.footer__logo { height: 36px; width: auto; margin-bottom: 18px; }
.footer__tag { color: var(--muted); max-width: 34ch; margin: 0 0 18px; }
.footer__coords {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
  margin: 0;
  text-transform: uppercase;
}
.footer__nav h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--muted);
  margin: 0 0 18px;
}
.footer__nav a,
.footer__muted {
  display: block;
  color: var(--text);
  font-size: .95rem;
  margin-bottom: 10px;
  transition: color .18s ease;
}
.footer__nav a:hover { color: var(--amber); }
.footer__muted { color: var(--muted); }

.social { display: flex; gap: 10px; }
.social__link {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--text);
  transition: border-color .18s ease, color .18s ease;
}
.social__link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.social__link:hover { border-color: var(--amber); color: var(--amber); }

.footer__bottom { border-top: 1px solid var(--line); }
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
}
.footer__legal { display: flex; gap: 22px; }
.footer__legal a:hover { color: var(--text); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .about__grid,
  .kontakt__grid { grid-template-columns: 1fr; }
  .about__media { order: -1; }
}

/* Mobile nav: collapse under ~860px into slide-down menu */
@media (max-width: 860px) {
  .header__meta { display: none; }
  .nav-toggle { display: flex; }
  .brand { margin-right: auto; }

  .nav {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line-strong);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-130%);
    opacity: 0;
    visibility: hidden;
    transition: transform .3s ease, opacity .25s ease, visibility .25s ease;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav__link {
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }
  .nav__link.is-active::after { display: none; }
  .nav__cta {
    margin: 18px 0 0;
    width: 100%;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }
  .grid__item--wide { grid-column: span 2; }
  .grid__item--tall { grid-row: span 1; }
}

@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .spec__row { grid-template-columns: 56px 1fr; gap: 18px; }
  .hero__actions { gap: 10px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; }
  .coord-list__row { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 380px) {
  :root { --gutter: 18px; }
  .hero__coords { flex-direction: column; align-items: flex-start; gap: 6px; }
  .grid { grid-template-columns: 1fr; }
  .grid__item--wide { grid-column: span 1; }
}
