/* müso-pac – statische Hinweisseite
   Schrift: Open Sans (lokal, OFL-Lizenz), keine externen Ressourcen. */

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

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

/* ---------- Design-Tokens ---------- */
:root {
  --berry: #a02745;
  --berry-overlay: rgb(160 39 69 / 0.93);
  --ink: #1b1b1f;
  --white: #fff;
  --pill: rgb(30 30 30 / 0.92);
  --line: rgb(255 255 255 / 0.4);
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 1rem;
}

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

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

/* Es ist immer nur die aktive Sprache sichtbar (lang.js setzt <html lang>) */
html[lang="de"] [lang="en"],
html[lang="en"] [lang="de"] {
  display: none;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--white);
  background: var(--ink);
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

/* ---------- Sprachumschalter ---------- */
.lang-switch {
  display: inline-flex;
  gap: 0.125rem;
  padding: 0.125rem;
  background: var(--pill);
  border-radius: 0.375rem;
}

.lang-switch a {
  display: grid;
  place-items: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0 0.5rem;
  border-radius: 0.25rem;
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.lang-switch a:hover {
  background: rgb(255 255 255 / 0.16);
}

.lang-switch a[aria-current="true"] {
  background: var(--white);
  color: var(--ink);
}

/* ---------- Startseite ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--ink);
  background-image: url("img/bg-1280.webp");
  background-image: image-set(url("img/bg-1280.webp") 1x, url("img/bg-2048.webp") 2x);
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
}

@media (min-width: 1000px) {
  .hero {
    background-image: url("img/bg-2048.webp");
  }
}

.hero > .lang-switch {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  z-index: 1;
}

.panel {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: clamp(22rem, 25.5vw, 32rem);
  margin-left: clamp(1rem, 10.4vw, 14rem);
  padding: 2rem;
  background: var(--berry-overlay);
}

.panel__logo {
  margin: 0;
}

.panel__logo img {
  width: 100%;
}

.message {
  margin-top: clamp(2rem, 10vh, 6rem);
}

.message p {
  margin: 0 0 0.75rem;
}

.message strong {
  white-space: nowrap;
}

.message .signature {
  margin-top: 1.75rem;
}

.legal {
  margin-top: auto;
  padding-top: 2rem;
}

.legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 0;
  padding: 0.5rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.legal a {
  display: inline-block;
  padding: 0.75rem 0;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.legal a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* Mobil: Bild vollflächig, Hinweis als Karte darüber */
@media (max-width: 43.75rem) {
  .hero {
    gap: 0.75rem;
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
      max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  }

  .hero > .lang-switch {
    position: static;
    align-self: flex-end;
  }

  .panel {
    flex: 0 1 auto;
    width: auto;
    margin: 0;
    padding: 1.5rem;
    border-radius: 0.5rem;
  }

  .message {
    margin-top: 1.75rem;
  }

  .legal {
    padding-top: 1.5rem;
  }
}

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.legal-page {
  color: var(--ink);
  background: var(--white);
}

.site-header,
.site-footer {
  color: var(--white);
  background: var(--berry);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem var(--gutter);
}

.brand img {
  width: auto;
  height: 3rem;
}

.doc {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem var(--gutter) 3rem;
  overflow-wrap: anywhere;
}

.doc h1 {
  margin: 0 0 1.5rem;
  color: var(--berry);
  font-size: 1.75rem;
  line-height: 1.2;
}

.doc h2 {
  margin: 2rem 0 0.5rem;
  color: var(--berry);
  font-size: 1.125rem;
  line-height: 1.3;
}

.doc h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1rem;
}

.doc p,
.doc address,
.doc ul {
  margin: 0 0 1rem;
}

.doc address {
  font-style: normal;
}

.doc ul {
  padding-left: 1.25rem;
}

.doc a {
  color: var(--berry);
  text-underline-offset: 0.15em;
}

.doc .lead {
  font-weight: 700;
}

.doc .source {
  margin-top: 2rem;
  font-size: 0.875rem;
}

.site-footer {
  padding: 0.5rem var(--gutter);
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.site-footer a {
  display: inline-block;
  padding: 0.75rem 0;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

@media (max-width: 43.75rem) {
  .brand img {
    height: 2.5rem;
  }

  .doc h1 {
    font-size: 1.5rem;
  }
}
