/* Gemeinsam für alle Seiten: Spieler-Abzeichen und Urkunde */
#nimoBadge { position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%); white-space: nowrap; z-index: 30; background: rgba(255,255,255,.95); color: #24324a; border-radius: 30px;
  padding: 6px 12px; font: 700 13px -apple-system, "Helvetica Neue", Arial, sans-serif; box-shadow: 0 3px 10px rgba(0,0,0,.18); text-decoration: none; }
#nimoBadge:hover { background: #fff; }
#urkunde { position: fixed; inset: 0; z-index: 50; background: rgba(20,30,60,.6); display: none; place-items: center; padding: 16px; overflow-y: auto; }
#urkunde.show { display: grid; }
#urkunde .paper { background: #fffaf0; max-width: 720px; width: 100%; border-radius: 12px; padding: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.4);
  font-family: Georgia, "Times New Roman", serif; color: #3b2a12; text-align: center; animation: urkPop .5s ease-out; }
@keyframes urkPop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
#urkunde .frame { border: 6px double #c8a04a; border-radius: 8px; padding: 26px 22px; }
#urkunde .kopf { font-size: 15px; letter-spacing: 4px; text-transform: uppercase; color: #9a7420; }
#urkunde h2 { font-size: 40px; margin: 6px 0 4px; color: #7a4f00; }
#urkunde .name { font-size: 34px; font-weight: bold; margin: 14px 0 6px; color: #1d4f8c; border-bottom: 2px solid #c8a04a; display: inline-block; padding: 0 20px 4px; }
#urkunde .text { font-size: 20px; margin: 10px 0; line-height: 1.5; }
#urkunde .siegel { font-size: 64px; margin: 6px 0; }
#urkunde .fuss { display: flex; justify-content: space-between; margin-top: 18px; font-size: 15px; color: #6b5530; gap: 10px; flex-wrap: wrap; }
#urkunde .knoepfe { margin-top: 16px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; font-family: -apple-system, Arial, sans-serif; }
#urkunde .knoepfe button, #urkunde .knoepfe a { border: 0; border-radius: 14px; padding: 12px 18px; font: 800 16px -apple-system, Arial, sans-serif; cursor: pointer;
  color: #fff; background: #2bb673; text-decoration: none; box-shadow: 0 4px 0 #1d8a54; }
#urkunde .knoepfe .blau { background: #3f8cf0; box-shadow: 0 4px 0 #2a64b0; }
#urkunde .knoepfe .grau { background: #8796ad; box-shadow: 0 4px 0 #66748a; }
@media print {
  body > *:not(#urkunde) { display: none !important; }
  body { background: #fff !important; animation: none !important; }
  #urkunde { position: static; display: block !important; background: none; padding: 0; }
  #urkunde .paper { box-shadow: none; animation: none; }
  #urkunde .knoepfe { display: none; }
}

/* ---- Sprach-Schalter (DE/EN) ---- */
#langSw { margin-left: auto; display: flex; gap: 6px; flex: none; align-self: center; align-items: center; }
[dir="rtl"] #langSw { margin-left: 0; margin-right: auto; }
#langSw .globus { font-size: 22px; line-height: 1; }
#langSw select { min-height: 44px; max-width: 170px; border: 2px solid #d5deea; background: #fff; border-radius: 12px; padding: 0 8px; font: 800 14px -apple-system, "Helvetica Neue", Arial, sans-serif; color: #243b5a; cursor: pointer; }
#langSw select:hover, #langSw select:focus { border-color: #3f8cf0; outline: none; }
#langSw.frei { position: relative; z-index: 40; justify-content: flex-end; padding: 8px 10px 0; margin: 0; }
header .mitSprache { flex-wrap: wrap; row-gap: 8px; }
header .mitSprache .brand { min-width: 0; flex: 1 1 auto; }
.nurde { display: inline-block; margin: 4px 0 0 6px; font: 800 11.5px -apple-system, Arial, sans-serif; background: #fff3c4; color: #7a5a00; border-radius: 8px; padding: 2px 7px; vertical-align: middle; }
#nurDeutsch { background: #fff3c4; color: #5a4300; text-align: center; font: 700 14px -apple-system, Arial, sans-serif; padding: 8px 12px; }

/* ---- Handy & Tablet ---- */
html { -webkit-text-size-adjust: 100%; }
img, svg, video, canvas { max-width: 100%; height: auto; }
@media (max-width: 560px) {
  header .top { gap: 10px; flex-wrap: wrap; }
  header .logo { width: 48px; height: 48px; font-size: 28px; border-radius: 14px; }
  header .brand h1 { font-size: 22px; }
}
/* Finger statt Maus: alle Knöpfe mindestens 44 x 44 Pixel */
@media (pointer: coarse) {
  button, [role="button"], input[type="button"], input[type="submit"], select, nav a, a.btn, a.big-btn, a.codelink, #nimoBadge, #urkunde .knoepfe a, #urkunde .knoepfe button { min-height: 44px; min-width: 44px; touch-action: manipulation; }
  input[type="text"], input[type="number"], input:not([type]) { min-height: 44px; font-size: 16px; }
  nav a, #nimoBadge, a.codelink { display: inline-flex; align-items: center; justify-content: center; }
}

/* ---- Robo-Helfer 🤖 (nur auf Handy & Tablet) ---- */
#roboBtn { position: fixed; right: 12px; bottom: 60px; z-index: 45; width: 58px; height: 58px; border-radius: 50%; border: 3px solid #fff; background: linear-gradient(135deg, #7ad3ff, #3f8cf0); font-size: 30px; box-shadow: 0 4px 14px rgba(0,0,0,.3); cursor: pointer; touch-action: manipulation; }
#roboPanel { position: fixed; right: 12px; bottom: 126px; z-index: 46; width: min(340px, calc(100vw - 24px)); background: #fff; border: 3px solid #3f8cf0; border-radius: 18px; padding: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.3); font: 600 15px -apple-system, "Helvetica Neue", Arial, sans-serif; color: #24324a; }
#roboPanel p { margin: 6px 0 8px; font-size: 14px; }
.robobox { margin: 8px 0; background: #eef6ff; border: 2px dashed #3f8cf0; border-radius: 14px; padding: 8px; font: 600 14px -apple-system, "Helvetica Neue", Arial, sans-serif; color: #24324a; }
.robokopf { font-weight: 900; color: #1d4f8c; margin-bottom: 6px; }
.robozeile { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.robochip { min-height: 44px; min-width: 44px; border: 2px solid #9cc4f5; background: #fff; color: #1d4f8c; border-radius: 12px; padding: 6px 12px; font: 800 15px -apple-system, "Helvetica Neue", Arial, sans-serif; cursor: pointer; touch-action: manipulation; }
.robochip:active { transform: scale(.96); background: #dcecff; }
.robochip.gross { background: #3f8cf0; color: #fff; border-color: #3f8cf0; }
.robochip.zahl { background: #fff6d6; border-color: #f0c000; color: #6b4d00; }
.robohilfe { font-size: 12.5px; color: #4a5a72; margin-top: 4px; }
.robozahl { display: inline-flex; gap: 6px; margin-left: 6px; vertical-align: middle; }
.robozahl .robochip { font-size: 22px; padding: 0 14px; }
@media print { #roboBtn, #roboPanel, #langSw { display: none !important; } }
html.robo body { padding-bottom: 130px; }
/* Zurueck-Button zur Hauptseite (alle Level) */
a.backBtn, nav a.backBtn { display: inline-flex !important; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 12px; background: #3f8cf0 !important; color: #fff !important; font-weight: 800; text-decoration: none; box-shadow: 0 3px 0 #2a64b0; visibility: visible !important; opacity: 1 !important; }
a.backBtn:hover, a.backBtn:focus { background: #2f7ae0 !important; outline: 3px solid #ffd84d; }
