:root{
  --bg1:#12061f;
  --bg2:#2a0f3d;
  --card:#1b0c2b;
  --card2:#220f35;
  --text:#f6f1ff;
  --muted:#cdb9ff;
  --accent:#b36bff;
  --accent2:#ffcc66;
  --ok:#6dffb3;
  --warn:#ff7a7a;
  --shadow: 0 18px 40px rgba(0,0,0,.45);
  --radius: 22px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 20% 10%, rgba(179,107,255,.22), transparent 55%),
              radial-gradient(900px 700px at 90% 30%, rgba(255,204,102,.18), transparent 60%),
              linear-gradient(160deg, var(--bg1), var(--bg2));
  color:var(--text);
}
a{color:inherit}
.container{
  width:min(980px, 92vw);
  margin:0 auto;
  padding:24px 0 70px;
}
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(18,6,31,.62);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.topbar-inner{
  width:min(980px, 92vw);
  margin:0 auto;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  padding:12px 0;
}
.brand{
  display:flex; gap:10px; align-items:center;
  font-weight:800;
  letter-spacing:.4px;
}
.badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(179,107,255,.22);
  border:1px solid rgba(179,107,255,.35);
  color:var(--muted);
}
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-inner{padding:22px}
.hero{
  text-align:center;
  padding:36px 18px;
}
h1{font-size:34px; margin:6px 0 10px; line-height:1.05}
h2{font-size:22px; margin:0 0 12px}
p{color:rgba(246,241,255,.88); line-height:1.55; margin:10px 0}
.muted{color:var(--muted)}
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}
.col-12{grid-column: span 12;}
.col-6{grid-column: span 6;}
.col-4{grid-column: span 4;}
@media (max-width: 820px){
  .col-6,.col-4{grid-column: span 12;}
  h1{font-size:30px}
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(179,107,255,.20);
  padding:12px 14px;
  border-radius: 14px;
  font-weight:700;
  cursor:pointer;
  user-select:none;
}
.btn:hover{filter:brightness(1.05)}
.btn.primary{
  background: linear-gradient(90deg, rgba(179,107,255,.92), rgba(255,204,102,.72));
  border-color: rgba(255,255,255,.22);
}
.btn.ghost{
  background: rgba(255,255,255,.05);
}
.btn.small{padding:10px 12px; border-radius: 12px; font-size:14px}
input, button{
  font-family:inherit;
}
input{
  width:100%;
  padding:14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.22);
  color: var(--text);
  font-size:18px; /* important for iOS zoom prevention */
  outline:none;
}
input:focus{
  border-color: rgba(179,107,255,.55);
  box-shadow: 0 0 0 4px rgba(179,107,255,.18);
}
hr{
  border:0;
  border-top:1px solid rgba(255,255,255,.10);
  margin:16px 0;
}
.kpi{
  display:flex; gap:10px; flex-wrap:wrap;
}
.kpi .pill{
  padding:8px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  font-size:13px;
  color:var(--muted);
}
.route-card{
  position:relative;
  overflow:hidden;
  min-height: 205px;
}
.route-card .route-icon{
  font-size:44px;
  line-height:1;
}
.route-card .shine{
  position:absolute;
  inset:-40%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.14), transparent 55%);
  transform: rotate(12deg);
  pointer-events:none;
}
.notice{
  padding:12px 14px;
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(246,241,255,.90);
}
.notice.ok{border-color: rgba(109,255,179,.45); background: rgba(109,255,179,.10)}
.notice.warn{border-color: rgba(255,122,122,.55); background: rgba(255,122,122,.10)}
.step-head{
  display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap;
}
.step-title{
  margin:0;
  font-size:26px;
  line-height:1.15;
}
.smallmuted{font-size:13px; color:rgba(205,185,255,.9)}
.footer{
  margin-top:26px;
  text-align:center;
  color: rgba(205,185,255,.78);
  font-size:13px;
}

/* DIY spots */
.spot-card{position:relative; overflow:hidden}
.spot-card.selectable{cursor:pointer}
.spot-card.selected{border-color:rgba(109,255,179,.55)}
.spot-card.selected .spot-img{filter:saturate(1.08) contrast(1.05)}
.spot-select{
  position:absolute;
  top:10px;
  right:10px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  background:rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
}
.spot-select .dot{width:10px; height:10px; border-radius:999px; background:rgba(255,255,255,.55)}
.spot-card.selected .spot-select .dot{background:rgba(109,255,179,.95)}
.route-plan{
  padding:12px 14px;
  border-radius: 18px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
}
.route-plan h2{margin:0 0 6px; font-size:18px}
.route-plan .plan-list{display:flex; flex-direction:column; gap:10px; margin-top:10px}
.plan-item{
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px 10px;
  border-radius:16px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}
.plan-item img{width:58px; height:42px; object-fit:cover; border-radius:14px; border:1px solid rgba(255,255,255,.12)}
.plan-item .meta{flex:1 1 auto}
.plan-item .meta .t{font-weight:900; line-height:1.15}
.plan-item .meta .s{font-size:12px; color:rgba(205,185,255,.88); margin-top:2px}
.plan-item .actions{display:flex; gap:8px; flex-wrap:wrap}

/* Route details (Tourauswahl) */
.route-details{margin-top:12px}
.route-details summary{cursor:pointer; font-weight:900; color:rgba(246,241,255,.92)}
.route-details .mini-list{margin-top:10px; display:flex; flex-direction:column; gap:10px}
.route-details .mini-item{display:flex; gap:10px; align-items:center; padding:10px; border-radius:16px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.10)}
.route-details .mini-item img{width:58px; height:42px; object-fit:cover; border-radius:14px; border:1px solid rgba(255,255,255,.12)}
.route-details .mini-item .t{font-weight:900; line-height:1.15}
.route-details .mini-item .s{font-size:12px; color:rgba(205,185,255,.88); margin-top:2px}
.spot-head{display:flex; gap:12px; align-items:center}
.spot-num{display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:12px;
  background: rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.14); font-weight:900}
.thumb{
  width:64px; height:64px; border-radius:18px;
  background: radial-gradient(120px 120px at 20% 10%, rgba(179,107,255,.55), rgba(255,204,102,.15));
  border:1px solid rgba(255,255,255,.14);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 14px 28px rgba(0,0,0,.32);
  flex:0 0 auto;
}
.thumb svg{width:44px; height:44px; opacity:.92}
.spot-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}
.btn.small{padding:10px 12px; border-radius:12px; font-weight:800; font-size:14px}
.kicker{font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:rgba(205,185,255,.86)}
.smallmuted{font-size:13px; color:rgba(205,185,255,.86)}



/* --- External Thumbnails (Wikimedia) --- */
.route-thumbs{
  display:flex;
  gap:8px;
  margin:10px 0 2px;
}
.route-thumbs img{
  width:100%;
  max-width:92px;
  height:62px;
  border-radius:14px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.12);
  opacity:.95;
}

.spot-imgwrap{
  position:relative;
  width:100%;
  height:112px;
  border-radius:18px;
  overflow:hidden;
  margin:12px 12px 0;
  border:1px solid rgba(255,255,255,.12);
}
.spot-img{
  width:100%;
  height:112px;
  object-fit:cover;
  display:block;
  transform:scale(1.02);
  filter:saturate(1.05) contrast(1.02);
}
.spot-badges{
  position:absolute;
  left:10px;
  bottom:10px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  background:rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
}
.badge.kind{
  background:rgba(179,107,255,.20);
  border:1px solid rgba(179,107,255,.38);
}
.badge.gold{
  background:rgba(255,204,102,.18);
  border:1px solid rgba(255,204,102,.38);
}
.badge.carnival{
  background:rgba(255,122,122,.16);
  border:1px solid rgba(255,122,122,.35);
}

.spot-hero{
  position:relative;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  margin-top:12px;
}
.spot-hero-img{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
}
.spot-hero-badges{
  position:absolute;
  left:12px;
  bottom:12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.credit-thumb{
  width:160px;
  height:96px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
}

/* Improve spot cards layout on small screens */
@media (max-width: 540px){
  .route-thumbs img{ max-width:100px; height:66px; }
  .spot-imgwrap{ height:124px; }
  .spot-img{ height:124px; }
}

/* --- Bottom Quick Buttons (Zurück / Café / Karneval / Sunset / Hotel) --- */
.has-footnav{
  padding-bottom: 92px;
}
.footnav{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(18,6,31,.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.12);
}
.footnav-inner{
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.footnav-center{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
}
.footbtn{
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(246,241,255,.98);
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
}
.footbtn:active{
  transform: translateY(1px);
}


/* --- Route map preview (offline SVG) --- *//
.route-mapwrap{margin-top:10px}
.route-map{
  width:100%;
  height:auto;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.12);
}


/* DIY visible checkboxes */
.spot-card{ position:relative; }
.spot-card .pick{ position:absolute; top:10px; right:10px; z-index:5; }
.pickbox{ width:22px; height:22px; accent-color: var(--accent); }
.pickbox[disabled]{ opacity:.6; }
