/* Archiv-Schicht — Walkabout-Journal und die aus WordPress übernommenen Seiten.
   Erbt Farben, Schriften und Maß aus main.css; regelt nur, was dort fehlt. */

/* ---------- Nav auf Seiten ohne Hero ---------- */
.archive .nav {
  position: sticky; top: 0;
  background: rgba(16,15,13,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.archive main { padding: clamp(3rem, 7vh, 5rem) clamp(1.5rem, 5vw, 3.5rem) 0; }

/* Inspiration-Untermenü */
.nav__drop { position: relative; display: flex; align-items: flex-start; }
.nav__sub {
  position: absolute; left: 50%; transform: translateX(-50%) translateY(-0.4rem);
  top: 100%; padding-top: 0.9rem;
  display: flex; flex-direction: column; gap: 0.1rem;
  opacity: 0; visibility: hidden; transition: opacity .22s ease, transform .22s ease;
}
.nav__drop:hover .nav__sub,
.nav__drop:focus-within .nav__sub { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__sub a {
  background: rgba(16,15,13,0.97);
  border: 1px solid var(--line); border-bottom: none;
  padding: 0.55rem 1.4rem; white-space: nowrap; text-align: center;
}
.nav__sub a:last-child { border-bottom: 1px solid var(--line); }
.nav__sub a:hover { color: var(--accent); }

/* ---------- Journal-Übersicht ---------- */
.archive__head { max-width: var(--measure); margin: 0 auto clamp(3rem,6vh,4.5rem); }
.archive__head h1 { font-family: var(--font-title); font-size: clamp(2.6rem,7vw,4.2rem); font-weight: 400; margin: 0 0 .6rem; }
.archive__lead { color: var(--fg-muted); font-style: italic; margin: 0; }

.archive__year {
  max-width: 52rem; margin: clamp(3rem,6vh,4.5rem) auto 1.4rem;
  font-family: var(--font-label); font-size: .78rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent); font-weight: 400;
  padding-bottom: .7rem; border-bottom: 1px solid var(--line);
}
.archive__list { max-width: 52rem; margin: 0 auto; padding: 0; list-style: none; }
.archive__item {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 1.6rem;
  padding: 1.7rem 0; border-bottom: 1px solid var(--line);
}
.archive__thumb img { width: 8.5rem; height: 6rem; object-fit: cover; filter: saturate(.85) brightness(.9); transition: filter .3s ease; }
.archive__item:hover .archive__thumb img { filter: none; }
.archive__item h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; margin: 0 0 .25rem; line-height: 1.25; }
.archive__item h3 a { text-decoration: none; }
.archive__item h3 a:hover { color: var(--accent); }
.archive__date { font-family: var(--font-label); font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--fg-muted); margin: 0 0 .5rem; }
.archive__ex { color: var(--fg-muted); font-size: .95rem; line-height: 1.6; margin: 0; }

@media (max-width: 640px) {
  .archive__item { grid-template-columns: 1fr; gap: .9rem; }
  .archive__thumb img { width: 100%; height: 11rem; }
}

/* ---------- Einzelner Beitrag / übernommene Seite ---------- */
.post, .page { max-width: var(--measure); margin: 0 auto; padding-bottom: clamp(4rem,9vh,7rem); }
.post__title { font-family: var(--font-title); font-size: clamp(2.1rem,5.5vw,3.2rem); font-weight: 400; line-height: 1.18; margin: 0 0 .7rem; }
.post__meta { font-family: var(--font-label); font-size: .76rem; letter-spacing: .15em; text-transform: uppercase; color: var(--fg-muted); margin: 0 0 1.4rem; }
.post__meta a { color: var(--accent); text-decoration: none; }
.post__hero { width: 100%; margin: 0 0 2.4rem; }

.post__body { }
.post__body p { margin: 0 0 1.5rem; }
.post__body h2 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; margin: 2.8rem 0 .9rem; }
.post__body h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; margin: 2.2rem 0 .7rem; }
.post__body img { margin: 2.2rem 0; }
.post__body figure { margin: 2.2rem 0; }
.post__body figcaption { font-family: var(--font-label); font-size: .78rem; color: var(--fg-muted); margin-top: .6rem; }
.post__body a { color: var(--accent); text-underline-offset: .18em; }
.post__body blockquote {
  margin: 2.2rem 0; padding-left: 1.6rem; border-left: 2px solid var(--accent);
  font-style: italic; color: var(--fg-muted);
}
.post__body ul, .post__body ol { margin: 0 0 1.5rem; padding-left: 1.4rem; }
.post__body li { margin-bottom: .5rem; }
.post__body iframe, .post__body video { max-width: 100%; margin: 2.2rem 0; }
.post__body table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: .92rem; }
.post__body td, .post__body th { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }

/* WordPress-Reste zähmen */
.post__body .wp-caption { max-width: 100% !important; }
.post__body [style*="width"] { max-width: 100% !important; }
.post__body .ngg-galleryoverview, .post__body .ngg-imagebrowser { margin: 2.2rem 0; }
.post__body .vc_row, .post__body .vc_column-inner, .post__body .wpb_wrapper { margin: 0 !important; padding: 0 !important; width: auto !important; }

/* ---------- Fuß ---------- */
.foot {
  border-top: 1px solid var(--line); margin-top: clamp(3rem,7vh,5rem);
  padding: 2.2rem clamp(1.5rem,5vw,3.5rem) 2.6rem;
  font-family: var(--font-label); font-size: .78rem; letter-spacing: .1em;
  color: var(--fg-muted); text-align: center;
}
.foot a { color: var(--fg-muted); text-decoration: none; }
.foot a:hover { color: var(--accent); }

/* ---------- aus WPBakery aufgelöste Bausteine ---------- */
.post__body .sep {
  font-family: var(--font-label); font-size: .8rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent); font-weight: 400;
  text-align: center; margin: 3rem 0 1.4rem;
}
.post__body hr { border: none; border-top: 1px solid var(--line); margin: 2.8rem 0; }
.post__body .embed { position: relative; padding-bottom: 56.25%; height: 0; margin: 2.4rem 0; }
.post__body .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post__body .cta-box {
  border: 1px solid var(--line); padding: 1.8rem 2rem; margin: 2.4rem 0;
  background: var(--bg-alt);
}
.post__body .cta-box h3 { margin-top: 0; }
.post__body .btn {
  display: inline-block; text-decoration: none; border: 1px solid var(--accent);
  color: var(--accent); padding: .6rem 1.6rem; font-family: var(--font-label);
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
}
.post__body .btn:hover { background: var(--accent); color: var(--bg); }
.post__body img.alignleft { float: left; margin: .3rem 1.4rem .8rem 0; }
.post__body img.alignright { float: right; margin: .3rem 0 .8rem 1.4rem; }
.post__body img.aligncenter { margin-left: auto; margin-right: auto; }
.post__body p { overflow: hidden; }

/* ---------- Nav bei sechs Punkten: Tablet und Mobil ---------- */
@media (max-width: 1024px) {
  .nav__links { flex-wrap: wrap; justify-content: center; row-gap: .7rem; }
}
@media (max-width: 767px) {
  /* Kein Hover auf Touch, und fünf Unterpunkte sprengen die Zeile:
     das Untermenü entfällt, der Weg läuft über die Inspiration-Übersicht. */
  .nav__sub { display: none; }
}

/* Bereichsliste auf der Inspiration-Übersicht */
.rooms { max-width: var(--measure); margin: 3rem auto 0; padding: 0; list-style: none;
         border-top: 1px solid var(--line); }
.rooms li { border-bottom: 1px solid var(--line); }
.rooms a {
  display: block; padding: 1.05rem 0; text-decoration: none;
  font-family: var(--font-display); font-size: 1.35rem;
  transition: color .3s, padding-left .3s;
}
.rooms a:hover { color: var(--accent); padding-left: .5rem; }

/* ---------- Bilderstrecken (aus den alten NextGEN-Galerien) ---------- */
.gal {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: .5rem; max-width: 52rem; margin: 3rem auto 0;
}
.gal__item { display: block; overflow: hidden; }
.gal__item img {
  width: 100%; height: 9rem; object-fit: cover;
  filter: saturate(.9) brightness(.92);
  transition: filter .35s ease, transform .35s ease;
}
.gal__item:hover img { filter: none; transform: scale(1.03); }
@media (max-width: 640px) {
  .gal { grid-template-columns: repeat(2, 1fr); gap: .4rem; }
  .gal__item img { height: 7rem; }
}

/* ---------- Einbettungen: erst auf Klick laden ---------- */
.embed__start {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .9rem; cursor: pointer; border: 1px solid var(--line);
  background: var(--bg-alt); color: var(--fg);
  font-family: var(--font-label); font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; text-align: center; padding: 1.5rem;
  transition: border-color .3s, color .3s;
}
.embed__start:hover { border-color: var(--accent); color: var(--accent); }
.embed__start::before {
  content: "▶"; font-size: 1.6rem; letter-spacing: 0; opacity: .8;
}
.embed__note {
  font-family: var(--font-body); font-size: .82rem; letter-spacing: 0;
  text-transform: none; color: var(--fg-muted); max-width: 26rem; line-height: 1.5;
}
