/* Unterseite „Reiseplaner“: Beispielplan als Zeitleiste, Vorlagen (Übersicht + Tagesplan).
   Baut auf tagebuch.css auf (fragen-liste, vorlage, tipps, Druckansicht). */

/* Beispielplan: ein Tag = eine Karte mit Zeitleiste */
.plan-tage { margin-top: 26px; display: grid; gap: 18px; max-width: 760px; }
.plan-tag {
  border-radius: 20px; background: var(--feld); border: 1px solid var(--feld-rand); overflow: hidden;
}
.plan-tag__kopf { display: flex; align-items: baseline; gap: 10px 14px; flex-wrap: wrap; padding: 18px 20px 4px; }
.plan-tag__nr {
  font: 850 0.8rem/1 var(--schrift-anzeige); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gruen); padding: 6px 10px; border-radius: 99px; background: var(--gruen-feld);
}
.plan-tag__titel { font: 800 1.35rem/1.15 var(--schrift-anzeige); color: var(--text); }
.plan-zeit { list-style: none; margin: 0; padding: 10px 20px 18px; display: grid; gap: 0; }
.plan-zeit li {
  position: relative; display: grid; grid-template-columns: 104px 1fr; gap: 14px; padding: 10px 0 10px 0;
}
.plan-zeit li + li { border-top: 1px dashed var(--feld-rand); }
.plan-zeit__wann { color: var(--text-gedaempft); font-size: 0.9rem; font-weight: 600; padding-top: 2px; }
.plan-zeit__was { color: var(--text-leise); }
.plan-zeit__was b { display: block; color: var(--text); font-weight: 650; }
.plan-tag__hinweis {
  margin: 0 20px 18px; padding: 12px 14px; border-radius: 12px; font-size: 0.92rem;
  background: var(--gruen-feld); color: var(--text-leise);
}
.plan-tag__hinweis b { display: block; color: var(--gruen); font-weight: 700; margin-bottom: 2px; }
.plan-tag__bild { display: block; aspect-ratio: 3 / 2; max-height: 260px; width: 100%; }
.plan-tag__bild img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Vorlage „Übersicht“: Tabelle mit leeren Zeilen */
.vorlage + .vorlage { margin-top: 22px; }
.vorlage-tabelle { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 0.9rem; table-layout: fixed; hyphens: auto; overflow-wrap: anywhere; }
.vorlage-tabelle th:nth-child(1) { width: 2.8em; white-space: nowrap; }
.vorlage-tabelle th:nth-child(2) { width: 18%; }
.vorlage-tabelle th:nth-child(5) { width: 5em; white-space: nowrap; }
.vorlage-tabelle th {
  text-align: left; font-weight: 650; color: var(--text); padding: 6px 8px 8px;
  border-bottom: 1px solid var(--linie-stark);
}
.vorlage-tabelle td { height: 2.1em; border-bottom: 1px solid var(--linie-stark); padding: 0 8px; }
.vorlage-tabelle td:first-child { color: var(--text-gedaempft); }
@media (max-width: 520px) { .vorlage-tabelle { font-size: 0.8rem; } .vorlage-tabelle th { padding: 6px 4px 8px; } .vorlage-tabelle td { padding: 0 4px; } }
.vorlage-zweispaltig { display: grid; grid-template-columns: 1fr; gap: 0 22px; }
@media (min-width: 640px) { .vorlage-zweispaltig { grid-template-columns: 1fr 1fr; } }

/* App-Abschnitt mit zwei Handys nebeneinander */
.planer-handys { display: flex; gap: clamp(14px, 4vw, 28px); justify-content: center; margin-top: 34px; }
.planer-handys .handy { --handy-breite: clamp(148px, 42vw, 260px); }
.planer-handys figcaption { margin-top: 12px; text-align: center; color: var(--text-gedaempft); font-size: 0.9rem; }

@media (max-width: 420px) {
  .plan-zeit li { grid-template-columns: 1fr; gap: 2px; }
  .plan-tag__kopf, .plan-zeit { padding-left: 16px; padding-right: 16px; }
  .plan-tag__hinweis { margin-left: 16px; margin-right: 16px; }
}

@media print {
  .vorlage + .vorlage { margin-top: 0 !important; break-before: page; }
  .vorlage-tabelle { font: 400 10pt/1.3 Arial, sans-serif; margin-top: 6mm; }
  .vorlage-tabelle th:nth-child(2) { width: 16%; }
  .vorlage-tabelle th:nth-child(1) { width: 9mm; }
  .vorlage-tabelle th:nth-child(5) { width: 18mm; }
  .vorlage-tabelle th { color: #111; border-bottom-color: #777; padding: 0 2mm 2mm; }
  .vorlage-tabelle td { height: 9.5mm; border-bottom-color: #aaa; }
  .vorlage-tabelle td:first-child { color: #333; }
  .vorlage-zweispaltig { grid-template-columns: 1fr 1fr; gap: 0 8mm; }
  .vorlage-linien b { height: 6.5mm; }
}
