/* Anmeldeformular BrickWerk Basel - gleiche Farben und Schriften wie die Tafeln.
   Zuerst fuer das Handy gebaut, weil die Fotos von dort kommen. */

:root {
  --gelb: #D1BD1E;
  --gelb-hell: #FBF6DC;
  --schwarz: #121212;
  --grau: #5A5A55;
  --grau-hell: #F1F1EE;
  --linie: #D8D8D2;
  --rot: #B3261E;
  --gruen: #2E6B3E;

  --schrift-titel: "Bahnschrift", "Segoe UI Semibold", "Segoe UI", system-ui, sans-serif;
  --schrift-text: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Muss sein: eine Regel wie ".gewaehlt { display: flex }" wuerde das
   hidden-Attribut sonst aushebeln und das Element trotzdem anzeigen. */
[hidden] { display: none !important; }

body {
  font-family: var(--schrift-text);
  color: var(--schwarz);
  background: #fff;
  line-height: 1.5;
  font-size: 16px;
}

main { max-width: 620px; margin: 0 auto; padding: 0 18px 60px; }

/* Die Verwaltung zeigt eine Tabelle und darf breiter sein */
body.breit main, body.breit > .kopf { max-width: 1100px; }

/* -------------------------------------------------------------------- Kopf */

/* Nur der Seitenkopf, nicht der gleichnamige Balken auf einer Tafel.
   Die Tafeln in tafel.css benutzen dieselben Klassennamen wie beim Druck -
   ohne "body >" würde ihnen hier margin und max-width in die Quere kommen. */
body > .kopf {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 4px solid var(--gelb);
  max-width: 620px;
  margin: 0 auto;
}

body > .kopf .logo { height: 40px; width: auto; }

body > .kopf h1 {
  font-family: var(--schrift-titel);
  font-size: 22px;
  line-height: 1.1;
  font-weight: 700;
}

.anlass {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grau);
}

/* Code-Abfrage vor den beiden Seiten */

.schloss {
  max-width: 420px;
  margin: 40px auto;
  padding: 28px;
  border-left: 4px solid var(--gelb);
  background: var(--grau-hell);
  border-radius: 6px;
}

.schloss h2 {
  font-family: var(--schrift-titel);
  font-size: 19px;
  margin-bottom: 8px;
}

.schloss p { color: var(--grau); font-size: 15px; }
.schloss .absenden { margin-top: 18px; }

/* Wegweiser zwischen den beiden Unterseiten */

.wegweiser {
  display: flex;
  gap: 4px;
  max-width: 620px;
  margin: 0 auto;
  padding: 12px 18px 0;
}

body.breit > .wegweiser { max-width: 1100px; }

.wegweiser a {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--grau);
  text-decoration: none;
}

.wegweiser a:hover { background: var(--grau-hell); color: var(--schwarz); }

.wegweiser a[aria-current="page"] {
  background: var(--gelb);
  color: var(--schwarz);
}

.einleitung {
  margin: 20px 0 4px;
  color: var(--grau);
}

/* ------------------------------------------------------------------ Bloecke */

.block {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--linie);
}

.block h2 {
  font-family: var(--schrift-titel);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.schritt {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gelb);
  color: var(--schwarz);
  font-size: 14px;
  display: grid;
  place-items: center;
}

.hilfe { font-size: 14px; color: var(--grau); margin: 4px 0 10px; }
.hilfe.mitte { text-align: center; margin-top: 14px; }
.klein { font-size: 14px; color: var(--grau); }
.pflicht { color: var(--rot); }

/* ----------------------------------------------------------------- Formular */

label {
  display: block;
  margin: 14px 0 5px;
  font-size: 14px;
  font-weight: 600;
}

input[type=text], input[type=search], input[type=number],
input[type=password], select, textarea {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  font-size: 16px;              /* verhindert das Hineinzoomen auf dem iPhone */
  color: var(--schwarz);
  background: #fff;
  border: 1.5px solid var(--linie);
  border-radius: 6px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gelb);
  box-shadow: 0 0 0 3px var(--gelb-hell);
}

input[type=file] {
  width: 100%;
  padding: 12px;
  border: 1.5px dashed var(--linie);
  border-radius: 6px;
  background: var(--grau-hell);
  font-size: 14px;
}

textarea { resize: vertical; }

.paar { display: flex; gap: 12px; }
.paar > div { flex: 1 1 0; min-width: 0; }

.schalter {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-weight: 400;
  font-size: 15px;
  cursor: pointer;
}

.schalter input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--gelb);
}

/* --------------------------------------------------------------- Set-Suche */

.treffer {
  list-style: none;
  margin-top: 8px;
  border: 1.5px solid var(--linie);
  border-radius: 6px;
  max-height: 300px;
  overflow-y: auto;
}

.treffer li + li { border-top: 1px solid var(--linie); }

.treffer button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
}

.treffer button:hover, .treffer button:focus {
  background: var(--gelb-hell);
  outline: none;
}

.treffer .nummer {
  font-family: var(--schrift-titel);
  font-weight: 700;
  margin-right: 8px;
}

.gewaehlt {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  background: var(--grau-hell);
  border-left: 4px solid var(--gelb);
  border-radius: 4px;
}

.gewaehlt img {
  width: 96px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  border-radius: 3px;
  flex: 0 0 auto;
}

.verweis {
  border: none;
  background: none;
  padding: 0;
  margin-top: 4px;
  font: inherit;
  font-size: 14px;
  color: var(--grau);
  text-decoration: underline;
  cursor: pointer;
}

.foto-vorschau { margin-top: 12px; }

.foto-vorschau img {
  max-width: 100%;
  max-height: 220px;
  border-radius: 6px;
  display: block;
}

/* ------------------------------------------------------------ Absenden usw. */

.absenden {
  display: block;
  width: 100%;
  margin-top: 30px;
  padding: 15px;
  font-family: var(--schrift-titel);
  font-size: 17px;
  font-weight: 700;
  color: var(--schwarz);
  background: var(--gelb);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.absenden:hover { background: #C0AC10; }
.absenden:disabled { opacity: .55; cursor: default; }

.fehler {
  margin-top: 20px;
  padding: 12px 14px;
  border-left: 4px solid var(--rot);
  background: #FDF1F0;
  color: var(--rot);
  border-radius: 4px;
  font-size: 15px;
}

.danke {
  margin-top: 40px;
  padding: 24px;
  border-left: 4px solid var(--gruen);
  background: #F2F7F3;
  border-radius: 4px;
}

.danke h2 {
  font-family: var(--schrift-titel);
  font-size: 20px;
  margin-bottom: 8px;
}

/* Wie beim Kopf: nur die Fusszeile der Seite, nicht die Fusszeile einer Tafel */
body > .fuss {
  max-width: 620px;
  margin: 0 auto;
  padding: 20px 18px 40px;
  border-top: 1px solid var(--linie);
  font-size: 13px;
  color: var(--grau);
}

/* --------------------------------------------------------------- Verwaltung */

.werkzeugleiste {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 20px;
}

.werkzeugleiste > * { margin: 0; }
.werkzeugleiste input { flex: 1 1 200px; }

.knopf {
  padding: 11px 16px;
  font: inherit;
  font-weight: 600;
  border: 1.5px solid var(--schwarz);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.knopf.wichtig { background: var(--gelb); border-color: var(--gelb); }
.knopf:disabled { opacity: .5; cursor: default; }

table { border-collapse: collapse; width: 100%; margin-top: 24px; font-size: 14px; }

th {
  text-align: left;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grau);
  border-bottom: 1px solid var(--linie);
  padding: 8px 6px;
}

td { padding: 8px 6px; border-bottom: 1px solid var(--grau-hell); vertical-align: top; }
td img { width: 80px; height: 60px; object-fit: contain; background: var(--grau-hell); }

.umbruch { overflow-x: auto; }
