/* 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-light: #33c6ec;
  --brand-dark: #007ea0;
  --brand-deep: #00546c;
  --overlay: rgba(0, 0, 0, 0.5);
  --text: #fff;
  --ink: #1d2a30;
  --page-bg: #eef2f4;
  --gutter: 16px;
}

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

html,
body {
  margin: 0;
  height: 100%;
}

body {
  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 {
  position: relative;
  color: #fff;
  /* Dark end keeps white text readable (contrast >= 4.5:1) */
  background: linear-gradient(100deg, var(--brand-deep) 0%, var(--brand-dark) 100%);
  font-size: 0.875rem;
}

/* Glowing top edge with a light sweep running across it */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent) -70% 0 / 40% 100% no-repeat,
    var(--brand-light);
  animation: footer-sweep 7s ease-in-out infinite;
}

@keyframes footer-sweep {
  to {
    background-position: 170% 0, 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer::before {
    animation: none;
  }
}

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

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

.site-footer__brand img {
  border-radius: 8px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.site-footer__brand strong {
  display: block;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.site-footer__brand small {
  display: block;
  font-size: 0.75rem;
  opacity: 0.8;
}

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

.site-footer__nav a {
  display: inline-block;
  padding: 6px 14px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  transition: background-color 0.2s, border-color 0.2s;
}

.site-footer__nav a:hover,
.site-footer__nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
}

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

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

/* Phones: brand and links share a row, copyright moves below */
@media (max-width: 600px) {
  .site-footer__inner {
    gap: 10px 16px;
  }

  .site-footer__copy {
    flex-basis: 100%;
    font-size: 0.8125rem;
  }
}

/* ── 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 {
  margin: 0;
}

.legal__back {
  display: inline-block;
  color: var(--brand-dark);
  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;
}
