/* ============================================================
   Künneth & Knöchel – Split Page  |  Custom styles
   ============================================================ */

@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/barlow-semi-condensed-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-semi-condensed-600.woff2') format('woff2');
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; }

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

/* ── LANGUAGE SWITCHER (bottom-center, fixed, above footer) ── */
.lang-switcher {
  position: fixed;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 4px;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.65);
  font-family: 'Barlow Semi Condensed', Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 3px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.lang-btn:hover,
.lang-btn.lang-active {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.85);
  color: #ffffff;
}

/* ── HEADER: logo only, centred top ── */
.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  pointer-events: none;
}

.site-logo {
  display: block;
  height: 240px;
  max-height: 20vw; /* scale down on narrow viewports before breakpoint */
  width: auto;
}

/* ── SPLIT LAYOUT ── */
.split {
  display: flex;
  height: 100vh;
}

/* ── PANELS ── */
.panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  transition: flex 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.panel:hover { flex: 1.08; }

/* Darken the non-hovered panel by 33% */
.panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.split:has(.panel-left:hover) .panel-right::after,
.split:has(.panel-right:hover) .panel-left::after {
  background: rgba(0, 0, 0, 0.33);
}

/* ── BOTTOM DEADZONE: suppress all hover effects near footer UI ── */
.split.deadzone .panel:hover { flex: 1; }

.split.deadzone:has(.panel-left:hover) .panel-right::after,
.split.deadzone:has(.panel-right:hover) .panel-left::after {
  background: rgba(0, 0, 0, 0);
}

/* Background colours */
.panel-left  { background-color: #2d3e50; }
.panel-right { background-color: #828282; }

/* Images fill the full panel area */
.panel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

/* ── FOOTER (centred, fixed bottom) ── */
.site-footer {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  gap: 28px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-family: 'Barlow Semi Condensed', Arial, sans-serif;
  font-size: 18.75px;
  letter-spacing: 1.5px;
  transition: color 0.2s;
}

.site-footer a:hover { color: #ffffff; }

/* ── MOBILE (portrait) ── */
@media (max-width: 480px) {
  .site-logo {
    height: 100px;
    max-height: none;
  }

  .split {
    flex-direction: column;
  }

  /* vertical flex-expand on touch looks wrong — disable it */
  .panel:hover { flex: 1; }

  /* spread footer links to the edges so they don't crowd the lang-switcher */
  .site-footer {
    left: 0;
    right: 0;
    transform: none;
    justify-content: space-between;
    padding: 0 16px;
  }

  .site-footer a {
    font-size: 13px;
    letter-spacing: 0.5px;
  }
}
