:root {
  --forest: #2f5d3a;
  --forest-dark: #1f3f27;
  --moss: #6f9a5b;
  --sky: #eaf2ea;
  --sand: #f7f4ec;
  --ink: #1d2a21;
  --muted: #5d6b61;
  --line: #d8e0d6;
  --error: #b3261e;
  --error-bg: #fdecea;
  --ok: #1e6b3a;
  --ok-bg: #e6f4ea;
  --info-bg: #eef3f8;
  --radius: 14px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }

/* ---------- Anmelde-Seiten ---------- */
body.auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 9rem;
  background: linear-gradient(180deg, #cfe3d4 0%, var(--sky) 55%, var(--sand) 100%);
  position: relative;
  overflow-x: hidden;
}
body.auth { background: linear-gradient(180deg, #bcd9e8 0%, #dcebe0 45%, var(--sky) 70%, var(--sand) 100%); }
.scene { position: fixed; inset: auto 0 0 0; height: 46vh; pointer-events: none; }
.scene svg { width: 100%; height: 100%; display: block; }
.m4 { fill: #c4d8cf; }
.snow { fill: #fff; opacity: .85; }
.m3 { fill: #a9c7a6; }
.m2 { fill: var(--moss); }
.trees { fill: #4c7a45; }
.m1 { fill: var(--forest); }
.trail { fill: none; stroke: #e9dcb8; stroke-width: 5; stroke-dasharray: 2 14; stroke-linecap: round; opacity: .8; }
.sun {
  position: fixed; top: 9vh; right: 12vw; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, #fff6cf 0%, #ffe48a 55%, rgba(255, 228, 138, 0) 72%);
  pointer-events: none; animation: sunrise 2.4s ease-out both;
}
@keyframes sunrise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.clouds span {
  position: fixed; height: 26px; border-radius: 999px; background: rgba(255, 255, 255, .75); pointer-events: none;
  animation: drift linear infinite;
}
.clouds span::before { content: ""; position: absolute; left: 25%; top: -14px; width: 45%; height: 30px; border-radius: 50%; background: inherit; }
.clouds span:nth-child(1) { top: 12vh; width: 120px; animation-duration: 90s; animation-delay: -20s; }
.clouds span:nth-child(2) { top: 22vh; width: 80px; animation-duration: 120s; animation-delay: -70s; opacity: .7; }
.clouds span:nth-child(3) { top: 6vh; width: 150px; animation-duration: 150s; animation-delay: -110s; opacity: .6; }
@keyframes drift { from { transform: translateX(-200px); } to { transform: translateX(110vw); } }
@media (prefers-reduced-motion: reduce) { .sun, .clouds span { animation: none; } .clouds { display: none; } }
.foot strong { color: var(--forest); }
.foot-sep { margin: 0 .35rem; opacity: .5; }

.card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 2rem 1.5rem;
  box-shadow: 0 10px 40px rgba(31, 63, 39, .18);
}
.brand {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1.05rem; letter-spacing: .02em;
  color: var(--forest); text-decoration: none;
}
.brand-mark {
  display: grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--forest); color: #fff; font-size: 1rem;
}
h1 { font-size: 1.6rem; margin: 1.1rem 0 .4rem; }
.lead { color: var(--muted); margin: 0 0 1.25rem; line-height: 1.5; }

form { display: grid; gap: 1rem; }
label { display: grid; gap: .35rem; font-weight: 600; font-size: .92rem; }
.opt { font-weight: 400; color: var(--muted); }
input, textarea {
  font: inherit; font-weight: 400;
  padding: .7rem .85rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fbfcfa;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; }
input:focus, textarea:focus {
  outline: none; border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(111, 154, 91, .25);
  background: #fff;
}

.btn {
  font: inherit; font-weight: 600;
  padding: .8rem 1rem; border: 0; border-radius: 10px;
  background: var(--forest); color: #fff; cursor: pointer;
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--forest-dark); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--forest); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--sky); }
.btn-sm { padding: .45rem .8rem; font-size: .9rem; }

.links {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  margin-top: 1.25rem; font-size: .92rem;
}
.links a { color: var(--forest); text-decoration: none; font-weight: 500; }
.links a:hover { text-decoration: underline; }

.alert { padding: .75rem .9rem; border-radius: 10px; margin-bottom: 1rem; font-size: .93rem; line-height: 1.45; }
.alert-error { background: var(--error-bg); color: var(--error); }
.alert-success { background: var(--ok-bg); color: var(--ok); }
.alert-info { background: var(--info-bg); color: #24415e; }

.details { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 0 0 1.5rem; }
.details dt { font-weight: 600; color: var(--muted); }
.details dd { margin: 0; word-break: break-word; }
.actions { grid-template-columns: 1fr 1fr; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.foot {
  position: relative; margin-top: 1.25rem;
  font-size: .82rem; color: var(--muted);
  background: rgba(255, 255, 255, .75); padding: .3rem .8rem; border-radius: 999px;
}

/* ---------- Bereich nach dem Login ---------- */
body.app { background: var(--sand); }
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: .8rem 1.5rem; background: #fff; border-bottom: 1px solid var(--line);
}
.topbar form { display: flex; align-items: center; gap: .75rem; }
.who { color: var(--muted); font-size: .92rem; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.wrap h1 { font-size: 2rem; margin-top: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; position: relative;
}
.tile-icon { font-size: 2rem; }
.tile h2 { font-size: 1.15rem; margin: .6rem 0 .35rem; }
.tile p { color: var(--muted); margin: 0; line-height: 1.45; }
.soon {
  position: absolute; top: 1rem; right: 1rem;
  font-size: .75rem; font-weight: 600; color: var(--forest);
  background: var(--sky); padding: .2rem .55rem; border-radius: 999px;
}

@media (max-width: 480px) {
  .card { padding: 1.5rem 1.25rem 1.25rem; }
  .topbar { padding: .7rem 1rem; }
  .who { display: none; }
}

/* =========================================================
   Archiv: Navigation, Karte, Zeitstrahl, Fotos
   ========================================================= */
a { color: var(--forest); }
.topbar { position: sticky; top: 0; z-index: 1000; gap: 1rem; flex-wrap: wrap; }
.mainnav { display: flex; gap: .25rem; flex-wrap: wrap; }
.mainnav a {
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem;
  padding: .45rem .8rem; border-radius: 999px;
}
.mainnav a:hover { background: var(--sky); color: var(--forest); }
.mainnav a.active { background: var(--forest); color: #fff; }
.topbar-user { display: flex; align-items: center; gap: .75rem; }
a.btn { display: inline-block; text-decoration: none; text-align: center; }
.btn-danger { background: var(--error); }
.btn-danger:hover { background: #8c1d17; }
.btn-ghost.active { background: var(--forest); color: #fff; border-color: var(--forest); }
select {
  font: inherit; font-weight: 400; padding: .7rem .85rem;
  border: 1px solid var(--line); border-radius: 10px; background: #fbfcfa;
}
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: .88rem; margin: .4rem 0; font-weight: 400; }
.crumbs { margin: 0 0 1rem; font-size: .92rem; }
.crumbs a { text-decoration: none; font-weight: 500; }
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; margin: 1.5rem 0;
}
.panel h3 { margin-top: 0; }
.callout { border-color: var(--moss); background: linear-gradient(135deg, #fff 60%, var(--sky)); }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.page-head h1 { margin-bottom: .3rem; }
.section-title { font-size: 1.25rem; margin: 2rem 0 .9rem; }
.section-title a { text-decoration: none; color: inherit; }
.section-title a:hover { color: var(--forest); }
.count {
  font-size: .8rem; vertical-align: middle; background: var(--sky); color: var(--forest);
  padding: .15rem .55rem; border-radius: 999px; margin-left: .3rem;
}
.chips { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a {
  display: inline-block; text-decoration: none; padding: .35rem .8rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-weight: 500; font-size: .92rem;
}
.chips a:hover { border-color: var(--moss); }
.chips a.active { background: var(--forest); border-color: var(--forest); color: #fff; }
.noscroll { overflow: hidden; }

/* Startseite */
a.tile { text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.tile:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(31, 63, 39, .12); border-color: var(--moss); }
.stats { list-style: none; padding: 0; margin: 0 0 .5rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.stats li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .4rem 1rem; color: var(--muted); }
.stats strong { color: var(--forest); font-size: 1.1rem; }
.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }

/* Karten */
.map { border-radius: var(--radius); border: 1px solid var(--line); background: #e6ece4; z-index: 0; }
.map-big { height: min(72vh, 680px); margin: 1rem 0; }
.map-small { height: 300px; }
.map-picker { height: 360px; margin-top: .6rem; cursor: crosshair; }
.pin { background: none; border: 0; }
.pin span {
  display: block; width: 48px; height: 24px; line-height: 24px; text-align: center;
  background: var(--forest); color: #fff; font-weight: 700; font-size: .8rem;
  border-radius: 999px; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  position: relative;
}
.pin span::after {
  content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -5px;
  border: 5px solid transparent; border-top-color: var(--forest); border-bottom: 0;
}
.leaflet-marker-icon.pin:hover span { background: var(--forest-dark); }
.popup-img { width: 100%; max-width: 220px; height: 120px; object-fit: cover; border-radius: 8px; display: block; margin-bottom: .4rem; }
.leaflet-popup-content { font: inherit; font-size: .9rem; line-height: 1.45; }

/* Wanderung: Detailseite + Formular */
.year-badge {
  display: inline-block; background: var(--forest); color: #fff; font-weight: 700;
  padding: .2rem .7rem; border-radius: 999px; font-size: .9rem;
}
.hike-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.hike-head h1 { margin: .5rem 0 .5rem; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; color: var(--muted); }
.hike-body { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.hike-body.has-map { grid-template-columns: 3fr 2fr; }
.hike-body .panel { margin: 0; }
.story { line-height: 1.65; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.span2 { grid-column: 1 / -1; }
.place-search { display: flex; gap: .5rem; margin-top: .35rem; }
.place-search input { flex: 1; min-width: 0; }
.form-actions { display: flex; gap: .75rem; }
.danger-zone { display: block; margin-top: 1rem; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; }
.g-item { margin: 0; }
.g-item a { display: block; border-radius: 10px; overflow: hidden; background: var(--line); }
.g-item img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; transition: transform .25s; }
.g-item a:hover img { transform: scale(1.04); }
.g-item figcaption { font-size: .82rem; color: var(--muted); margin-top: .3rem; }

.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(12, 20, 14, .94);
  display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: calc(100vw - 9rem); max-height: calc(100vh - 7rem); border-radius: 8px; object-fit: contain; }
.lightbox figcaption { color: #e9efe8; font-size: .9rem; margin-top: .6rem; text-align: center; display: grid; gap: .25rem; }
.lb-meta { color: #a9b8ab; font-size: .82rem; }
.lb-actions { display: flex; gap: 1rem; justify-content: center; }
.lb-actions a, .lb-actions button { color: #cfe3d4; background: none; border: 0; font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; padding: 0; }
.lb-actions button[hidden] { display: none; }
.lb-close, .lb-prev, .lb-next {
  background: rgba(255, 255, 255, .1); color: #fff; border: 0; border-radius: 999px;
  width: 3rem; height: 3rem; font-size: 1.8rem; line-height: 1; cursor: pointer; flex: none;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255, 255, 255, .22); }
.lb-close { position: absolute; top: 1rem; right: 1rem; }

/* Upload */
.uploader { gap: .9rem; }
.dropzone {
  display: block; position: relative; border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 1.75rem 1rem; text-align: center; background: #fbfcfa; cursor: pointer; font-weight: 400;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--moss); background: var(--sky); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone small { color: var(--muted); }
.upload-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; font-size: .9rem; }
.upload-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem .7rem; border-radius: 8px; background: var(--sand); }
.upload-list .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-list .state { color: var(--muted); flex: none; text-align: right; }
.upload-list li.ok .state { color: var(--ok); }
.upload-list li.err { background: var(--error-bg); }
.upload-list li.err .state { color: var(--error); flex: 1; }

/* Zeitstrahl */
.tl-tools { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin: 1rem 0; }
.tl-tools input { flex: 1; min-width: 220px; }
.tl-sort { display: flex; gap: .4rem; }
.tl-rail {
  position: sticky; top: 3.6rem; z-index: 500;
  display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: thin;
  background: rgba(247, 244, 236, .95); backdrop-filter: blur(6px);
  padding: .6rem .2rem; margin: 0 0 1rem; border-bottom: 1px solid var(--line);
}
.tl-rail a, .tl-rail .gap {
  flex: none; font-size: .8rem; font-weight: 600; padding: .3rem .5rem; border-radius: 999px;
  text-decoration: none;
}
.tl-rail a { color: var(--forest); background: #fff; border: 1px solid var(--line); }
.tl-rail a:hover { border-color: var(--moss); }
.tl-rail a.active { background: var(--forest); color: #fff; border-color: var(--forest); }
.tl-rail .gap { color: #b9c3ba; font-weight: 400; padding: .3rem .25rem; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px;
  background: linear-gradient(var(--moss), var(--forest)); border-radius: 3px;
}
.tl-item { position: relative; width: 50%; padding: 0 2.25rem 2rem 0; scroll-margin-top: 8rem; }
.tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 2rem 2.25rem; }
.tl-dot {
  position: absolute; top: 1.4rem; right: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 4px solid var(--forest); z-index: 1;
}
.tl-item:nth-child(even) .tl-dot { right: auto; left: -9px; }
.tl-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.tl-card:hover { box-shadow: 0 10px 30px rgba(31, 63, 39, .12); border-color: var(--moss); }
.tl-item.flash .tl-card { animation: tlflash 1.2s ease; }
@keyframes tlflash { 0%, 40% { border-color: var(--forest); box-shadow: 0 0 0 4px rgba(111, 154, 91, .35); } 100% { box-shadow: none; } }
.tl-card h2 { font-size: 1.15rem; margin: .55rem 0 .4rem; }
.tl-card h2 a { text-decoration: none; color: var(--ink); }
.tl-card h2 a:hover { color: var(--forest); }
.tl-facts { color: var(--muted); font-size: .88rem; margin: 0 0 .6rem; line-height: 1.6; }
.tl-facts .sep { margin: 0 .4rem; opacity: .5; }
.tl-text { margin: 0 0 .75rem; line-height: 1.55; }
.tl-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; margin-bottom: .6rem; }
.tl-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; display: block; }
.tl-more { font-weight: 600; font-size: .9rem; text-decoration: none; }

/* Startseite: Zufallsfoto + Erinnerung */
.home-feature { display: grid; grid-template-columns: 3fr 2fr; gap: 1.25rem; margin: 1.5rem 0; align-items: stretch; }
.home-feature.single { grid-template-columns: 1fr; }
.home-feature .panel { margin: 0; }
.featured-photo {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  min-height: 260px; background: var(--line); color: #fff; text-decoration: none;
}
.featured-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.featured-photo:hover img { transform: scale(1.03); }
.featured-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.2rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .65)); font-weight: 600;
}
.featured-label .year-badge { margin-right: .4rem; }
.featured-hint {
  position: absolute; top: .75rem; right: .75rem; font-size: .75rem; padding: .25rem .6rem;
  border-radius: 999px; background: rgba(0, 0, 0, .45);
}
.memory { display: flex; flex-direction: column; gap: .2rem; }
.memory h3 { margin: .2rem 0; font-size: 1.25rem; }
.memory p { margin: .2rem 0 .6rem; line-height: 1.5; }
.memory .btn { align-self: flex-start; margin-top: auto; }
.memory-kicker { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--moss); }

/* Archiv */
.toggle { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; font-size: .92rem; cursor: pointer; }
.toggle input { width: 1.1rem; height: 1.1rem; accent-color: var(--forest); }
.archive-rail a.empty { color: #9aa79c; background: transparent; border-color: transparent; font-weight: 400; }
.archive-rail a.empty.active { background: var(--forest); color: #fff; }
.archive { display: grid; gap: 1rem; }
.year-section {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.4rem; scroll-margin-top: 8rem;
}
.year-section.is-empty { background: rgba(255, 255, 255, .55); padding-top: .8rem; padding-bottom: .8rem; }
.year-section.flash { animation: tlflash 1.2s ease; }
.year-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.year-head h2 { margin: 0; font-size: 1.6rem; color: var(--forest); min-width: 4.2rem; }
.is-empty .year-head h2 { color: #9aa79c; font-size: 1.25rem; }
.year-info { flex: 1; display: flex; flex-direction: column; gap: .15rem; min-width: 200px; }
.year-hike { font-weight: 600; text-decoration: none; }
.year-hike:hover { text-decoration: underline; }
.year-counts { font-size: .85rem; }
.year-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.year-section .gallery { margin-top: 1rem; }
.year-empty { margin: .4rem 0 0; font-size: .9rem; }
.year-upload { margin-top: .9rem; }
.year-upload summary {
  cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--forest);
  list-style: none; display: inline-block; padding: .3rem 0;
}
.year-upload summary::-webkit-details-marker { display: none; }
.year-upload[open] summary { margin-bottom: .6rem; }
.doc-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .45rem; }
.doc-list li {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfa;
}
.doc-icon {
  flex: none; width: 2.8rem; height: 2.2rem; display: grid; place-items: center; border-radius: 6px;
  font-size: .68rem; font-weight: 800; color: #fff; background: #6b7a6e; letter-spacing: .03em;
}
.doc-pdf { background: #c0392b; }
.doc-doc, .doc-docx, .doc-odt, .doc-rtf { background: #2b5797; }
.doc-xls, .doc-xlsx, .doc-ods, .doc-csv { background: #1e7145; }
.doc-ppt, .doc-pptx, .doc-odp { background: #d24726; }
.doc-gpx, .doc-kml { background: var(--moss); }
.doc-main { flex: 1; min-width: 160px; display: flex; flex-direction: column; }
.doc-main a { font-weight: 600; text-decoration: none; word-break: break-word; }
.doc-main a:hover { text-decoration: underline; }
.section-link { font-size: .85rem; font-weight: 600; margin-left: .6rem; text-decoration: none; }
.map-years { position: static; margin-top: .5rem; }
.popup-links { display: flex; gap: .8rem; margin-top: .4rem; font-weight: 600; }
.tl-links { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Mitglieder */
form.inline { display: inline-block; }
form.role-form { display: inline-flex; gap: .3rem; align-items: center; }
.role-form select { padding: .35rem .5rem; font-size: .88rem; }
.badge {
  display: inline-block; min-width: 1.2rem; padding: 0 .35rem; margin-left: .2rem;
  border-radius: 999px; background: #d9822b; color: #fff; font-size: .75rem; line-height: 1.2rem; text-align: center;
}
.member-list { display: grid; }
.member {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .9rem 0; border-top: 1px solid var(--line);
}
.member:first-child { border-top: 0; padding-top: 0; }
.member-info { line-height: 1.5; }
.member-msg { margin: .3rem 0; font-style: italic; }
.member-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px;
  background: var(--forest); color: #fff; vertical-align: middle; margin: 0 .2rem;
}
.tag-soft { background: var(--sky); color: var(--forest); }

@media (max-width: 760px) {
  .topbar { padding: .6rem 1rem; }
  .mainnav { order: 3; width: 100%; justify-content: space-between; }
  .mainnav a { padding: .4rem .6rem; font-size: .9rem; }
  .wrap { padding: 1.5rem 1rem; }
  .wrap h1 { font-size: 1.6rem; }
  .tl-rail { top: 6.4rem; }
  .timeline::before { left: 8px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 1.5rem 2rem; }
  .tl-dot, .tl-item:nth-child(even) .tl-dot { left: 0; right: auto; }
  .hike-body.has-map, .form-grid, .home-feature { grid-template-columns: 1fr; }
  .hike-head { flex-direction: column; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .4rem; }
  .lightbox { padding: .5rem; }
  .lightbox img { max-width: 100vw; max-height: calc(100vh - 8rem); }
  .lb-prev, .lb-next { position: absolute; bottom: 1rem; }
  .lb-prev { left: 1rem; } .lb-next { right: 1rem; }
  .map-big { height: 65vh; }
}
