:root {
  --text: #16202b;
  --muted: #586473;
  --line: #dde3ea;
  --blue: #1463ac;
  --blue-dark: #0f4f8a;
  --navy: #0c1c2e;
  --surface: #eef2f6;
  color-scheme: light;
}

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

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

a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.nowrap {
  white-space: nowrap;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Kopf */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
}

.brand {
  display: block;
}

.brand img {
  width: auto;
  height: 56px;
}

.header-phone {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
}

.header-phone a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.header-phone a:hover {
  text-decoration: underline;
  text-decoration-color: #fff;
}

.site-header a:focus-visible,
.hero a:focus-visible,
.jobs a:focus-visible,
.site-footer a:focus-visible {
  outline-color: #fff;
}

/* Startseite: Bühne mit Foto */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: min(78vh, 680px);
  background: var(--navy);
  color: #fff;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 60%;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 20, 34, 0.9) 0%, rgba(8, 20, 34, 0.8) 42%, rgba(8, 20, 34, 0.3) 70%, rgba(8, 20, 34, 0.05) 100%),
    linear-gradient(0deg, rgba(8, 20, 34, 0.55) 0%, rgba(8, 20, 34, 0) 35%),
    linear-gradient(180deg, rgba(8, 20, 34, 0.5) 0%, rgba(8, 20, 34, 0) 22%);
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding-top: 32px;
  padding-bottom: 136px;
}

.hero h1 {
  max-width: 13em;
  text-wrap: balance;
  margin: 0;
  font-size: clamp(2rem, 1.2rem + 2.4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero p {
  max-width: 34em;
  margin: 16px 0 0;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  font-size: 1.1875rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-dark);
  color: #fff;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Kontakt und Stellenangebot */

.panels {
  position: relative;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  margin-top: -88px;
  padding-bottom: 80px;
}

.panel {
  padding: 40px;
  border-radius: 4px;
}

.panel h2 {
  margin: 0 0 24px;
  font-size: 1.375rem;
  line-height: 1.25;
}

.contact {
  background: #fff;
  box-shadow: 0 1px 2px rgba(12, 28, 46, 0.06), 0 12px 32px rgba(12, 28, 46, 0.08);
}

.contact dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 24px 32px;
  margin: 0;
}

.contact dt {
  color: var(--muted);
  font-size: 0.875rem;
}

.contact dd {
  margin: 2px 0 0;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.jobs {
  display: flex;
  flex-direction: column;
  background: var(--blue);
  color: #fff;
}

.jobs p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.jobs .btn {
  align-self: flex-start;
  margin-top: auto;
  background: #fff;
  color: var(--blue);
}

.jobs .btn:hover {
  background: var(--surface);
  color: var(--blue-dark);
}

.jobs p + .btn {
  margin-top: 28px;
}

/* Rechtstexte */

.page-legal .site-header {
  background: var(--navy);
}

.page-legal main {
  flex: 1;
  background: #fff;
}

.legal {
  max-width: 68ch;
  padding: 56px 0 72px;
}

.legal h1 {
  margin: 0 0 32px;
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  line-height: 1.2;
}

.legal h2 {
  margin: 36px 0 8px;
  font-size: 1.125rem;
}

.legal p,
.legal ul {
  margin: 0 0 14px;
}

.legal ul {
  padding-left: 20px;
}

.legal .meta {
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.875rem;
}

.back {
  display: inline-block;
  margin-bottom: 24px;
  padding: 8px 0;
  font-size: 0.9375rem;
}

/* Fuß */

.site-footer {
  margin-top: auto;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 24px;
}

.site-footer a {
  display: inline-block;
  padding: 10px 0;
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

.site-footer a:hover {
  color: #fff;
  text-decoration-color: #fff;
}

@media (max-width: 900px) {
  .panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 20px;
  }

  .site-header .wrap {
    min-height: 68px;
  }

  .brand img {
    height: 48px;
  }

  .header-phone {
    display: none;
  }

  .hero {
    min-height: 0;
  }

  .hero-bg img {
    object-position: 38% 50%;
  }

  .hero-bg::after {
    background: linear-gradient(180deg, rgba(8, 20, 34, 0.68) 0%, rgba(8, 20, 34, 0.82) 40%, rgba(8, 20, 34, 0.92) 100%);
  }

  .hero-content {
    padding-top: 48px;
    padding-bottom: 88px;
  }

  .hero h1 {
    font-size: 2rem;
    hyphens: auto;
  }

  .hero p {
    font-size: 1.0625rem;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  .panels {
    gap: 16px;
    margin-top: -48px;
    padding-bottom: 48px;
  }

  .panel {
    padding: 28px 24px;
  }

  .legal {
    padding-top: 36px;
  }
}
