/* VIP & Lounge D16, after the documenta sixteen styleguide V01.02:
   neutral tones for UI, no pure black or white, one accent (yellow, as in
   the favicon), 12-column grid, spacing from the line height, left-aligned,
   no hyphenation. Degree for the wordmark and titles, Code 2000 for leads,
   TeX Gyre for everything small or long. */

@font-face {
  font-family: "Degree";
  src: url("../fonts/degreetwothousandtwentysix-moveandturn.5eaae11dd04f.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Code 2000";
  src: url("../fonts/code2000.b1a6a5dd64e9.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "TeX Gyre Heros";
  src: url("../fonts/texgyreheros-regular.33eae68d3ee1.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "TeX Gyre Heros";
  src: url("../fonts/texgyreheros-bold.e8af012e8544.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --grund: #eaeaea;        /* Neutral light */
  --text: #141414;         /* Neutral black */
  --text-2: #373737;       /* Neutral dark */
  --linie: #9b9b9b;        /* Neutral accent */
  --akzent: #f4d700;       /* Yellow accent */
  --akzent-text: #1e001e;  /* Pink black, as in the favicon */
  --hell: #e6e6c3;         /* Yellow light */
  --fehler: #9b1900;       /* Red, deep accent; only for error text */

  --schrift: 16px;
  --zeile: 24px;
  --rand: calc(var(--zeile) * 2);

  --degree: "Degree", "TeX Gyre Heros", Helvetica, Arial, sans-serif;
  --code: "Code 2000", Georgia, serif;
  --gyre: "TeX Gyre Heros", Helvetica, Arial, sans-serif;
}

@media (max-width: 760px) {
  :root { --rand: var(--zeile); }
}

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

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

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font: var(--schrift)/var(--zeile) var(--gyre);
  hyphens: none;
  overflow-wrap: break-word;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* 12 columns without gutters, margin = 2 line heights (1 on phones) */
.raster {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding: 0 var(--rand);
}

/* Header: wordmark top left, aligned with the text edge */
.kopf {
  padding-top: var(--rand);
  padding-bottom: calc(var(--zeile) * 2);
  row-gap: var(--zeile);
  align-items: baseline;
}
.wortmarke {
  grid-column: 1 / span 4;
  font-family: var(--degree);
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0;
}
.app {
  grid-column: 5 / span 3;
  font-family: var(--code);
}
.menue {
  grid-column: 8 / span 5;
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--zeile);
  justify-content: flex-start;
  font-size: 14px;
  letter-spacing: 0.015em;
}
.menue .wer { color: var(--text-2); }

@media (max-width: 760px) {
  .wortmarke, .app, .menue { grid-column: 1 / -1; }
  .kopf { row-gap: 0; padding-bottom: var(--zeile); }
  .menue { margin-top: calc(var(--zeile) / 2); }
}

/* Content: titles in column 1, everything else one column in (indent system) */
.inhalt { padding-bottom: var(--rand); align-content: start; }
.inhalt > * { grid-column: 2 / span 7; margin: 0 0 var(--zeile); }
.inhalt > h1 { grid-column: 1 / -1; }

@media (max-width: 760px) {
  .inhalt > * { grid-column: 1 / -1; }
}

h1, h2, h3 {
  font-family: var(--degree);
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0;
}
h1 { font-size: 24px; line-height: 30px; margin: 0 0 var(--zeile); }
h2 { font-size: var(--schrift); line-height: var(--zeile); margin: var(--zeile) 0 0; }
h3 { font-size: var(--schrift); line-height: var(--zeile); margin: 0; }

.lead, .inhalt > p:first-of-type { font-family: var(--code); }

section { margin-bottom: var(--zeile); }
section > ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: calc(var(--zeile) / 2); }

/* Messages */
.meldungen { list-style: none; padding: 0; }
.meldungen li {
  padding: calc(var(--zeile) / 2) var(--zeile);
  background: var(--hell);
  margin-bottom: calc(var(--zeile) / 2);
}
.meldungen li.error { color: var(--fehler); }

/* Forms */
form p { margin: 0 0 var(--zeile); }
label { display: block; font-size: 14px; letter-spacing: 0.015em; color: var(--text-2); }
input[type="checkbox"] + label, input[type="radio"] + label { display: inline; color: var(--text); }
input:not([type="checkbox"]):not([type="radio"]), textarea, select {
  display: block;
  width: 100%;
  max-width: 28rem;
  font: inherit;
  color: var(--text);
  background: var(--grund);
  border: 1px solid var(--text-2);
  border-radius: 0;
  padding: 11px 12px;
}
input:disabled { color: var(--text-2); border-color: var(--linie); }
form p > span { display: block; font-size: 14px; color: var(--text-2); margin-top: 4px; }
.errorlist { list-style: none; padding: 0; margin: 0 0 4px; color: var(--fehler); font-size: 14px; }

button, a[href][type], .knopf {
  display: inline-block;
  font: inherit;
  font-family: var(--gyre);
  color: var(--akzent-text);
  background: var(--akzent);
  border: 1px solid var(--akzent-text);
  border-radius: 0;
  padding: 11px 20px;
  cursor: pointer;
  text-decoration: none;
  margin: 0 calc(var(--zeile) / 2) calc(var(--zeile) / 2) 0;
}
button:hover { box-shadow: inset 0 0 0 1px var(--akzent-text); }
.inhalt > button, .inhalt > a[href][type] { justify-self: start; }
button[name="action_remove"], button.zweitrangig, #passkey_login {
  background: transparent;
  color: var(--text);
  border-color: var(--text-2);
}

img[src^="data:image/svg"] {
  display: block;
  width: 192px;
  height: 192px;
  background: #eaeaea;
  margin-bottom: var(--zeile);
}

table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 6px 12px 6px 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { font-weight: normal; color: var(--text-2); font-size: 14px; }

code, pre { font-family: var(--gyre); }

/* Booking form */
.buchung-form fieldset { border: 0; border-top: 1px solid var(--linie); margin: 0 0 var(--zeile); padding: var(--zeile) 0 0; }
.buchung-form legend { font-family: var(--degree); text-transform: uppercase; padding: 0 12px 0 0; }
.feld { margin-bottom: var(--zeile); }
.feld-haken { margin-bottom: calc(var(--zeile) / 2); }
.feld-haken label { display: inline; color: var(--text); font-size: var(--schrift); }
.feld .hilfe { display: block; font-size: 14px; color: var(--text-2); margin-top: 4px; }
.feld > div > div { margin: 4px 0; }
.feld > div label { display: inline; color: var(--text); font-size: var(--schrift); }
.paar { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--zeile); max-width: 28rem; }
.paar input { max-width: none; }
@media (max-width: 760px) { .paar { grid-template-columns: 1fr; } }
.formfehler { color: var(--fehler); background: var(--hell); padding: calc(var(--zeile) / 2) var(--zeile); margin-bottom: var(--zeile); }
.formfehler .errorlist { font-size: var(--schrift); }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--akzent-text); vertical-align: -3px; margin-right: 6px; }

/* Booking page */
.angaben { display: grid; grid-template-columns: 10rem 1fr; gap: 6px var(--zeile); margin: 0; }
.angaben dt { color: var(--text-2); font-size: 14px; }
.angaben dd { margin: 0; }
@media (max-width: 760px) { .angaben { grid-template-columns: 1fr; gap: 0; } .angaben dd { margin-bottom: 8px; } }
.marke { display: inline-block; padding: 0 8px; margin-right: 8px; font-family: var(--gyre); font-size: 14px; border: 1px solid var(--akzent-text); }
.marke.status-gebucht { background: var(--akzent); color: var(--akzent-text); }
.marke.status-reserviert { background: var(--hell); border-style: dashed; color: var(--akzent-text); }
.marke.status-abgesagt { background: transparent; border-color: var(--linie); color: var(--text-2); }
.umbruch { white-space: pre-line; }
.klein { font-size: 14px; color: var(--text-2); }
.aktionen { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--zeile); }
.aktionen .knopf { margin: 0; }
.absagen summary { cursor: pointer; padding: 11px 0; text-decoration: underline; text-underline-offset: 3px; }
.absagen p { margin: 0 0 calc(var(--zeile) / 2); }
