:root {
  color-scheme: dark;
  --text: #fffdf2;
  --muted: rgba(255, 255, 255, 0.82);
  --gold: #ffe491;
  --green: #6fe0b4;
  --blue: #70dcff;
  --pink: #ff9ade;
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; }

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--text);
  background: #173d38 url("../galeri/background/start1.webp") center / cover fixed no-repeat;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(4, 25, 28, 0.5), rgba(18, 20, 46, 0.26) 48%, rgba(4, 16, 27, 0.84)),
    radial-gradient(circle at 50% 25%, transparent 0 20%, rgba(2, 12, 19, 0.3) 76%);
}

a, button, select { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-light {
  position: absolute;
  width: min(42rem, 74vw);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.22;
  animation: floatLight 10s ease-in-out infinite alternate;
}

.light-one { left: -18rem; top: 20%; background: #00c6ff; }
.light-two { right: -18rem; top: 35%; background: #ff51bd; animation-delay: -5s; }

.sparkle {
  position: absolute;
  width: var(--size);
  height: var(--size);
  left: var(--left);
  top: var(--top);
  border-radius: 50%;
  background: #fffbd1;
  box-shadow: 0 0 8px #fff, 0 0 16px var(--color);
  opacity: 0;
  animation: twinkle var(--speed) ease-in-out var(--delay) infinite;
}

.topbar {
  width: min(1180px, calc(100% - 28px));
  min-height: 76px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  z-index: 5;
}

.home-link, .language-picker {
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(5, 24, 31, 0.68);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.home-link {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 17px 5px 7px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}

.home-link img { width: 39px; height: 39px; object-fit: contain; }

.language-picker {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 7px 5px 16px;
  color: #fff2ad;
  font-size: 0.78rem;
  font-weight: 900;
}

.language-picker select {
  min-height: 38px;
  max-width: 180px;
  padding: 0 34px 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  background: #183f42;
  cursor: pointer;
  font-weight: 800;
}

.language-picker select:focus-visible { outline: 3px solid rgba(255, 228, 145, 0.66); }

.demo-shell {
  width: min(1180px, calc(100% - 28px));
  margin: auto;
  padding: 8px 0 48px;
}

.intro-copy {
  max-width: 880px;
  margin: 0 auto 20px;
  text-align: center;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.75);
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--gold);
  font-size: clamp(0.75rem, 1.5vw, 0.94rem);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fff 4%, #fff2a9 47%, #ffc965 78%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 0 rgba(90, 48, 20, 0.32));
}

.subtitle {
  max-width: 760px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.8vw, 1.18rem);
  line-height: 1.5;
}

.video-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  background: rgba(6, 22, 32, 0.74);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(14px);
}

.video-heading {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 22px;
}

.video-heading span {
  color: #a8f0d3;
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.video-heading h2 { margin: 2px 0 0; font-family: Georgia, serif; font-size: clamp(1.25rem, 3vw, 1.85rem); }
.video-heading p { max-width: 270px; margin: 0; color: rgba(255, 255, 255, 0.67); font-size: 0.8rem; text-align: end; }

.video-frame {
  width: calc(100% - 24px);
  aspect-ratio: 16 / 9;
  margin: 0 12px 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: #02070a;
}

.video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; }

.play-film {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 4vw, 32px);
  transform: translateX(-50%);
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 19px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 999px;
  color: #fff;
  background: rgba(4, 23, 30, 0.86);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 24px rgba(255, 227, 128, 0.22);
  cursor: pointer;
  font-weight: 900;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
}

.play-film:hover, .play-film:focus-visible { transform: translateX(-50%) scale(1.04); background: rgba(15, 70, 66, 0.96); outline: 3px solid rgba(255, 228, 145, 0.65); }
.play-film[hidden] { display: none; }

.play-symbol {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding-left: 3px;
  border-radius: 50%;
  color: #12342d;
  background: #fff0a3;
}

.fork { margin-top: 28px; }

.fork-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
  text-align: center;
}

.fork-heading span { color: var(--gold); }
.fork-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(1.3rem, 3vw, 2rem); text-shadow: 0 3px 14px #000; }

.portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.portal {
  min-height: 250px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 30px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.42), inset 0 0 35px rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.child-portal { background: linear-gradient(135deg, rgba(7, 93, 120, 0.92), rgba(91, 32, 103, 0.94)); }
.parent-portal { background: linear-gradient(135deg, rgba(86, 66, 22, 0.94), rgba(33, 81, 63, 0.95)); }

.portal::after {
  content: "";
  position: absolute;
  width: 60%;
  aspect-ratio: 1;
  right: -30%;
  top: -50%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  filter: blur(10px);
}

.portal:hover, .portal:focus-visible { transform: translateY(-6px); outline: none; }
.child-portal:hover, .child-portal:focus-visible { border-color: #a3ecff; box-shadow: 0 28px 65px rgba(0, 0, 0, 0.48), 0 0 30px rgba(112, 220, 255, 0.42); }
.parent-portal:hover, .parent-portal:focus-visible { border-color: #fff0a9; box-shadow: 0 28px 65px rgba(0, 0, 0, 0.48), 0 0 30px rgba(255, 228, 145, 0.38); }

.portal-art { height: 100%; display: grid; place-items: center; padding: 14px 0 14px 12px; }
.portal-art img { width: min(100%, 205px); max-height: 215px; object-fit: contain; filter: drop-shadow(0 15px 17px rgba(0, 0, 0, 0.42)); transition: transform 0.25s ease; }
.portal:hover .portal-art img, .portal:focus-visible .portal-art img { transform: scale(1.045); }

.portal-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; padding: 22px 22px 22px 10px; }
.portal-copy small { color: var(--gold); font-size: 0.74rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.portal-copy strong { margin: 3px 0 8px; font-family: Georgia, serif; font-size: clamp(1.45rem, 3.3vw, 2.25rem); line-height: 1.05; }
.portal-description { min-height: 62px; color: rgba(255, 255, 255, 0.78); font-size: 0.9rem; line-height: 1.45; }

.portal-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 0.88rem;
  font-weight: 900;
}

[dir="rtl"] .portal-copy { align-items: flex-end; padding: 22px 10px 22px 22px; text-align: right; }
[dir="rtl"] .video-heading p { text-align: start; }

@keyframes floatLight { to { transform: translate3d(8%, -5%, 0) scale(1.08); } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(0.3); } 48% { opacity: 0.92; transform: scale(1); } }

@media (max-width: 760px) {
  body { background-attachment: scroll; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal { min-height: 235px; }
}

@media (max-width: 560px) {
  .topbar, .demo-shell { width: min(100% - 18px, 1180px); }
  .topbar { min-height: 64px; }
  .home-link { width: 46px; min-height: 46px; padding: 4px; justify-content: center; }
  .home-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .language-picker { min-height: 46px; padding: 4px; }
  .language-picker > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .language-picker select { max-width: 190px; }
  .demo-shell { padding-top: 7px; }
  .intro-copy { margin-bottom: 14px; }
  .subtitle { font-size: 0.9rem; }
  .video-card { border-radius: 21px; }
  .video-heading { min-height: 66px; padding: 10px 14px; }
  .video-heading p { display: none; }
  .video-frame { width: calc(100% - 12px); margin: 0 6px 6px; border-radius: 15px; }
  .play-film { min-height: 45px; bottom: 10px; padding: 5px 13px 5px 5px; font-size: 0.78rem; }
  .play-symbol { width: 34px; height: 34px; }
  .fork { margin-top: 20px; }
  .portal { grid-template-columns: 120px minmax(0, 1fr); min-height: 220px; border-radius: 24px; }
  .portal-art { padding-left: 5px; }
  .portal-copy { padding: 17px 14px 17px 4px; }
  .portal-description { min-height: 0; font-size: 0.79rem; }
  .portal-button { min-height: 40px; margin-top: 10px; padding: 7px 13px; font-size: 0.77rem; }
  [dir="rtl"] .portal-copy { padding: 17px 4px 17px 14px; }
}

@media (max-width: 390px) {
  .language-picker select { max-width: 150px; }
  .portal { grid-template-columns: 96px minmax(0, 1fr); }
  .portal-copy strong { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
