/* ── Reset & Variables ──────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* African-inspired palette */
  --primary:    #b8522a;  /* terracotta clay */
  --primary-dk: #9a4221;  /* darker terracotta */
  --gold:       #c49428;  /* desert gold */
  --green:      #2d7a4f;  /* savanna green */
  --red:        #b91c1c;  /* error */
  --warn:       #b87718;  /* warm amber */

  --text:       #1e120a;  /* dark coffee */
  --muted:      #7a6255;  /* warm brown-grey */
  --border:     #dfd0c1;  /* warm sand border */
  --bg:         #fffdf8;  /* warm white */
  --bg-soft:    #faf3e8;  /* parchment */
  --bg-card:    #fffcf4;  /* card */

  --radius:     8px;
  --shadow:     0 1px 3px rgba(60,30,10,.10), 0 1px 2px rgba(60,30,10,.07);
  --shadow-md:  0 4px 8px rgba(60,30,10,.09), 0 2px 4px rgba(60,30,10,.07);
  --font:       system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max-w:      720px;
  --pad:        1rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-soft);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* ── Layout ─────────────────────────────────────────────────────────────────── */

.container   { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }
.main-content { padding-top: 1.5rem; padding-bottom: 3rem; }

/* ── Buttons ────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .5rem 1.25rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, border-color .15s, opacity .15s;
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--font);
}
.btn:hover { text-decoration: none; opacity: .88; }
.btn:active { opacity: .75; }

.btn-primary   { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-secondary { background: var(--bg);      color: var(--text); border-color: var(--border); }
.btn-success   { background: var(--green);   color: #fff; }
.btn-danger    { background: var(--red);     color: #fff; }
.btn-warn      { background: var(--warn);    color: #fff; }
.btn-sm        { min-height: 36px; padding: .3rem .85rem; font-size: .875rem; }
.btn-full      { width: 100%; }
.btn-link      { background: none; border: none; color: var(--primary); cursor: pointer; font: inherit; padding: 0; min-height: auto; }
.btn-link:hover { text-decoration: underline; }
button         { font-family: var(--font); }

/* ── Flash messages ─────────────────────────────────────────────────────────── */

.flash { padding: .75rem 0; font-size: .95rem; }
.flash-info  { background: #fdf6ec; color: #7a4a10; border-bottom: 2px solid #e8c88a; }
.flash-error { background: #fef2f2; color: #991b1b; border-bottom: 2px solid #fecaca; }
.flash-info-inline  { background: #fdf6ec; color: #7a4a10; padding: .6rem .9rem; border-radius: var(--radius); margin-bottom: 1rem; }
.flash-error-inline { background: #fef2f2; color: #991b1b; padding: .6rem .9rem; border-radius: var(--radius); margin-bottom: 1rem; }

/* ── Site header ────────────────────────────────────────────────────────────── */

.site-header {
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 1rem;
}
.site-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -.01em;
}
.site-logo:hover { text-decoration: none; color: var(--primary-dk); }
.site-nav { display: flex; gap: .2rem; align-items: center; flex-wrap: wrap; }
.site-nav a {
  padding: .4rem .7rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: .9rem;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.site-nav a:hover { background: var(--bg-soft); color: var(--text); text-decoration: none; }
.nav-admin { color: var(--primary) !important; font-weight: 500; }

/* ── Footer ─────────────────────────────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--border); padding: 1rem 0; margin-top: 2rem; background: var(--bg); }
.footer-inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-copy { color: var(--muted); font-size: .875rem; }
.logout-form { margin: 0; }

/* ── Map (visitor) ──────────────────────────────────────────────────────────── */

.map-preview-wrap {
  position: relative;
  height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
#map-preview { height: 100%; }
.map-link-overlay {
  position: absolute;
  bottom: .75rem;
  right: .75rem;
  z-index: 1000;
  background: rgba(255,253,248,.92);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .3rem .75rem;
  font-size: .8rem;
  color: var(--primary);
  backdrop-filter: blur(4px);
}
.map-link-overlay:hover { text-decoration: none; background: var(--bg); }

.map-legend {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,253,248,.95);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .5rem 1.25rem;
  display: flex;
  gap: 1.25rem;
  font-size: .85rem;
  z-index: 1000;
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}
.legend-item { display: flex; align-items: center; gap: .4rem; }
.legend-item::before { content: ''; display: inline-block; width: 24px; height: 3px; border-radius: 2px; }
.legend-travelled::before { background: #1a6ebd; }
.legend-planned::before   { background: #c49428; border-top: 3px dashed #c49428; height: 0; }

/* Post location marker on map */
.post-marker {
  width: 12px;
  height: 12px;
  background: var(--primary);
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
}

/* Photo thumbnail marker on map */
.photo-marker {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,.45);
  cursor: pointer;
  transition: transform .15s;
}
.photo-marker:hover { transform: scale(1.15); }

/* ── Post list ──────────────────────────────────────────────────────────────── */

.post-list { display: flex; flex-direction: column; gap: 1.5rem; }

.post-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow .2s;
}
.post-card:hover { box-shadow: var(--shadow-md); }
.post-card-img-wrap { display: block; }
.post-card-img { width: 100%; height: 200px; object-fit: cover; }
.post-card-body { padding: 1.25rem; }
.post-card-title { font-size: 1.2rem; margin: .35rem 0 .5rem; }
.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--primary); }
.post-card-excerpt { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.post-meta-location { font-size: .85rem; color: var(--primary); display: block; font-weight: 500; }
.post-meta-date { font-size: .85rem; color: var(--muted); display: block; margin-bottom: .5rem; }

.empty-state { color: var(--muted); font-style: italic; padding: 2rem 0; text-align: center; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.pagination-info { color: var(--muted); font-size: .9rem; }

/* ── Subscribe box ──────────────────────────────────────────────────────────── */

.subscribe-box {
  background: linear-gradient(135deg, #fdf5e4 0%, #faf0d8 100%);
  border: 1px solid #e8c88a;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}
.subscribe-box h3 { margin-bottom: .5rem; color: var(--primary); }
.subscribe-box p { color: var(--muted); margin-bottom: 1rem; font-size: .95rem; }
.subscribe-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.subscribe-form input[type=email] {
  flex: 1;
  min-width: 0;
  padding: .6rem .9rem;
  border: 1.5px solid #e0c090;
  border-radius: var(--radius);
  font: inherit;
  font-size: .95rem;
  min-height: 44px;
  background: var(--bg);
}
.subscribe-form input[type=email]:focus { outline: none; border-color: var(--primary); }

/* ── Single post ────────────────────────────────────────────────────────────── */

.post-full { margin-bottom: 2rem; }
.post-header { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--border); }
.post-title { font-size: 1.75rem; line-height: 1.3; margin-bottom: .5rem; }
.post-meta { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }

/* Quill rendered content */
.post-body { font-size: 1.05rem; line-height: 1.85; }
.post-body h2 { font-size: 1.4rem; margin: 1.75rem 0 .75rem; color: var(--primary); }
.post-body h3 { font-size: 1.15rem; margin: 1.5rem 0 .6rem; }
.post-body p  { margin-bottom: 1rem; }
.post-body ul, .post-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.post-body blockquote {
  border-left: 4px solid var(--gold);
  padding: .5rem 1rem;
  margin: 1rem 0;
  color: var(--muted);
  background: #fdf8ee;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
.post-body a { color: var(--primary); }

/* Photo gallery */
.foto-galerie {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
  margin-bottom: 1.75rem;
}
.foto-karte { border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.galerie-bild { width: 100%; height: 180px; object-fit: cover; cursor: zoom-in; transition: opacity .15s; }
.galerie-bild:hover { opacity: .92; }
.foto-karte figcaption { padding: .35rem .6rem; font-size: .8rem; color: var(--muted); }

/* Lightbox */
.lightbox {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
}
.lightbox::backdrop { background: rgba(20,10,4,.92); }

/* Full-screen wrapper — all controls positioned absolutely inside here */
.lightbox-wrap {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: rgba(20,10,4,.93);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; pointer-events: none; }

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,.15);
  border: none;
  color: white;
  font-size: 1.75rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background .15s;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none;
  color: white;
  font-size: 2.5rem;
  width: 48px;
  height: 80px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background .15s;
  line-height: 1;
}
.lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-prev { left: .5rem; }
.lightbox-next { right: .5rem; }

.lightbox-zaehler {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  background: rgba(0,0,0,.4);
  padding: .2rem .7rem;
  border-radius: 20px;
  pointer-events: none;
}

/* Divider */
.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* Comments */
.kommentare h2 { margin-bottom: 1.25rem; }
.kommentar {
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.kommentar-meta { display: flex; gap: .75rem; align-items: baseline; flex-wrap: wrap; margin-bottom: .5rem; }
.kommentar-meta strong { color: var(--text); }
.kommentar-meta time { font-size: .85rem; color: var(--muted); }
.kommentar-body { color: var(--text); white-space: pre-wrap; }

.kommentar-formular { margin-top: 2rem; }
.kommentar-formular h3 { margin-bottom: 1.25rem; }

/* ── Forms ──────────────────────────────────────────────────────────────────── */

.form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.25rem; }
.form-group label { font-weight: 500; font-size: .9rem; }

.form-group input[type=text],
.form-group input[type=email],
.form-group input[type=url],
.form-group input[type=password],
.form-group textarea {
  display: block;
  width: 100%;
  padding: .6rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: .95rem;
  min-height: 44px;
  background: var(--bg);
  color: var(--text);
  transition: border-color .15s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 120px; }
.input-lg { font-size: 1.05rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.form-hint { font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.required { color: var(--red); }
.optional { font-weight: 400; color: var(--muted); font-size: .85em; }

fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.5rem; }
legend { padding: 0 .5rem; font-weight: 600; font-size: .95rem; }

/* ── Login page ─────────────────────────────────────────────────────────────── */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  padding: 1rem;
}
.login-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-md);
}
.login-title { font-size: 1.5rem; margin-bottom: .25rem; color: var(--primary); }
.login-subtitle { color: var(--muted); margin-bottom: 1.5rem; font-size: .95rem; }
.login-error { color: var(--red); font-size: .9rem; margin-bottom: 1rem; background: #fef2f2; padding: .5rem .75rem; border-radius: 6px; }
.login-form { display: flex; flex-direction: column; gap: .75rem; }
.login-form label { font-weight: 500; font-size: .9rem; }
.login-form input {
  display: block;
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  min-height: 48px;
  color: var(--text);
  background: var(--bg);
}
.login-form input:focus { outline: none; border-color: var(--primary); }

/* ── Info card (404, subscribe result) ──────────────────────────────────────── */

.info-card { text-align: center; padding: 3rem 1rem; }
.info-card h1 { font-size: 2.5rem; margin-bottom: .75rem; color: var(--muted); }
.info-card p { color: var(--muted); }
.error-detail { background: var(--bg-soft); padding: .75rem; border-radius: 6px; font-size: .85rem; margin-top: 1rem; overflow-x: auto; }

/* ── Admin layout ───────────────────────────────────────────────────────────── */

.admin-body { background: var(--bg-soft); }

.admin-header {
  background: #201409;
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 52px;
  flex-wrap: wrap;
}
.admin-logo { color: #e8a84c; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.admin-logo:hover { text-decoration: none; color: #f5c87a; }

.admin-menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  color: #e8a84c;
  font-size: 1.5rem;
  line-height: 1;
  padding: .25rem .5rem;
  cursor: pointer;
}

.admin-nav { display: flex; gap: .2rem; align-items: center; flex-wrap: wrap; flex: 1; }
.admin-nav a {
  color: #b8a090;
  font-size: .875rem;
  padding: .35rem .6rem;
  border-radius: 6px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.admin-nav a:hover { color: white; background: rgba(255,255,255,.1); text-decoration: none; }
.nav-muted { opacity: .6; }

@media (max-width: 719px) {
  .admin-menu-toggle { display: block; }
  .admin-header-inner { height: 52px; overflow: hidden; }
  .admin-header.nav-open .admin-header-inner { height: auto; padding-bottom: .5rem; }
  .admin-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: .1rem;
    padding-top: .25rem;
  }
  .admin-header.nav-open .admin-nav { display: flex; }
  .admin-nav a { min-height: 44px; font-size: 1rem; padding: .5rem .75rem; }
}

.admin-main { padding: 1.5rem 0 3rem; }
.admin-footer { border-top: 1px solid var(--border); padding: .75rem 0; background: var(--bg); }

.page-title { font-size: 1.5rem; margin-bottom: 1.5rem; }
.page-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.page-header-row .page-title { margin-bottom: 0; }

/* ── Stats grid ─────────────────────────────────────────────────────────────── */

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; text-align: center; }
.stat-card-warn { border-color: var(--warn); background: #fdf8ec; }
.stat-card-ok   { border-color: var(--green); }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-card-warn .stat-number { color: var(--warn); }
.stat-label  { font-size: .8rem; color: var(--muted); margin-top: .25rem; }

.admin-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 2rem; }

/* ── Tables ─────────────────────────────────────────────────────────────────── */

.post-table-wrap { overflow-x: auto; }
.post-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.post-table th, .post-table td {
  padding: .65rem .75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.post-table th { font-weight: 600; color: var(--muted); background: var(--bg-soft); }
.post-table tr:hover td { background: var(--bg-soft); }
.date-cell { white-space: nowrap; }
.action-cell { white-space: nowrap; display: flex; gap: .35rem; flex-wrap: wrap; padding-top: .5rem; padding-bottom: .5rem; }
.muted { color: var(--muted); }

/* ── Badges ─────────────────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  padding: .15rem .5rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-published { background: #dcfce7; color: #15803d; }
.badge-draft     { background: #f3f4f6; color: var(--muted); }
.badge-count {
  background: var(--red);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  margin-left: .25rem;
}

/* ── Filter tabs ────────────────────────────────────────────────────────────── */

.filter-tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.filter-tab {
  padding: .4rem .9rem;
  border-radius: 20px;
  font-size: .875rem;
  color: var(--muted);
  border: 1.5px solid transparent;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.filter-tab:hover { background: var(--bg); text-decoration: none; color: var(--text); }
.filter-tab.active { border-color: var(--primary); color: var(--primary); background: #fdf0e8; }

/* ── Comment cards ──────────────────────────────────────────────────────────── */

.comment-card, .comment-preview {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: .75rem;
}
.comment-card-meta, .comment-preview-meta { font-size: .875rem; color: var(--muted); margin-bottom: .5rem; }
.comment-card-meta strong, .comment-preview-meta strong { color: var(--text); }
.comment-card-body, .comment-preview-body { font-size: .95rem; margin-bottom: .75rem; white-space: pre-wrap; }
.comment-actions { display: flex; gap: .5rem; }

/* ── Admin map toolbar ──────────────────────────────────────────────────────── */

.map-toolbar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem var(--pad);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  z-index: 200;
}
.map-layer-btn { background: var(--bg-soft); border: 1.5px solid var(--border); color: var(--muted); }
.map-layer-btn.active { border-color: var(--primary); color: var(--primary); background: #fdf0e8; }
.layer-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.layer-dot-travelled { background: #1a6ebd; }
.layer-dot-planned   { background: #c49428; }
.save-status { font-size: .85rem; }
.save-ok     { color: var(--green); }
.save-error  { color: var(--red); }
.map-help    { padding: .5rem var(--pad); font-size: .8rem; color: var(--muted); background: var(--bg-soft); border-top: 1px solid var(--border); }

/* Leaflet draw toolbar touch sizing */
.leaflet-draw-toolbar a { width: 44px !important; height: 44px !important; line-height: 44px !important; }

/* ── Quill editor ───────────────────────────────────────────────────────────── */

.quill-editor-wrap {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  min-height: 240px;
  background: var(--bg);
}
.quill-editor-wrap .ql-toolbar {
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.quill-editor-wrap .ql-container { border-radius: 0 0 var(--radius) var(--radius); font-size: 1rem; min-height: 200px; }
.quill-editor-wrap .ql-editor { min-height: 200px; }
.ql-editor .ql-align-center { text-align: center; }

/* ── Photo upload ───────────────────────────────────────────────────────────── */

.foto-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  background: var(--bg-soft);
  transition: border-color .15s;
}
.foto-upload-zone.drag-over { border-color: var(--primary); background: #fdf0e8; }
.upload-hint { font-size: .85rem; color: var(--muted); margin-left: .75rem; }

.foto-preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-top: .75rem; }
.foto-preview-karte {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: grab;
}
.foto-preview-karte.dragging  { opacity: .5; }
.foto-preview-karte.drag-target { border-color: var(--primary); }
.foto-preview-karte img { width: 100%; height: 120px; object-fit: cover; pointer-events: none; }
.foto-caption-input {
  width: 100%;
  padding: .4rem .6rem;
  border: none;
  border-top: 1px solid var(--border);
  font: inherit;
  font-size: .8rem;
  background: var(--bg-soft);
  color: var(--text);
}
.foto-caption-input:focus { outline: none; background: var(--bg); }
.foto-delete-btn {
  position: absolute;
  top: .35rem;
  right: .35rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.foto-delete-btn:hover { background: var(--red); }
.foto-uploading { opacity: .6; }
.foto-upload-spinner { display: flex; align-items: center; justify-content: center; height: 120px; font-size: 2rem; background: var(--bg-soft); }

/* GPS banner */
.gps-banner {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  padding: .75rem 1rem;
  background: #fdf8ec;
  border: 1px solid #e8c870;
  border-radius: var(--radius);
  font-size: .9rem;
  margin-top: .75rem;
}
.gps-banner-ok { background: #f0fdf4; border-color: #a3e4b4; }

/* ── Settings ───────────────────────────────────────────────────────────────── */

.settings-form { max-width: 600px; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (min-width: 560px) {
  .foto-galerie { grid-template-columns: repeat(3, 1fr); }
  .galerie-bild { height: 200px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .foto-preview-grid { grid-template-columns: repeat(3, 1fr); }
  .post-card-img { height: 240px; }
}

@media (min-width: 720px) {
  :root { --pad: 1.5rem; }
  .post-title { font-size: 2rem; }
  .foto-galerie { grid-template-columns: repeat(3, 1fr); gap: .75rem; }
  .galerie-bild { height: 220px; }
  .map-preview-wrap { height: 320px; }
  .foto-preview-grid { grid-template-columns: repeat(4, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
}
