/* A3 Technologies – Firmenwebsite, nur Systemschriften, keine externen Ressourcen */
:root {
  --color-bg: #0b141c;
  --color-bg-elevated: #121c25;
  --color-text: #eef3f6;
  --color-text-muted: #c3ced6;
  --color-accent: #8ecad0;
  --color-accent-hover: #a8dbe0;
  --color-paper: #f4f1ea;
  --color-ink: #1a232b;
  --color-ink-muted: #3d4a53;
  --color-placeholder-bg: #f3e3b8;
  --color-placeholder-ink: #3a2e0a;
  --color-line: rgba(255, 255, 255, 0.14);
  --color-line-dark: rgba(26, 35, 43, 0.16);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 42rem;
  --radius: 4px;
  --pad: clamp(1.25rem, 4.5vw, 3.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  display: block;
}

a {
  color: var(--color-accent);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-accent-hover);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4.5rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--pad);
  background: linear-gradient(180deg, rgba(8, 16, 24, 0.78) 0%, rgba(8, 16, 24, 0.28) 70%, transparent 100%);
}

.page--legal .site-header {
  position: relative;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
}

.wordmark {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

.wordmark:hover {
  color: var(--color-accent);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-accent);
  text-decoration: underline;
}

main {
  flex: 1 0 auto;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--color-text);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(8, 16, 24, 0.90) 0%,
      rgba(8, 16, 24, 0.78) 34%,
      rgba(8, 16, 24, 0.38) 58%,
      rgba(8, 16, 24, 0.10) 78%,
      rgba(8, 16, 24, 0.04) 100%
    ),
    linear-gradient(
      180deg,
      rgba(8, 16, 24, 0.45) 0%,
      rgba(8, 16, 24, 0.08) 28%,
      rgba(8, 16, 24, 0.18) 100%
    );
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(38rem, 100%);
  padding: 7.5rem var(--pad) 4.5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  font-weight: 500;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.4rem, 6.5vw, 4.35rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.08;
  color: #fff;
}

.lead {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.45;
  color: var(--color-text);
  max-width: 22em;
}

.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.85rem 1.45rem;
  background: var(--color-accent);
  color: var(--color-bg);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1px solid var(--color-accent);
}

.btn:hover {
  background: var(--color-accent-hover);
  color: var(--color-bg);
}

.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Über uns */
.section {
  background: var(--color-bg-elevated);
  padding: 4.25rem var(--pad) 5rem;
}

.wrap {
  width: min(var(--measure), 100%);
  margin: 0 auto;
}

.section h2 {
  margin: 0 0 1.4rem;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.section h2::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin-top: 0.7rem;
  background: var(--color-accent);
}

.section p {
  margin: 0 0 1.15rem;
  color: var(--color-text-muted);
}

.section p:last-child {
  margin-bottom: 0;
}

.section a {
  color: var(--color-accent);
  overflow-wrap: anywhere;
}

/* Legal pages */
.page--legal {
  background: var(--color-paper);
  color: var(--color-ink);
}

.legal {
  padding: 3.25rem var(--pad) 4.5rem;
}

.legal .wrap {
  width: min(40rem, 100%);
}

.legal h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-ink);
}

.legal h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--color-ink);
}

.legal p,
.legal address {
  margin: 0 0 1rem;
  font-style: normal;
  color: var(--color-ink);
}

.legal .intro {
  color: var(--color-ink-muted);
  margin-bottom: 1.5rem;
}

.legal a {
  color: #0b5f68;
  overflow-wrap: anywhere;
}

.legal a:hover {
  color: #08464c;
}

.legal a:focus-visible {
  outline-color: #0b5f68;
}

.stand {
  margin-top: 2.25rem;
  color: var(--color-ink-muted);
  font-size: 0.95rem;
}

.placeholder {
  display: inline-block;
  background: var(--color-placeholder-bg);
  color: var(--color-placeholder-ink);
  padding: 0.05em 0.28em;
  border-radius: 2px;
  border-bottom: 1px dashed #a8842a;
  font-weight: 600;
  white-space: nowrap;
}

.hint {
  font-size: 0.95rem;
  color: var(--color-ink-muted);
  margin-top: -0.35rem;
}

/* Footer */
.site-footer {
  background: #080f15;
  color: var(--color-text-muted);
  padding: 1.6rem var(--pad);
  border-top: 1px solid var(--color-line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  width: min(72rem, 100%);
  margin: 0 auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

.site-footer a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.copyright {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

@media (max-width: 720px) {
  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(8, 16, 24, 0.72) 0%,
        rgba(8, 16, 24, 0.78) 42%,
        rgba(8, 16, 24, 0.62) 100%
      ),
      linear-gradient(
        90deg,
        rgba(8, 16, 24, 0.70) 0%,
        rgba(8, 16, 24, 0.45) 100%
      );
  }

  .hero-inner {
    width: 100%;
    padding-top: 7rem;
    padding-bottom: 4rem;
  }

  .site-header {
    padding-top: 0.9rem;
    padding-bottom: 2.5rem;
  }

  .site-nav {
    gap: 0.3rem 0.9rem;
  }

  .section,
  .legal {
    padding-top: 3rem;
    padding-bottom: 3.25rem;
  }
}

@media (max-width: 420px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }
}
