@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
}

:root {
  --brand: #00fffb;
  --brand-rgb: 0, 255, 251;
  --bg: #050505;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.12);
  --font-body: "DM Sans", sans-serif;
  --font-display: "Space Grotesk", sans-serif;
}

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

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  min-width: 0;
  overflow-y: auto;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

:is(h1, h2, .eyebrow, .header-contact, .primary-action, .focus-ticker, footer) {
  font-family: var(--font-display);
}

a {
  color: inherit;
  text-decoration: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--bg);
  background: var(--brand);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  transform: translateY(calc(-100% - 1rem));
  transition: transform 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  transform: translateY(0);
}

::selection {
  color: var(--bg);
  background: var(--brand);
}

#loader {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  background: #000;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader__orbit {
  position: relative;
  display: grid;
  width: 5rem;
  aspect-ratio: 1;
  place-items: center;
}

.loader__ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(var(--brand-rgb), 0.18);
  border-top-color: var(--brand);
  border-radius: 50%;
  box-shadow: 0 -0.35rem 1rem rgba(var(--brand-rgb), 0.2);
  animation: spin 1.15s linear infinite;
}

.loader__ring::after {
  position: absolute;
  top: 0.22rem;
  left: 50%;
  width: 0.38rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 1rem var(--brand);
  content: "";
  transform: translateX(-50%);
}

.loader__core {
  width: 0.5rem;
  aspect-ratio: 1;
  background: var(--brand);
  box-shadow: 0 0 1.5rem rgba(var(--brand-rgb), 0.8);
  transform: rotate(45deg);
  animation: loader-core-pulse 1.15s ease-in-out infinite;
}

#loader.is-hidden {
  visibility: hidden;
  opacity: 0;
}

#bg-canvas {
  position: fixed;
  z-index: 0;
  inset: 0;
  opacity: 0.42;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(100% - clamp(2rem, 6vw, 7rem), 1440px);
  min-height: 100vh;
  min-height: 100dvh;
  margin-inline: auto;
}

.site-header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  padding: clamp(1.1rem, 3vh, 2.25rem) 0 clamp(0.4rem, 1vh, 0.7rem);
}

.brand {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  width: clamp(7.5rem, 12vw, 10.5rem);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.header-contact,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.header-contact {
  gap: 0.65rem;
  min-height: 2.75rem;
  border: 1px solid rgba(var(--brand-rgb), 0.55);
  padding: 0.7rem 1rem;
  color: var(--brand);
  background: rgba(var(--brand-rgb), 0.06);
  box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), 0.04);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-contact svg {
  width: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.focus-ticker {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  border-block: 1px solid rgba(var(--brand-rgb), 0.13);
  padding-block: 0.55rem;
  user-select: none;
}

.focus-ticker__track,
.focus-ticker__chunk {
  display: flex;
  width: max-content;
  align-items: center;
}

.focus-ticker__track {
  will-change: transform;
  backface-visibility: hidden;
}

.focus-ticker__chunk {
  flex-shrink: 0;
  gap: 1.5rem;
  padding-right: 1.5rem;
}

.focus-ticker span {
  color: var(--brand);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}

.focus-ticker i {
  width: 0.28rem;
  aspect-ratio: 1;
  flex: 0 0 auto;
  background: rgba(var(--brand-rgb), 0.5);
  transform: rotate(45deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(21rem, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  min-height: 0;
  padding-block: clamp(2rem, 5vh, 4rem);
}

.eyebrow {
  margin: 0 0 clamp(0.7rem, 2vh, 1.25rem);
  color: var(--brand);
  font-size: clamp(0.62rem, 0.85vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5.1vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.headline-line {
  display: block;
  text-wrap: balance;
}

@media (min-width: 761px) {
  .headline-line {
    white-space: nowrap;
    text-wrap: nowrap;
  }
}

.headline-line--accent {
  color: var(--brand);
}

.hero__copy {
  max-width: 40rem;
  margin: clamp(1rem, 2.8vh, 1.75rem) 0;
  color: var(--muted);
  font-size: clamp(0.88rem, 1.25vw, 1.08rem);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.65rem;
}

.primary-action {
  gap: 0.75rem;
  min-height: 2.85rem;
  border: 1px solid var(--brand);
  padding: 0.75rem 1.1rem;
  color: var(--bg);
  background: var(--brand);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.secondary-action {
  gap: 0.75rem;
  min-height: 2.85rem;
  border: 1px solid var(--line);
  padding: 0.75rem 1.1rem;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__actions svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero__actions .icon-linkedin {
  fill: currentColor;
  stroke: none;
}

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.4vw, 1rem);
}

.service-card {
  display: flex;
  min-width: 0;
  min-height: clamp(7rem, 17vh, 10rem);
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  padding: clamp(1rem, 2vw, 1.4rem);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(6px);
  transition: border-color 0.2s ease, background-color 0.2s ease;
  cursor: default;
}

.service-card svg {
  width: clamp(1.75rem, 2.5vw, 2.25rem);
  fill: none;
  stroke: var(--brand);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.service-card h2,
.service-card p {
  margin: 0;
}

.service-card h2 {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
}

.service-card p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  line-height: 1.5;
  hyphens: auto;
  -webkit-hyphens: auto;
}

footer {
  min-height: 2.75rem;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-bottom: 0;
  padding: clamp(0.7rem, 1.5vh, 0.9rem) clamp(0.85rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-made {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-heart {
  color: var(--brand);
  font-size: 1rem;
  line-height: 1;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.footer__links a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  border: 1px solid transparent;
  padding: 0.45rem 0.65rem;
}

.footer__links a,
.header-contact {
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--brand);
}

.footer__links a[aria-current="page"] {
  color: var(--brand);
  border-color: var(--line);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

@media (hover: hover) {
  .header-contact:hover {
    color: var(--bg);
    border-color: var(--brand);
    background: var(--brand);
  }

  .primary-action:hover {
    color: var(--brand);
    background: transparent;
  }

  .secondary-action:hover {
    color: var(--text);
    border-color: rgba(var(--brand-rgb), 0.45);
    background: rgba(var(--brand-rgb), 0.05);
  }

  .footer__links a:hover {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.035);
  }

  .service-card:hover {
    border-color: rgba(var(--brand-rgb), 0.55);
    background: rgba(var(--brand-rgb), 0.055);
  }
}

@media (min-width: 2200px) and (min-height: 1200px) {
  .page {
    width: min(100% - clamp(8rem, 10vw, 16rem), 1920px);
  }

  .site-header {
    padding: clamp(2.25rem, 2.4vh, 3.25rem) 0 1rem;
  }

  .brand {
    width: 13rem;
  }

  .header-contact {
    gap: 0.8rem;
    min-height: 3.4rem;
    padding: 0.9rem 1.35rem;
    font-size: 0.82rem;
  }

  .header-contact svg {
    width: 1.1rem;
  }

  .focus-ticker {
    padding-block: 0.72rem;
  }

  .focus-ticker__chunk {
    gap: 2rem;
    padding-right: 2rem;
  }

  .focus-ticker span {
    font-size: 0.7rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(38rem, 0.92fr);
    gap: clamp(7rem, 8vw, 10rem);
  }

  .eyebrow {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
  }

  h1 {
    font-size: clamp(5.8rem, 3vw, 6.9rem);
  }

  .hero__copy {
    max-width: 46rem;
    margin-block: 2rem;
    font-size: 1.25rem;
  }

  .hero__actions {
    gap: 0.85rem;
  }

  .primary-action,
  .secondary-action {
    min-height: 3.4rem;
    padding: 0.9rem 1.35rem;
    font-size: 0.85rem;
  }

  .hero__actions svg {
    width: 1.15rem;
    height: 1.15rem;
  }

  .services {
    gap: 1.25rem;
  }

  .service-card {
    min-height: clamp(16rem, 16vh, 20rem);
    padding: 1.75rem;
  }

  .service-card svg {
    width: 2.6rem;
  }

  .service-card h2 {
    font-size: 1.6rem;
  }

  .service-card p {
    margin-top: 0.65rem;
    font-size: 1.05rem;
    line-height: 1.6;
  }

  footer {
    padding: 1rem 1.4rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 1024px) {
  .page,
  .legal-shell {
    width: min(100% - clamp(1.5rem, 5vw, 3rem), 58rem);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    padding-block: clamp(2rem, 6vw, 4rem);
  }

  .hero__intro {
    max-width: 48rem;
  }

  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 1.5rem, 42rem);
  }

  .site-header {
    padding: 0.8rem 0 0.35rem;
  }

  .focus-ticker {
    padding-block: 0.42rem;
  }

  .focus-ticker__chunk {
    gap: 1rem;
    padding-right: 1rem;
  }

  .focus-ticker span {
    font-size: 0.5rem;
  }

  .header-contact {
    min-height: 2.75rem;
    padding: 0.55rem 0.7rem;
    font-size: 0.62rem;
  }

  h1 {
    font-size: clamp(1.85rem, 8.8vw, 3rem);
  }

  .hero {
    grid-template-columns: 1fr;
    align-content: start;
    gap: clamp(0.9rem, 2.5vh, 1.5rem);
    padding-block: 2rem;
  }

  .hero__copy {
    max-width: 32rem;
    margin-block: 0.7rem;
    line-height: 1.4;
  }

  .primary-action {
    min-height: 2.75rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.7rem;
  }

  .secondary-action {
    min-height: 2.75rem;
    padding: 0.55rem 0.8rem;
    font-size: 0.7rem;
  }

  .services {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-card {
    min-height: 0;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.65rem;
    padding: 0.75rem;
  }

  .service-card svg {
    flex: 0 0 auto;
  }

  footer {
    padding: 0.65rem;
    font-size: 0.7rem;
  }

  .footer-made {
    gap: 0.5rem;
  }

  .footer__links a {
    min-height: 2.75rem;
    padding: 0.45rem 0.55rem;
  }
}

@media (max-width: 480px) {
  .site-header {
    gap: 0.75rem;
  }

  .brand {
    width: clamp(6.75rem, 34vw, 8rem);
  }

  .header-contact {
    padding-inline: 0.6rem;
    letter-spacing: 0.08em;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  footer {
    flex-direction: column;
    align-items: center;
    row-gap: 0.1rem;
    text-align: center;
  }

  .footer__links {
    justify-content: center;
  }
}

@media (max-height: 620px) {
  .site-header {
    padding: 0.55rem 0 0.25rem;
  }

  .focus-ticker {
    padding-block: 0.3rem;
  }

  .hero {
    gap: 0.75rem;
    padding-block: 1.25rem;
  }

  .hero__copy {
    margin-block: 0.55rem;
    line-height: 1.35;
  }

  .service-card {
    min-height: 4.6rem;
    padding: 0.65rem;
  }

  footer {
    padding-block: 0.45rem;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .eyebrow {
    margin-bottom: 0.4rem;
  }

  .hero__copy {
    font-size: 0.72rem;
  }

  .service-card {
    min-height: 3.6rem;
  }
}

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes loader-core-pulse {
  50% {
    opacity: 0.25;
    transform: rotate(135deg) scale(0.65);
  }
}


/* Rechtliche Unterseiten */
body.legal-page {
  min-height: 100%;
  overflow-x: clip;
  overflow-y: auto;
  background:
    radial-gradient(circle at 12% 8%, rgba(var(--brand-rgb), 0.09), transparent 28rem),
    radial-gradient(circle at 88% 42%, rgba(var(--brand-rgb), 0.045), transparent 34rem),
    var(--bg);
}

body.legal-page::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(var(--brand-rgb), 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--brand-rgb), 0.08) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.legal-shell {
  position: relative;
  z-index: 1;
  width: min(100% - clamp(2rem, 6vw, 7rem), 1440px);
  min-height: 100vh;
  min-height: 100dvh;
  margin-inline: auto;
}

.legal-main {
  width: min(100%, 58rem);
  margin-inline: auto;
  padding-block: clamp(3rem, 8vw, 7rem);
}

.legal-page #content {
  min-width: 0;
  min-height: auto;
  background: transparent;
}

.legal-page #text {
  padding: 0;
  color: var(--text);
  background: transparent;
  hyphens: auto;
}

.legal-page #text h1 {
  margin: 0 0 clamp(2.5rem, 6vw, 5rem);
  color: var(--text);
  font-size: clamp(2.7rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.legal-page #text h1::after {
  display: block;
  width: clamp(3rem, 7vw, 5.5rem);
  height: 0.18rem;
  margin-top: 1.25rem;
  background: var(--brand);
  content: "";
}

.legal-page #text h2 {
  margin: clamp(3rem, 7vw, 5rem) 0 1rem;
  color: var(--brand);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.legal-page #text h1 + h2 {
  margin-top: 0;
}

.legal-page #text h3 {
  margin: 2.25rem 0 0.75rem;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.35;
}

.legal-page #text p,
.legal-page #text li {
  color: var(--muted);
  font-size: clamp(0.96rem, 1.3vw, 1.08rem);
  line-height: 1.8;
}

.legal-page #text p {
  margin: 0 0 1.15rem;
}

.legal-page #text li {
  margin: 0;
}

.legal-page #text b,
.legal-page #text strong {
  color: rgba(255, 255, 255, 0.92);
}

.legal-page #text ul {
  margin: 1rem 0;
  padding-left: 1.25rem;
  list-style: none;
}

.legal-page #text li {
  position: relative;
  padding-left: 0.75rem;
}

.legal-page #text li + li {
  margin-top: 0.75rem;
}

.legal-page #text li::before {
  position: absolute;
  top: 0.78em;
  left: -0.65rem;
  width: 0.32rem;
  height: 0.32rem;
  background: var(--brand);
  content: "";
  transform: rotate(45deg);
}

.legal-page #text a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: rgba(var(--brand-rgb), 0.45);
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.legal-page #text a:hover {
  color: var(--text);
  text-decoration-color: var(--text);
}

@media (max-width: 760px) {
  .legal-shell {
    width: min(100% - 1.5rem, 42rem);
  }

  .legal-main {
    padding-block: 2.5rem;
  }

  .legal-page #text h1 {
    overflow-wrap: anywhere;
  }
}

@media print {
  body.legal-page {
    color: #111;
    background: #fff;
  }

  body.legal-page::before,
  .legal-page .site-header,
  .legal-page footer {
    display: none;
  }

  .legal-main {
    display: block;
    padding: 0;
  }

  .legal-page #text {
    border: 0;
    padding: 0;
    color: #111;
    background: transparent;
    box-shadow: none;
  }

  .legal-page #text :is(h1, h2, h3, p, li, b, strong, a) {
    color: #111;
  }
}
