/* ==========================================================================
   Das neue /missions-Layout (1411d, Vorlage missionslayout.pdf):
   Hintergrundbild am Schreibtisch, Hero-Banner am Telefon, EINE helle
   Karte mit tuerkisem Rand (seit 1511f Hausfarben statt Creme und Gold),
   Titel je Mission (seit 1511a Jakarta), Mechanics-Kasten,
   Musik-Schalter im Kopf. Gilt nur unter body.m-neu (vw_merits._neu);
   liegt data/missions-layout-alt, laedt keine Seite diese Datei und es
   gilt das vorherige Layout. Die Farben haengen NICHT am Thema: die
   Karte bleibt hell wie die Vorlage, dafuer werden die Variablen auf
   main lokal umgefaerbt und alles Bestehende (Tabellen, Kacheln,
   Hinweise) faerbt sich von selbst. Bilder und Lied liegen daneben
   (hintergrund.jpg, hero.jpg, musik.mp3).
   ========================================================================== */

body.m-neu {
  background: #112349 url(hintergrund.jpg?v=1511f) center / cover no-repeat fixed;
}
/* 1511a: das Nordlicht und das Korn aus sea.css aus. Sie lagen UEBER dem
   Hintergrundbild; bis es geladen war, schimmerte es gruen. */
body.m-neu::before, body.m-neu::after { display: none; }

/* Der oeffentliche Kopf (merits_kopf.kopfzeile): Navy wie die Vorlage.
   Der Apex-Kopf (rahmen.html) bleibt unangetastet. */
body.m-neu > header.m-kopf-neu {
  background: #112349;
  border-bottom: 1px solid #1d3566;
  color: #fff;
}
body.m-neu > header.m-kopf-neu .marke { color: #fff; }
body.m-neu > header.m-kopf-neu .thema { color: #e8ecf8; }

/* Der Hero-Banner: nur am Telefon, dort ersetzt er das Hintergrundbild. */
.m-neu .m-hero { display: none; }

/* Die Karte: hell, tuerkiser Rand, mittig. Die Variablen gelten fuer
   alles darin; das schlaegt hell wie dunkel. */
.m-neu main {
  /* 1511f: Hausfarben wie sea.css: Weiss, helles Blau, Navy-Schrift,
     Tuerkis als Akzent (vorher Creme und Gold aus 1511a). */
  --flaeche: #ffffff;
  --flaeche-2: #eef3fa;
  --schrift: #16202f;
  --schrift-leise: #5d6a7d;
  --linie: #dbe5f2;
  --akzent: #1b8074;
  background: #f4f8fd;
  font-family: "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  line-height: 1.65;
  color: var(--schrift);
  border: 1px solid #22a094;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(17, 35, 73, .38);
  max-width: 660px;
  width: calc(100% - 32px);
  margin: 34px auto 60px;
  padding: 24px 26px 32px;
}
.m-neu main h1 { font-size: 30px; }

/* Reiterzeile (die Musik sitzt seit 1511a oben im Kopf). */
.m-neu .m-kopfzeile { display: flex; align-items: baseline;
                      justify-content: space-between; gap: 12px; }
.m-neu .m-reiter a { font-size: 15px; font-weight: 600; }
.m-neu .m-reiter a[aria-current="page"] { border-bottom-width: 3px; }

/* --------------------------------------------------------------------------
   Musik: Lautsprecher (laut/leise), Wort, Schalter. Im Navy-Kopf weiss,
   im Apex-Kopf in dessen Schriftfarbe.
   -------------------------------------------------------------------------- */
.musik { display: inline-flex; align-items: center; gap: 8px; }
.musik .musik-wort { font-size: 13px; font-weight: 600; }
.musik button { background: none; border: 0; padding: 0; cursor: pointer;
                color: inherit; display: inline-flex; align-items: center; }
.musik #musik-laut.leise .welle-2 { opacity: .25; }
.musik .musik-schalter { width: 40px; height: 22px; border-radius: 11px;
                border: 1px solid rgba(127, 127, 127, .45);
                background: #9aa0b4; position: relative;
                transition: background .15s; }
.musik .musik-schalter .knubbel { position: absolute; top: 2px; left: 2px;
                width: 16px; height: 16px; border-radius: 50%;
                background: #fff; transition: left .15s;
                box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.musik.an .musik-schalter { background: #1b8074; }
.musik.an .musik-schalter .knubbel { left: 20px; }
header.m-kopf-neu .musik { color: #fff; }
header.m-kopf-neu .musik .musik-schalter { background: #2a3d66; }
header.m-kopf-neu .musik.an .musik-schalter { background: #22a094; }

/* --------------------------------------------------------------------------
   Kacheln und Missionskarte
   -------------------------------------------------------------------------- */
.m-neu .me-stat { background: var(--flaeche); border-radius: 12px; }
.m-neu .me-stat { border-color: var(--linie); }
.m-neu table th, .m-neu table thead td { background: #eef3fa; }
.m-neu .me-karte { background: var(--flaeche); border: 1px solid var(--linie);
                   border-radius: 14px; padding: 18px; }
.m-neu .me-kopf { display: flex; align-items: flex-start; gap: 12px;
                  justify-content: space-between; }
/* 1511a: Titel in Plus Jakarta Sans wie der Rest (statt der Serife). */
.m-neu .me-grosstitel { font-family: "Plus Jakarta Sans", -apple-system,
                  "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
                  font-size: 30px; font-weight: 800; line-height: 1.3;
                  margin: 0 0 8px; letter-spacing: -.01em; }
.m-neu .me-marke { flex: none; text-align: center; padding: 6px 12px;
                  background: #e3f4f1; border: 1px solid #22a094;
                  border-radius: 10px; color: #112349;
                  box-shadow: 0 2px 0 #22a094; }
.m-neu .me-marke b { display: block; font-size: 15px; }
.m-neu .me-marke small { display: block; font-size: 10px; }
.m-neu .me-untertitel { margin: 2px 0 12px; font-size: 15px; line-height: 1.6;
                  color: var(--schrift-leise);
                  border-bottom: 1px solid var(--linie);
                  padding-bottom: 12px; }
.m-neu .me-zwischen { margin: 14px 0 6px; font-size: 17px; line-height: 1.4; }
.m-neu .me-karte p.text { font-size: 14px; line-height: 1.7; }
.m-neu .me-kasten { margin: 12px 0; padding: 10px 14px;
                  background: #eef3fa; border: 1px solid var(--linie);
                  border-radius: 10px; font-size: 14px; line-height: 1.6; }
.m-neu .me-kasten ol { list-style: none; margin: 8px 0 2px; padding: 0;
                  counter-reset: mech; }
.m-neu .me-kasten li { display: flex; gap: 8px; align-items: baseline;
                  counter-increment: mech; margin: 7px 0; }
.m-neu .me-kasten li::before { content: counter(mech) "."; flex: none;
                  min-width: 20px; height: 20px; border-radius: 5px;
                  background: #dcefe9; color: #15655c;
                  font-size: 11px; font-weight: 700; text-align: center;
                  line-height: 20px; }
.m-neu .me-zeitraum { margin-top: 12px; padding-top: 10px;
                  border-top: 1px solid var(--linie); font-size: 13px; }
.m-neu .me-zeitraum b { margin-right: 6px; }

/* Seit 1511f von oben: Manual (voll, Teal), Signature List (voll, Navy),
   Upload (Umriss, Teal); untereinander, volle Breite, mit Zeichen. Die Zeichen kommen als Hintergrundbild, das
   Template bleibt unangetastet. */
.m-neu a.knopf.me-manual { display: flex; align-items: center;
                  justify-content: center; gap: 10px; width: 100%;
                  box-sizing: border-box; margin-top: 14px;
                  padding: 11px 16px; font-weight: 650; font-size: 15px;
                  color: #fff; background: #1b8074;
                  border: 1px solid #15655c; border-radius: 10px; }
.m-neu a.knopf.me-manual:hover { filter: brightness(1.08); }
.m-neu a.knopf.me-signlist { display: flex; align-items: center;
                  justify-content: center; gap: 10px; width: 100%;
                  box-sizing: border-box; margin-top: 10px; margin-right: 0;
                  padding: 11px 16px; font-weight: 650; font-size: 15px;
                  color: #fff; background: #112349;
                  border: 1px solid #0b1833; border-radius: 10px; }
.m-neu a.knopf.me-signlist:hover { filter: brightness(1.15); }
.m-neu a.knopf.me-signlist::before { content: ""; width: 18px; height: 18px;
                  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 2h8l5 5v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1z'/><path d='M14 2v5h5'/><path d='M9 13h7M9 17h7'/></svg>") center / contain no-repeat; }
.m-neu a.knopf.me-manual::before { content: ""; width: 18px; height: 18px;
                  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v12m0 0 4-4m-4 4-4-4'/><path d='M4 21h16'/></svg>") center / contain no-repeat; }
.m-neu .me-upload { margin-top: 10px; }
/* 1511f: der Hinweis unter dem Upload kompakt, eine Zeile wo es geht. */
.m-neu .me-ausrichtung { margin: 4px 0 0; font-size: 12px; line-height: 1.4;
                  color: var(--schrift-leise); text-align: center; }
.m-neu .me-upload form { width: 100%; }
.m-neu .me-upload label.knopf.betont,
.m-neu .me-upload span.knopf.betont { display: flex; align-items: center;
                  justify-content: center; gap: 10px; width: 100%;
                  box-sizing: border-box; padding: 10px 16px;
                  font-size: 15px; color: #15655c;
                  background: var(--flaeche);
                  border: 1.5px solid #1b8074; border-radius: 10px;
                  box-shadow: none; }
.m-neu .me-upload label.knopf.betont:hover { background: #e3f4f1;
                  transform: none; box-shadow: none; filter: none; }
.m-neu .me-upload label.knopf.betont::before,
.m-neu .me-upload span.knopf.betont::before { content: ""; width: 18px;
                  height: 18px;
                  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b8074' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21V9m0 0 4 4m-4-4-4 4'/><path d='M4 3h16'/></svg>") center / contain no-repeat; }

/* Vorlagen-Kachel und Blattzeilen auf Kartenfarbe. */
.m-neu .me-vorlage { background: var(--flaeche-2); }
.m-neu .me-blatt { background: var(--flaeche); }

/* Popup in Kartenfarben. */
.m-neu .me-popup { background: #f4f8fd; color: #16202f;
                   border: 1px solid #22a094; }

/* --------------------------------------------------------------------------
   Telefon: Hero statt Hintergrundbild, Karte ohne Seitenraender.
   -------------------------------------------------------------------------- */
@media (max-width: 720px) {
  body.m-neu { background: #f4f8fd; }
  .m-neu .m-hero { display: block; width: 100%; height: auto; }
  .m-neu main { width: 100%; max-width: none; margin: -12px 0 0;
                border-radius: 18px 18px 0 0; border-left: 0;
                border-right: 0; box-shadow: none;
                padding: 20px 16px 30px; position: relative; }
  .m-neu .me-grosstitel { font-size: 25px; }
  header.m-kopf-neu .musik .musik-wort { font-size: 12px; }
}
