/* ---------- Reset bàsic ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: #333;
  background: #f3f3f3;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.5;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: 38px;
  width: auto;
  display: block;
}

.header-nav .back-link {
  color: #333;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.header-nav .back-link:hover {
  background: #f0f0ec;
  color: #000;
}

/* ---------- Main + iframe ---------- */
.site-main {
  flex: 1;
  padding-top: 70px; /* alçada del header */
  display: flex;
  flex-direction: column;
}

.iframe-container {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.iframe {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 70px - 200px);
  border: 0;
  border-radius: 8px;
  background: #fff;
  display: block;
}

/* Tapa real (div) que cobreix el menú "Imprint | Privacy Policy…"
   i captura els clics. */
.iframe-cover {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  height: 50px;
  background: #f3f3f3;
  z-index: 10;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #2c2c2c;
  color: #bfbfbf;
  padding: 28px 24px;
  font-size: 13px;
  text-align: center;
  line-height: 1.7;
}

.site-footer .submenu_info {
  max-width: 1200px;
  margin: 0 auto;
}

.site-footer .submenu_container {
  margin-bottom: 10px;
}

.site-footer a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #cdd9b3;
  text-decoration: underline;
}

.site-footer i {
  color: #777;
  font-style: normal;
}

.site-footer .hidden-xs {
  margin-bottom: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .header-inner {
    padding: 10px 16px;
  }
  .logo img {
    height: 32px;
  }
  .header-nav .back-link {
    font-size: 13px;
    padding: 6px 10px;
  }
  .site-main {
    padding-top: 60px;
  }
  .iframe-container {
    padding: 10px;
  }
  .iframe-cover {
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: 45px;
  }
  .iframe {
    min-height: calc(100vh - 60px - 220px);
  }
  .site-footer {
    padding: 20px 16px;
    font-size: 12px;
  }
  .site-footer .hidden-xs {
    display: none;
  }
}