:root{
  --bg:#0e0e0f;
  --panel:#17181a;
  --text:#ededed;
  --muted:#a1a1a6;
  --line:rgba(255,255,255,.10);

  --brand:#cfcfcf;
  --brand2:#8e8e93;

  --radius:18px;
  --max:1100px;
}

*{box-sizing:border-box}

body{
  margin:0;
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(1200px 800px at 20% -10%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(900px 600px at 90% 0%, rgba(255,255,255,.04), transparent 55%),
    var(--bg);
}

a{
  color:inherit;
  text-decoration:none;
  transition: color .15s ease;
}

.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:24px;
}

/* ================= NAV ================= */

.nav{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(14,14,15,.72);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}

.navinner{
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
}

.brand{font-weight:900; letter-spacing:.6px}

.links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.links a{
  color:var(--muted);
  padding:10px 12px;
  border-radius:12px;
  transition: background-color .2s ease, color .2s ease;
}

.links a:hover{
  background:rgba(255,255,255,.06);
  color:var(--text);
}

/* ================= HERO ================= */

.hero{
  border:1px solid var(--line);
  border-radius:26px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  padding:22px;
  transition: box-shadow .3s ease;
}

.hero:hover{box-shadow:0 8px 24px rgba(0,0,0,.25)}

.hero h1{margin:0 0 6px; font-size:42px}
.hero p{margin:0 0 14px; color:var(--muted); max-width:70ch}

/* ================= PANELS ================= */

.panel{
  margin-top:18px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,.04);
  padding:18px;
  transition: box-shadow .3s ease;
}

.panel:hover{box-shadow:0 8px 24px rgba(0,0,0,.25)}

.sectiontitle{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
}
.sectiontitle h2{margin:0}

/* ================= FILTER CHIPS ================= */

.chips{display:flex; gap:10px; flex-wrap:wrap}

.chip{
  padding:9px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  cursor:pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.chip:hover{background:rgba(255,255,255,.08); color:var(--text)}
.chip[aria-pressed="true"]{
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.45);
  color:var(--text);
}

/* ================= TRIP GRID ================= */

.tripgrid{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:16px;
}

.tripcard{
  grid-column:span 6;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  background:rgba(255,255,255,.03);
  display:block;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.tripcard:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 30px rgba(0,0,0,.35);
  background:rgba(255,255,255,.045);
}

/* ================= TRIP COVER ================= */

.cover{
  height:160px;
  background-size:cover;
  background-position:center;
  border-bottom:1px solid var(--line);
  background-color:rgba(255,255,255,.02);
  transition: filter .25s ease, transform .25s ease;
}

.tripcard:hover .cover{
  filter:brightness(1.05) contrast(1.02);
  transform:scale(1.01);
}

/* ================= TRIP BODY ================= */

.tripbody{padding:14px}
.tripbody h3{margin:8px 0 6px}
.tripbody p{margin:0; color:var(--muted)}
.meta{color:var(--muted); font-size:14px}

.pills{display:flex; gap:8px; flex-wrap:wrap; margin-top:12px}
.pill{
  font-size:12px;
  color:var(--muted);
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  padding:6px 10px;
  border-radius:999px;
}

/* ================= TRIP DETAIL ================= */

.back{
  display:inline-block;
  margin-top:18px;
  color:var(--muted);
}
.back:hover{color:var(--text)}

.triphead{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:16px;
  margin-top:10px;
  align-items:stretch;
}

.triptitle h1{margin:0 0 8px}
.triptitle .lead{color:var(--muted); margin:10px 0 0}

.triphero{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background-size:cover;
  background-position:center;
  min-height:240px;
  background-color:rgba(255,255,255,.02);
}

/* ================= MAP ================= */

.mapplaceholder{
  height:260px;
  border-radius:16px;
  border:1px dashed var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  background:rgba(255,255,255,.02);
}

.smalllink{color:var(--brand); font-weight:800}
.hint{color:var(--muted); margin:12px 0 0; font-size:14px}

/* ================= DAYS ================= */

.day{
  border-top:1px solid var(--line);
  padding-top:16px;
  margin-top:16px;
}
.day:first-child{border-top:0; padding-top:0; margin-top:0}

.dayhead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
}
.dayhead h2{margin:0}

.daytext{margin-top:10px; color:var(--muted)}

/* Inline-Bilder: responsive & „kleiner“ */
.inlineimgs{
  display:grid;
  gap:12px;
  margin-top:12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.inlineimg{margin:0}

.inlineimg button{
  width:100%;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
  border-radius:14px;
}

.inlineimg img{
  width:100%;
  height:auto;
  display:block;
  border-radius:14px;
  border:1px solid var(--line);

  max-height: clamp(160px, 26vh, 360px);
  object-fit: cover;

  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, filter .2s ease;
}

.inlineimg button:hover img{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.35);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  filter: brightness(1.03) contrast(1.02);
}

.inlineimg figcaption{
  color:var(--muted);
  font-size:13px;
  margin-top:6px;
}

/* ================= GALLERY ================= */

.gallery{
  margin-top:12px;
  display:grid;
  gap:10px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.thumbbtn{
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  border-radius:14px;
  padding:0;
  overflow:hidden;
  cursor:pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.thumbbtn img{
  width:100%;
  height: clamp(92px, 14vw, 140px);
  object-fit: cover;
  display:block;
}

.thumbbtn:hover{
  transform:translateY(-2px);
  border-color:rgba(255,255,255,.35);
  box-shadow:0 6px 18px rgba(0,0,0,.35);
}

/* ================= LIGHTBOX ================= */

.lightbox{
  border:0;
  padding:0;
  background:rgba(0,0,0,.55);
}
.lightbox::backdrop{background:rgba(0,0,0,.55)}

.lightbox img{
  max-width:min(92vw,1200px);
  max-height:82vh;
  display:block;
  margin:6vh auto 0;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.18);
  user-select:none;
  -webkit-user-drag:none;
  touch-action: pan-y;
}

/* Buttons */
.lbclose, .lbprev, .lbnext{
  position:fixed;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.10);
  color:#fff;
  cursor:pointer;
  transition: background-color .2s ease, transform .2s ease;
}

.lbclose{
  top:18px;
  right:18px;
  font-size:26px;
}
.lbclose:hover{background:rgba(255,255,255,.18); transform:scale(1.05)}

.lbprev, .lbnext{
  top:50%;
  transform: translateY(-50%);
  font-size:30px;
  line-height:42px;
}
.lbprev{left:18px}
.lbnext{right:18px}

.lbprev:hover, .lbnext:hover{
  background:rgba(255,255,255,.18);
  transform: translateY(-50%) scale(1.05);
}

.lbcounter{
  position:fixed;
  left:50%;
  top:18px;
  transform: translateX(-50%);
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.35);
  color:rgba(255,255,255,.9);
  font-size:13px;
}

/* auf sehr kleinen Screens Buttons etwas kleiner */
@media (max-width:520px){
  .lbprev, .lbnext{width:40px; height:40px; font-size:28px}
  .lbclose{width:40px; height:40px}
  .inlineimgs{grid-template-columns:1fr}
}

/* ================= FOOTER ================= */

.footer{
  margin-top:22px;
  padding:18px 0 28px;
  border-top:1px solid var(--line);
  color:var(--muted);
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
}
.footlinks{display:flex; gap:12px; flex-wrap:wrap}
.footlinks a{color:var(--muted)}
.footlinks a:hover{color:var(--text)}

/* ================= RESPONSIVE ================= */

@media (max-width:900px){
  .links{display:none}
  .tripcard{grid-column:span 12}
  .triphead{grid-template-columns:1fr}
}
