/*
 * Design wie ticket.gpmc.ch (Formular, components/customer/CustomerPage.tsx):
 * hellgrauer Grund, dunkle Schrift, Akzent #0d9488, Archivo für Titel,
 * Inter für Text, eckige Kästen mit dünnem Rand.
 */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/archivo-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/archivo-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --accent: #0d9488;
  --ink: #201e1d;
  --background: #f3f2f2;
  --muted-background: #eae9e9;
  --text-60: rgba(0, 0, 0, 0.6);
  --text-70: rgba(0, 0, 0, 0.7);
  --text-80: rgba(0, 0, 0, 0.8);
  --border: rgba(0, 0, 0, 0.2);
  --divider: rgba(32, 30, 29, 0.4);
  --font-sans: "Inter Variable", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-archivo: "Archivo Variable", ui-sans-serif, system-ui, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.page > * + * {
  margin-top: 2rem;
}

/* Kopf */
.eyebrow {
  color: var(--accent);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.title {
  margin-top: 0.75rem;
  font-family: var(--font-archivo);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.02;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  hyphens: auto;
}

.title-md {
  font-size: 32px;
}

.subtitle {
  margin-top: 0.75rem;
  max-width: 44ch;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--text-70);
}

.divider {
  height: 2px;
  border: 0;
  margin: 0;
  background: var(--divider);
}

.header-divider {
  margin-top: 1.5rem;
}

/* Monate */
.section-label {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--text-60);
}

.events {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.events > * + * {
  margin-top: 0.75rem;
}

/* Termin */
.event {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  border: 1px solid var(--border);
  padding: 1rem;
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.event-weekday {
  color: var(--accent);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.event-day {
  font-family: var(--font-archivo);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1.1;
}

.event-month {
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--text-60);
}

.event-name {
  font-family: var(--font-archivo);
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.25;
  overflow-wrap: break-word;
  hyphens: auto;
}

.event-meta {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--text-80);
}

.event-description {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-70);
  white-space: pre-line;
  overflow-wrap: break-word;
}

/* Updates per E-Mail (Felder wie EventCheckout: eckig, grauer Grund) */
.subscribe {
  margin-top: 0.75rem;
}

.subscribe summary {
  cursor: pointer;
  width: fit-content;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

.subscribe-form {
  margin-top: 0.75rem;
}

.subscribe-section > * + * {
  margin-top: 0.5rem;
}

.field-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--text-70);
}

.subscribe-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.input {
  flex: 1 1 12rem;
  min-width: 0;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--muted-background);
  padding: 0.5rem 0.625rem;
  font: inherit;
  font-size: 0.875rem;
  color: var(--ink);
}

.input:focus {
  outline: none;
  border-color: var(--accent);
}

.button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1.25rem;
  font-family: var(--font-archivo);
  font-size: 0.875rem;
  font-weight: 800;
  cursor: pointer;
}

.button:hover {
  filter: brightness(0.95);
}

.hint {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--text-60);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  margin-top: 0.75rem;
  background: var(--muted-background);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-80);
  border-left: 3px solid #b45309;
}

.notice-ok {
  border-left-color: var(--accent);
}

/* Admin */
.admin-event > * + * {
  margin-top: 0.5rem;
}

.copy-box {
  resize: vertical;
  font-size: 0.8125rem;
}

.admin-list {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.admin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.admin-email {
  min-width: 0;
  overflow-wrap: anywhere;
}

.text-button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.75rem;
  color: #b91c1c;
  cursor: pointer;
}

.badge {
  margin-left: 0.375rem;
  vertical-align: middle;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--text-60);
}

.text-button-muted {
  color: var(--text-60);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-70);
}

.tabs {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 600;
}

.tab {
  padding-bottom: 0.5rem;
  margin-bottom: -1px;
  color: var(--text-60);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.tab:hover {
  color: var(--ink);
}

.tab-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* Sichtbarkeit */
.admin-form > * + * {
  margin-top: 1.5rem;
}

.visibility-list {
  list-style: none;
  padding: 0;
  margin-top: 0.75rem;
}

.visibility-row + .visibility-row {
  border-top: 1px solid var(--border);
}

.visibility-label,
.radio-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.625rem 0;
  cursor: pointer;
  font-size: 0.875rem;
}

.radio-label {
  padding: 0.375rem 0;
  color: var(--text-80);
}

.checkbox {
  flex: 0 0 auto;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.125rem 0 0;
  accent-color: var(--accent);
}

.visibility-name {
  display: block;
  font-weight: 600;
}

.visibility-meta {
  display: block;
  font-size: 0.75rem;
  color: var(--text-60);
}

.badge-new {
  color: #b45309;
}

.button-block {
  width: 100%;
  padding: 0.75rem 1.5rem;
}

.access-form {
  max-width: 28rem;
}

/* Hinweise und Fuss */
.muted-box {
  background: var(--muted-background);
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--text-70);
}

.footer {
  text-align: center;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--text-60);
}

.link {
  color: var(--accent);
  font-weight: 600;
}

@media (min-width: 640px) {
  .page {
    padding: 2.5rem;
  }

  .title {
    font-size: 56px;
  }

  .title-md {
    font-size: 40px;
  }
}
