@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b1020;
  --bg-soft: #101a2d;
  --surface: #17243a;
  --surface-strong: #1f304b;
  --primary: #2dd4bf;
  --primary-dark: #0b1020;
  --secondary: #a78bfa;
  --tertiary: #ff6b5f;
  --gold: #fbbf24;
  --text: #f8fafc;
  --muted: #b8c5d8;
  --outline: #334155;
  --shadow: 0 24px 80px rgba(3, 7, 18, 0.45);
  --radius: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: -4%;
  pointer-events: none;
  background-image: url("/assets/images/backgrounds/background.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.72;
  transform: scale(1.02);
  transform-origin: center;
  animation: page-background-drift 34s ease-in-out infinite alternate;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 16, 32, 0.42), rgba(11, 16, 32, 0.88)),
    linear-gradient(90deg, rgba(11, 16, 32, 0.2), rgba(11, 16, 32, 0.04) 48%, rgba(11, 16, 32, 0.3));
  z-index: -1;
}

@keyframes page-background-drift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

a {
  color: inherit;
  text-decoration-color: rgba(45, 212, 191, 0.7);
  text-underline-offset: 0.22em;
}

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

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Manrope", "Plus Jakarta Sans", system-ui, sans-serif;
  line-height: 1.08;
  letter-spacing: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: balance;
}

h1 {
  font-size: 5.4rem;
  font-weight: 800;
}

h2 {
  font-size: 3.05rem;
  font-weight: 800;
}

h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.hero-copy,
.section-grid > *,
.info-band > *,
.page-hero,
.legal-section,
.imprint-panel,
.feedback-form,
.status-message {
  min-width: 0;
}

p {
  margin: 0;
}

address {
  font-style: normal;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: 0.65rem 0.9rem;
  color: var(--primary-dark);
  background: var(--primary);
  border-radius: var(--radius);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  background: rgba(11, 16, 32, 0.6);
  border-bottom: 1px solid rgba(51, 65, 85, 0.42);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  font-size: 2.05rem;
  line-height: 1;
  text-decoration: none;
}

.brand img {
  width: 58px;
  height: 58px;
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.2rem);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.4rem);
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.18rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-links a[aria-current="page"]::after {
  background: var(--primary);
}

.nav-action {
  min-height: 2.65rem;
  padding: 0 1.05rem;
  border: 1px solid rgba(45, 212, 191, 0.55);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(45, 212, 191, 0.08);
}

.nav-action:hover {
  color: var(--primary-dark);
  border-color: var(--primary);
  background: var(--primary);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(23, 36, 58, 0.9);
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-toggle-lines {
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-lines::before {
  top: -7px;
}

.nav-toggle-lines::after {
  top: 7px;
}

main {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  min-height: calc(100vh - 86px);
  padding: clamp(2rem, 6vw, 5.5rem) 0 4rem;
}

.hero-copy {
  display: grid;
  gap: 1.35rem;
}

.lead {
  color: #dbe7f4;
  font-size: 1.25rem;
}

.hero-actions,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0.82rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.button::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--button-icon) center / contain no-repeat;
  mask: var(--button-icon) center / contain no-repeat;
}

.button.icon-moon {
  --button-icon: url("/assets/icons/moon.svg");
}

.button.icon-notebook {
  --button-icon: url("/assets/icons/notebook-pen.svg");
}

.button.icon-save {
  --button-icon: url("/assets/icons/save.svg");
}

.button.primary {
  color: var(--primary-dark);
  border-color: rgba(45, 212, 191, 0.72);
  background:
    linear-gradient(135deg, #5eead4, var(--primary)),
    var(--primary);
  box-shadow:
    inset 0 1px 0 rgba(248, 250, 252, 0.36),
    0 16px 34px rgba(45, 212, 191, 0.22);
}

.button.secondary {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.28);
  background:
    linear-gradient(180deg, rgba(31, 48, 75, 0.86), rgba(17, 27, 45, 0.82)),
    rgba(23, 36, 58, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(248, 250, 252, 0.12),
    0 14px 32px rgba(3, 7, 18, 0.24);
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary:hover {
  border-color: rgba(94, 234, 212, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(248, 250, 252, 0.42),
    0 20px 42px rgba(45, 212, 191, 0.3);
}

.button.secondary:hover {
  border-color: rgba(45, 212, 191, 0.48);
  background:
    linear-gradient(180deg, rgba(34, 58, 86, 0.92), rgba(18, 31, 51, 0.88)),
    rgba(23, 36, 58, 0.88);
}

.hero-phone-stage {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: center;
  min-height: clamp(420px, 62vw, 690px);
  perspective: 1200px;
}

.hero-phone-frame {
  position: relative;
  width: min(76%, 360px);
  transform: rotate(-4deg) translate3d(0, 0, 0);
  filter: drop-shadow(0 34px 58px rgba(3, 7, 18, 0.52));
  animation: phone-float 7s ease-in-out infinite;
  transition: filter 220ms ease;
  will-change: transform;
}

.hero-phone {
  display: block;
  width: 100%;
  height: auto;
  transform: translate3d(0, 0, 0);
  transition: transform 220ms ease;
}

.hero-phone-stage:hover .hero-phone-frame {
  filter: drop-shadow(0 42px 70px rgba(3, 7, 18, 0.62));
}

.hero-phone-stage:hover .hero-phone {
  transform: translate3d(0, -10px, 34px) scale(1.025);
}

@keyframes phone-float {
  0%,
  100% {
    transform: rotate(-4deg) translate3d(0, 0, 0);
  }

  50% {
    transform: rotate(-2.6deg) translate3d(0, -14px, 0);
  }
}

.section-grid,
.info-band,
.legal-layout,
.form-layout {
  margin: clamp(2rem, 6vw, 5rem) 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.section-grid > div:first-child,
.page-hero {
  display: grid;
  gap: 0.9rem;
}

.section-grid p,
.large-text,
.page-hero p,
.legal-section p,
.legal-section li {
  color: #d5e1ef;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card,
.legal-section,
.imprint-panel,
.feedback-form,
.status-message {
  border: 1px solid rgba(51, 65, 85, 0.82);
  border-radius: var(--radius);
  background: rgba(23, 36, 58, 0.78);
  box-shadow: 0 18px 58px rgba(3, 7, 18, 0.24);
}

.feature-card {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.feature-card img,
.section-icon {
  width: 30px;
  height: 30px;
  filter: invert(78%) sepia(32%) saturate(805%) hue-rotate(121deg) brightness(92%) contrast(92%);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.section-title h2 {
  min-width: 0;
}

.info-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.25rem, 3vw, 2rem) 0;
  border-top: 1px solid rgba(51, 65, 85, 0.9);
  border-bottom: 1px solid rgba(51, 65, 85, 0.9);
}

.info-band div {
  display: grid;
  gap: 0.8rem;
  flex: 1;
}

.compact {
  align-items: center;
}

.large-text {
  font-size: 1.35rem;
}

.page-hero {
  padding: clamp(2rem, 6vw, 5rem) 0 1rem;
}

.legal-layout {
  display: grid;
  gap: 1rem;
}

.imprint-panel {
  display: grid;
  gap: clamp(1.2rem, 3vw, 1.8rem);
  margin: clamp(2rem, 6vw, 5rem) 0;
  padding: clamp(1.1rem, 3vw, 1.6rem);
}

.imprint-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  padding-top: 1rem;
  border-top: 1px solid rgba(51, 65, 85, 0.76);
}

.imprint-grid > div {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.legal-section {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1rem, 3vw, 1.35rem);
}

.legal-section h2 {
  font-size: 1.8rem;
}

.imprint-panel h2 {
  font-size: 2rem;
}

.imprint-panel h3 {
  font-size: 1rem;
  color: var(--primary);
}

.imprint-panel p,
.imprint-panel address {
  color: #d5e1ef;
}

.legal-section.emphasis {
  border-color: rgba(251, 191, 36, 0.58);
}

.muted,
.field-help {
  color: var(--muted);
  font-size: 0.95rem;
}

.check-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.1rem;
}

.feedback-form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.field,
.field-grid {
  display: grid;
  gap: 0.45rem;
}

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

label,
.checkbox-field {
  color: var(--text);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 3rem;
  border: 1px solid rgba(51, 65, 85, 0.95);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(11, 16, 32, 0.72);
  font: inherit;
}

input,
select {
  padding: 0 0.85rem;
}

textarea {
  resize: vertical;
  padding: 0.8rem 0.85rem;
}

input:focus,
select:focus,
textarea:focus,
.button:focus-visible,
.site-nav a:focus-visible,
.brand:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid rgba(45, 212, 191, 0.45);
  outline-offset: 3px;
}

.checkbox-field {
  display: grid;
  grid-template-columns: 1.2rem 1fr;
  gap: 0.75rem;
  align-items: start;
}

.checkbox-field input {
  min-height: 1.2rem;
  margin-top: 0.18rem;
  accent-color: var(--primary);
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-error {
  color: #fecaca;
  font-weight: 700;
}

.status-message {
  margin-bottom: 1rem;
  padding: 1rem;
}

.status-message.success {
  border-color: rgba(45, 212, 191, 0.62);
}

.status-message.error {
  border-color: rgba(255, 107, 95, 0.7);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  width: min(var(--max), calc(100% - 2rem));
  margin: 4rem auto 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(51, 65, 85, 0.9);
  color: var(--muted);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.footer-brand img {
  width: 38px;
  height: 38px;
}

.site-footer p {
  margin-top: 0.3rem;
}

.site-footer nav {
  justify-content: flex-end;
}

@media (max-width: 900px) {
  h1 {
    font-size: 4.05rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .brand {
    font-size: 1.75rem;
  }

  .lead {
    font-size: 1.15rem;
  }

  .large-text {
    font-size: 1.2rem;
  }

  .legal-section h2 {
    font-size: 1.55rem;
  }

  .imprint-panel h2 {
    font-size: 1.7rem;
  }

  .hero,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .imprint-grid {
    grid-template-columns: 1fr;
  }

  .info-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  body {
    background-attachment: scroll;
  }

  .site-header-inner {
    align-items: flex-start;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    right: 0;
    top: calc(100% + 0.65rem);
    display: none;
    width: min(calc(100vw - 2rem), 320px);
    gap: 0.85rem;
    padding: 0.85rem;
    border: 1px solid rgba(51, 65, 85, 0.82);
    border-radius: var(--radius);
    background: rgba(11, 16, 32, 0.94);
    box-shadow: 0 24px 56px rgba(3, 7, 18, 0.34);
  }

  .site-nav[data-open="true"] {
    display: grid;
  }

  .nav-links {
    display: grid;
    gap: 0.25rem;
  }

  .site-nav a {
    justify-content: flex-start;
    width: 100%;
    min-height: 2.75rem;
    padding: 0 0.7rem;
  }

  .nav-links a[aria-current="page"] {
    color: var(--text);
    background: rgba(45, 212, 191, 0.08);
  }

  .nav-links a::after {
    left: 0.7rem;
    right: auto;
    bottom: 0.45rem;
    width: 2.5rem;
  }

  .nav-action {
    justify-content: center;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.05rem;
  }

  .page-hero h1 {
    font-size: 2.65rem;
  }

  .brand {
    font-size: 1.55rem;
  }

  .brand img {
    width: 50px;
    height: 50px;
  }

  .legal-section h2,
  .imprint-panel h2 {
    font-size: 1.42rem;
  }

  .hero-phone-stage {
    min-height: 430px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .page-hero h1 {
    font-size: 2.25rem;
  }

  .legal-section h2,
  .imprint-panel h2 {
    font-size: 1.25rem;
  }
}

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