/*
 * handout.css – gemeinsames Stylesheet für die druckbaren HolaRuta-Anleitungen
 * (Lehrer · Coordinator · Hostel). Bildschirm + Druck (Strg+P → „Als PDF speichern").
 * Zero-Dependency: nur System-Fonts, keine externen Ressourcen, läuft offline.
 *
 * Mehrsprachigkeit: Blöcke mit Klasse .lang--de/.lang--en/.lang--es; sichtbar ist
 * nur die per <html data-lang="…"> gewählte Sprache (Default de, siehe handout.js).
 */

:root {
  --page: #241510;
  --surface: #f7efe3;
  --card: #fffdf6;
  --ink: #2d1b12;
  --muted: #6e5848;
  --line: rgba(45, 27, 18, 0.16);
  --brand: #c2502e;
  --brand-ink: #a23e20;
  --ok: #3f7355;
  --warn: #b97c24;
  --r: 14px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* Sprachumschalter – nur am Bildschirm */
.langbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 12px;
  background: var(--page);
}
.langbar button {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #f7efe3;
  border-radius: 999px;
  padding: 6px 16px;
}
.langbar button[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Sprach-Sichtbarkeit */
.lang { display: none; }
html[data-lang="de"] .lang--de,
html[data-lang="en"] .lang--en,
html[data-lang="es"] .lang--es { display: block; }

/* Blatt im A4-Look */
.sheet {
  background: var(--surface);
  max-width: 820px;
  margin: 0 auto 24px;
  padding: 40px 44px;
  border-radius: 8px;
}

.brand {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin: 4px 0 6px;
}
.lead { font-size: 1.05rem; color: var(--muted); margin: 0 0 20px; }
h2 {
  font-size: 1.25rem;
  margin: 26px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--brand);
}
h3 { font-size: 1.02rem; margin: 16px 0 4px; }
p { margin: 8px 0; }
a { color: var(--brand-ink); }

ol, ul { margin: 8px 0; padding-left: 22px; }
li { margin: 5px 0; }

.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 42px;
  margin: 12px 0;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
}

table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.94rem; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { background: rgba(194, 80, 46, 0.10); color: var(--brand-ink); font-weight: 800; }

.tip {
  background: var(--card);
  border-left: 4px solid var(--ok);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 12px 16px;
  margin: 16px 0;
}
.es { color: var(--brand-ink); font-weight: 700; }
.foot { margin-top: 22px; font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }

/* Hostel-Poster */
.poster { text-align: center; }
.poster h1 { font-size: 3rem; margin: 8px 0; }
.poster .lead { font-size: 1.25rem; }
.qr {
  width: 230px;
  height: 230px;
  margin: 18px auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: grid;
  place-items: center;
  padding: 10px;
  background: #fff;
}
.qr img { width: 100%; height: 100%; display: block; }
.url {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand-ink);
  background: var(--card);
  border: 2px solid var(--brand);
  border-radius: 999px;
  padding: 8px 22px;
  margin: 8px 0;
}

/* Hostel-Flyer: zwei identische Karten pro A4 zum Ausschneiden (Rezeption/Tisch) */
.cutsheet {
  background: var(--surface);
  max-width: 600px;
  margin: 0 auto 24px;
  border-radius: 8px;
  padding: 6px;
}
.flyer { text-align: center; padding: 26px 30px 18px; }
.flyer h1 { font-size: 2.1rem; margin: 6px 0; }
.flyer .lead { font-size: 1.02rem; margin: 0 0 12px; }
.flyer .qr { width: 168px; height: 168px; margin: 12px auto; }
.flyer .url { font-size: 1.05rem; padding: 6px 18px; }
.flyer .how {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 12px auto 6px;
  max-width: 360px;
}
.flyer .foot { border: 0; margin-top: 12px; padding-top: 0; }
.cut {
  text-align: center;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  border-top: 2px dashed var(--line);
  padding-top: 6px;
  margin: 4px 8px 0;
}

/*
 * Bold/Design-Poster (wiederverwendbar) – vollflächiges Farbpanel, große Typo.
 * Farbe je Seite über --bold-grad setzen (Default: HolaRuta-Orange).
 * Komplett aus CSS, keine externen Bilder. Genutzt von hostel-poster-bold.html
 * und der Flyer-Serie (Survival · Reto del día · Próxima parada).
 */
.bold {
  --bold-grad:
    radial-gradient(130% 80% at 18% 0%, rgba(255, 212, 150, 0.35) 0%, transparent 60%),
    radial-gradient(120% 95% at 50% -6%, #e9774a 0%, #c2502e 46%, #a23e20 100%);
  position: relative;
  max-width: 820px;
  margin: 0 auto 24px;
  padding: 54px 48px 40px;
  text-align: center;
  color: #fff;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bold-grad);
}
.bold::before { /* dezente „Konfetti“-Deko, rein dekorativ */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.10) 2px, transparent 2.5px),
    radial-gradient(rgba(255, 255, 255, 0.07) 2px, transparent 2.5px);
  background-size: 38px 38px, 38px 38px;
  background-position: 0 0, 19px 19px;
  pointer-events: none;
}
.bold > * { position: relative; }
.bold .kicker {
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.82rem;
  opacity: 0.92;
}
.bold h1 {
  font-size: 4rem;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 10px 0 6px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}
.bold .tag { font-size: 1.3rem; font-weight: 600; opacity: 0.97; margin: 0 0 6px; }
.bold .qrwrap {
  width: 256px;
  height: 256px;
  margin: 24px auto 14px;
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}
.bold .qrwrap img { width: 100%; height: 100%; display: block; }
.bold .pill {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 9px 24px;
}
.bold .chips {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 22px 0 8px;
}
.bold .chip {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  padding: 10px 15px;
  font-weight: 700;
  font-size: 1rem;
}
.bold .trust { margin: 12px 0 0; font-size: 0.92rem; opacity: 0.92; }

/* Druck: Schalter weg, weißer Hintergrund, saubere Seitenränder */
@page { margin: 14mm; }
@media print {
  body { background: #fff; }
  .langbar { display: none; }
  .sheet { margin: 0; max-width: none; padding: 0; border-radius: 0; }
  .cutsheet { max-width: none; margin: 0; }
  .flyer { break-inside: avoid; }
  h2 { break-after: avoid; }
  tr, li, .tip { break-inside: avoid; }
  /* Bold-Poster randlos & seitenfüllend (randloses @page setzt die jeweilige Seite selbst) */
  .bold {
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}
