/*
 * MTM Kuendigungsliste.
 * Farben und Typografie aus dem MTM-Trainingsplan uebernommen:
 * Schwarz, warmes Weiss, kondensierte Grossbuchstaben, roter Akzent.
 * Bewusst nur dunkel, das ist die Markensprache des Gyms.
 */

:root {
  --schwarz: #0a0a0b;
  --flaeche: #151518;
  --flaeche-hoch: #1d1d21;
  --linie: #2c2c32;
  --weiss: #f2f0ec;
  --grau: #90909a;
  --rot: #e01b24;
  --rot-dunkel: #7a0f14;
  --gelb: #e8a723;
  --blau: #7fa8d0;

  --schmal: "Arial Narrow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--schwarz);
  color: var(--weiss);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
}

.rahmen {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

.rahmen-breit { max-width: 72rem; }

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

.kopf {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--weiss);
}

.marke {
  font-family: var(--schmal);
  font-stretch: condensed;
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.marke-unter {
  font-family: var(--schmal);
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  color: var(--rot);
}

/* --- Text -------------------------------------------------------------- */

h1 {
  font-family: var(--schmal);
  font-stretch: condensed;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 11vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}

h2 {
  font-family: var(--schmal);
  font-stretch: condensed;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.35rem;
  line-height: 1.15;
  margin: 2.5rem 0 0.75rem;
}

p { margin: 0 0 1rem; }

.fuehrung {
  font-size: 1.1rem;
  color: #dcdad6;
  margin-bottom: 1.75rem;
}

.hinweis {
  font-size: 0.92rem;
  color: var(--grau);
  line-height: 1.5;
  margin: 0.3rem 0 0.6rem;
}

.hinweis.mitte { text-align: center; }

.optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--grau);
  font-size: 0.85rem;
}

a { color: var(--weiss); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--rot); }

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.95em;
  background: var(--flaeche-hoch);
  padding: 0.1em 0.35em;
  border-radius: 2px;
  word-break: break-all;
}

/* --- Kaesten ----------------------------------------------------------- */

.kasten {
  background: var(--flaeche);
  border-left: 4px solid var(--weiss);
  padding: 1.1rem 1.2rem;
  margin: 0 0 1.75rem;
}

.kasten p:last-child { margin-bottom: 0; }
.kasten ul { margin: 0.25rem 0 0; padding-left: 1.2rem; }

.kasten-stop {
  border-left-color: var(--rot);
  background: linear-gradient(90deg, rgba(224, 27, 36, 0.14), var(--flaeche) 60%);
}

.kasten-warnung { border-left-color: var(--gelb); }

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

.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.formular { margin-top: 0.5rem; }

.feld { margin-bottom: 1.6rem; }

.feld label {
  display: block;
  font-family: var(--schmal);
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

input[type="text"], input[type="tel"], select, textarea {
  width: 100%;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  color: var(--weiss);
  font-family: var(--text);
  font-size: 1.05rem;
  padding: 0.85rem 0.9rem;
  border-radius: 2px;
  appearance: none;
}

textarea { resize: vertical; line-height: 1.5; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--rot);
  box-shadow: 0 0 0 2px rgba(224, 27, 36, 0.25);
}

select {
  background-image: linear-gradient(45deg, transparent 50%, var(--grau) 50%),
                    linear-gradient(135deg, var(--grau) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) 52%, calc(100% - 0.75rem) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

.feld-paar { display: flex; gap: 0.75rem; }
.feld-paar select { flex: 1; }

button, .knopf-gross {
  display: inline-block;
  background: var(--rot);
  color: #fff;
  border: none;
  font-family: var(--schmal);
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 1rem 1.75rem;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

button:hover, .knopf-gross:hover { background: #f2262f; color: #fff; }

.formular > button { width: 100%; margin-top: 0.5rem; }

.knopf-gross { display: block; width: 100%; }

/* --- Schritte ---------------------------------------------------------- */

.schritte { list-style: none; margin: 2rem 0; padding: 0; }

.schritte li {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--linie);
}

.schritte li:last-child { border-bottom: 1px solid var(--linie); }

.schritt-nr {
  flex: 0 0 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  font-family: var(--schmal);
  font-stretch: condensed;
  font-weight: 700;
  font-size: 1.2rem;
  border: 2px solid var(--linie);
  color: var(--grau);
}

.schritte li.erledigt .schritt-nr {
  border-color: var(--blau);
  color: var(--blau);
}

.schritte h2 { margin: 0 0 0.2rem; font-size: 1.05rem; letter-spacing: 0.08em; }
.schritte p { margin: 0; font-size: 0.97rem; color: #c9c7c3; }
.schritte li.erledigt h2, .schritte li.erledigt p { color: var(--grau); }

/* --- Freigabe-Aufklapper ----------------------------------------------- */

.freigabe {
  border: 2px solid var(--linie);
  border-radius: 2px;
  margin: 2rem 0;
}

.freigabe summary {
  cursor: pointer;
  padding: 1.1rem 1.2rem;
  font-family: var(--schmal);
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 1.05rem;
}

.freigabe summary:hover { color: var(--rot); }
.freigabe[open] summary { border-bottom: 1px solid var(--linie); }
.freigabe .mailblock { padding: 0 1.2rem 1.5rem; }

/* --- Mailblock --------------------------------------------------------- */

.mailblock h2 { margin-top: 1.5rem; }

.anleitung {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--linie);
}

.anleitung:last-of-type { border-bottom: 1px solid var(--linie); }

.anleitung > div { min-width: 0; flex: 1; }

.anleitung-nr {
  flex: 0 0 1.9rem;
  margin: 0;
  font-family: var(--schmal);
  font-stretch: condensed;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--rot);
  line-height: 1.2;
}

.anleitung-titel {
  font-family: var(--schmal);
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  font-size: 1.02rem;
  margin: 0 0 0.4rem;
}

.anleitung-wert { margin: 0 0 0.3rem; font-size: 1.05rem; }

.kopierbar {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-left: 3px solid var(--rot);
  padding: 0.9rem 1rem;
  margin: 0 0 0.6rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  color: #e6e4e0;
  user-select: all;
}

button.kopieren {
  background: transparent;
  border: 2px solid var(--linie);
  color: var(--weiss);
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
  letter-spacing: 0.09em;
}

button.kopieren:hover { background: var(--flaeche-hoch); border-color: var(--weiss); color: var(--weiss); }
button.kopieren.kopiert { border-color: var(--blau); color: var(--blau); }

.oder {
  text-align: center;
  margin: 1.75rem 0 0.75rem;
  font-family: var(--schmal);
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  color: var(--grau);
}

/* --- Tabelle (Auswertung) ---------------------------------------------- */

.tabelle-rahmen { overflow-x: auto; margin-bottom: 1.5rem; }

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }

th, td {
  text-align: left;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--linie);
  vertical-align: top;
}

th {
  font-family: var(--schmal);
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.82rem;
  color: var(--grau);
  border-bottom: 2px solid var(--weiss);
  white-space: nowrap;
}

tr.drin td { background: rgba(224, 27, 36, 0.07); }
tr.draussen td { color: var(--grau); }

tr.trenner td {
  background: var(--flaeche);
  font-family: var(--schmal);
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--grau);
  border-top: 2px solid var(--linie);
}

.marker {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--gelb);
  border: 1px solid var(--gelb);
  padding: 0.05rem 0.35rem;
  white-space: nowrap;
}

/* --- Fuss -------------------------------------------------------------- */

.zurueck { margin-top: 2.5rem; font-size: 0.95rem; }

.fuss {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--linie);
  font-size: 0.85rem;
  color: var(--grau);
  line-height: 1.55;
}

.fuss p { margin-bottom: 0.6rem; }

/* Konditionen-Kasten: nur sichtbar, wenn Merlin die Zusagen freigegeben hat. */
.kasten-zusage {
  border-left-color: var(--gelb);
  background: linear-gradient(90deg, rgba(232, 167, 35, 0.10), var(--flaeche) 60%);
}
