/* ==========================================================================
   IT-Messner — Stylesheet
   Design system: light/dark sections, pill buttons, system font stack,
   signature "network node" motif tying visuals to the core WLAN/network service.
   ========================================================================== */

:root {
  /* Colors */
  --ink: #1d1d1f;
  --paper: #ffffff;
  --mist: #f5f5f7;
  --mist-dark: #e8e8ed;
  --graphite: #6e6e73;
  --line: #d2d2d7;

  --signal: #0a5fe0;
  --signal-dark: #0850b3;
  --signal-tint: #eaf2fd;

  --void: #0a0a0d;
  --void-elevated: #17171a;
  --void-text: #f5f5f7;
  --void-muted: #9a9aa1;
  --void-line: #2b2b2f;

  /* Type */
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, monospace;

  /* Layout */
  --container-w: 1180px;
  --pad-inline: clamp(1.25rem, 5vw, 2.5rem);
  --section-pad: clamp(4.5rem, 11vw, 9rem);

  /* Radius */
  --r-pill: 980px;
  --r-card: 20px;
  --r-sm: 12px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
address { font-style: normal; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

.section { padding-block: var(--section-pad); position: relative; }
.section--mist { background: var(--mist); }
.section--void { background: var(--void); color: var(--void-text); }
.section--void .graphite-text { color: var(--void-muted); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 1.1rem;
}
.section--void .eyebrow { color: #5b9dfb; }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }

.h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.h2 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.08;
}

.h3 { font-size: 1.3125rem; letter-spacing: -0.01em; }

.body-lg {
  font-size: clamp(1.0625rem, 1.4vw, 1.3125rem);
  font-weight: 400;
  color: var(--graphite);
  line-height: 1.55;
}
.section--void .body-lg { color: var(--void-muted); }

.lede { max-width: 620px; }
.center { text-align: center; margin-inline: auto; }

.section-head { max-width: 700px; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head.center { max-width: 700px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.85rem;
  border-radius: var(--r-pill);
  font-size: 1.03rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), color .35s var(--ease);
  white-space: nowrap;
}

.btn--primary { background: var(--signal); color: #fff; }
.btn--primary:hover { background: var(--signal-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(10, 95, 224, 0.28); }

.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(29,29,31,0.04); }

.section--void .btn--ghost { color: var(--void-text); border-color: var(--void-line); }
.section--void .btn--ghost:hover { border-color: var(--void-text); background: rgba(245,245,247,0.06); }

.btn--sm { padding: 0.6rem 1.35rem; font-size: 0.92rem; }

.btn--link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border-radius: 0;
  color: var(--signal);
  font-weight: 500;
  font-size: 1.05rem;
}
.section--void .btn--link { color: #5b9dfb; }
.btn--link .arrow { transition: transform 0.3s var(--ease); }
.btn--link:hover .arrow { transform: translateX(5px); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  gap: 1.5rem;
}

.nav__logo {
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav__links { display: flex; align-items: center; gap: 2.1rem; }
.nav__links a {
  font-size: 0.92rem;
  color: var(--ink);
  opacity: 0.82;
  transition: opacity 0.25s var(--ease);
}
.nav__links a:hover { opacity: 1; }

.nav__right { display: flex; align-items: center; gap: 1.25rem; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
}
.nav__toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(58px + clamp(4.5rem, 13vw, 9rem));
  padding-bottom: clamp(4rem, 10vw, 7rem);
  overflow: hidden;
  background: var(--paper);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 1.4rem;
}

.hero h1 { margin-bottom: 1.4rem; }
.hero .body-lg { max-width: 620px; margin-inline: auto; margin-bottom: 2.6rem; }
.hero .cta-row { justify-content: center; }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--paper);
  border-radius: var(--r-card);
  padding: 2.1rem 1.9rem 2.3rem;
  border: 1px solid var(--mist-dark);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.service-card.is-visible { opacity: 1; transform: translateY(0); }
.service-card:hover { border-color: var(--line); box-shadow: 0 16px 36px rgba(29,29,31,0.06); }

.service-card__icon {
  width: 46px;
  height: 46px;
  color: var(--signal);
  margin-bottom: 1.4rem;
}
.service-card__icon svg { width: 100%; height: 100%; }

.service-card h3 { margin-bottom: 0.6rem; }
.service-card p { color: var(--graphite); font-size: 0.98rem; line-height: 1.55; }

/* ---------- Feature spotlight (alternating large sections) ---------- */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.spotlight__visual {
  aspect-ratio: 4 / 3.1;
  border-radius: var(--r-card);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotlight__text h2 { margin-bottom: 1.2rem; }
.spotlight__text .body-lg { margin-bottom: 1.6rem; }

.feature-list { display: flex; flex-direction: column; gap: 0.85rem; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
}
.feature-list .tick {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 0.15rem;
  color: var(--signal);
}
.section--void .feature-list .tick { color: #5b9dfb; }

/* Drone/media visual */
.visual-media {
  background: linear-gradient(155deg, #0f1420 0%, #0a0a0d 55%, #111826 100%);
}
.visual-media__frame {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.visual-media__glow {
  position: absolute;
  width: 60%; height: 60%;
  background: radial-gradient(circle, rgba(10,95,224,0.35), transparent 70%);
  filter: blur(10px);
}

/* Network visual */
.visual-network {
  background: linear-gradient(155deg, var(--signal-tint) 0%, #f5f5f7 60%);
}

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--void-line);
  border: 1px solid var(--void-line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.why-item {
  background: var(--void);
  padding: 2.4rem 1.9rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.why-item.is-visible { opacity: 1; transform: translateY(0); }
.why-item .dash {
  display: block;
  width: 28px; height: 2px;
  background: #5b9dfb;
  margin-bottom: 1.3rem;
}
.why-item h3 { margin-bottom: 0.65rem; color: var(--void-text); }
.why-item p { color: var(--void-muted); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; text-align: center; }
.contact__inner { position: relative; z-index: 2; max-width: 640px; margin-inline: auto; }
.contact .eyebrow { }
.contact h2 { margin-bottom: 1rem; }
.contact .body-lg { margin-bottom: 2.4rem; }
.contact .cta-row { justify-content: center; margin-bottom: 2.8rem; }

.contact__details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--void-line);
  color: var(--void-muted);
  font-size: 0.94rem;
}

.hero__canvas, .contact__canvas { pointer-events: none; }
.contact__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.7;
}

/* ---------- Footer ---------- */
.footer {
  padding-block: 3.2rem;
  border-top: 1px solid var(--mist-dark);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.footer__brand { font-weight: 600; margin-bottom: 0.3rem; }
.footer__tagline { color: var(--graphite); font-size: 0.88rem; }
.footer__links { display: flex; gap: 1.6rem; }
.footer__links a { font-size: 0.88rem; color: var(--graphite); }
.footer__links a:hover { color: var(--ink); }
.footer__legal { color: var(--graphite); font-size: 0.82rem; margin-top: 0.3rem; }

/* ---------- Scroll reveal (generic) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */
.legal {
  padding-top: calc(58px + 4rem);
  padding-bottom: 6rem;
}
.legal__header { margin-bottom: 2.8rem; max-width: 640px; }
.legal__header h1 { margin-bottom: 0.8rem; }
.legal-content { max-width: 700px; }
.legal-content h2 {
  font-size: 1.2rem;
  margin-top: 2.6rem;
  margin-bottom: 0.85rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 0.9rem; color: var(--ink); }
.legal-content p.muted { color: var(--graphite); font-size: 0.92rem; }
.legal-content a { color: var(--signal); }
.legal-content a:hover { text-decoration: underline; }
.legal-content .note {
  margin-top: 2.8rem;
  padding: 1.3rem 1.5rem;
  background: var(--mist);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  color: var(--graphite);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .spotlight { grid-template-columns: 1fr; }
  .spotlight__visual { order: -1; aspect-ratio: 16 / 10; }
}

@media (max-width: 720px) {
  .nav__links { 
    position: fixed;
    inset: 58px 0 0 0;
    height: calc(100dvh - 58px);
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 2.5rem;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { font-size: 1.3rem; opacity: 1; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }

  .cta-row { justify-content: center; width: 100%; }
  .cta-row .btn { flex: 1 1 auto; }

  .footer__inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .contact__details { flex-direction: column; gap: 0.6rem; }
}

@media (max-width: 480px) {
  .h1 { letter-spacing: -0.025em; }
  .btn { width: 100%; }
  .hero .cta-row, .contact .cta-row { flex-direction: column; }
  .hero .cta-row .btn, .contact .cta-row .btn { width: 100%; }
}
