@import url("https://fonts.googleapis.com/css2?family=Elms+Sans:ital,wght@0,100..900;1,100..900&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap");

:root {
  --color-texto: #ffffff;
  --color-fondo: #000000;
  --marco-color: rgba(255, 255, 255, 0.5);
  --vidrio: rgba(0, 0, 0, 0.08);
  --overlay: rgba(0, 0, 0, 0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  text-rendering: optimizeLegibility;
  line-height: 1.4;
  color: var(--color-texto);
  font-family: "Source Sans 3", sans-serif;
  font-weight: 400;
  overflow: hidden;
}

/* .alle {
  min-height: 100svh;
  background: var(--color-fondo) url("img/BKG02.png") center top / cover
    no-repeat fixed;
  display: grid;
  place-items: center;
  padding: clamp(24px, 6vw, 80px);
  position: relative;
  overflow: hidden;
} */

.alle {
  --bkg-image: url("img/BKG_loop_fast.gif");

  min-height: 100svh;
  background-color: var(--color-fondo);
  background-image: var(--bkg-image);
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;

  display: grid;
  place-items: center;
  padding: clamp(24px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}

.alle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: 0;
}

.fenster {
  --topbar-h: 42px;

  width: clamp(420px, 72vw, 1080px);
  position: relative;
  z-index: 1;

  display: grid;
  place-items: center;

  border: 6px solid var(--marco-color);
  border-radius: 12px;

  overflow: hidden;
  background: var(--vidrio);
}

.fenster::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--topbar-h);

  background: var(--marco-color);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.fenster::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 22px;

  width: 16px;
  height: 16px;
  border-radius: 50%;

  background: #586161;
  box-shadow:
    30px 0 #453432,
    60px 0 #a28f8a;

  z-index: 3;
  pointer-events: none;
}

.fenster__content {
  width: 100%;
  margin-top: var(--topbar-h);

  display: grid;
  justify-items: center;
  text-align: center;
  color: var(--color-texto);

  padding: clamp(28px, 5vw, 72px) clamp(22px, 5vw, 80px);

  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  border-radius: 0 0 5px 5px;
}

.fenster__logo {
  display: block;
  width: clamp(240px, 42vw, 560px);
  height: auto;
  margin-bottom: clamp(18px, 3vw, 32px);

  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.55));
}

.fenster__whatsapp {
  display: inline-block;
  margin-bottom: clamp(22px, 4vw, 42px);

  color: var(--color-texto);
  text-decoration: none;

  font-size: clamp(1.1rem, 2vw, 1.65rem);
  line-height: 1.2;
  font-weight: 400;

  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.fenster__whatsapp:hover {
  text-decoration: underline;
}

/* .fenster__content h1 {
  max-width: 900px;

  font-size: clamp(1.9rem, 4.8vw, 3.4rem);
  line-height: 1.05;
  font-weight: 800;

  text-wrap: balance;
  text-shadow: 0 3px 5px rgba(0, 0, 0, 0.75);
} */

.fenster__content h1 {
  max-width: 900px;
  margin-bottom: clamp(14px, 2.4vw, 28px);

  font-size: clamp(1.6rem, 3.8vw, 3rem);
  line-height: 1.05;
  font-weight: 800;

  text-wrap: balance;
  text-shadow: 0 3px 5px rgba(0, 0, 0, 0.75);
}

.fenster__status {
  margin-bottom: clamp(18px, 3vw, 32px);
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.05;
  text-wrap: balance;
  text-shadow: 0 3px 5px rgba(0, 0, 0, 0.75);
}

/* ------------------- */

@media (max-width: 720px) {
  body {
    overflow: hidden;
  }

  .alle {
    background-attachment: scroll;
    padding: 0;
    margin: 0;
  }

  .fenster {
    width: 100%;
    max-width: 520px;

    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  .fenster::before,
  .fenster::after {
    display: none;
  }

  .fenster__content {
    width: 100%;
    max-width: none;
    margin-top: 0;

    padding: clamp(28px, 7vw, 44px) clamp(20px, 6vw, 36px);
    border-radius: 0;
  }

  .fenster__logo {
    width: clamp(240px, 78vw, 390px);
  }

  .fenster__whatsapp {
    font-size: clamp(1rem, 4.8vw, 1.35rem);
  }

  .fenster__content h1 {
    font-size: clamp(1.9rem, 8vw, 2.7rem);
  }
}

.alle[data-time="aurora"] {
  --overlay: rgba(0, 0, 0, 0.32);
}

.alle[data-time="mañana"] {
  --overlay: rgba(0, 0, 0, 0.3);
}

.alle[data-time="medio-dia"] {
  --overlay: rgba(0, 0, 0, 0.42);
}

.alle[data-time="tarde"] {
  --overlay: rgba(0, 0, 0, 0.36);
}

.alle[data-time="atardecer"] {
  --overlay: rgba(0, 0, 0, 0.38);
}

.alle[data-time="noche"] {
  --overlay: rgba(0, 0, 0, 0.25);
}
