@font-face {
  font-family: "Corporate S";
  src: url("/src/assets/fonts/fonnts.com-Corporate_S_Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Corporate S";
  src: url("/src/assets/fonts/fonnts.com-Corporate_S_Light_Italic.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: "Corporate S";
  src: url("/src/assets/fonts/fonnts.com-Corporate_S.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Corporate S";
  src: url("/src/assets/fonts/fonnts.com-Corporate_S_Regular_Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "Corporate S";
  src: url("/src/assets/fonts/fonnts.com-Corporate_S_Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Corporate S";
  src: url("/src/assets/fonts/fonnts.com-Corporate_S_Demi.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Corporate S";
  src: url("/src/assets/fonts/fonnts.com-Corporate_S_Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Corporate S";
  src: url("/src/assets/fonts/fonnts.com-Corporate_S_ExtraBold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
}

:root {
  --red: #cd1719;
  --red-dark: #8f1113;
  --ink: #565858;
  --strong: #3f4141;
  --grey: #7b7d7c;
  --muted: #7b7d7c;
  --line: transparent;
  --paper: #ffffff;
  --light-grey: #bbbdbd;
  --soft-grey: #f2f3f3;
  --mid-grey: #d9dbdb;
  --pure-green: #80bb34;
  --shadow: none;
  --box-radius: 12px;
  --button-radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Corporate S";
}

body.admin-menu-open {
  overflow: hidden;
}

body,
button,
input,
select,
textarea {
  font: 16px/1.5 "Corporate S";
}

.input-on-grey {
  background-color: white;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--strong);
}

h1 {
  font-size: clamp(42px, 7vw, 92px);
  max-width: 920px;
}

h2 {
  font-size: clamp(30px, 4.5vw, 58px);
}

button,
input,
select,
textarea {
  border-radius: var(--box-radius);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  width: 156px;
  max-height: 48px;
  object-fit: contain;
}

.nav-menu-logo {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 32px);
  margin-left: auto;
  color: var(--muted);
}

.main-nav a {
  transition: color 0.2s ease;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--ink);
}

/* Letzter Link: «Personalisierte Jasskarten» — nur Text */
.main-nav .nav-highlight {
  color: var(--ink);
  font-weight: 500;
}

/* Burger-Button (nur Mobile) */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
  border-radius: var(--button-radius);
}

.nav-burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  padding: 14px 20px 10px;
  cursor: pointer;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  background: var(--soft-grey);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  border-radius: var(--button-radius);
}

.nav-action {
  background: var(--soft-grey);
  color: var(--ink);
}

.button:hover,
.nav-action:hover {
  background: var(--mid-grey);
}

.button.primary {
  background: transparent;
  color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}

.button.secondary {
  background: var(--soft-grey);
  color: var(--ink);
}

.button.dark {
  background: var(--soft-grey);
  color: var(--ink);
}

.button.primary:hover {
  background: var(--red);
  color: white;
  box-shadow: inset 0 0 0 1px var(--red);
}

.button.small {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 14px;
}

.button.danger {
  color: var(--red);
  box-shadow: inset 0 0 0 1px rgba(205, 23, 25, 0.28);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 26px clamp(18px, 5vw, 70px);
  color: var(--muted);
  background: white;
}

.footer-copy {
  text-align: center;
  font-size: 14px;
}

.footer-legal {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  font-size: 14px;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--ink);
}

.footer-modal-trigger {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}

.footer-modal-trigger:hover {
  color: var(--ink);
}

.footer-logo {
  width: 150px;
  max-height: 46px;
  object-fit: contain;
}

.employee-login {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 0 0 1px rgba(86, 88, 88, 0.08);
  backdrop-filter: blur(10px);
}

.employee-login:hover {
  color: var(--red);
  background: white;
}

.form-page,
.admin-page {
  background: var(--soft-grey);
  padding: clamp(56px, 8vw, 110px) clamp(18px, 5vw, 70px);
}

label {
  display: grid;
  gap: 7px;
  font-weight: 500;
}

span.required {
  color: var(--red);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 0;
  background: var(--soft-grey);
  padding: 12px 13px;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
}

.loader-ring {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(205, 23, 25, 0.18);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.checkbox-stack {
  display: grid;
  gap: 12px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--soft-grey);
  border-radius: var(--button-radius);
}

.checkbox-row input,
th input,
.waitlist-row-select,
.contest-row-select {
  width: 22px;
  height: 22px;
  accent-color: var(--red);
}

/* ---- Responsive: global / nav / footer / buttons ---- */
@media (max-width: 900px) {
  .nav-burger {
    display: flex;
  }

  .main-nav {
    display: none;
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin-left: 0;
    padding: 80px 32px 32px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    z-index: 110;
    height: 100dvh;
    overflow-y: auto;
  }

  .nav-burger {
    z-index: 120;
    position: relative;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-menu-logo {
    position: absolute;
    top: 0;
    left: 0;
    height: 64px;
    width: auto;
    padding: 0 20px;
    object-fit: contain;
  }

  .main-nav a {
    padding: 16px 0;
    font-size: 22px;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--soft-grey);
  }

  .main-nav a:last-child {
    border-bottom: 0;
    margin-top: 16px;
  }

  .main-nav .nav-highlight {
    text-align: left;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 30px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }

  .button,
  .nav-action {
    width: 100%;
  }
}
