/* threeothree Clothing – Coming Soon */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #000000;
  --color-text: #ffffff;
  --color-text-muted: #b8b8b8;
  --color-glow: rgba(255, 255, 255, 0.12);
  --header-height: 88px;
  --footer-height: 5rem;
  --rotation-duration: 10s;
  --fade-duration: 1.2s;
  --frame-count: 4;
}

html {
  height: 100%;
}

body {
  height: 100dvh;
  overflow: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

/* Header – nur Logo */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--header-height);
  padding: 0 1.5rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 70%, transparent);
}

.site-header__logo {
  display: block;
  line-height: 0;
}

.site-header__logo img {
  display: block;
  width: auto;
  height: clamp(44px, 8vw, 68px);
  object-fit: contain;
  /* Logo-Datei ist schwarz – auf dunklem Hintergrund weiß darstellen */
  filter: brightness(0) invert(1);
}

/* Hero */

.hero {
  display: flex;
  height: calc(100dvh - var(--header-height));
  margin-top: var(--header-height);
  align-items: stretch;
  justify-content: center;
  padding: 0.25rem 1rem 0.5rem;
  overflow: hidden;
}

.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  height: 100%;
  min-height: 0;
}

/* T-Shirt Rotation */

.tshirt-rotation {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: min(96vw, 980px);
  min-height: 0;
  margin: 0 auto;
}

.tshirt-rotation__glow {
  position: absolute;
  left: 50%;
  bottom: 6%;
  z-index: 0;
  width: 72%;
  height: 20%;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    var(--color-glow) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.tshirt-rotation__stage {
  position: relative;
  z-index: 1;
  width: min(
    100%,
    calc((100dvh - var(--header-height) - var(--footer-height)) * 1200 / 675)
  );
  height: auto;
  max-height: calc(100dvh - var(--header-height) - var(--footer-height));
  aspect-ratio: 1200 / 675;
  overflow: hidden;
}

.tshirt-rotation__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 0;
  transition: opacity var(--fade-duration) ease-in-out;
  will-change: opacity;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.tshirt-rotation__frame.is-active {
  opacity: 1;
  z-index: 1;
}

/* Footer: URL + Powered by */

.coming-soon__footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  padding-bottom: clamp(0.35rem, 1.5vh, 0.75rem);
}

.site-url {
  width: 100%;
  margin-top: 0;
  padding: 0.25rem 0 0;
  font-family: "Syncopate", system-ui, sans-serif;
  font-size: clamp(0.85rem, 3vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #d4d4d4 45%,
    #8a8a8a 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: opacity 0.2s ease;
}

.site-url:hover {
  opacity: 0.75;
}

.powered-by {
  font-size: clamp(0.6rem, 1.8vw, 0.72rem);
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--color-text-muted);
  text-transform: lowercase;
}

.powered-by a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.powered-by a:hover {
  color: var(--color-text);
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .tshirt-rotation__frame {
    transition: none;
  }
}

/* Mobile */

@media (max-width: 480px) {
  :root {
    --header-height: 76px;
    --footer-height: 4.5rem;
  }

  .site-header__logo img {
    height: clamp(38px, 11vw, 52px);
  }

  .site-url {
    letter-spacing: 0.08em;
    font-size: clamp(0.7rem, 2.8vw, 0.95rem);
  }

  .tshirt-rotation {
    max-width: 100vw;
  }
}
