/* CousCous Freitagskonzerte – design tokens and shared components.
   Brand source: Cous_Cous_pallete.jpg (yellow #EBE46F, orange #E65C1D, charcoal #2D2C2B)
   and couscous-bistro.ch (mint #A0CEB7, Spectral Bold headings, Rubik body, pill buttons, circles).
   Page-specific styles live in app.css (band pages) and admin.css (admin). Do not redefine tokens there. */

@font-face { font-family: "Spectral"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/spectral-latin-700-normal.woff2") format("woff2");
  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: "Spectral"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/spectral-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,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: "Rubik"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/rubik-latin-400-normal.woff2") format("woff2");
  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: "Rubik"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/rubik-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,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: "Rubik"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/rubik-latin-500-normal.woff2") format("woff2");
  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: "Rubik"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/rubik-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,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: "Rubik"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/rubik-latin-700-normal.woff2") format("woff2");
  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: "Rubik"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/rubik-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,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; }

:root {
  /* brand */
  --orange: #E65C1D;        /* shapes, dots, headings of 24px and larger */
  --orange-deep: #C94A10;   /* buttons, links, small orange text: 4.7:1 with white */
  --orange-dark: #A23B0B;   /* hover and active */
  --charcoal: #2D2C2B;      /* text, "taken" dots */
  --yellow: #EBE46F;        /* brand yellow: highlights, waiting states */
  --butter: #FFF3C4;        /* soft notice background */
  --mint: #A0CEB7;          /* section background from the website */
  --mint-soft: #DDEEE5;     /* quiet mint for chips and table stripes */
  --paper: #FFFFFF;
  /* neutrals */
  --muted: #6E6C69;         /* secondary text, 4.9:1 on white */
  --rule: #D9D6D1;          /* dividers */
  --field: #8B8885;         /* field borders, 3.4:1 on white */
  --danger: #B3261E;
  /* type */
  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "Rubik", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;      /* 17px body */
  --step-1: 1.25rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --step-3: clamp(2.3rem, 1.4rem + 4.2vw, 4.25rem);
  /* space */
  --s-1: 0.5rem; --s-2: 0.75rem; --s-3: 1rem; --s-4: 1.5rem; --s-5: 2.25rem; --s-6: 3.5rem;
  --section: clamp(3rem, 2rem + 5vw, 6rem);
  --radius: 12px;
  --pill: 999px;
  --dot: 3rem;              /* diameter of a calendar dot */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--charcoal);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
h1, h2 { font-family: var(--font-display); font-weight: 700; line-height: 1.06; letter-spacing: -0.01em;
  margin: 0 0 var(--s-3); color: var(--orange); text-wrap: balance; }
h1 { font-size: var(--step-3); hyphens: auto; -webkit-hyphens: auto; }
h2 { font-size: var(--step-2); }
h3 { font-family: var(--font-body); font-weight: 700; font-size: var(--step-1); line-height: 1.25; margin: 0 0 var(--s-1); }
p, ul, ol, dl { margin: 0 0 var(--s-3); }
ul, ol { padding-left: 1.2em; }
li + li { margin-top: 0.3em; }
a { color: var(--orange-deep); text-underline-offset: 0.15em; }
a:hover { color: var(--orange-dark); }
strong { font-weight: 700; }
small, .small { font-size: var(--step--1); }
.muted { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s-5) 0; }
:focus-visible { outline: 3px solid var(--orange-deep); outline-offset: 2px; border-radius: 4px; }
.on-mint :focus-visible, .on-orange :focus-visible { outline-color: var(--charcoal); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* layout */
.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 42rem); margin-inline: auto; }
.section { padding-block: var(--section); }
.on-mint { background: var(--mint); }
.on-mint h1, .on-mint h2 { color: var(--charcoal); }
.on-orange { background: var(--orange); color: var(--paper); }
.on-orange h1, .on-orange h2 { color: var(--paper); }
.stack > * + * { margin-top: var(--s-3); }
.stack-lg > * + * { margin-top: var(--s-5); }
.row { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); align-items: center; }
.split { display: grid; gap: var(--s-5); }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; gap: var(--s-6); } }

/* header and footer */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding-block: var(--s-3); }
.site-header .logo img { width: 7.5rem; }
.lang-switch a { font-weight: 500; text-decoration: none; padding: 0.25em 0.5em; border-radius: var(--pill); }
.lang-switch a[aria-current="true"] { background: var(--charcoal); color: var(--paper); }
.site-footer { border-top: 1px solid var(--rule); padding-block: var(--s-5); font-size: var(--step--1); color: var(--muted); }
.site-footer a { color: inherit; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; font: inherit; font-weight: 500;
  padding: 0.8em 1.6em; border-radius: var(--pill); border: 2px solid var(--orange-deep); background: var(--orange-deep);
  color: var(--paper); text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: var(--paper); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--rule); border-color: var(--rule); color: var(--muted); cursor: not-allowed; }
.btn--quiet { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn--quiet:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--paper); }
.btn--dark { background: var(--charcoal); border-color: var(--charcoal); }
.btn--dark:hover { background: #000; border-color: #000; }
.btn--small { padding: 0.45em 1em; font-size: var(--step--1); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--orange-deep); text-decoration: underline; cursor: pointer; }

/* forms */
.field { display: grid; gap: 0.35rem; margin-bottom: var(--s-4); }
.field > label, .field > .label, fieldset > legend { font-weight: 500; }
.field .hint { font-size: var(--step--1); color: var(--muted); }
.field .count { font-size: var(--step--1); color: var(--muted); justify-self: end; font-variant-numeric: tabular-nums; }
.field .count[data-over="true"] { color: var(--danger); font-weight: 500; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="password"],
input[type="date"], input[type="time"], select, textarea {
  font: inherit; color: inherit; width: 100%; padding: 0.7em 0.9em; background: var(--paper);
  border: 1.5px solid var(--field); border-radius: var(--radius); }
textarea { min-height: 7.5em; resize: vertical; line-height: 1.5; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--orange-deep); outline-offset: 1px; border-color: var(--charcoal); }
.field[data-invalid="true"] input, .field[data-invalid="true"] textarea, .field[data-invalid="true"] select { border-color: var(--danger); border-width: 2px; }
.field .error { color: var(--danger); font-size: var(--step--1); font-weight: 500; }
fieldset { border: 0; padding: 0; margin: 0 0 var(--s-4); }
.check { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.6rem; align-items: start; margin-bottom: var(--s-2); }
.check input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; accent-color: var(--orange-deep); }
.form-errors { border: 2px solid var(--danger); border-radius: var(--radius); padding: var(--s-3) var(--s-4); margin-bottom: var(--s-4); }
/* touch screens and narrow screens: every control is at least 44 px high */
@media (pointer: coarse), (max-width: 40rem) {
  .btn--small { min-height: 2.75rem; }
  .check { margin-bottom: 0; }
  .check label { padding-block: 0.65rem; }
  .check input { margin-top: 0.85rem; }
  .form-errors li a, .tap, .back a, .footer-links a, .questions a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .footer-links a { min-width: 2.75rem; }
  .facts dd a { display: inline-block; padding-block: 0.6rem; }
}
.form-errors h2, .form-errors h3 { color: var(--danger); font-family: var(--font-body); font-size: var(--step-0); margin-bottom: var(--s-1); }

/* notices */
.notice { background: var(--butter); border-left: 6px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; padding: var(--s-3) var(--s-4); }
.notice--ok { background: var(--mint-soft); border-left-color: var(--charcoal); }
.notice--error { background: var(--paper); border: 2px solid var(--danger); border-left-width: 6px; }
.notice > :last-child { margin-bottom: 0; }

/* status chips */
.chip { display: inline-flex; align-items: center; gap: 0.4em; font-size: var(--step--1); font-weight: 500; line-height: 1.2;
  padding: 0.3em 0.75em; border-radius: var(--pill); background: var(--rule); color: var(--charcoal); white-space: nowrap; }
.chip--free { background: var(--orange-deep); color: var(--paper); }
.chip--ok { background: var(--mint); }
.chip--wait { background: var(--yellow); }
.chip--alert { background: var(--charcoal); color: var(--paper); }
.chip--off { background: transparent; border: 1.5px solid var(--rule); color: var(--muted); }

/* the season as dots: one circle per Friday */
.season { display: grid; gap: var(--s-2); }
.season-month { display: grid; grid-template-columns: 3.2rem 1fr; align-items: center; gap: var(--s-2); }
.season-month > .month { font-weight: 500; color: var(--muted); }
.season-month > .dots { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dot { width: var(--dot); height: var(--dot); border-radius: 50%; display: inline-grid; place-items: center; padding: 0;
  font: 700 1.1875rem/1 var(--font-body); font-variant-numeric: tabular-nums; border: 2px solid transparent; text-decoration: none; }
.dot--free { background: var(--orange); color: var(--paper); cursor: pointer; }
a.dot--free:hover, button.dot--free:hover { background: var(--orange-dark); color: var(--paper); }
.dot--taken { background: var(--charcoal); color: var(--paper); }
.dot--none { background: transparent; border-color: var(--rule); color: var(--muted); font-weight: 400; }
.dot[aria-pressed="true"], .dot--selected { background: var(--orange); color: var(--paper); border-color: var(--charcoal);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--charcoal); }
@media (prefers-reduced-motion: no-preference) { .dot--free { transition: transform 120ms ease-out; } .dot--free:active { transform: scale(0.92); } }
.season-legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: var(--step--1); color: var(--muted); margin-top: var(--s-3); }
.season-legend .key { display: inline-flex; align-items: center; gap: 0.45em; }
.season-legend .swatch { width: 0.9rem; height: 0.9rem; border-radius: 50%; display: inline-block; }
.swatch--free { background: var(--orange); } .swatch--taken { background: var(--charcoal); } .swatch--none { border: 2px solid var(--rule); }

/* tables (admin lists, music list) */
.table-scroll { overflow-x: auto; }
/* a data table keeps a readable width and scrolls inside its box on a narrow screen */
.table-scroll > table:not(.stack-table):not(.ml-table) { min-width: 34rem; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 0.55em 0.7em; vertical-align: top; border-bottom: 1px solid var(--rule); }
th { font-weight: 500; font-size: var(--step--1); color: var(--muted); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* definition rows: label left, value right */
.facts { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: 0.4rem var(--s-4); margin: 0 0 var(--s-4); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 34rem) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 0.5rem; } }

/* print: music list and booking sheets */
@media print {
  .site-header, .site-footer, .no-print, .btn { display: none !important; }
  body { font-size: 11pt; }
  h1, h2 { color: #000; }
  a { color: inherit; text-decoration: none; }
}
