/* Logbuch "Meine Reisen" (fleet-manager 2.7.0) – baut auf meine-flotte.css (.fmm, .fmm-btn) auf */
.fml { --fml-orange: #e8590c; --fml-navy: #0d1f3c; }
.fml-laden { color: var(--fmm-grau); padding: 30px 0; text-align: center; }
.fml-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.fml-kopf h2 { font-size: 24px; }
.fml-kopf-r { display: flex; flex-wrap: wrap; gap: 8px; }
.fml-h3 { font-size: 17px; margin: 0 0 8px !important; }
.fml-badge { display: inline-block; background: rgba(255, 255, 255, .92); color: var(--fmm-dunkel); font-size: 11.5px; font-weight: 700;
  border-radius: 20px; padding: 3px 9px; line-height: 1.3; }
.fml-badge-jetzt { background: var(--fmm-gruen); color: #fff; }
.fml-pre { white-space: pre-line; margin: 0 0 8px; }
.fml-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100001; background: var(--fmm-dunkel, #1a2b3c);
  color: #fff; border-radius: 10px; padding: 10px 16px; font: 600 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25); transition: opacity .5s; max-width: calc(100vw - 32px); }
.fml-toast-fehler { background: #a51d1d; }
.fml-toast-ok { background: #2b8a3e; font-size: 15px; padding: 12px 20px; }
.fml-pl-tmp { opacity: .6; }
.fml-fehler-k { display: flex; flex-wrap: wrap; gap: 8px; }
/* 2.14.0 */
.fml-ohne-pos { margin: 8px 0 0; font-size: 13.5px; }
.fml-idee { margin: 26px 0 8px; border: 1px dashed #cbd5e1; border-radius: 12px; padding: 10px 14px; }
.fml-idee summary { cursor: pointer; font-weight: 600; color: var(--fmm-dunkel, #1a2b3c); padding: 4px 0; }
.fml-idee-form { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
.fml-idee-form textarea { width: 100%; }
.fml-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.fml-idee-danke { margin: 8px 0 4px; }
.fml-weg { opacity: 0; }
.fml-premium { margin: 10px 0; }

/* Uebersicht */
.fml-stat { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 0 0 14px; }
.fml-stat div { background: var(--fmm-hell); border-radius: 10px; padding: 10px 8px; text-align: center; }
.fml-stat b { display: block; font-size: 24px; line-height: 1.1; color: var(--fml-navy); }
.fml-stat span { font-size: 12px; color: var(--fmm-grau); }
.fml-karte { height: 360px; border-radius: 12px; overflow: hidden; background: #dfeaf2; }
.fml-karte-alle { height: 300px; margin-bottom: 6px; }
.fml-karte-hinweis { margin: 6px 0 0; }
.fml-rks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
/* 2.15.0: Desktop – Reisen fuellen die Breite (eine Reise als breite Karte mit Bild links statt einer schmalen Spalte) */
@media (min-width: 700px) {
  .fml-rks { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .fml-rks > .fml-rk:only-child { display: grid; grid-template-columns: minmax(240px, 40%) 1fr; }
  .fml-rks > .fml-rk:only-child .fml-rk-bild { aspect-ratio: auto; height: 100%; min-height: 170px; }
  .fml-rks > .fml-rk:only-child .fml-rk-text { padding: 16px 18px; justify-content: center; }
  .fml-rks > .fml-rk:only-child .fml-rk-text b { font-size: 19px; }
}
/* 2.16.0: Hafen-Notiz "beim Teilen zeigen", Verfassername beim Teilen */
.fml-hz-oeff { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fmm-grau); white-space: nowrap;
  grid-column: 1 / -1; grid-row: 4; margin-top: -2px; }
.fml-hz-oeff input { width: 16px; height: 16px; accent-color: var(--fmm-gruen); }
.fml-teilen-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 12px; font-size: 14px; }
.fml-teilen-name label { font-weight: 700; }
.fml-teilen-name select, .fml-teilen-name input { min-height: 40px; padding: 6px 10px; border: 1px solid #cfd8df; border-radius: 8px; font: inherit; }
.fml-teilen-name input { flex: 1 1 160px; }
/* 2.15.0: Countdown fuer bevorstehende Reisen (Ueberblick/Logbuch) und in der Reisekarte */
.fml-countdown { display: flex; align-items: center; gap: 10px; background: #eef7f3; border: 1px solid #bfe3d4; border-radius: 12px;
  padding: 12px 16px; margin: 0 0 14px; font-weight: 700; color: #1f5e48; }
.fml-countdown b { font-size: 22px; color: #1f7a5c; }
.fml-rk-countdown { font-size: 13px; font-weight: 700; color: #1f7a5c; }
.fml-rk { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--fmm-rand); border-radius: 12px; overflow: hidden;
  color: var(--fmm-dunkel) !important; text-decoration: none !important; transition: box-shadow .15s, transform .15s; }
.fml-rk:hover { box-shadow: 0 6px 20px rgba(16, 42, 67, .14); transform: translateY(-2px); }
.fml-rk-bild { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1a6eb5, #0d1f3c) center / cover no-repeat; }
.fml-rk-bild .fml-badge { position: absolute; left: 8px; top: 8px; }
.fml-rk-bild .fml-badge-r { left: auto; right: 8px; }
.fml-rk-ico { font-size: 42px; opacity: .85; }
.fml-rk-text { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.fml-rk-text b { font-size: 16px; line-height: 1.3; }
.fml-rk-sub { font-size: 13px; color: var(--fmm-grau); }
.fml-rk-zahlen { display: flex; gap: 10px; margin-top: 4px; font-size: 13px; color: var(--fmm-grau); }
.fml-leer { padding: 30px 20px; }
.fml-leer-ico { font-size: 48px; margin: 0; }
.fml-leer h3 { margin: 6px 0 8px !important; }

/* Formulare */
.fml-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; background: var(--fmm-hell); border-radius: 12px; padding: 16px; }
.fml-f { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 13.5px; min-width: 0; }
.fml-f-voll { grid-column: 1 / -1; }
.fml-f-titel { font-weight: 600; font-size: 13.5px; }
.fml-form input:not([type="checkbox"]):not([type="file"]), .fml-form select, .fml-form textarea {
  width: 100%; box-sizing: border-box; border: 1px solid #cfd8df; border-radius: 8px; padding: 8px 10px; font: 400 15px/1.4 inherit;
  font-family: inherit; background: #fff; color: var(--fmm-dunkel); min-height: 40px; }
.fml-form input:focus, .fml-form select:focus, .fml-form textarea:focus { outline: 2px solid var(--fmm-gruen); outline-offset: -1px; border-color: var(--fmm-gruen); }
.fml-form .fmm-fehler { grid-column: 1 / -1; margin: 0; }
.fml-form-fuss { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fml-form-fuss .fmm-btn { padding: 10px 22px; }
.fml-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fml-chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #cfd8df; border-radius: 20px; padding: 5px 12px; font-weight: 500; cursor: pointer; }
.fml-chip:has(input:checked) { border-color: var(--fmm-gruen); background: #e9f7f2; }
.fml-such { position: relative; }
.fml-such-liste { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% - 18px); margin: 0; padding: 4px 0; list-style: none; background: #fff;
  border: 1px solid #cfd8df; border-radius: 8px; box-shadow: 0 8px 24px rgba(16, 42, 67, .16); max-height: 300px; overflow-y: auto; }
.fml-hz .fml-such-liste { top: 100%; min-width: 260px; }
.fml-such-liste li { padding: 7px 12px; cursor: pointer; font-weight: 400; }
.fml-such-liste li b { display: block; font-weight: 600; }
.fml-such-liste li small { color: var(--fmm-grau); font-size: 12px; }
.fml-such-liste li:hover, .fml-such-liste li.fml-aktiv { background: #e9f7f2; }
.fml-such-liste .fml-such-leer { color: var(--fmm-grau); cursor: default; }
.fml-schiff-info { color: var(--fmm-gruen); font-weight: 600; min-height: 1em; }

/* Hafen-Editor */
.fml-hl { list-style: none; margin: 6px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
/* Zeile 1: Art | Hafen (2 Spalten) | Knoepfe – Zeile 2: Datum | Ankunft | Abfahrt – Zeile 3: Notiz */
.fml-hz { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(90px, 1fr) minmax(90px, 1fr) auto; gap: 6px; align-items: start; background: #fff;
  border: 1px solid var(--fmm-rand); border-radius: 10px; padding: 8px; font-weight: 400; }
.fml-hz-see { background: #eef6fb; }
.fml-hz-name { position: relative; display: flex; flex-direction: column; min-width: 0; }
.fml-hz-see .fml-hz-name { justify-content: center; min-height: 40px; color: #1a6eb5; font-weight: 600; }
.fml-hz-typ { grid-column: 1; grid-row: 1; }
.fml-hz-name { grid-column: 2 / 4; grid-row: 1; }
.fml-hz-k { grid-column: 4; grid-row: 1; }
.fml-hz-datum { grid-column: 1; grid-row: 2; }
.fml-hz-an { grid-column: 2; grid-row: 2; }
.fml-hz-ab { grid-column: 3; grid-row: 2; }
.fml-hz-name small { color: var(--fmm-grau); font-size: 12px; min-height: 1em; padding: 2px 2px 0; }
.fml-hz-k { display: flex; gap: 2px; }
.fml-hz-k button { width: 34px; height: 40px; border: 1px solid #cfd8df; background: #fff; border-radius: 8px; cursor: pointer; font-size: 15px; color: var(--fmm-dunkel); }
.fml-hz-k button:disabled { opacity: .35; cursor: default; }
.fml-hz-k button[data-a="weg"]:hover { color: #c92a2a; border-color: #c92a2a; }
.fml-hz-notiz { grid-column: 1 / -1; grid-row: 3; min-height: 34px !important; font-size: 14px !important; }
.fml-hl-knoepfe { display: flex; gap: 8px; }

/* Reise-Ansicht */
.fml-held { position: relative; border-radius: 14px; overflow: hidden; color: #fff; min-height: 220px; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 18px 20px; background: linear-gradient(135deg, #1a6eb5, #0d1f3c) center / cover no-repeat; margin-bottom: 12px; }
.fml-held h2 { font-size: 28px; margin: 6px 0 4px !important; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.fml-held p { margin: 0; opacity: .95; font-size: 15px; text-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.fml-held-von { margin-top: 6px !important; font-style: italic; }
.fml-zurueck { position: absolute; left: 14px; top: 12px; color: #fff !important; font-weight: 700; text-decoration: none !important;
  background: rgba(13, 31, 60, .45); border-radius: 20px; padding: 4px 12px; }
.fml-held-k { position: absolute; right: 14px; top: 12px; display: flex; gap: 6px; }
.fml-held-k .fmm-btn { background: rgba(255, 255, 255, .94) !important; border-color: transparent !important; padding: 6px 12px; }
.fml-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--fmm-rand); margin: 0 0 14px; overflow-x: auto; scrollbar-width: none; }
/* 2.15.0: Handy – rechter Rand blendet aus, damit man sieht, dass es weitergeht ("Packliste" war abgeschnitten) */
@media (max-width: 600px) {
  .fml-tabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 56px; }
  .fml-tabs a { padding: 10px 11px; }
}
.fml-tabs a { padding: 10px 14px; font-weight: 700; color: var(--fmm-grau) !important; text-decoration: none !important; border-bottom: 3px solid transparent;
  margin-bottom: -2px; white-space: nowrap; }
.fml-tabs a[aria-selected="true"] { color: var(--fmm-dunkel) !important; border-bottom-color: var(--fmm-gruen); }
.fml-tabs small { background: var(--fmm-hell); border-radius: 10px; padding: 1px 7px; font-size: 12px; }
.fml-zwei { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.fml-box { background: var(--fmm-hell); border-radius: 12px; padding: 12px 16px; margin-top: 16px; }
.fml-box p { margin: 0 0 6px; }
.fml-zeitleiste { list-style: none; margin: 0; padding: 0; position: relative; }
.fml-zeitleiste::before { content: ""; position: absolute; left: 17px; top: 10px; bottom: 10px; width: 2px; background: var(--fmm-rand); }
.fml-zl { position: relative; display: flex; gap: 12px; padding: 0 0 12px; }
.fml-zl-ico { position: relative; z-index: 1; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid var(--fmm-rand);
  display: flex; align-items: center; justify-content: center; font-size: 16px; }
.fml-zl-einschiffung .fml-zl-ico { border-color: #2b8a3e; }
.fml-zl-ausschiffung .fml-zl-ico { border-color: #c92a2a; }
.fml-zl-seetag .fml-zl-ico { border-color: #1a6eb5; background: #eef6fb; }
.fml-zl b { font-size: 15px; }
.fml-zl-sub { font-size: 13px; color: var(--fmm-grau); }
.fml-zl-notiz { margin: 4px 0 0; font-size: 14px; }
.fml-aktion { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.fml-upload { cursor: pointer; }
.fml-upload-status { background: #e9f7f2; border-radius: 8px; padding: 8px 12px; margin: 0 0 12px; font-weight: 600; grid-column: 1 / -1; }

/* Logbuch-Tage */
.fml-tag { background: #fff; border: 1px solid var(--fmm-rand); border-left: 4px solid var(--fmm-gruen); border-radius: 10px; padding: 12px 16px; margin: 0 0 12px; }
.fml-tag header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.fml-tag-nr { background: var(--fml-navy); color: #fff; border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.fml-tag-nr:empty { display: none; }
.fml-tag-datum { font-weight: 600; color: var(--fmm-grau); font-size: 14px; }
.fml-tag-wetter { font-size: 20px; }
.fml-tag-k { margin-left: auto; }
.fml-tag h4 { font-size: 18px; margin: 2px 0 6px !important; }
.fml-tag-hl { background: #fff8e6; border-radius: 8px; padding: 6px 10px; margin: 0 0 8px; }
.fml-tag-bew { font-size: 13px; color: var(--fmm-grau); margin: 0 0 6px; }
.fml-sterne { color: #f59f00; letter-spacing: 1px; }
.fml-sterne i { color: #d5dde3; font-style: normal; }
.fml-tag-fotos { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.fml-tag-fotos img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; display: block; }
.fml-tag-fuss { margin: 4px 0 0; font-size: 13px; display: flex; gap: 12px; }
.fml-tag-fuss:empty { display: none; }

/* Fotos */
.fml-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.fml-foto { position: relative; border: 0; padding: 0; background: #eef3f7; border-radius: 8px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.fml-tag-fotos .fml-foto { width: 96px; height: 72px; aspect-ratio: auto; }
.fml-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fml-foto .fml-badge { position: absolute; left: 6px; bottom: 6px; }
.fml-lb.fmm, .fml-dialog-hg.fmm { margin: 0; }
.fml-lb { position: fixed; inset: 0; z-index: 100000; background: rgba(8, 16, 28, .94); display: flex; align-items: center; justify-content: center; padding: 50px 56px; }
.fml-lb figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; }
.fml-lb img { max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain; border-radius: 6px; }
.fml-lb figcaption { color: #fff; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; width: 100%; }
.fml-lb-text { min-width: 240px; flex: 1; max-width: 480px; border-radius: 8px; border: 0; padding: 8px 10px; font-size: 15px; }
.fml-lb figcaption span { display: flex; gap: 6px; }
.fml-lb-zahl { color: rgba(255, 255, 255, .7); font-size: 13px; }
.fml-lb-zu { position: absolute; right: 12px; top: 8px; border: 0; background: none; color: #fff; font-size: 38px; cursor: pointer; line-height: 1; }
.fml-lb-pfeil { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 34px;
  width: 44px; height: 64px; border-radius: 8px; cursor: pointer; }
.fml-lb-l { left: 6px; }
.fml-lb-r { right: 6px; }

/* Eintrag-Formular */
.fml-wetter { display: flex; flex-wrap: wrap; gap: 6px; }
.fml-wetter button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #cfd8df; background: #fff; border-radius: 8px; padding: 6px 10px;
  font: 500 13.5px/1.2 inherit; font-family: inherit; cursor: pointer; color: var(--fmm-dunkel); }
.fml-wetter button span { font-size: 19px; }
.fml-wetter button.an { border-color: var(--fmm-gruen); background: #e9f7f2; box-shadow: inset 0 0 0 1px var(--fmm-gruen); }
.fml-sterne3 { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.fml-stern-wahl { display: inline-flex; }
.fml-stern-wahl button { border: 0; background: none; font-size: 28px; line-height: 1; padding: 0 2px; color: #d5dde3; cursor: pointer; }
.fml-stern-wahl button.an { color: #f59f00; }
.fml-ort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 400; }

/* Teilen */
.fml-dialog-hg { position: fixed; inset: 0; z-index: 100000; background: rgba(8, 16, 28, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.fml-dialog { position: relative; background: #fff; border-radius: 14px; padding: 20px 22px; max-width: 480px; width: 100%; box-shadow: 0 16px 50px rgba(0, 0, 0, .3); margin: 0; }
.fml-dialog h3 { margin: 0 0 12px !important; font-size: 20px; }
.fml-dialog-zu { position: absolute; right: 10px; top: 6px; border: 0; background: none; font-size: 30px; cursor: pointer; color: var(--fmm-grau); }
.fml-schalter { display: flex; align-items: center; gap: 10px; font-weight: 700; margin: 0 0 6px; cursor: pointer; }
.fml-schalter input { width: 20px; height: 20px; accent-color: var(--fmm-gruen); }
.fml-teilen-link { display: flex; gap: 6px; margin: 12px 0 10px; }
.fml-teilen-link input { flex: 1; min-width: 0; border: 1px solid #cfd8df; border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.fml-teilen-wege { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

/* Mitreisende */
.fml-personen { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 12px 0 14px; }
.fml-person { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--fmm-rand); border-radius: 10px; padding: 10px 14px; }
.fml-person span { color: var(--fmm-grau); font-size: 13px; }
.fml-person-k { display: flex; gap: 14px; margin-top: 4px; }
.fml-person-form { margin-top: 14px; }

/* Geteilte Reise */
.fml-werbung { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; background: var(--fml-navy); color: #fff; border-radius: 12px; padding: 14px 18px; margin-top: 22px; }
.fml-werbung b { font-size: 16px; }
.fml-werbung span { flex: 1; min-width: 200px; opacity: .85; font-size: 14px; }
.fml-live iframe { display: block; width: 100%; height: min(65vh, 520px); min-height: 360px; border: 0; border-radius: 12px; }

@media (max-width: 760px) {
  .fml-stat { grid-template-columns: repeat(3, 1fr); }
  .fml-stat div:nth-child(n+4) { grid-column: span 1; }
  .fml-form { grid-template-columns: 1fr; padding: 12px; }
  .fml-zwei { grid-template-columns: 1fr; }
  .fml-karte { height: 280px; }
  .fml-held { min-height: 200px; padding: 56px 14px 14px; }
  .fml-held h2 { font-size: 23px; }
  .fml-hz { grid-template-columns: 1fr 1fr 1fr; }
  .fml-hz-typ { grid-column: 1 / 3; }
  .fml-hz-k { grid-column: 3; justify-content: flex-end; }
  .fml-hz-name { grid-column: 1 / -1; grid-row: 2; }
  .fml-hz-datum, .fml-hz-an, .fml-hz-ab { grid-row: 3; }
  .fml-hz-datum { grid-column: 1; } .fml-hz-an { grid-column: 2; } .fml-hz-ab { grid-column: 3; }
  .fml-hz-notiz { grid-row: 4; }
  .fml-hz-oeff { grid-row: 5; }
  .fml-hz-see .fml-hz-name { grid-row: 2; min-height: 0; }
  .fml-lb { padding: 46px 8px 12px; }
  .fml-lb-pfeil { top: auto; bottom: 10px; transform: none; height: 44px; }
}
/* Quellenangabe der Karte: nur das i zeigen, Text beim Darueberfahren/Antippen */
.fml-karte .maplibregl-ctrl-attrib.maplibregl-compact-show:not(:hover):not(:focus-within) .maplibregl-ctrl-attrib-inner { display: none; }
.fml-karte .maplibregl-ctrl-attrib.maplibregl-compact-show:not(:hover):not(:focus-within) { padding: 0; }

/* Einladung fuer Gaeste + Beispielreise */
.fml-einladung { background: var(--fmm-hell); border-radius: 14px; padding: 22px 24px; margin-bottom: 26px; }
.fml-einladung h2 { font-size: 26px; margin-bottom: 8px !important; }
.fml-einladung p { margin: 0 0 12px; }
.fml-vorteile { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.fml-vorteile li { font-size: 14.5px; }
.fml-bsp-kopf { text-align: center; margin: 0 0 14px; }
.fml-bsp-kopf h3 { font-size: 22px; margin: 8px 0 4px !important; }
.fml-bsp-hinweis { margin-top: 8px !important; text-align: right; font-size: 11.5px !important; }
.fml-werbung .fmm-btn:not(.fmm-btn-p) { background: transparent !important; color: #fff !important; border-color: rgba(255, 255, 255, .6) !important; }
.fml-fortschritt { background: #fff; border: 1px solid var(--fmm-rand); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; }
.fml-fs-text { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 14px; margin-bottom: 6px; }
.fml-fs-text span { color: var(--fmm-grau); font-size: 13px; }
.fml-fs-text a { font-size: 13px; font-weight: 600; }
/* 2.14.2: Sicherheitsabfrage (ueber Lichtbox und Teilen-Dialog) */
.fml-frage-hg { z-index: 100002; }
.fml-frage h3 { margin: 0 0 8px !important; font-size: 19px; }
.fml-frage p { margin: 0 0 16px; }
.fml-frage-k { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
@media (max-width: 480px) { .fml-frage-k .fmm-btn { flex: 1; justify-content: center; } }
.fml-fs-balken { height: 8px; background: var(--fmm-hell); border-radius: 4px; overflow: hidden; }
.fml-fs-balken i { display: block; height: 100%; background: var(--fmm-gruen); border-radius: 4px; }
@media (max-width: 760px) { .fml-vorteile { grid-template-columns: 1fr; } .fml-einladung { padding: 16px; } }

/* KI-Kennzeichnung auf dem Titelbild der Beispielreise */
.fml-ki { position: absolute; right: 12px; bottom: 10px; background: rgba(13, 31, 60, .6); color: #fff; font-size: 11px; font-weight: 600;
  border-radius: 6px; padding: 2px 7px; }
.fml-held .fml-held-k + .fml-ki, .fml-held .fml-ki { z-index: 1; }

/* 2.8.0: Hafenerkennung aus dem AIS-Track */
.fml-ais { background: #eef6fb; border: 1px solid #cfe3f1; border-radius: 10px; padding: 10px 12px; margin: 6px 0 10px; font-weight: 400; }
.fml-ais > .fmm-leise { margin-left: 8px; }
.fml-ais-v { list-style: none; margin: 6px 0; padding: 0; }
.fml-ais-v li { padding: 3px 0; }
.fml-ais-v label { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; cursor: pointer; }
.fml-ais-k { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }

/* 2.9.0: Offline / Warteschlange */
.fml-sync { background: #fff8e6; border: 1px solid #f5d48a; border-radius: 10px; padding: 8px 12px; margin: 0 0 12px; font-size: 14px; }
.fml-sync[hidden] { display: none; }
.fml-wartet { background: #fff3cd; color: #8a6100; border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.fml-tag-wartet { border-left-color: #f5b400; }
.fml-tag-fotos img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; }

/* 2.9.1: Kamera + Galerie, Vorschau neuer Fotos im Eintrag */
.fml-foto-wahl { margin: 4px 0 6px; gap: 8px; }
.fml-neu-fotos:empty { display: none; }
.fml-neu-foto { position: relative; display: inline-block; }
.fml-neu-foto img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; display: block; }
.fml-neu-foto button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #c92a2a;
  color: #fff; font-size: 15px; line-height: 22px; padding: 0; cursor: pointer; }

/* Packliste (2.10.0) – grosse Ziele fuer den Daumen */
.fml-pl-kat { margin-top: 16px; }
.fml-pl-kat .fml-h3 small { font-weight: 400; font-size: 13px; }
.fml-pl-liste { list-style: none; margin: 0; padding: 0; border: 1px solid var(--fmm-rand); border-radius: 12px; overflow: hidden; background: #fff; }
.fml-pl-p { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; padding: 4px 6px 4px 12px; border-top: 1px solid var(--fmm-rand); }
.fml-pl-p:first-child { border-top: 0; }
.fml-pl-box { flex: 1; display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; margin: 0; font-weight: 400; }
.fml-pl-box input { width: 26px; height: 26px; flex: none; margin: 0; accent-color: var(--fmm-gruen); cursor: pointer; }
.fml-pl-ok .fml-pl-box span { color: var(--fmm-grau); text-decoration: line-through; }
.fml-pl-stift { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 16px; opacity: .55; border-radius: 8px; }
.fml-pl-stift:hover, .fml-pl-stift:focus { opacity: 1; background: var(--fmm-hell); }
.fml-pl-amazon { flex-basis: 100%; padding: 0 0 8px 38px; font-size: 13px; }
.fml-pl-amazon a { color: var(--fmm-gruen); }
.fml-pl-edit form, .fml-pl-neu-z { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; padding: 6px 0; align-items: center; }
.fml-pl-edit input, .fml-pl-neu input, .fml-pl-neu select, .fml-pl-von select { flex: 1 1 180px; min-height: 44px; padding: 8px 10px; border: 1px solid #cfd8df;
  border-radius: 8px; font: inherit; background: #fff; color: var(--fmm-dunkel); }
.fml-pl-neu select { flex: 0 1 160px; }
/* 2.15.0: Kategorie sichtbar beschriftet, Auswahl breit genug fuer den ganzen Namen */
.fml-pl-kat-wahl { display: flex; align-items: center; gap: 6px; flex: 0 1 230px; font-size: 13px; color: var(--fmm-grau); }
.fml-pl-kat-wahl select { flex: 1 1 auto; min-width: 150px; }
.fml-pl-werkzeuge { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.fml-pl-von { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; flex: 1 1 260px; }
.fml-pl-hinweis { margin-top: 18px; font-size: 12.5px; }
/* 2.18.0: Reise als PDF – Knopf im Kopf, Dialog mit Fotoauswahl (max. 12) */
.fml-pdf .fml-pdf-kopf { display: flex; justify-content: space-between; gap: 8px; margin: 14px 0 6px; font-size: 14px; }
.fml-pdf-zahl { color: var(--fmm-grau); font-size: 13px; }
.fml-pdf-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; max-height: 45vh; overflow-y: auto; }
.fml-pdf-foto { position: relative; display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; cursor: pointer; }
.fml-pdf-foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .15s; }
.fml-pdf-foto input { position: absolute; right: 5px; top: 5px; width: 20px; height: 20px; margin: 0; accent-color: var(--fmm-gruen); z-index: 1; }
.fml-pdf-foto input:not(:checked) + img { opacity: .45; }
.fml-pdf-foto input:disabled:not(:checked) { cursor: not-allowed; }
.fml-pdf-k { margin: 16px 0 0; }
.fml-pdf-k .fmm-btn { width: 100%; justify-content: center; }
/* 2.19.0: Reise als Bild teilen – Einstieg im Teilen-Dialog, eigener Dialog mit Vorschau */
.fml-bild-einstieg { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #eef8f4; border: 1px solid #cfe9df; border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; }
.fml-bild-einstieg > div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.fml-bild-einstieg .fmm-btn { flex: none; }
.fml-teilen-h { margin: 0 0 8px !important; font-size: 15px; }
.fml-dialog.fml-bild { max-height: calc(100vh - 32px); overflow-y: auto; }
.fml-bild [hidden], .fml-teilen-name [hidden] { display: none !important; }
.fml-bild .fml-f { margin: 0 0 12px; }
.fml-bild .fml-f > input, .fml-bild textarea { box-sizing: border-box; width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #cfd8df; border-radius: 8px; font: inherit; font-weight: 400; }
.fml-bild textarea { font-size: 14px; resize: vertical; }
.fml-bild .fml-teilen-name { margin: 0; font-weight: 400; }
.fml-bild-formate { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; }
.fml-bild-formate label { position: relative; cursor: pointer; }
.fml-bild-formate input { position: absolute; opacity: 0; pointer-events: none; }
.fml-bild-formate span { display: inline-block; padding: 7px 13px; border: 1px solid #cfd8df; border-radius: 999px; font-size: 14px; }
.fml-bild-formate input:checked + span { background: var(--fmm-gruen); border-color: var(--fmm-gruen); color: #fff; font-weight: 700; }
.fml-bild-formate input:focus-visible + span { outline: 2px solid var(--fmm-gruen); outline-offset: 2px; }
.fml-bild-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; max-height: 32vh; overflow-y: auto; font-weight: 400; }
.fml-bild-fotos .fml-pdf-foto input { border-radius: 50%; }
.fml-bild-kein { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border: 1px dashed #cfd8df; border-radius: 8px; font-size: 12.5px; text-align: center; cursor: pointer; }
.fml-bild-kein input { position: absolute; opacity: 0; pointer-events: none; }
.fml-bild-kein:has(input:checked) { border: 2px solid var(--fmm-gruen); color: var(--fmm-gruen); font-weight: 700; }
.fml-bild-ergebnis { margin-top: 16px; border-top: 1px solid #e3e9ee; padding-top: 16px; }
.fml-bild-vorschau { display: block; width: 100%; max-width: 360px; margin: 0 auto 12px; border-radius: 10px; box-shadow: 0 6px 22px rgba(0, 0, 0, .25); transition: opacity .2s; }
.fml-bild-ergebnis.fml-alt .fml-bild-vorschau { opacity: .35; }
.fml-bild-ergebnis.fml-alt .fml-bild-k { opacity: .5; }
.fml-bild-k { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 14px; }
.fml-bild-k .fmm-btn { flex: 1 1 140px; justify-content: center; }
@media (max-width: 600px) {
  .fml-bild-einstieg { flex-direction: column; align-items: stretch; }
  .fml-bild-einstieg .fmm-btn { justify-content: center; }
}
@media (max-width: 600px) {
  .fml-k-text { display: none; }
  .fml-held-k { right: 10px; gap: 4px; }
  .fml-held-k .fmm-btn { padding: 5px 9px; font-size: 13px; }
}
