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

:root {
  --bg: #0f1a1e;
  --surface: #0f1a1f;
  --surface-2: #1b2429;
  --surface-3: #222c31;
  --border: #273035;
  --border-strong: rgba(80, 210, 193, 0.45);
  --text: #f6fefd;
  --muted: #878c8f;
  --text-title: #949e9c;
  --accent: #50d2c1;
  --accent-bright: #97fce4;
  --accent-soft: rgba(80, 210, 193, 0.12);
  --cyan: #50d2c1;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 64px;
  --container: 1120px;
}

html {
  font-size: 16px;
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "calt" off;
  font-variant-ligatures: no-contextual;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--radius);
}

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

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(15, 26, 30, 0.82);
  border-bottom: 1px solid rgba(39, 48, 53, 0.9);
}

.site-header__inner {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

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

.brand__dot,
.brand__plus {
  color: var(--accent);
}

.brand--footer {
  font-size: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-title);
  text-decoration: none;
}

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

/* Always visible on mobile (with Kundenlogin) — mailto until proper mail form */
.site-nav__contact {
  color: var(--text-title);
}

.site-nav__contact:hover {
  color: var(--accent-bright);
}

.site-nav__cta {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  color: var(--accent-bright) !important;
  background: var(--accent-soft);
}

.site-nav__cta:hover {
  background: rgba(80, 210, 193, 0.2);
  color: var(--text) !important;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: clamp(520px, 78vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero__media {
  position: absolute;
  inset: 0;
}

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

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 26, 30, 0.35) 0%, rgba(15, 26, 30, 0.55) 40%, rgba(15, 26, 30, 0.94) 100%),
    linear-gradient(90deg, rgba(15, 26, 30, 0.75) 0%, rgba(15, 26, 30, 0.25) 55%, rgba(15, 26, 30, 0.55) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
  padding: 5rem 0 3.25rem;
  max-width: 720px;
  margin-left: max(1rem, calc((100% - var(--container)) / 2));
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 0.85rem;
}

.hero__title {
  font-size: clamp(1.75rem, 4.2vw, 2.65rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero__lead {
  font-size: 1.05rem;
  color: var(--text-title);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: filter 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}

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

.btn--primary:hover {
  background: var(--accent-bright);
  color: var(--bg);
  filter: brightness(1.02);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--border-strong);
  color: var(--accent-bright);
}

/* —— Sections —— */
.section {
  padding: 4.5rem 0;
}

.section--tight {
  padding: 1.75rem 0;
}

.section--alt {
  background:
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(80, 210, 193, 0.07) 0%, transparent 55%),
    var(--surface);
  border-block: 1px solid var(--border);
}

.section__head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section__title {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.section__lead {
  color: var(--text-title);
  font-size: 1.02rem;
}

/* —— Trust strip —— */
.trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.trust__item {
  padding: 1.15rem 1.2rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.trust__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.trust__item p {
  font-size: 0.875rem;
  color: var(--text-title);
  line-height: 1.45;
}

/* —— Cards —— */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.card:hover .card__img img {
  transform: scale(1.03);
}

.card__body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.card__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.card__body p {
  color: var(--text-title);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.chip-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip-list li {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid rgba(80, 210, 193, 0.22);
  color: var(--accent-bright);
}

/* —— Team —— */
/* Same width as .team-grid / MAST+SZIM cards (full .container) */
.team-hero {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
  /* Was 21/9 @ max 450px; ~25% taller at container width (~600px @ 1120) */
  aspect-ratio: 16 / 9;
  max-height: 600px;
}

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

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.person {
  padding: 1.5rem 1.45rem 1.6rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.person__role {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.person__name {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.person__tag {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.person__bio {
  color: var(--text-title);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}

.person__sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.bullet-list {
  margin-left: 1.1rem;
  color: var(--text-title);
  font-size: 0.9rem;
}

.bullet-list li + li {
  margin-top: 0.35rem;
}

/* —— Steps —— */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.steps__item {
  padding: 1.35rem 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.steps__num {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.steps__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.steps__item p {
  font-size: 0.9rem;
  color: var(--text-title);
}

.quote {
  padding: 1.5rem 1.6rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.quote p {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 0.65rem;
}

.quote cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
}

/* —— Login section —— */
.section--login {
  background:
    radial-gradient(ellipse 50% 50% at 20% 20%, rgba(35, 82, 76, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 90% 80%, rgba(80, 210, 193, 0.08) 0%, transparent 50%),
    var(--bg);
  border-top: 1px solid var(--border);
}

.login-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.login-copy .section__title {
  margin-bottom: 0.75rem;
}

.login-copy .section__lead {
  margin-bottom: 1.1rem;
}

.login-panel {
  width: 100%;
  max-width: 420px;
  justify-self: end;
}

.login-panel__brand {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 0 20px 5px rgba(80, 210, 193, 0.08);
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.login-field__label {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-title);
}

.login-field input {
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.login-field input:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.login-error {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: #ed7088;
  padding: 0.55rem 0.75rem;
  background: rgba(237, 112, 136, 0.08);
  border: 1px solid rgba(237, 112, 136, 0.25);
  border-radius: var(--radius);
}

.login-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: filter 0.15s, background 0.15s, opacity 0.15s;
}

.login-submit:hover:not(:disabled) {
  filter: brightness(1.06);
  background: var(--accent-bright);
}

.login-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.login-submit__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(15, 26, 30, 0.2);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.login-submit:has(.login-submit__spinner:not([hidden])) .login-submit__text {
  opacity: 0.6;
}

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

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0 2.25rem;
  background: var(--surface);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-footer__note {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 36rem;
}

.site-footer__note a {
  color: var(--text-title);
}

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

/* —— Responsive —— */
@media (max-width: 900px) {
  .trust__grid,
  .split,
  .team-grid,
  .steps,
  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-panel {
    justify-self: stretch;
    max-width: none;
  }

  .team-hero {
    aspect-ratio: 16 / 10;
    max-height: none;
  }

  .hero__content {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 560px) {
  /* Keep sticky bar clean: only Kontakt + Kundenlogin (section anchors hide) */
  .site-nav a:not(.site-nav__cta):not(.site-nav__contact) {
    display: none;
  }

  .site-nav {
    gap: 0.35rem 0.75rem;
  }

  .hero {
    min-height: 480px;
  }

  .hero__title br {
    display: none;
  }
}

/* Legacy landing-only classes kept harmless if referenced */
.landing,
.landing__shell,
.landing__grid,
.landing__glow {
  /* no-op: marketing site uses .site layout */
}
