:root {
  --navy: #0b1a30;
  --amber: #f7ac3b;
  --amber-light: #ffc567;
  --blue: #8fbbe6;
  --white: #fff;

  /* Breite des Hintergrundbildes. Die Obergrenze von 265vw hält das Logo
     auch auf schmalen Handys vollständig sichtbar. */
  --image: min(max(102vw, 149.2vh), 265vw);
  --shift: 0px;
}

@supports (height: 100svh) {
  :root { --image: min(max(102vw, 149.2svh), 265vw); }
}

/* Im Querformat etwas leeren Himmel abschneiden */
@media (min-aspect-ratio: 4 / 3) {
  :root { --shift: calc(var(--image) * 0.035); }
}

* { box-sizing: border-box; margin: 0; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
}

.page {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

/* Das Logo liegt bei 50,5 % der Bildbreite und wird genau zentriert. */
.backdrop {
  position: absolute;
  z-index: -2;
  top: calc(var(--shift) * -1);
  left: calc(50% - var(--image) * 0.505);
  width: var(--image);
  max-width: none;
  height: auto;
  -webkit-mask-image: linear-gradient(#000 82%, transparent);
  mask-image: linear-gradient(#000 82%, transparent);
}

.shade {
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(transparent, rgb(11 26 48 / 75%) 65%, rgb(11 26 48 / 92%));
}

.content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  /* Der Text beginnt direkt unter dem Schriftzug im Bild. */
  padding:
    calc(var(--image) * 0.324 - var(--shift))
    max(1rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  text-align: center;
  text-shadow: 0 2px 8px rgb(5 14 28 / 85%);
}

.tagline {
  font-size: clamp(1.05rem, 1.75vw, 2.1rem);
  font-weight: 600;
  text-wrap: balance;
}

.tagline span { white-space: nowrap; }

.line {
  flex: none;
  width: clamp(4rem, 6vw, 7.5rem);
  height: 3px;
  margin: clamp(0.6rem, 1.2vw, 1.2rem) 0;
  border-radius: 2px;
  background: var(--amber);
}

.notice {
  width: min(100%, max(36rem, 40vw));
  margin-bottom: 1.5rem;
  font-size: clamp(1rem, 1.15vw, 1.6rem);
  padding: clamp(1rem, 1.6vw, 1.6rem) clamp(1rem, 2vw, 2rem);
  border: 1px solid rgb(143 187 230 / 35%);
  border-radius: 1rem;
  background: rgb(11 26 48 / 84%);
  box-shadow: 0 1rem 2.5rem rgb(5 14 28 / 40%);
  text-shadow: none;
}

.notice-title {
  font-size: 1.15em;
  font-weight: 600;
  text-wrap: balance;
}

.notice-text {
  margin: 0.25rem 0 1rem;
  color: #d5e3f2;
}

.button {
  min-height: 3rem;
  padding: 0.7rem 2rem;
  border: 0;
  border-radius: 999px;
  background: var(--amber);
  color: var(--navy);
  font: inherit;
  font-size: 1.05em;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 150ms;
}

.button:hover { background: var(--amber-light); }

.button:focus-visible,
.contact a:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

.services {
  margin-top: auto;
  text-wrap: balance;
}

.services-title { font-size: clamp(1.25rem, 2.3vw, 2.8rem); font-weight: 600; line-height: 1.25; }
.services-text { margin-top: 0.3rem; font-size: clamp(1rem, 1.6vw, 2rem); }

.contact {
  width: min(calc(100% - 2rem), 28rem);
  max-height: calc(100% - 2rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgb(143 187 230 / 45%);
  border-radius: 1rem;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 50%);
}

.contact::backdrop { background: rgb(5 14 28 / 70%); }
.contact-inner { padding: 1.5rem; text-align: center; }
.contact h2 { font-size: 1.5rem; }
.contact dl { margin: 1rem 0 1.5rem; text-align: left; }
.contact dl > div { padding: 0.7rem 0; border-top: 1px solid rgb(143 187 230 / 25%); }
.contact dt { color: var(--blue); font-size: 0.9rem; }
.contact dd { font-size: 1.1rem; font-weight: 600; overflow-wrap: anywhere; }
.contact .placeholder { color: #c3cfdd; font-weight: 400; font-style: italic; }
.contact a { color: var(--amber-light); }

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

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
