/* ---------- Reset & Variables ---------- */
@import 'reset.css';
@import 'variables.css';
@import 'fonts.css';

/* ---------- Special Styles ---------- */
@import 'buttons.css';
@import 'assets.css';
@import 'room.css';
@import 'desktop.css';

/* ---------- Base Styles ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  display: flex;
  justify-content: center;
  padding: 24px 16px 40px;
}

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

button,
input,
a {
  font: inherit;
}

.page {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  padding-top: 24px;
}

/* =========================
   Hero
========================= */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  margin-bottom: 2px;
}

.hero-kicker {
  margin: 0;
  font-family: "Bangers", cursive;
  font-size: clamp(2rem, 10vw, 2.8rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-intro {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
  max-width: 24ch;
}

.logo-image {
  width: 100%;
  max-width: 280px;
  height: auto;
  margin-top: 4px;
}

.hero-title {
  margin: 0;
  font-family: "Bangers", cursive;
  font-size: clamp(2.1rem, 11vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* =========================
   Intro Card
========================= */

.intro-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.45);
  border: 2px solid #000;
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: 0 8px 20px var(--shadow);
}

.intro-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 700;
}

/* =========================
   Access Card
========================= */

.access-card {
  width: 100%;
  background: #000;
  color: #fff;
  border-radius: 28px;
  padding: 24px 18px 22px;
  box-shadow: 0 14px 28px var(--shadow);
}

.access-card h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.access-card p {
  margin: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.field-label {
  display: block;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: -4px;
}

.field-hint-create-code {
  margin: -6px 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.62);
  text-align: left;
}

.code-input--left {
  text-align: left;
  letter-spacing: 0.02em;
  text-transform: none;
}

.room-result {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.room-result-label {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
}

.room-result-code {
  margin: 0 0 16px;
  font-family: "Inter", monospace;
  font-size: clamp(1.5rem, 8vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.2em;
  word-break: break-all;
}

.room-result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.copy-link-notice {
  margin: 12px 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
  color: rgba(255, 204, 51, 0.95);
  text-align: center;
}

.submit-btn--secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.submit-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* COPY LINK: dunkelgrau erst nach Klick */
.submit-btn--secondary.btn-copy-link {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.submit-btn--secondary.btn-copy-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

.submit-btn--secondary.btn-copy-link.is-copied {
  background: #3d3d3d;
  color: #fff;
  border-color: #3d3d3d;
}

.submit-btn--secondary.btn-copy-link.is-copied:hover {
  background: #3d3d3d;
}

.code-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.code-input {
  width: 100%;
  padding: 16px 18px;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  outline: none;
  color: #000;
  background: #fff;
}

.code-input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

.submit-btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 16px 18px;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg);
  color: #000;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
}

.submit-btn:active {
  transform: translateY(0);
}

.error {
  display: none;
  margin-top: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ff7b7b;
}

.access-card--create .error {
  margin-top: 10px;
}

/* =========================
   Footer
========================= */

.footer-note {
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.75;
  margin-top: 4px;
}

/* =========================
   Desktop
========================= */

@media (min-width: 768px) {
  body {
    padding-top: 40px;
  }

  .page {
    gap: 32px;
  }

  .intro-card,
  .access-card {
    padding-left: 24px;
    padding-right: 24px;
  }

  .logo-image {
    max-width: 320px;
  }

  .hero-icon {
    width: 82px;
    height: 82px;
  }
}