/* ─── Reset & Variablen ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Verhindert horizontales Scrollen auf allen Geräten */
html { overflow-x: clip; }
body { overflow-x: hidden; max-width: 100vw; }

:root {
  --bg:        #f5f5f7;
  --bg-2:      #fbfbfd;
  --card:      #ffffff;
  --text:      #1d1d1f;
  --muted:     #6e6e73;
  --border:    rgba(0,0,0,.08);
  --accent:    #0071e3;
  --accent-h:  #0058b0;
  --warm:      #f5a623;
  --radius:    18px;
  --radius-sm: 10px;
  --shadow:    0 2px 8px rgba(0,0,0,.05), 0 0 0 0.5px rgba(0,0,0,.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.13);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* Zugänglichkeit & Feinschliff */
html { scroll-behavior: smooth; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(0,113,227,.18); color: var(--text); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ─── Header (Frosted Glass) ──────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 52px;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid rgba(0,0,0,.12);
  color: var(--text);
  position: sticky; top: 0; z-index: 200;
}

.logo {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ─── Sprachschalter ──────────────────────────────────────────────── */
.lang-switcher {
  display: flex;
  gap: .15rem;
  background: rgba(0,0,0,.05);
  border-radius: 30px;
  padding: .15rem .35rem;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.15rem;
  border-radius: 50%;
  width: 1.85rem; height: 1.85rem;
  display: flex; align-items: center; justify-content: center;
  opacity: .45;
  transition: opacity .2s, transform .15s;
}
.lang-btn:hover { opacity: .8; transform: scale(1.1); }
.lang-btn.active { opacity: 1; background: rgba(255,255,255,.85); box-shadow: 0 1px 4px rgba(0,0,0,.1); }

/* ─── Upload-Button ───────────────────────────────────────────────── */
.btn-upload {
  background: var(--accent);
  color: #fff;
  padding: .42rem 1rem;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s, box-shadow .2s;
  letter-spacing: -.01em;
}
.btn-upload:hover { background: var(--accent-h); box-shadow: 0 2px 8px rgba(0,113,227,.3); }

.btn-logout {
  color: var(--muted);
  font-size: .85rem;
  padding: .35rem .55rem;
  border-radius: 8px;
  transition: color .2s;
}
.btn-logout:hover { color: var(--text); }

/* ─── Allgemeine Buttons ──────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: .6rem 1.4rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: .875rem;
  border: none;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
  letter-spacing: -.01em;
}
.btn-primary:hover { background: var(--accent-h); box-shadow: 0 2px 10px rgba(0,113,227,.28); }
.btn-lg { padding: .8rem 2rem; font-size: .95rem; }
.btn-secondary {
  display: inline-block;
  background: rgba(0,0,0,.05);
  color: var(--text);
  padding: .6rem 1.4rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: .875rem;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.btn-secondary:hover { background: rgba(0,0,0,.09); }
.admin-tools { margin-top: 2rem; padding: 1.2rem; background: #f8fafc; border-radius: 10px; border: 1px solid #e2e8f0; }

/* ─── Terminal Progress Box ───────────────────────────────────────── */
.terminal-box {
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  margin: 2rem auto;
  max-width: 680px;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  font-family: "Menlo", "Monaco", "Courier New", monospace;
}
.terminal-header {
  background: #1e293b;
  padding: .6rem 1rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.terminal-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.terminal-dot.red    { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green  { background: #22c55e; }
.terminal-title {
  margin-left: .5rem;
  font-size: .8rem;
  color: #94a3b8;
}
.terminal-body {
  padding: 1rem 1.25rem;
  min-height: 180px;
  max-height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.terminal-line {
  font-size: .82rem;
  color: #cbd5e1;
  line-height: 1.5;
}
.terminal-line.ok  { color: #4ade80; }
.terminal-line.err { color: #f87171; }

.btn-delete {
  background: transparent;
  color: #ef4444;
  border: 1px solid #ef4444;
  border-radius: 8px;
  padding: .45rem .9rem;
  cursor: pointer;
  font-size: .85rem;
  transition: all .2s;
}
.btn-delete:hover { background: #ef4444; color: #fff; }

/* ─── Hero ────────────────────────────────────────────────────────── */
.hero {
  min-height: 420px;
  background: #0a0a0c;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
/* Mehrschichtige „Aurora" – Fernweh-Stimmung */
.hero::before {
  content: "";
  position: absolute; inset: -10%;
  background:
    radial-gradient(42% 55% at 68% 28%, rgba(0,113,227,.42) 0%, transparent 62%),
    radial-gradient(46% 58% at 18% 72%, rgba(245,166,35,.26) 0%, transparent 60%),
    radial-gradient(40% 50% at 50% 112%, rgba(48,209,88,.20) 0%, transparent 60%);
  filter: saturate(115%);
  animation: heroDrift 22s ease-in-out infinite alternate;
}
/* feines Vignette + Lichtschein oben */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 50% -10%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(120% 100% at 50% 120%, rgba(0,0,0,.45), transparent 55%);
  pointer-events: none;
}
@keyframes heroDrift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1.05); }
  100% { transform: translate3d(2%, 2%, 0) scale(1.12); }
}
.hero-text { position: relative; z-index: 1; max-width: 760px; }
.hero-eyebrow {
  display: inline-block;
  padding: .32rem .9rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 30px;
  background: rgba(255,255,255,.07);
  -webkit-backdrop-filter: saturate(150%) blur(8px);
  backdrop-filter: saturate(150%) blur(8px);
  color: rgba(255,255,255,.88);
  font-size: .7rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -.03em;
  margin-bottom: .7rem;
  text-shadow: 0 1px 30px rgba(0,0,0,.25);
}
.hero p,
.hero .hero-sub {
  font-size: 1.1rem;
  opacity: .82;
  margin-bottom: 0;
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.6;
}
.hero-actions {
  display: flex; gap: .75rem;
  justify-content: center; align-items: center;
  flex-wrap: wrap;
  margin-top: 1.9rem;
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: .4rem;
  color: #fff;
  border: 1px solid rgba(255,255,255,.38);
  background: rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: .72rem 1.5rem;
  border-radius: 20px;
  font-size: .9rem; font-weight: 600;
  letter-spacing: -.01em;
  transition: background .2s, border-color .2s, transform .18s cubic-bezier(.34,1.3,.64,1);
}
.btn-ghost:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.6); transform: translateY(-1px); }

/* ─── Posts-Grid ──────────────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  max-width: 1520px;
  margin: 3rem auto;
  padding: 0 2.5rem;
}
@media (max-width: 1100px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); padding: 0 1.5rem; }
}
@media (max-width: 640px) {
  .posts-grid { grid-template-columns: 1fr; padding: 0 1rem; }
}

/* ─── Card ────────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.34,1.2,.64,1), box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card-media {
  display: block;
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #e8e8ed;
}
.card-media img,
.card-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}
.card:hover .card-media img,
.card:hover .card-media video { transform: scale(1.05); }

/* Featured: erste 3 Artikel größer */
@media (min-width: 1101px) {
  .posts-grid .card:nth-child(1) {
    grid-column: span 2;
  }
  .posts-grid .card:nth-child(1) .card-media {
    aspect-ratio: 16/7;
  }
  .posts-grid .card:nth-child(1) h2 {
    font-size: 1.55rem;
  }
  .posts-grid .card:nth-child(1) .teaser {
    font-size: 1rem;
    -webkit-line-clamp: 4;
  }
}
.posts-grid .card:nth-child(-n+3) h2 {
  font-size: 1.3rem;
}
.posts-grid .card:nth-child(-n+3) .card-media {
  aspect-ratio: 16/9;
}

.media-badge, .gallery-badge {
  position: absolute;
  border-radius: 6px;
  font-size: .75rem;
  padding: .2rem .5rem;
  backdrop-filter: blur(6px);
}
.media-badge {
  top: 10px; left: 10px;
  background: rgba(0,0,0,.55); color: #fff;
}
.gallery-badge {
  bottom: 10px; right: 10px;
  background: rgba(0,0,0,.55); color: #fff;
}

.card-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }

.card-meta { display: flex; align-items: center; gap: .45rem; margin-bottom: .65rem; flex-wrap: wrap; }

.location-pill {
  font-size: .75rem; font-weight: 600;
  color: var(--accent); background: rgba(0,113,227,.08);
  padding: .18rem .65rem; border-radius: 20px;
  letter-spacing: -.01em;
}
.lang-pill {
  font-size: .82rem;
  background: rgba(0,0,0,.05); border-radius: 20px;
  padding: .12rem .45rem;
}

.card h2 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Playfair Display", serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.02em;
  margin-bottom: .4rem;
  color: var(--text);
}
.card h2 a:hover { color: var(--accent); }

.teaser {
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: .85rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer { display: flex; align-items: center; justify-content: space-between; }

.tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.tag {
  font-size: .7rem;
  color: var(--muted);
  background: rgba(0,0,0,.04);
  padding: .12rem .48rem;
  border-radius: 6px;
}

.read-more {
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  letter-spacing: -.01em;
}
.read-more:hover { text-decoration: underline; }

/* ─── Empty State ─────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 6rem 2rem;
  color: var(--muted);
}
.empty-icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-state p { font-size: 1.15rem; margin-bottom: 1.5rem; }

/* ─── Upload Page ─────────────────────────────────────────────────── */
.upload-page {
  max-width: 960px;
  width: 100%;
  margin: 3.5rem auto;
  padding: 0 2rem;
  text-align: center;
  box-sizing: border-box;
}
.upload-page h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  margin-bottom: .5rem;
}
.subtitle { color: var(--muted); margin-bottom: 2rem; font-size: .95rem; }

.upload-form { display: flex; flex-direction: column; gap: 1.5rem; align-items: stretch; width: 100%; }

/* Sprach-Auswahl */
.lang-select-row { width: 100%; text-align: left; }
.lang-select-label { font-size: .85rem; font-weight: 600; display: block; margin-bottom: .5rem; color: var(--muted); }
.lang-select-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.lang-option {
  display: flex; align-items: center;
  cursor: pointer;
}
.lang-option input { display: none; }
.lang-option span {
  display: inline-block;
  padding: .4rem .9rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 500;
  transition: all .15s;
}
.lang-option input:checked + span {
  border-color: var(--accent);
  background: #fef3c7;
  color: var(--accent-h);
}
.lang-option:hover span { border-color: var(--accent); }

/* Drop-Zone */
.drop-zone {
  width: 100%;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem 2rem 1.5rem;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  transition: border-color .2s, background .2s;
  background: var(--card);
}
.drop-zone.drag-over {
  border-color: var(--accent);
  background: #fffbeb;
}
.drop-icon { font-size: 2.5rem; line-height: 1; }
.file-hint { font-size: .8rem; color: var(--muted); }

/* Auswahl-Buttons in der Drop-Zone */
.drop-btns { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; margin-top: .25rem; }
.drop-btn {
  background: var(--accent); color: #fff;
  border: none; border-radius: 8px;
  padding: .5rem 1.1rem; font-size: .875rem; font-weight: 600;
  cursor: pointer; transition: background .2s;
}
.drop-btn:hover { background: var(--accent-h); }

/* Toolbar über dem Vorschau-Grid */
.preview-toolbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .6rem .25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: .5rem;
}
.ptb-left, .ptb-right { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.ptb-count { font-size: .85rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.ptb-btn {
  background: #f1f5f9; color: #334155;
  border: 1px solid #cbd5e1; border-radius: 6px;
  padding: .3rem .75rem; font-size: .8rem; cursor: pointer; white-space: nowrap;
  transition: background .15s;
}
.ptb-btn:hover { background: #e2e8f0; }
.ptb-btn-danger { border-color: #fecaca; color: #dc2626; background: #fef2f2; }
.ptb-btn-danger:hover { background: #fee2e2; }
.ptb-select {
  border: 1px solid #cbd5e1; border-radius: 6px;
  padding: .28rem .5rem; font-size: .8rem; background: #fff; cursor: pointer;
}

/* Vorschau-Grid */
.preview-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .75rem;
}
.preview-grid-lg {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.preview-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--border);
  aspect-ratio: 1;
  cursor: pointer;
  transition: opacity .2s, outline .15s;
  outline: 2px solid transparent;
}
.preview-item-lg { border-radius: 10px; }
.preview-item:hover { outline-color: var(--accent); }
.preview-deselected { opacity: .35; }
.preview-item img,
.preview-item video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.preview-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  padding: 1.5rem .5rem .35rem;
  display: flex; flex-direction: column;
}
.pi-name {
  font-size: .63rem; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pi-meta { font-size: .6rem; color: rgba(255,255,255,.7); margin-top: .1rem; }
.preview-cb {
  position: absolute; top: 6px; left: 6px;
  width: 18px; height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}
.preview-badge {
  position: absolute; top: 6px; right: 6px;
  background: rgba(0,0,0,.6); color: #fff;
  font-size: .7rem; padding: .1rem .4rem; border-radius: 4px;
}

.alert-error {
  width: 100%;
  background: #fef2f2; color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: .85rem 1.1rem;
  text-align: left;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(250,249,247,.95);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.25rem; z-index: 999;
  text-align: center;
}
.loading-overlay p { font-size: 1.1rem; font-weight: 500; }
.loading-overlay small { color: var(--muted); }
.spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Post Page ───────────────────────────────────────────────────── */

/* Hero: vollständiges Bild, kein Zuschnitt */
.post-hero {
  width: 100%;
  background: #1c1917;
  display: flex;
  justify-content: center;
  max-height: 90vh;
  overflow: hidden;
}
.post-hero img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;   /* ganzes Foto sichtbar */
}
.post-hero video {
  width: 100%;
  max-height: 90vh;
}

/* Hauptmedium (Foto oder Video) im Inhalt */
.post-media-fig {
  margin: 0 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e8e8ed;
  box-shadow: var(--shadow-md);
}
.post-media-fig img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.post-media-fig video {
  width: 100%;
  max-height: 560px;
  display: block;
}
.post-media-fig figcaption,
.inline-photo figcaption {
  font-size: .77rem;
  color: var(--muted);
  padding: .4rem .75rem;
  background: rgba(0,0,0,.025);
  font-style: italic;
  letter-spacing: -.005em;
}

/* Layout */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3.5rem;
  max-width: 1480px;
  margin: 2.5rem auto;
  padding: 0 3rem;
  align-items: start;
}
@media (max-width: 1100px) {
  .post-layout { max-width: 100%; padding: 0 1.5rem; }
}

/* ─── Artikel-Header (Apple-Style) ────────────────────────────────── */
.newspaper-header {
  max-width: 1480px;
  margin: 0 auto;
  padding: 2.5rem 3rem 1.5rem;
  border-bottom: 0.5px solid var(--border);
}
.newspaper-dateline {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: .65rem;
  display: flex; gap: .85rem; align-items: center; flex-wrap: wrap;
  font-weight: 500;
}
.newspaper-dateline span { padding-right: .85rem; border-right: 1px solid var(--border); }
.newspaper-dateline span:last-child { border-right: none; }
.newspaper-headline {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Playfair Display", serif;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: .65rem;
  color: var(--text);
}
.newspaper-deck {
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: .85rem;
  letter-spacing: -.01em;
}

.newspaper-layout {
  display: grid;
  grid-template-columns: 190px 1fr 200px;
  gap: 0;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 3rem;
  align-items: start;
}

/* Sidebars: subtiler Hintergrund + kein Border-Separator */
.newspaper-layout > * { padding: 1.75rem 1.5rem; }
.newspaper-layout > *:first-child {
  padding-left: 0;
  background: none;
  border-right: 0.5px solid var(--border);
}
.newspaper-layout > *:last-child {
  padding-right: 0;
  border-left: 0.5px solid var(--border);
}

/* Linke Sidebar */
.history-sidebar { font-size: .84rem; overflow: clip; min-width: 0; }
.history-sidebar h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: .75rem;
  padding-bottom: .4rem;
  border-bottom: 0.5px solid var(--border);
}
.history-sidebar h4 {
  font-size: .82rem; font-weight: 600;
  margin: .85rem 0 .25rem; color: var(--text);
  letter-spacing: -.01em;
}
.history-sidebar p { color: var(--muted); line-height: 1.55; margin-bottom: .55rem; font-size: .81rem; }
.history-sidebar a { color: var(--accent); text-decoration: none; font-size: .77rem; font-weight: 500; }
.history-sidebar a:hover { text-decoration: underline; }

.wiki-thumb {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover; object-position: center;
  border-radius: 6px; margin-bottom: .5rem;
  background: var(--border);
}
.wiki-thumb-caption {
  font-size: .68rem; color: var(--muted);
  font-style: italic; margin-bottom: 1rem;
  line-height: 1.4;
}
.sidebar-info-box {
  background: #f8f7f5;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .6rem .75rem;
  margin-top: .85rem;
  font-size: .78rem;
}
.sib-row { display: flex; flex-direction: column; gap: .1rem; margin-bottom: .45rem; }
.sib-row:last-child { margin-bottom: 0; }
.sib-label { font-weight: 600; color: var(--text); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.sib-val { color: #374151; line-height: 1.4; }

.history-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px; height: .85em; margin-bottom: .4rem;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* Hauptartikel im Zeitungsmodus */
.newspaper-main .post-header { margin-bottom: 1.5rem; }
.newspaper-main .post-media-fig { border-radius: var(--radius); }
.newspaper-main .post-content p:first-of-type::first-letter {
  font-family: "Playfair Display", serif;
  font-size: 3.6rem;
  font-weight: 700;
  float: left;
  line-height: .82;
  margin: .05em .14em 0 0;
  color: var(--text);
}

/* Artikel-Text: Apple-Typographie */
.newspaper-main .post-content { column-count: 1; }
.newspaper-main .post-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: #1d1d1f;
  margin-bottom: 1.2rem;
  letter-spacing: -.01em;
}
.newspaper-main .post-content h2 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.025em;
  margin: 2rem 0 .75rem;
  color: var(--text);
}
.newspaper-main .post-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 .5rem;
  letter-spacing: -.015em;
}

@media (max-width: 1100px) {
  .newspaper-layout { grid-template-columns: 1fr 200px; padding: 0 1.5rem; }
  .newspaper-layout .history-sidebar { display: none; }
  .newspaper-header { padding: 1.5rem 1.5rem 0; }
  .newspaper-main .post-content { column-count: 1; }
}
@media (max-width: 860px) {
  .newspaper-layout { grid-template-columns: 1fr; padding: 0; }
  .newspaper-layout > * { border-right: none; border-left: none; border-bottom: 0.5px solid var(--border); padding: 1.25rem 1rem; }
  .newspaper-layout > *:last-child { border-bottom: none; }
  .newspaper-header { padding: 1.25rem 1rem .75rem; }
}
@media (max-width: 640px) {
  .newspaper-header { padding: 1rem 1rem .75rem; }
  .newspaper-layout > * { padding: 1rem; }
  .newspaper-main .post-content p { font-size: .95rem; }
}

@media (max-width: 860px) {
  .post-layout { grid-template-columns: 1fr; gap: 2rem; padding: 0 1rem; }
}

/* Post Header */
.post-header { margin-bottom: 2rem; }

.post-meta-row {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: 1rem;
}

.meta-pill {
  font-size: .72rem; font-weight: 600;
  padding: .18rem .6rem; border-radius: 20px;
  letter-spacing: -.01em;
}
.meta-time    { background: rgba(48,209,88,.12); color: #1a7a35; }
.meta-budget  { background: rgba(48,209,88,.12); color: #1a7a35; }
.meta-midrange { background: rgba(255,149,0,.12); color: #a05a00; }
.meta-luxury  { background: rgba(191,90,242,.12); color: #6b21a8; }

.post-page h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: .85rem;
}

.post-teaser {
  font-size: 1.1rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Inhalt */
.post-content { margin: 1.5rem 0 2rem; }
.post-content h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
  margin: 2.25rem 0 .75rem;
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: .3rem;
  display: inline-block;
}
.post-content p { margin-bottom: 1.1rem; }
.post-content ul { padding-left: 1.5rem; margin-bottom: 1.1rem; }
.post-content ul li { margin-bottom: .4rem; }

/* Galerie */
.post-gallery { margin: 2rem 0; }
.gallery-title {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .6rem;
}
.gallery-item {
  display: block;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--border);
}
.gallery-item img,
.gallery-item video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.gallery-item:hover img,
.gallery-item:hover video { transform: scale(1.06); }

/* Reisetipps */
.tips-box {
  background: #fffbeb;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.tips-box h2 { font-size: 1.1rem; margin-bottom: 1rem; font-family: "Inter", sans-serif; }
.tips-box ul { list-style: none; padding: 0; }
.tips-box ul li { padding: .4rem 0; display: flex; gap: .6rem; align-items: flex-start; }
.tip-emoji { font-size: 1.1rem; flex-shrink: 0; }
.tip-link {
  display: inline-block;
  font-size: .75rem; font-weight: 600;
  padding: .15rem .5rem;
  border-radius: 5px;
  margin-left: .3rem;
  white-space: nowrap;
  vertical-align: middle;
  transition: opacity .15s;
}
.tip-link:hover { opacity: .8; }
.tip-link-gyg      { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.tip-link-restaurant { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.tip-link-maps     { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* ─── Affiliate Sidebar ───────────────────────────────────────────── */
.affiliate-sidebar {
  position: sticky;
  top: 64px;
  overflow: clip;         /* prevent cards/shadows from bleeding into main */
  min-width: 0;           /* honour grid column width */
}

.affiliate-card {
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-radius: 14px;
  border: 0.5px solid rgba(0,0,0,.09);
  padding: .9rem .85rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06), 0 0 0 0.5px rgba(0,0,0,.04);
  margin-top: 1rem;
}
.affiliate-card:first-child { margin-top: 0; }
.affiliate-card h3 {
  font-size: .62rem;
  font-weight: 700;
  margin: 0 0 .6rem;
  padding-bottom: .4rem;
  border-bottom: 0.5px solid rgba(0,0,0,.08);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}

.affiliate-link {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .5rem;
  border-radius: 10px;
  margin-bottom: .2rem;
  background: rgba(255,255,255,.6);
  border: 0.5px solid rgba(0,0,0,.07);
  text-decoration: none;
  transition: background .18s, transform .18s cubic-bezier(.34,1.3,.64,1);
  overflow: hidden;       /* clip content inside card */
}
.affiliate-link:hover {
  background: rgba(0,113,227,.06);
  border-color: rgba(0,113,227,.2);
  transform: translateY(-1px);
}
.aff-logo {
  width: 18px; height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
  object-fit: contain;
  background: #f5f5f7;
}
.aff-icon { font-size: .95rem; flex-shrink: 0; line-height: 1; }
.aff-text { flex: 1; min-width: 0; overflow: hidden; }
.aff-text strong { display: block; font-size: .74rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; font-weight: 600; }
.aff-text small { font-size: .64rem; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aff-arrow { color: var(--accent); font-weight: 700; font-size: .75rem; flex-shrink: 0; opacity: .6; }

.aff-disclaimer { font-size: .6rem; color: var(--muted); margin-top: .55rem; opacity: .8; }
.aff-section-title {
  font-size: .6rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em;
  margin: .7rem 0 .25rem;
}
.aff-ticket { background: rgba(255,149,0,.04); border-color: rgba(255,149,0,.15); }
.aff-ticket:hover { background: rgba(255,149,0,.1); }

/* Category accent: thin left border replaced by subtle bg tint */
.aff-hotel    { background: rgba(0,113,227,.03);  border-color: rgba(0,113,227,.12); }
.aff-hotel:hover  { background: rgba(0,113,227,.08); }
.aff-activity { background: rgba(255,149,0,.03);  border-color: rgba(255,149,0,.12); }
.aff-activity:hover { background: rgba(255,149,0,.08); }
.aff-flight   { background: rgba(48,209,88,.03);  border-color: rgba(48,209,88,.12); }
.aff-flight:hover { background: rgba(48,209,88,.08); }
.aff-gear     { background: rgba(255,149,0,.03);  border-color: rgba(255,149,0,.12); }

/* ─── Sidebar: Tips ────────────────────────────────────────────── */
.sidebar-tips-section { margin-top: 1rem; }
.sidebar-tips-section h3 {
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  border-bottom: 0.5px solid var(--border);
  padding-bottom: .4rem; margin-bottom: .7rem;
  color: var(--muted);
}
.sidebar-tips-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .45rem;
}
.sidebar-tips-list li {
  font-size: .8rem; line-height: 1.45; color: #374151;
  display: flex; gap: .35rem; align-items: flex-start;
}
.sidebar-tips-list .tip-emoji { flex-shrink: 0; }
/* Tip links in sidebar: smaller, wrap onto next line */
.sidebar-tips-list .tip-link {
  display: inline-block;
  white-space: normal;
  font-size: .65rem;
  padding: .1rem .35rem;
  margin-left: 0;
  margin-top: .2rem;
  vertical-align: top;
}
.sidebar-tips-list li {
  flex-wrap: wrap;
  align-items: flex-start;
}

/* Tips-box: auf Desktop verstecken (Tipps in Sidebars) */
@media (min-width: 860px) {
  .tips-box { display: none; }
}

/* ─── Sidebar: Klima-Chart ─────────────────────────────────────── */
.sidebar-section { margin-top: 1rem; }
.sidebar-section h3 {
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  border-bottom: 0.5px solid var(--border);
  padding-bottom: .4rem; margin-bottom: .7rem;
  color: var(--muted);
}
.climate-chart { width: 100%; margin-bottom: .3rem; }
.climate-legend {
  display: flex; gap: .75rem; flex-wrap: wrap;
  font-size: .65rem; color: var(--muted); margin-top: .2rem;
}
.legend-item { display: flex; align-items: center; gap: .2rem; }
.water-temp-row {
  font-size: .72rem; color: #0ea5e9;
  margin-top: .4rem; line-height: 1.5;
}
.climate-source { font-size: .6rem; color: var(--muted); margin-top: .3rem; font-style: italic; }

/* ─── Sidebar: In der Nähe ─────────────────────────────────────── */
.nearby-list { display: flex; flex-direction: column; gap: .3rem; }
.nearby-item {
  display: flex; align-items: center; gap: .4rem;
  font-size: .78rem; color: var(--text);
  padding: .35rem .5rem;
  border-radius: 6px; border: 1px solid var(--border);
  transition: background .15s;
  text-decoration: none;
}
.nearby-item:hover { background: #f0f9ff; border-color: #7dd3fc; }
.nearby-emoji { font-size: .9rem; flex-shrink: 0; }
.nearby-name { flex: 1; font-size: .76rem; line-height: 1.3; color: #1e3a5f; }

/* ─── Packliste ────────────────────────────────────────────────── */
.packing-box h3 {
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin: 0 0 .5rem;
}
.packing-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.packing-link {
  display: flex; align-items: center; gap: .45rem;
  padding: .35rem .5rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.packing-link:hover { background: #fff8e1; border-color: #f59e0b; }
.packing-emoji { font-size: .95rem; flex-shrink: 0; }
.packing-name { flex: 1; font-size: .76rem; color: var(--text); line-height: 1.3; }
.packing-amazon-logo { width: 16px; height: 16px; flex-shrink: 0; opacity: .7; }
.packing-box.sidebar-section { display: block; }
.packing-box.packing-mobile  { display: none; }
@media (max-width: 860px) {
  .packing-box.sidebar-section { display: none; }
  .packing-box.packing-mobile  {
    display: block;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
  }
}

/* ─── GetYourGuide Ticket Callout ────────────────────────────────── */
.gyg-callout {
  display: flex;
  align-items: center;
  gap: .85rem;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border: 0.5px solid rgba(0,0,0,.1);
  border-radius: 14px;
  padding: .85rem 1rem;
  margin: 1.25rem 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  text-decoration: none;
}
.gyg-icon { font-size: 1.4rem; flex-shrink: 0; opacity: .85; }
.gyg-callout-text { flex: 1; }
.gyg-callout-text strong { display: block; font-size: .82rem; font-weight: 600; color: var(--text); letter-spacing: -.01em; margin-bottom: .1rem; }
.gyg-callout-text small { font-size: .72rem; color: var(--muted); }
.gyg-callout-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--accent);
  color: #fff;
  padding: .4rem .85rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity .18s, transform .18s cubic-bezier(.34,1.3,.64,1);
  text-decoration: none;
  letter-spacing: -.01em;
}
.gyg-callout-btn:hover { opacity: .88; transform: translateY(-1px); }
@media (max-width: 600px) {
  .gyg-callout { flex-wrap: wrap; }
  .gyg-callout-btn { width: 100%; text-align: center; justify-content: center; }
}

/* ─── Medien hinzufügen (Post-Seite) ─────────────────────────────── */
.add-media-section {
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  padding: 1.5rem 2rem;
  background: #fffbeb;
  border-top: 2px solid var(--accent);
}
.add-media-section h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  margin-bottom: .35rem;
}
.add-media-hint {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.drop-zone-sm {
  padding: 1rem 1.5rem;
  font-size: .9rem;
}
.preview-remove {
  position: absolute;
  top: .3rem; right: .3rem;
  background: rgba(0,0,0,.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px; height: 22px;
  font-size: .85rem;
  cursor: pointer;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.preview-item { position: relative; }

/* ─── Post Actions ────────────────────────────────────────────────── */
.post-actions {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1100px; margin: 2rem auto;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
}
.back-link { font-size: .9rem; color: var(--muted); font-weight: 500; }
.back-link:hover { color: var(--accent); }

/* ─── Footer ──────────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 2rem 2rem;
  font-size: .77rem;
  color: var(--muted);
  border-top: 0.5px solid var(--border);
  margin-top: 4rem;
  letter-spacing: -.005em;
}
.footer-legal { margin-top: .4rem; }
.footer-legal a { color: var(--muted); text-decoration: underline; }

.legal-page {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1.5rem 4rem;
}
.legal-page h1 { font-size: 2rem; margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.2rem; margin: 2rem 0 .5rem; }
.legal-page h3 { font-size: 1rem; font-weight: 600; margin: 1.2rem 0 .3rem; }
.legal-page p, .legal-page ul { margin-bottom: .8rem; line-height: 1.7; }
.legal-page ul { padding-left: 1.5rem; }
.legal-page section { border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
.legal-page section:last-child { border-bottom: none; }

/* ─── Mobile & Tablet ─────────────────────────────────────────────── */

/* Tablet (max 900px) */
@media (max-width: 900px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding: 0 1.25rem;
    margin: 2rem auto;
  }

  .post-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.25rem;
    margin: 1.5rem auto;
  }

  .affiliate-sidebar { position: static; }

  .hero { padding: 3.5rem 1.5rem; }
}

/* Mobile (max 600px) */
@media (max-width: 600px) {

  /* Header */
  .site-header {
    padding: .7rem 1rem;
    flex-wrap: wrap;
    gap: .5rem;
  }
  .logo { font-size: 1.1rem; }
  .header-nav { gap: .6rem; }
  .btn-upload {
    font-size: .78rem;
    padding: .4rem .8rem;
  }

  /* Sprachschalter */
  .lang-switcher { padding: .15rem .3rem; }
  .lang-btn { width: 1.7rem; height: 1.7rem; font-size: 1.05rem; }

  /* Hero */
  .hero { min-height: 260px; padding: 2.5rem 1rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: .95rem; margin-bottom: 1.25rem; }
  .btn-primary { padding: .6rem 1.2rem; font-size: .875rem; }

  /* Cards: eine Spalte */
  .posts-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    margin: 1.5rem auto;
    gap: 1rem;
  }
  .card-media { aspect-ratio: 16/9; }

  /* Upload */
  .upload-page { margin: 1.5rem auto; padding: 0 1rem; }
  .upload-page h1 { font-size: 1.6rem; }
  .drop-zone { padding: 2rem 1rem; }
  .preview-grid, .preview-grid-lg { grid-template-columns: repeat(3, 1fr); gap: .4rem; }
  .preview-toolbar { flex-direction: column; align-items: flex-start; }
  .ptb-right { flex-wrap: wrap; }

  /* Post Hero: volle Höhe begrenzen auf Mobile */
  .post-hero { max-height: 60vw; }
  .post-hero img { max-height: 60vw; }
  .post-hero video { max-height: 60vw; }

  /* Post Layout */
  .post-layout {
    padding: 0 1rem;
    margin: 1.25rem auto;
    gap: 1.5rem;
  }

  /* Post Header */
  .post-page h1 { font-size: 1.55rem; }
  .post-teaser { font-size: 1rem; }
  .post-meta-row { gap: .4rem; }

  /* Galerie: 2 Spalten */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .4rem; }

  /* Reisetipps */
  .tips-box { padding: 1rem 1.1rem; }

  /* Affiliate Links */
  .affiliate-card { padding: 1.1rem; }
  .affiliate-link { padding: .7rem; gap: .6rem; }
  .aff-icon { font-size: 1.25rem; }
  .aff-text strong { font-size: .82rem; }
  .aff-text small { font-size: .7rem; }

  /* Post Actions */
  .post-actions {
    flex-direction: column;
    gap: .75rem;
    align-items: flex-start;
    padding: 1rem;
  }

  /* Tags */
  .tags { gap: .3rem; }
  .tag { font-size: .68rem; }

  /* Footer */
  footer { padding: 1.5rem 1rem; margin-top: 2rem; }
}

/* Sehr kleine Screens (max 380px) */
@media (max-width: 380px) {
  .lang-btn { width: 1.5rem; height: 1.5rem; font-size: .95rem; }
  .btn-upload { display: none; }
  .hero { padding: 2rem .75rem; }
}

/* ─── Login ───────────────────────────────────────────────────────── */
.login-page {
  min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.login-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2rem;
  width: 100%; max-width: 380px;
  text-align: center;
}
.login-icon { font-size: 3rem; margin-bottom: .5rem; }
.login-card h1 { font-family: "Playfair Display", serif; font-size: 1.8rem; margin-bottom: .4rem; }
.login-sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.login-form { display: flex; flex-direction: column; gap: 1rem; }
.login-input {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 1rem;
  transition: border-color .2s;
}
.login-input:focus { outline: none; border-color: var(--accent); }

/* ─── Notizen & Sprachaufnahme ────────────────────────────────────── */
.notes-section { width: 100%; }
.notes-label {
  display: block; font-size: .85rem; font-weight: 600;
  color: var(--muted); margin-bottom: .5rem;
}
.notes-input-row { display: flex; gap: .5rem; align-items: flex-start; }
.notes-textarea {
  flex: 1; padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px; font-size: .9rem;
  font-family: inherit; resize: vertical;
  transition: border-color .2s;
}
.notes-textarea:focus { outline: none; border-color: var(--accent); }
.mic-btn {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 8px; padding: .6rem .8rem;
  font-size: 1.3rem; cursor: pointer;
  transition: all .2s; flex-shrink: 0;
}
.mic-btn:hover { border-color: var(--accent); background: #fffbeb; }
.mic-btn.recording {
  background: #fef2f2; border-color: #ef4444;
  animation: pulse 1s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
.notes-hint { font-size: .8rem; color: #ef4444; margin-top: .4rem; }

/* ─── Inline Fotos im Artikel ─────────────────────────────────────── */
.inline-photo {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fafaf9;
  border: 1px solid #e7e5e4;
}
.inline-photo:empty { display: none; }
.inline-photo img,
.inline-photo video {
  width: 100%; height: auto;
  display: block;
}
.inline-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.inline-photo-grid .inline-photo { margin: 0; }

/* ─── Karte ───────────────────────────────────────────────────────── */
.map-section { margin: 2rem 0; }
.map-title {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem; margin-bottom: .75rem;
}
.map-leaflet-wrap {
  position: relative;
  max-width: 640px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.map-leaflet {
  width: 100%;
  height: 260px;
}
.map-open-link {
  position: absolute;
  bottom: .6rem;
  right: .6rem;
  z-index: 1000;
  background: #fff;
  color: #1c1917;
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .75rem;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  text-decoration: none;
  transition: box-shadow .15s;
}
.map-open-link:hover { box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.map-loading {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .9rem;
  background: #f5f5f4;
  border-radius: 12px;
}

/* ─── Restaurants ─────────────────────────────────────────────────── */
.restaurants-section { margin: 2rem 0; }
.restaurants-section h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem; margin-bottom: 1rem;
}
.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .85rem;
}
.restaurant-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  transition: box-shadow .2s;
}
.restaurant-card:hover { box-shadow: var(--shadow); }
.restaurant-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: .3rem;
}
.restaurant-header strong { font-size: .95rem; }
.rating-badge {
  font-size: .78rem; background: #fef3c7;
  color: #92400e; padding: .15rem .45rem;
  border-radius: 20px; font-weight: 600;
}
.restaurant-address { font-size: .8rem; color: var(--muted); margin-bottom: .65rem; }
.restaurant-links { display: flex; gap: .4rem; flex-wrap: wrap; }
.rest-link {
  font-size: .75rem; font-weight: 600;
  padding: .25rem .6rem; border-radius: 6px;
  border: 1px solid var(--border);
  transition: all .15s;
}
.rest-link:hover { background: var(--bg); }
.rest-link.tripadvisor { color: #34a853; border-color: #34a853; }
.rest-link.maps        { color: #4285f4; border-color: #4285f4; }
.rest-link.thefork     { color: #e07b39; border-color: #e07b39; }

/* Date on card */
.date { font-size: .75rem; color: var(--muted); }

/* ─── Admin Panel ─────────────────────────────────────────────────── */
.admin-page {
  max-width: 1100px;
  margin: 2.5rem auto;
  padding: 0 2rem;
}
.admin-page h1 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.admin-page h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1rem;
}

.admin-notice {
  padding: .75rem 1.1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: .93rem;
  font-weight: 500;
}
.admin-notice.ok   { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.admin-notice.warn { background: #fefce8; color: #92400e; border: 1px solid #fde68a; }

/* Besucherstatistik */
.admin-stats { margin-bottom: 2.5rem; }
.admin-stats h3 { font-size: 1rem; font-weight: 600; margin: 1.5rem 0 .75rem; color: #374151; }
.stats-grid {
  display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem;
}
.stat-card {
  background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 10px;
  padding: .9rem 1.4rem; display: flex; flex-direction: column; align-items: center;
  min-width: 130px; flex: 1;
}
.stat-number { font-size: 2rem; font-weight: 700; color: #0284c7; line-height: 1; }
.stat-label  { font-size: .78rem; color: #64748b; margin-top: .3rem; text-align: center; }
.stats-table { margin-top: .5rem; }
.col-tokens { font-size: .8rem; color: #64748b; white-space: nowrap; }
.col-tokens span { cursor: help; border-bottom: 1px dotted #94a3b8; }

/* Global action buttons */
.admin-actions { margin-bottom: 2.5rem; }
.admin-action-row {
  display: flex; flex-wrap: wrap; gap: 1rem;
}

.admin-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .6rem 1.2rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-size: .9rem; font-weight: 500;
  cursor: pointer; text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}
.admin-btn:hover { background: var(--bg); box-shadow: var(--shadow); }
.admin-btn-primary {
  background: var(--accent); color: #fff;
  border-color: var(--accent);
}
.admin-btn-primary:hover { background: var(--accent-h); border-color: var(--accent-h); color: #fff; }
.admin-btn-warn {
  background: #fef3c7; color: #92400e;
  border-color: #fde68a;
}
.admin-btn-warn:hover { background: #fde68a; }
.admin-btn-danger {
  background: #fef2f2; color: #dc2626;
  border-color: #fecaca;
}
.admin-btn-danger:hover { background: #fecaca; }
.admin-btn-sm { padding: .35rem .75rem; font-size: .82rem; }
.admin-btn:disabled { opacity: .45; cursor: not-allowed; }

/* Bulk bar */
.admin-bulk-bar {
  display: flex; align-items: center; gap: 1.5rem;
  margin-bottom: .75rem;
}
.admin-check-all {
  display: flex; align-items: center; gap: .4rem;
  font-size: .88rem; font-weight: 500; cursor: pointer;
}

/* Article table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.admin-table th {
  background: var(--bg);
  text-align: left;
  padding: .65rem 1rem;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg); }
.admin-table .col-check { width: 2.5rem; }
.admin-table .col-actions { width: 160px; white-space: nowrap; }
.admin-post-link { color: var(--text); font-weight: 500; }
.admin-post-link:hover { color: var(--accent); }

/* Edit page */
.admin-edit-header { margin-bottom: 2rem; }
.admin-back-link {
  font-size: .88rem; color: var(--muted);
  text-decoration: none; display: inline-block; margin-bottom: .5rem;
}
.admin-back-link:hover { color: var(--accent); }
.admin-edit-note {
  font-size: .88rem; color: var(--muted);
  background: #f0fdf4; border: 1px solid #bbf7d0;
  padding: .6rem 1rem; border-radius: 8px;
  margin-top: .5rem;
}

.admin-edit-form { max-width: 900px; }
.admin-edit-grid { display: flex; flex-direction: column; gap: 1.25rem; }
.admin-field { display: flex; flex-direction: column; gap: .4rem; }
.admin-field label {
  font-size: .82rem; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: .05em;
}
.admin-field input,
.admin-field textarea {
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .95rem; font-family: inherit;
  transition: border-color .2s;
  width: 100%; box-sizing: border-box;
}
.admin-field input:focus,
.admin-field textarea:focus { outline: none; border-color: var(--accent); }
.admin-content-editor { font-family: monospace; font-size: .85rem; line-height: 1.5; }
.admin-field-hint { font-size: .78rem; color: var(--muted); margin-top: .25rem; }
.admin-field-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.admin-edit-actions {
  display: flex; gap: 1rem; justify-content: flex-end;
  margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .admin-page { padding: 0 1rem; }
  .admin-field-row { grid-template-columns: 1fr; }
  .admin-table th:nth-child(4),
  .admin-table td:nth-child(4),
  .admin-table th:nth-child(5),
  .admin-table td:nth-child(5) { display: none; }
}

/* ─── Sanftes Einblenden beim Scrollen ────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .7s cubic-bezier(.22,1,.36,1);
    will-change: opacity, transform;
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* Mobile: Hero-Aktionen kompakter */
@media (max-width: 600px) {
  .hero-actions { margin-top: 1.4rem; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; justify-content: center; }
}
