/* Base reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
body.page {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, Noto Sans, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
  line-height: 1.6;
  color: #111;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Layout helpers */
:root {
  /* Adjustable max width for the page containers */
  --header-height: 72px;
  --container-max-width: 1400px;
  --mobile-min-height: calc(100vh - var(--header-height));
}
.header__inner,
.main__inner,
.footer__inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #1c1c1c;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #eee;
}
.header__inner {
  display: flex;
  align-items: center;
  height: var(--header-height);
}

/* Logo (BEM block) */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.logo__img {
  display: block;
  /* Match the intrinsic pixel size of html/images/logo.png (66×35) */
  width: 66px;
  height: 35px;
}
.logo__mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: #111;
  color: #fff;
  font-weight: 800;
}
.logo__text { font-size: 16px; }

/* Main */
.main { flex: 1 0 auto; }
.main__inner { padding: 56px 20px 72px; }
.placeholder {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}

/* Ensure white content area covers at least 75% of viewport height on small screens */
@media (max-width: 560px) {
  .main {
    min-height: var(--mobile-min-height);
  }
  /* Vertically center the video section within the main area on small screens */
  .main__inner {
    min-height: calc(var(--mobile-min-height) - 25vh);
    display: flex;
    align-items: center;
  }
}

/* Video block */
.video {
  position: relative;
  background: #fff;
}
.video__inner {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.video__player {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.video__controls {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.video:fullscreen .video__inner {
  border-radius: 0;
}
.video:fullscreen .video__player {
  border-radius: 12px;
}
@media (max-width: 560px) {
  .video__controls {
    bottom: -50px;
    right: 0;
  }
  .video:fullscreen .video__controls {
    right: 16px;
    bottom: 76px;
  }
}
/* Rewind button (small, icon-only) */
.video__rewind {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #f2f2f2; /* flat light grey icon/text color */
  background: rgba(17,17,17,0.7);
  backdrop-filter: blur(4px);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.video__rewind:hover,
.video__rewind:focus-visible {
  background: rgba(17,17,17,0.9);
}
.video__rewind-icon { line-height: 1; display: inline-flex; }
.video__rewind-icon svg { width: 16px; height: 16px; display: block; }
.video__unmute {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #f2f2f2; /* flat light grey icon/text color */
  background: rgba(17,17,17,0.7);
  backdrop-filter: blur(4px);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.video__unmute:hover,
.video__unmute:focus-visible {
  background: rgba(17,17,17,0.9);
}
.video__unmute--hidden { display: none; }
.video__unmute-icon { line-height: 1; display: inline-flex; }
.video__unmute-icon svg { width: 16px; height: 16px; display: block; }
.video__unmute-text { font-size: 14px; }

/* Second icon for the mute state; hidden by default */
.video__mute-icon { line-height: 1; display: none; }
.video__mute-icon svg { width: 16px; height: 16px; display: block; }

/* When unmuted, the control turns into an icon-only mute button */
.video__unmute--icon-only {
  width: 36px;
  height: 36px;
  padding: 0;
  gap: 0;
  align-items: center;
  justify-content: center;
}
.video__unmute--icon-only .video__unmute-text { display: none; }
.video__unmute--icon-only .video__unmute-icon { display: none; }
.video__unmute--icon-only .video__mute-icon { display: inline-flex; }

/* Default (muted) state: show unmute icon, hide mute icon */
.video__unmute:not(.video__unmute--icon-only) .video__unmute-icon { display: inline-flex; }
.video__unmute:not(.video__unmute--icon-only) .video__mute-icon { display: none; }

/* Fullscreen button (mobile only) */
.video__fullscreen {
  display: none; /* hidden by default (desktop) */
  position: static;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #f2f2f2; /* flat light grey icon/text color */
  background: rgba(17,17,17,0.7);
  backdrop-filter: blur(4px);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.video__fullscreen:hover,
.video__fullscreen:focus-visible {
  background: rgba(17,17,17,0.9);
}
.video__fullscreen-icon { line-height: 1; display: inline-flex; }
.video__fullscreen-icon svg { width: 16px; height: 16px; display: block; }
.video__fullscreen-text { font-size: 14px; }

/* Footer – inspired by seitwerk.de layout */
.footer {
  color: #fff;
  background: #1c1c1c;
  padding: 40px 0;
  flex-shrink: 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__inner { grid-template-columns: 1fr; }
}

/* Show fullscreen control only on small screens */
@media (max-width: 950px) {
  .video__fullscreen { display: inline-flex; }
}

.footer__col--brand { align-self: start; }
.footer__logo {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
}
.footer__copy {
  margin: 10px 0 0;
  opacity: 0.7;
  font-size: 14px;
}

.footer__disclaimer {
  margin: 10px 0 0;
  opacity: 0.7;
  font-size: 14px;
  grid-column: 1 / -1;
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__item { margin: 6px 0; }
.footer__link {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}
.footer__link:hover,
.footer__link:focus { text-decoration: underline; }

/* Accessibility focus */
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid #6aa6ff;
  outline-offset: 2px;
}
