/* Self-hosted Open Sans (no requests to Google, GDPR-friendly) */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/open-sans-latin-300-normal.woff2") format("woff2");
}

@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");
}

:root {
  --brand-blue: #0099bf;
  --brand-dark: #007ea0;
  --overlay: rgba(0, 0, 0, 0.5);
  --text: #fff;
  --ink: #1d2a30;
  --page-bg: #eef2f4;
  --gutter: 16px;
}

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

/* min-height (not height) so long pages grow and the footer stays below the content */
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: #6f7a80;
  color: var(--text);
  font-family: "Open Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Full-screen Berlin skyline with centered text */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  background: url("../img/hero.jpg") center / cover no-repeat;
}

/* Nudge the text slightly below center, like the original layout */
.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  margin-top: 6vh;
  text-align: center;
}

.hero__title,
.hero__subtitle {
  margin: 0;
  background: var(--overlay);
  /* Avoid single orphaned words when the text wraps on small screens */
  text-wrap: balance;
}

.hero__title {
  padding: 0.3em 0.5em;
  color: var(--text);
  font-size: clamp(1.5rem, 1rem + 2.2vw, 2.25rem);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hero__subtitle {
  margin-top: 2px;
  padding: 0.45em 1.1em;
  font-size: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
  line-height: 1.4;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  color: #fff;
  background: #000;
  font-size: 0.8125rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px var(--gutter);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.site-footer__brand img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.site-footer__brand strong {
  font-weight: 400;
}

.site-footer__brand small {
  margin-left: 6px;
  opacity: 0.6;
  font-size: inherit;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-left: auto;
}

.site-footer__nav a {
  color: #fff;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.site-footer__nav a:hover,
.site-footer__nav a[aria-current="page"] {
  opacity: 1;
}

.site-footer__nav a:hover {
  text-decoration: underline;
}

.site-footer a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.site-footer__copy {
  margin: 0;
  opacity: 0.6;
}

/* Phones: stack brand, links and copyright left-aligned */
@media (max-width: 600px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__nav {
    margin-left: 0;
  }
}

/* ── Legal pages (Impressum) ────────────────────────────────────────────── */

.page-legal {
  background: var(--page-bg);
  color: var(--ink);
}

.legal-hero {
  display: flex;
  justify-content: center;
  padding: clamp(48px, 9vw, 96px) var(--gutter) clamp(72px, 11vw, 120px);
  background: url("../img/hero.jpg") center 45% / cover no-repeat;
}

.legal {
  flex: 1;
  width: 100%;
  max-width: 760px;
  /* Card overlaps the photo band */
  margin: -48px auto 48px;
  padding: 0 var(--gutter);
}

.legal__card {
  padding: clamp(20px, 4vw, 40px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 40, 60, 0.12);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.legal__card h2 {
  margin: 1.6em 0 0.4em;
  color: var(--brand-dark);
  font-size: 1.05rem;
  font-weight: 600;
}

.legal__card p,
.legal__card ul {
  margin: 0 0 0.75em;
}

.legal__card ul {
  padding-left: 1.25em;
}

.legal__card > :last-child {
  margin-bottom: 0;
}

.legal__card a {
  color: var(--brand-dark);
}

.legal__back {
  display: inline-block;
  font-size: 0.875rem;
  text-decoration: none;
}

.legal__back:hover {
  text-decoration: underline;
}

/* Marks content that still has to be filled in */
.placeholder {
  padding: 0 0.25em;
  background: #fff1a8;
  color: #6b4e00;
  border-radius: 3px;
}
