/*
Theme Name: IWL Safety Engineering
Theme URI: https://iwl-safety.de
Author: iwl safety engineering
Description: Individuelles Theme fuer iwl safety engineering. Aktueller Stand: reduzierte Vorschau-/Hinweisseite waehrend die neue Website entsteht.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: iwl-safety
*/

/* -----------------------------------------
   Reset (minimal, kein WP-Standard-Markup)
----------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
}

/* -----------------------------------------
   Design tokens
----------------------------------------- */
:root {
  --iwl-black: #000815;
  --iwl-blue-100: #011E3E;
  --iwl-blue-80: #013565;
  --iwl-yellow: #FFD50A;
  --iwl-beige: #FAF9ED;
}

/* -----------------------------------------
   Preview page
----------------------------------------- */
.iwl-preview {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--iwl-beige);
  background: var(--iwl-black);
}

.preview {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 50% 12%, rgba(255, 213, 10, 0.10) 0%, rgba(255, 213, 10, 0) 60%),
    linear-gradient(155deg, var(--iwl-black) 0%, var(--iwl-blue-100) 55%, var(--iwl-blue-80) 100%);
}

.preview__bg {
  position: absolute;
  inset: -56px;
  background-image:
    linear-gradient(rgba(250, 249, 237, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 249, 237, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(75% 65% at 50% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(75% 65% at 50% 40%, #000 0%, transparent 75%);
  pointer-events: none;
  animation: iwl-grid-pan 40s linear infinite;
}

.preview__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.preview__logo {
  width: 190px;
  height: auto;
  margin-bottom: 36px;
  filter: brightness(0) invert(1) drop-shadow(0 0 28px rgba(255, 213, 10, 0.18));
}

.preview__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 9px 18px 9px 14px;
  border: 1px solid rgba(255, 213, 10, 0.28);
  border-radius: 999px;
  background: rgba(255, 213, 10, 0.07);
  color: var(--iwl-yellow);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.preview__badge-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--iwl-yellow);
  animation: iwl-pulse 2s ease-out infinite;
}

.preview__eyebrow {
  margin: 0 0 10px;
  font-size: clamp(0.95rem, 0.4vw + 0.85rem, 1.1rem);
  font-weight: 500;
  color: rgba(250, 249, 237, 0.6);
}

.preview__headline {
  margin: 0 0 26px;
  font-size: clamp(2.5rem, 4vw + 1.6rem, 4.75rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--iwl-yellow);
}

.preview__subline {
  margin: 0;
  max-width: 460px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(250, 249, 237, 0.68);
}

.preview__progress {
  position: relative;
  width: 200px;
  height: 3px;
  margin-top: 40px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(250, 249, 237, 0.08);
}

.preview__progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--iwl-yellow), transparent);
  animation: iwl-progress 1.9s ease-in-out infinite;
}

@keyframes iwl-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 213, 10, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 213, 10, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 213, 10, 0);
  }
}

@keyframes iwl-progress {
  from {
    left: -40%;
  }
  to {
    left: 100%;
  }
}

@keyframes iwl-grid-pan {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 56px 56px, 56px 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .preview__bg,
  .preview__badge-dot,
  .preview__progress::after {
    animation: none;
  }
}

.preview__footer {
  position: relative;
  z-index: 1;
  padding: 24px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 249, 237, 0.35);
}

@media (max-width: 480px) {
  .preview__logo {
    width: 150px;
    margin-bottom: 32px;
  }

  .preview__subline {
    font-size: 0.95rem;
  }
}
