/* Grundlayout. Farben, Schriften und Formen kommen aus Variablen, die themes.css je Theme setzt. */
:root {
  --bg: #f3f6ff;
  --bg-image: radial-gradient(circle at 10% 0%, #e4ebff 0, transparent 45%),
              radial-gradient(circle at 100% 30%, #fff1e6 0, transparent 40%);
  --card: #ffffff;
  --card-border: #e6ebf7;
  --text: #24304a;
  --muted: #6f7a93;
  --line: #e9edf6;
  --field: #f6f8fd;
  --primary: #4c6ef5;
  --primary-text: #ffffff;
  --primary-soft: #e8edff;
  --accent: #ff922b;
  --danger: #e64980;
  --danger-soft: #ffe3ec;
  --warn: #f76707;
  --ok: #37b24d;
  --ok-soft: #e3f8e7;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 2px 4px rgba(36, 48, 90, .04), 0 8px 24px rgba(36, 48, 90, .06);
  --btn-shadow: 0 2px 0 rgba(36, 48, 90, .08);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: var(--font);
  --head-weight: 800;
  --topbar-bg: rgba(255, 255, 255, .85);
  --nav-active: var(--primary-soft);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  background: var(--bg-image), var(--bg); background-attachment: fixed;
  font: 16px/1.5 var(--font);
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
a { color: var(--primary); text-decoration: none; }
h1, h2, h3, .brand { font-family: var(--font-head); }
h1 { font-size: 1.7rem; font-weight: var(--head-weight); margin: .2rem 0 .6rem; letter-spacing: -.01em; }
h2 { font-size: 1.12rem; font-weight: var(--head-weight); margin: 0 0 .7rem; }
h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1.1rem 0 .3rem; }
h2.warn { color: var(--warn); }
small { font-size: .82rem; }
.muted { color: var(--muted); }
.empty { color: var(--muted); }

/* ---------- Layout */
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1rem;
  padding: .6rem 1rem; background: var(--topbar-bg); border-bottom: 1px solid var(--card-border);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
}
.brand { font-weight: 800; font-size: 1.1rem; color: var(--text); white-space: nowrap; }
.mainnav { display: flex; gap: .3rem; flex: 1; }
.mainnav a {
  padding: .45rem .8rem; border-radius: 999px; color: var(--muted); display: flex; gap: .4rem; align-items: center;
  font-weight: 600; transition: background .15s, color .15s;
}
.mainnav a:hover { color: var(--text); }
.mainnav a.active { background: var(--nav-active); color: var(--primary); }
.userbox { display: flex; align-items: center; gap: .4rem; margin: 0; }
.container { max-width: 1150px; margin: 0 auto; padding: 1.1rem 1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.grid.two { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .7rem; }
.card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; margin-bottom: 1rem; box-shadow: var(--shadow);
}
.card-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.more { display: inline-block; margin-top: .6rem; font-size: .9rem; font-weight: 600; }
.greeting { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.greeting .big-emoji { font-size: 2.6rem; line-height: 1; }
.greeting h1 { margin: 0; }
.greeting p { margin: 0; }

@media (max-width: 760px) {
  .grid.two { grid-template-columns: 1fr; }
  /* backdrop-filter würde die Kopfleiste zum Bezugsrahmen der fixierten Navigation machen –
     die Leiste landete dann oben statt am unteren Bildschirmrand (iOS Safari, Chrome). */
  .topbar {
    padding: max(.55rem, env(safe-area-inset-top)) .9rem .55rem;
    -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--card);
  }
  .uname { display: none; }
  .mainnav {
    position: fixed; left: .5rem; right: .5rem; bottom: calc(.5rem + env(safe-area-inset-bottom)); justify-content: space-around;
    background: var(--card); border: 1px solid var(--card-border); border-radius: 22px; box-shadow: var(--shadow);
    padding: .3rem .2rem;
  }
  .mainnav a { flex-direction: column; gap: 0; font-size: .7rem; padding: .3rem .5rem; border-radius: 16px; }
  .mainnav a span { font-size: 1.35rem; }
  .brand { flex: 1; }
  h1 { font-size: 1.45rem; }
}
@media (min-width: 761px) { body { padding-bottom: 0; } }

/* ---------- Forms & Buttons */
button, .button {
  font: inherit; font-weight: 600; cursor: pointer; border: 1px solid var(--card-border); background: var(--card);
  color: var(--text); border-radius: 999px; padding: .5rem 1rem; display: inline-block; box-shadow: var(--btn-shadow);
  transition: transform .1s, border-color .15s, background .15s;
}
button:hover, .button:hover { border-color: var(--primary); }
button:active, .button:active { transform: translateY(1px); }
.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.primary:hover { filter: brightness(1.05); }
.danger { background: transparent; color: var(--danger); border-color: var(--danger); box-shadow: none; }
.small { padding: .25rem .7rem; font-size: .85rem; }
.wide { width: 100%; }
button.link { border: 0; background: none; color: var(--muted); padding: .2rem .4rem; box-shadow: none; }
input, select, textarea {
  font: inherit; width: 100%; padding: .6rem .75rem; border: 1px solid var(--card-border); border-radius: var(--radius-sm);
  background: var(--field); color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--primary); }
.form label, .login label { display: block; margin-bottom: .85rem; font-size: .9rem; color: var(--muted); font-weight: 600; }
.form label input, .form label select, .form label textarea, .login label input { margin-top: .3rem; color: var(--text); font-weight: 400; }
.form .row { display: flex; gap: .8rem; flex-wrap: wrap; }
.form .row > label { flex: 1 1 140px; }
.form label.checkline { display: flex; align-items: center; gap: .4rem; flex: 0 0 auto; padding-top: 1.4rem; color: var(--text); white-space: nowrap; }
fieldset { border: 1px solid var(--card-border); border-radius: var(--radius-sm); margin: 0 0 .85rem; padding: .5rem .9rem; }
legend { color: var(--muted); font-size: .9rem; font-weight: 600; padding: 0 .3rem; }
fieldset.seg label, .people label { display: inline-flex; align-items: center; gap: .35rem; margin: .2rem 1rem .2rem 0; color: var(--text); font-weight: 400; }
.actions { display: flex; gap: .6rem; margin-top: .5rem; flex-wrap: wrap; }
form.inline { display: flex; gap: .4rem; margin-top: .6rem; }
form.stack { display: grid; gap: .5rem; margin-bottom: 1rem; }
[hidden] { display: none !important; }

.flash { padding: .75rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; background: var(--primary-soft); font-weight: 600; }
.flash.error { background: var(--danger-soft); color: var(--danger); }
.flash.ok { background: var(--ok-soft); color: var(--ok); }

.login { max-width: 400px; margin: 9vh auto 0; text-align: center; }
.login form { text-align: left; }
.login .big-emoji { font-size: 3.2rem; }
.devhint { font-size: .8rem; color: var(--warn); margin-top: 1rem; }

/* ---------- Chips, Avatare */
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; margin-bottom: .8rem; }
.monthnav { display: flex; align-items: center; gap: .4rem; }
.monthnav strong { min-width: 9.5rem; text-align: center; font-family: var(--font-head); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.toolbar .chips { margin: 0; }
.chip {
  padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--card-border); background: var(--card); color: var(--text);
  font-size: .88rem; font-weight: 600; display: inline-flex; align-items: center; gap: .35rem;
}
.chip.on { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }
.dot { width: .65rem; height: .65rem; border-radius: 50%; display: inline-block; flex: none; }
.avatar {
  display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  color: #fff; font-size: .78rem; font-weight: 800; flex: none; vertical-align: middle; box-shadow: 0 0 0 2px var(--card);
}
.tag { font-size: .72rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }

/* ---------- Listen */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; border-top: 1px dashed var(--line); }
.list > li:first-child { border-top: 0; }
.list.compact > li { padding: .35rem 0; }
.list .what { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.list .what > a, .list .what > strong { overflow-wrap: anywhere; font-weight: 600; }
.right { margin-left: auto; }
.event .when { width: 5.8rem; flex: none; font-size: .85rem; color: var(--muted); }
.event .who { display: flex; gap: .2rem; align-items: center; margin-top: .2rem; }
.event.family .what > a { font-weight: 800; }
.chore form { margin: 0; }
.check {
  width: 2.1rem; height: 2.1rem; border-radius: 50%; padding: 0; border: 2px solid var(--card-border);
  color: transparent; font-weight: 800; box-shadow: none; background: var(--field);
}
.check:hover { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); }
.chore.overdue .what small { color: var(--warn); font-weight: 700; }
.meal-line { margin: .25rem 0; }

/* ---------- Monatskalender */
.month {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line);
  border: 1px solid var(--card-border); border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; box-shadow: var(--shadow);
}
.month .wd { background: var(--card); text-align: center; font-size: .78rem; font-weight: 700; color: var(--muted); padding: .35rem 0; }
.month .day { background: var(--card); min-height: 6.2rem; padding: .3rem; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.month .day.other { background: var(--field); }
.month .day.other .daynum { color: var(--muted); }
.daynum { font-size: .82rem; font-weight: 700; color: var(--text); align-self: flex-start; padding: 0 .4rem; border-radius: 999px; }
.daynum:hover { background: var(--primary-soft); }
.day.today .daynum { background: var(--primary); color: var(--primary-text); }
.pill {
  font-size: .74rem; font-weight: 600; padding: 1px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--text); border-left: 3px solid var(--c);
}
.pill.family { background: var(--c); color: #fff; }
@media (max-width: 760px) {
  .month .day { min-height: 3.6rem; }
  .pill { font-size: 0; height: 6px; padding: 0; border: 0; background: var(--c); }
}

/* ---------- Essensplan */
.mealplan { width: 100%; border-collapse: collapse; table-layout: fixed; }
.mealplan th { text-align: left; font-size: .85rem; color: var(--muted); padding: .3rem; }
.mealplan tbody th { width: 3.6rem; }
.mealplan td { padding: .25rem; }
.mealplan tr.today th { color: var(--primary); }
.mealplan tr.today td .meal { border-color: var(--primary); }
.meal {
  width: 100%; min-height: 3.4rem; text-align: left; display: flex; flex-direction: column; gap: .1rem;
  background: var(--field); border-radius: var(--radius-sm); box-shadow: none; overflow-wrap: break-word; hyphens: auto;
}
@media (max-width: 760px) {
  .meal { font-size: .85rem; padding: .4rem .45rem; }
  .mealplan tbody th { width: 2.8rem; }
}
.meal small { color: var(--muted); font-weight: 400; }
.meal.empty-cell { align-items: center; justify-content: center; color: var(--muted); font-size: 1.3rem; border-style: dashed; }
.wishes li form { margin: 0; }
.vote { padding: .25rem .55rem; font-size: .85rem; white-space: nowrap; }
.vote.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
dialog {
  border: 1px solid var(--card-border); border-radius: var(--radius); background: var(--card); color: var(--text);
  width: min(440px, calc(100vw - 2rem)); padding: 1.3rem; box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(10, 15, 30, .4); }
dialog #deletemeal { margin-top: .8rem; }

/* ---------- Einstellungen */
.settings-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--text); padding: .3rem .6rem; border-radius: 999px; font-weight: 600; }
.settings-link.active { background: var(--nav-active); }
.copyrow { display: flex; gap: .4rem; }
.copyrow input { font-family: ui-monospace, monospace; font-size: .8rem; }
.hint { background: var(--primary-soft); border-radius: var(--radius-sm); padding: .75rem .95rem; font-size: .92rem; }
.hint ol { margin: .3rem 0 0; padding-left: 1.2rem; }
.status { font-weight: 700; }
.status.ok { color: var(--ok); }
.status.warn { color: var(--warn); }
.toggle { display: flex !important; align-items: center; gap: .5rem; color: var(--text) !important; font-weight: 400 !important; }

/* Theme-Auswahl */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; margin-bottom: .8rem; }
.theme-card { display: block !important; margin: 0 !important; cursor: pointer; }
.theme-card input { position: absolute; opacity: 0; }
.theme-card .preview {
  display: block; height: 82px; border-radius: 14px; border: 3px solid transparent; position: relative; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
.theme-card .preview i { position: absolute; left: 10px; right: 10px; height: 14px; border-radius: 7px; }
.theme-card .preview i:nth-child(1) { top: 12px; right: 45%; }
.theme-card .preview i:nth-child(2) { top: 34px; }
.theme-card .preview i:nth-child(3) { top: 56px; right: 60%; }
.theme-card .name { display: block; margin-top: .35rem; color: var(--text); font-weight: 700; text-align: center; }
.theme-card input:checked + .preview { border-color: var(--primary); }
.theme-card input:focus-visible + .preview { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- Punkte & Bestenliste */
.points-badge {
  font-size: .75rem; font-weight: 800; padding: .1rem .45rem; border-radius: 999px; white-space: nowrap;
  background: color-mix(in srgb, var(--accent) 22%, transparent); color: color-mix(in srgb, var(--accent) 55%, var(--text));
}
.points-pick { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .3rem; }
.chip-radio { display: inline-flex !important; margin: 0 !important; cursor: pointer; }
.chip-radio input { position: absolute; opacity: 0; }
.chip-radio span {
  padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--card-border); background: var(--card);
  color: var(--text); font-weight: 700;
}
.chip-radio input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.chip-radio input:focus-visible + span { outline: 2px solid var(--primary); }
.podium { display: flex; justify-content: center; align-items: flex-end; gap: .6rem; margin: .5rem 0 1rem; }
.podium .step { display: flex; flex-direction: column; align-items: center; gap: .2rem; width: 30%; max-width: 150px; text-align: center; }
.podium .step strong { overflow-wrap: anywhere; }
.podium .medal { font-size: 1.8rem; line-height: 1; }
.podium .avatar { width: 2.6rem; height: 2.6rem; font-size: 1.1rem; }
.podium .pts { font-weight: 800; color: var(--primary); }
.podium .block { width: 100%; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--primary-soft); }
.podium .place-1 .block { height: 90px; background: color-mix(in srgb, #fcc419 45%, var(--card)); }
.podium .place-2 .block { height: 62px; background: color-mix(in srgb, #adb5bd 45%, var(--card)); }
.podium .place-3 .block { height: 42px; background: color-mix(in srgb, #e8a26b 45%, var(--card)); }
.board .rank { width: 1.6rem; font-weight: 800; color: var(--muted); }
.board li.me { background: var(--primary-soft); border-radius: var(--radius-sm); padding-left: .5rem; padding-right: .5rem; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.badge {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem; padding: .8rem .6rem;
  border-radius: var(--radius-sm); background: var(--field); border: 1px solid var(--card-border);
}
.badge .emoji { font-size: 2rem; line-height: 1.2; }
.badge small { font-size: .76rem; }
.badge:not(.locked) { background: color-mix(in srgb, var(--accent) 12%, var(--card)); border-color: color-mix(in srgb, var(--accent) 45%, var(--card-border)); }
.badge.locked { opacity: .75; }
.badge.locked .emoji { filter: grayscale(1); opacity: .6; }
.bar { display: block; width: 80%; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: .25rem; }
.bar i { display: block; height: 100%; background: var(--primary); }
@media (max-width: 760px) {
  .mainnav a { padding: .3rem .25rem; font-size: .66rem; }
  .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 761px) and (max-width: 1300px) {
  .uname { display: none; }
  .topbar { gap: .5rem; }
  .mainnav { gap: .1rem; }
  .mainnav a { padding: .4rem .5rem; font-size: .9rem; gap: .25rem; }
}

/* ---------- Orte */
.place-row { display: flex; gap: .4rem; margin-top: .3rem; }
.place-row input { margin-top: 0 !important; flex: 1; min-width: 0; }
.place-row button { white-space: nowrap; }
.place-status { margin: -.4rem 0 .4rem; font-size: .85rem; }
.place-results { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .35rem; }
.place-results button {
  width: 100%; text-align: left; display: flex; flex-direction: column; border-radius: var(--radius-sm);
  font-weight: 400; box-shadow: none;
}
.place-results small { font-size: .75rem; }
.place-map { margin: -.3rem 0 .9rem; }
.place-map iframe { width: 100%; height: 190px; border: 1px solid var(--card-border); border-radius: var(--radius-sm); }
.place-map small { display: block; margin-top: .2rem; }
.place-link { color: inherit; }

/* ---------- Events */
.section-title { margin: 1.2rem 0 .7rem; }
.outing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.outing-card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--text);
  transition: transform .15s;
}
.outing-card:hover { transform: translateY(-2px); }
.outing-card .cover { position: relative; display: block; aspect-ratio: 16 / 10; background: color-mix(in srgb, var(--cat) 22%, var(--card)); }
.outing-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-emoji { display: grid; place-items: center; height: 100%; font-size: 3.2rem; }
.cat-badge {
  position: absolute; left: .6rem; top: .6rem; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 800;
  background: color-mix(in srgb, var(--cat) 85%, black); color: #fff;
}
.outing-card .body { display: flex; flex-direction: column; gap: .2rem; padding: .7rem .9rem .9rem; }
.outing-card .body strong { font-size: 1.05rem; }
.stars { color: #f5b301; letter-spacing: 1px; white-space: nowrap; }
.stars i { font-style: normal; color: var(--line); }
.stars i.on { color: #f5b301; }
.stars i.half { background: linear-gradient(90deg, #f5b301 50%, var(--line) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars b { color: var(--text); margin-left: .3rem; letter-spacing: 0; }
.stars.none { font-size: .8rem; color: var(--muted); }
.stars.small { font-size: .85rem; }
.rate-hint { margin-bottom: 1rem; }
.empty-state { text-align: center; padding: 2rem 1rem; }
.empty-state .big-emoji { font-size: 3rem; }

.outing-hero {
  position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; min-height: 190px; max-height: 360px;
  display: flex; align-items: flex-end; background: color-mix(in srgb, var(--cat) 30%, var(--card)); box-shadow: var(--shadow);
}
.outing-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.outing-hero .cover-emoji { position: absolute; inset: 0; font-size: 5rem; opacity: .5; }
.outing-hero .hero-text {
  position: relative; width: 100%; padding: 2.5rem 1.2rem 1rem; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .65));
}
.outing-hero .cat-badge { position: static; display: inline-block; }
.outing-hero h1 { color: #fff; margin: .3rem 0 .1rem; text-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.outing-hero p { margin: 0; opacity: .95; }
.outing-hero:has(> img) { height: clamp(210px, 36vw, 380px); }
.description { white-space: pre-line; }
.who-line { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }

.upload { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .8rem; }
.upload-btn { cursor: pointer; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .4rem; }
.gallery .thumb { padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; position: relative; box-shadow: none; }
.gallery .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-flag { position: absolute; left: .3rem; bottom: .3rem; font-size: .65rem; font-weight: 800; background: rgba(0,0,0,.6); color: #fff; padding: .05rem .4rem; border-radius: 999px; }
.lightbox { width: min(1100px, 96vw); max-width: none; padding: .6rem; background: #111; border-color: #333; }
.lightbox img { display: block; max-width: 100%; max-height: 75vh; margin: 0 auto; border-radius: 8px; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; color: #ddd; margin: .4rem 0; }
.lb-bar button { font-size: 1.4rem; padding: .1rem .9rem; }
.lb-actions { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.lb-actions form { margin: 0; }

.rating-summary { display: flex; gap: 1rem; align-items: center; margin-bottom: .8rem; }
.rating-summary .big { font-size: 2.6rem; font-weight: 900; line-height: 1; }
.histogram { display: grid; gap: 2px; margin-top: .3rem; font-size: .75rem; color: var(--muted); }
.histogram div { display: grid; grid-template-columns: 1.6rem 1fr 1.2rem; gap: .3rem; align-items: center; }
.histogram i { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; display: block; }
.histogram b { display: block; height: 100%; background: #f5b301; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .1rem; margin: .2rem 0 .5rem; }
.star-input input { position: absolute; opacity: 0; width: 1px; }
.star-input label { font-size: 2.1rem; line-height: 1; color: var(--line); cursor: pointer; margin: 0 !important; transition: transform .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f5b301; }
.star-input label:active { transform: scale(1.2); }
.star-input input:focus-visible + label { outline: 2px solid var(--primary); border-radius: 4px; }
.review-form h3 { margin-top: .4rem; }
.reviews { margin-top: .8rem; }
.reviews li { align-items: flex-start; }
.review-text { margin: .2rem 0; white-space: pre-line; }

/* ---------- Globus */
.globe-page { position: relative; }
#globe { height: calc(100vh - 170px); min-height: 420px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #0b1026; }
.globe-legend { display: flex; flex-wrap: wrap; gap: .35rem; margin: .7rem 0; }
.pin {
  width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center;
  background: var(--pin); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .45); cursor: pointer;
}
.pin span { transform: rotate(45deg); font-size: 16px; }
.maplibregl-popup-content { border-radius: 14px !important; padding: 0 !important; overflow: hidden; font: 14px/1.4 var(--font); color: #24304a; min-width: 200px; }
.pop img { width: 100%; height: 120px; object-fit: cover; display: block; }
.pop div { padding: .6rem .8rem .7rem; display: flex; flex-direction: column; gap: .15rem; }
.pop a.button { margin-top: .3rem; text-align: center; }
.globe-list { margin-top: 1rem; }
.globe-list button { width: 100%; text-align: left; display: flex; gap: .6rem; align-items: center; box-shadow: none; border-radius: var(--radius-sm); }
@media (max-width: 760px) {
  #globe { height: 62vh; }
  .outing-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .outing-card .body { padding: .5rem .6rem .7rem; }
  .outing-card .body strong { font-size: .95rem; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .mainnav a { font-size: .6rem; padding: .3rem .1rem; }
  .mainnav a span { font-size: 1.25rem; }
}
.mainnav .lbl { font-style: normal; }
@media (min-width: 761px) and (max-width: 1100px) {
  /* Mittlere Breiten: nur Symbole, Name als Tooltip */
  .mainnav .lbl { display: none; }
  .mainnav a span { font-size: 1.25rem; }
}
@media (max-width: 760px) {
  .chips.scroll { flex-wrap: nowrap; overflow-x: auto; margin-left: -1rem; margin-right: -1rem; padding: 0 1rem .2rem; scrollbar-width: none; }
  .chips.scroll::-webkit-scrollbar { display: none; }
  .chips.scroll .chip { flex: none; }
}
