/* ============================================================
   THÖMUS DESIGN SYSTEM — Sommergewinnspiel
   Quelle: Prototyp (www.thoemus.ch Design-Tokens)
   ============================================================ */

@font-face { font-family: 'Galano Grotesque'; src: url("/assets/fonts/galano-400.otf") format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Galano Grotesque'; src: url("/assets/fonts/galano-500.otf") format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Galano Grotesque'; src: url("/assets/fonts/galano-600.otf") format('opentype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Galano Grotesque'; src: url("/assets/fonts/galano-700.otf") format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Galano Grotesque'; src: url("/assets/fonts/galano-800.otf") format('opentype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Galano Grotesque'; src: url("/assets/fonts/galano-900.otf") format('opentype'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Galano Grotesque'; src: url("/assets/fonts/galano-900i.otf") format('opentype'); font-weight: 900; font-style: italic; font-display: swap; }

:root {
  --tho-red: #E30613;
  --tho-red-dark: #B5040F;
  --tho-black: #0D0D0D;
  --tho-gray-900: #1A1A1A;
  --tho-gray-700: #444444;
  --tho-gray-600: #666666;
  --tho-gray-400: #999999;
  --tho-gray-300: #CCCCCC;
  --tho-gray-200: #E5E5E5;
  --tho-gray-100: #F5F5F5;
  --tho-white: #FFFFFF;
  --font: 'Galano Grotesque', 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--tho-gray-900);
  background: var(--tho-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--tho-red); text-decoration: none; transition: color 150ms; }
a:hover { color: var(--tho-red-dark); }
input::placeholder { color: var(--tho-gray-400); }
button { font-family: var(--font); }

h1, h2, h3, h4 {
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 700; }

.hidden { display: none !important; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-size: 15px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  border: none; cursor: pointer; transition: background 150ms, color 150ms, border-color 150ms;
  text-align: center;
}
.btn-red { background: var(--tho-red); color: var(--tho-white); padding: 18px 40px; }
.btn-red:hover { background: var(--tho-red-dark); color: var(--tho-white); }
.btn-black { background: var(--tho-black); color: var(--tho-white); padding: 18px 48px; }
.btn-black:hover { background: var(--tho-white); color: var(--tho-red); }
.btn-outline-white { background: transparent; color: var(--tho-white); border: 2px solid var(--tho-white); padding: 14px 36px; font-size: 13px; }
.btn-outline-white:hover { background: var(--tho-white); color: var(--tho-black); }
.btn-white { background: var(--tho-white); color: var(--tho-black); border: 2px solid var(--tho-white); padding: 14px 36px; font-size: 13px; cursor: pointer; }
.btn-white:hover { background: var(--tho-gray-200); border-color: var(--tho-gray-200); color: var(--tho-black); }
.btn-white:disabled { opacity: 0.6; cursor: wait; }
.btn-outline-dark { background: transparent; color: var(--tho-gray-900); border: 2px solid var(--tho-gray-900); padding: 12px 32px; font-size: 13px; }
.btn-outline-dark:hover { background: var(--tho-gray-900); color: var(--tho-white); }
.btn-link { background: none; border: none; color: var(--tho-gray-400); cursor: pointer; text-decoration: underline; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ── Badge ───────────────────────────────────────────────── */
.badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; padding: 5px 12px; align-self: flex-start;
}
.badge-red { background: var(--tho-red); color: var(--tho-white); }
.badge-dark { background: var(--tho-gray-700); color: var(--tho-white); }
.badge-subtle { background: var(--tho-gray-200); color: var(--tho-gray-600); }
.badge-outline { background: transparent; color: var(--tho-gray-900); border: 1px solid var(--tho-gray-900); }

/* ── Header / Footer ─────────────────────────────────────── */
.site-header { background: var(--tho-white); border-bottom: 1px solid var(--tho-gray-200); position: relative; z-index: 10; }
.site-header-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; height: 84px; display: flex; align-items: center; justify-content: space-between; }
.site-header-inner img { height: 62px; display: block; }
.lang-switch { display: flex; align-items: center; gap: 4px; }
.lang-switch button {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; padding: 8px 12px;
  border: none; cursor: pointer; background: transparent; color: var(--tho-gray-600);
}
.lang-switch button.active { background: var(--tho-black); color: var(--tho-white); }

.site-footer { background: var(--tho-black); padding: 40px 24px; }
.site-footer-inner { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer .brand { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tho-white); }
.site-footer .links { display: flex; gap: 24px; align-items: center; }
.site-footer .links a { font-size: 13px; color: var(--tho-gray-400); }
.site-footer .links a:hover { color: var(--tho-white); }
.site-footer .links span { font-size: 13px; color: var(--tho-gray-600); }

/* ── Hero ────────────────────────────────────────────────── */
.hero { background: var(--tho-red); padding: 96px 24px 88px; text-align: center; }
.hero-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.hero .overline { font-size: 18px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tho-white); }
.hero .claim-img { width: 100%; max-width: 760px; height: auto; display: block; }
.hero .sub { font-size: clamp(19px, 2.6vw, 28px); line-height: 1.6; color: var(--tho-white); max-width: 640px; margin: 0; }

/* ── Ablauf ──────────────────────────────────────────────── */
.how { background: var(--tho-white); padding: 96px 24px; }
.how-inner { max-width: 1200px; margin: 0 auto; }
.how h2 { margin-bottom: 56px; text-align: center; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.how-step { display: flex; flex-direction: column; gap: 16px; text-align: center; align-items: center; }
.how-step .n { font-size: 72px; font-weight: 900; line-height: 1; color: var(--tho-red); }
.how-step .t { font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; color: var(--tho-gray-900); }
.how-step p { font-size: 15px; line-height: 1.6; color: var(--tho-gray-600); max-width: 300px; }
.how-note { text-align: center; margin-top: 48px; font-size: 14px; color: var(--tho-gray-400); }

/* ── Hauptpreis ──────────────────────────────────────────── */
.mainprize { background: var(--tho-black); padding: 96px 24px; }
.mainprize-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.mainprize-img { display: flex; flex-direction: column; gap: 12px; }
.mainprize-img .frame { background: var(--tho-white); }
.mainprize-img img { width: 100%; height: 400px; object-fit: contain; display: block; }
.mainprize-img .disclaimer { font-size: 12px; font-style: italic; line-height: 1.6; color: var(--tho-gray-400); }
.mainprize-info { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.mainprize-info h2 { color: var(--tho-white); }
.mainprize-info .price { font-size: 28px; font-weight: 700; color: var(--tho-red); }
.mainprize-info p { font-size: 16px; line-height: 1.7; color: var(--tho-gray-300); }

/* ── Alle Preise ─────────────────────────────────────────── */
.prizes { background: var(--tho-gray-100); padding: 96px 24px; }
.prizes-inner { max-width: 1200px; margin: 0 auto; }
.prizes h2 { margin-bottom: 12px; text-align: center; }
.prizes .sub { text-align: center; margin-bottom: 56px; font-size: 16px; color: var(--tho-gray-600); }
.prizes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.prize-card { background: var(--tho-white); display: flex; flex-direction: column; }
.prize-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.prize-card .body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 6px; }
.prize-card .count { font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--tho-red); }
.prize-card .name { font-size: 19px; font-weight: 800; text-transform: uppercase; line-height: 1.15; color: var(--tho-gray-900); }

/* ── Teilnahme / HubSpot ─────────────────────────────────── */
.signup { background: var(--tho-white); padding: 96px 24px; }
.signup-inner { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.signup .head { text-align: center; display: flex; flex-direction: column; gap: 12px; }
.signup .head p { font-size: 16px; color: var(--tho-gray-600); }
.hubspot-box { border: 1px solid var(--tho-gray-200); padding: 40px; min-height: 320px; }
.hubspot-box .loading { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tho-gray-400); text-align: center; padding: 60px 0; }
/* HubSpot-Formular ans Design angleichen */
.hubspot-box .hs-form-field label { font-size: 13px; font-weight: 600; color: var(--tho-gray-700); font-family: var(--font); }
.hubspot-box input[type=text], .hubspot-box input[type=email] {
  font-family: var(--font); font-size: 15px; padding: 12px 14px;
  border: 1px solid var(--tho-gray-300); background: var(--tho-white); color: var(--tho-gray-900);
  outline: none; width: 100%;
}
.hubspot-box input[type=submit], .hubspot-box .hs-button {
  font-family: var(--font); font-size: 15px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--tho-red); color: var(--tho-white); border: none; padding: 18px 40px; cursor: pointer; margin-top: 8px;
}
.hubspot-box input[type=submit]:hover, .hubspot-box .hs-button:hover { background: var(--tho-red-dark); }
.hubspot-box .hs-error-msgs, .hubspot-box .hs-error-msg { color: var(--tho-red); font-size: 13px; list-style: none; }
.hubspot-box .hs-form-field { margin-bottom: 16px; }
.submit-error { font-size: 14px; font-weight: 600; color: var(--tho-red); text-align: center; }

/* ── Screen: Code-Anzeige ────────────────────────────────── */
.screen-dark { background: var(--tho-black); min-height: 100vh; display: flex; flex-direction: column; }
.screen-dark .head { background: var(--tho-white); padding: 0 24px; height: 84px; display: flex; align-items: center; justify-content: center; }
.screen-dark .head img { height: 56px; display: block; }
.code-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 64px 24px; }
.code-card { max-width: 560px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.code-card .overline { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tho-red); }
.code-card h1 { color: var(--tho-white); font-size: clamp(28px, 5vw, 40px); }
.code-box { background: var(--tho-white); padding: 40px 24px; width: 100%; }
.code-box .code { font-size: clamp(48px, 12vw, 80px); font-weight: 900; letter-spacing: 0.18em; line-height: 1; color: var(--tho-black); }
.code-card .hint { font-size: 17px; line-height: 1.7; color: var(--tho-gray-300); max-width: 460px; }

/* ── Screen: Bereits teilgenommen ────────────────────────── */
.screen-gray { background: var(--tho-gray-100); min-height: 100vh; display: flex; flex-direction: column; }
.screen-gray .head { background: var(--tho-white); border-bottom: 1px solid var(--tho-gray-200); padding: 0 24px; height: 72px; display: flex; align-items: center; justify-content: center; }
.screen-gray .head img { height: 44px; display: block; }
.already-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 64px 24px; }
.already-card {
  background: var(--tho-white); border-top: 4px solid var(--tho-red); padding: 56px 56px 48px;
  max-width: 520px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.already-card h2 { font-size: clamp(24px, 4vw, 32px); }
.already-card p { font-size: 16px; line-height: 1.7; color: var(--tho-gray-600); }

/* ── Admin: Login ────────────────────────────────────────── */
.login-screen { background: var(--tho-black); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { background: var(--tho-white); padding: 56px 56px 48px; max-width: 420px; width: 100%; display: flex; flex-direction: column; gap: 24px; }
.login-card img { height: 40px; display: block; align-self: center; }
.login-card .head { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.login-card h3 { font-size: 26px; }
.login-card .head p { font-size: 14px; color: var(--tho-gray-600); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--tho-gray-700); }
.field input {
  font-family: var(--font); font-size: 15px; padding: 14px;
  border: 1px solid var(--tho-gray-300); background: var(--tho-white); color: var(--tho-gray-900); outline: none; width: 100%;
}
.login-error { margin-top: -12px; font-size: 13px; font-weight: 600; color: var(--tho-red); }
.login-card .btn-red { padding: 16px; font-size: 14px; }

/* ── Admin: Prüfmaske ────────────────────────────────────── */
.admin-screen { background: var(--tho-gray-100); min-height: 100vh; }
.admin-header { background: var(--tho-black); padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-header .left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.admin-header img { height: 32px; display: block; background: var(--tho-white); padding: 3px 8px; }
.admin-header .title { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tho-white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-header .logout {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  background: none; border: 1px solid var(--tho-gray-700); color: var(--tho-gray-300); padding: 8px 16px; cursor: pointer; flex-shrink: 0;
}
.admin-header .logout:hover { border-color: var(--tho-white); color: var(--tho-white); }
.admin-main { max-width: 820px; margin: 0 auto; padding: 48px 24px 64px; display: flex; flex-direction: column; gap: 32px; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs button {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 12px 28px; border: none; cursor: pointer; background: transparent; color: var(--tho-gray-600);
}
.tabs button.active { background: var(--tho-black); color: var(--tho-white); }

.panel { background: var(--tho-white); padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.panel .label { font-size: 12px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--tho-gray-600); }
.panel select {
  font-family: var(--font); font-size: 16px; font-weight: 600; padding: 12px 14px;
  border: 2px solid var(--tho-gray-900); background: var(--tho-white); color: var(--tho-gray-900);
  outline: none; width: 100%; cursor: pointer;
}
.check-row { display: flex; gap: 12px; }
.check-row input {
  font-family: var(--font); font-size: 32px; font-weight: 800; letter-spacing: 0.2em; padding: 12px 18px;
  border: 2px solid var(--tho-gray-900); background: var(--tho-white); color: var(--tho-gray-900);
  outline: none; width: 100%; text-align: center;
}
.check-row .btn-red { padding: 0 40px; font-size: 14px; flex-shrink: 0; }

.warn-banner { background: var(--tho-black); padding: 20px 28px; display: flex; align-items: center; gap: 14px; }
.warn-banner p { font-size: 15px; font-weight: 600; color: var(--tho-white); }

.result-card { background: var(--tho-white); padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.result-card.winner { border-top: 4px solid var(--tho-red); }
.result-card.redeemed { border-top: 4px solid var(--tho-gray-600); }
.result-card.loser { border-top: 4px solid var(--tho-gray-300); }
.result-card.invalid { border-top: 4px solid var(--tho-black); }
.result-card h3 { font-size: 30px; }
.result-card h4 { font-size: 22px; }
.result-card .cust-label { font-size: 13px; color: var(--tho-gray-400); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.result-card .cust-name { font-size: 18px; font-weight: 600; color: var(--tho-gray-900); }
.result-card .note { font-size: 13px; color: var(--tho-gray-400); }
.result-card .text { font-size: 15px; color: var(--tho-gray-600); }
.result-card .btn-red { align-self: flex-start; padding: 16px 32px; font-size: 14px; }

.table-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.table-head h4 { font-size: 22px; }
.table-head .count { font-size: 13px; color: var(--tho-gray-400); }
.panel .sub { font-size: 14px; color: var(--tho-gray-600); }
.filter-row { display: flex; gap: 12px; flex-wrap: wrap; }
.filter-row input {
  font-family: var(--font); font-size: 15px; padding: 12px 14px; border: 1px solid var(--tho-gray-300);
  background: var(--tho-white); color: var(--tho-gray-900); outline: none; flex: 1; min-width: 220px;
}
.filter-row select { flex: 0 1 auto; width: auto; border: 1px solid var(--tho-gray-300); font-size: 14px; }
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-family: var(--font); }
table.data th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--tho-gray-600); padding: 10px 16px 10px 0; border-bottom: 2px solid var(--tho-gray-900); white-space: nowrap;
}
table.data td { font-size: 15px; color: var(--tho-gray-900); padding: 12px 16px 12px 0; border-bottom: 1px solid var(--tho-gray-200); }
table.data td.code { font-weight: 800; letter-spacing: 0.08em; }
table.data td.muted { color: var(--tho-gray-600); }
.empty-note { font-size: 14px; color: var(--tho-gray-400); padding: 16px 0; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .mainprize-inner { grid-template-columns: 1fr; gap: 40px; }
  .mainprize-img img { height: 280px; }
  .how-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 640px) {
  .site-header-inner { height: 68px; }
  .site-header-inner img { height: 44px; }
  .hero { padding: 64px 20px 56px; }
  .how, .mainprize, .prizes, .signup { padding: 64px 20px; }
  .hubspot-box { padding: 24px 20px; }
  .already-card { padding: 40px 28px 36px; }
  .login-card { padding: 40px 28px 36px; }
  .panel { padding: 24px 20px; }
  .check-row { flex-direction: column; }
  .check-row .btn-red { padding: 16px; }
  .admin-header .title { font-size: 11px; }
}
