*{box-sizing:border-box}
:root{
  --bg:#111;
  --panel:#2B2B2B;
  --panel2:#2a2825;
  --copper:#c6a38c;
  --cream:#fff;
  --muted:#d8c7ba;
  --line:rgba(198,163,140,.55);
}
body{
  margin:0;
  background:#2B2B2B;
  color:var(--cream);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}
.hidden{display:none!important}

/* Login */
.login-screen{
  min-height:100svh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px 18px;
  background:linear-gradient(rgba(0,0,0,.15),rgba(0,0,0,.22)),url("assets/hintergrund.jpg") center/cover no-repeat,#111;
}
.login-inner{width:min(430px,100%);text-align:center}
.login-logo{
  width:min(78vw,330px);
  max-height:50svh;
  object-fit:contain;
  display:block;
  margin:0 auto 42px;
  filter:drop-shadow(0 24px 40px rgba(0,0,0,.65));
}
.password-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  height:58px;
  border:1.4px solid var(--copper);
  border-radius:14px;
  background:rgba(15,15,15,.7);
  padding:0 14px;
}
.password-wrap input{
  flex:1;
  height:100%;
  background:transparent;
  border:0;
  outline:0;
  color:#fff;
  font-size:18px;
}
.password-wrap input::placeholder{color:rgba(255,255,255,.55)}
.plain-btn{
  background:transparent;
  color:#fff;
  border:0;
  font-weight:700;
}
.start-button{
  margin-top:24px;
  width:100%;
  height:62px;
  border:0;
  border-radius:14px;
  background:var(--copper);
  color:#111;
  font-size:19px;
  font-weight:900;
  letter-spacing:.04em;
}
.login-error{min-height:22px;color:#ffd6d6}

/* App layout like screenshot */
.app{
  min-height:100svh;
  max-width:720px;
  margin:0 auto;
  background:#2B2B2B;
  border-left:1px solid rgba(255,255,255,.12);
  border-right:1px solid rgba(255,255,255,.12);
}
.top-block{
  background:var(--panel);
  border-bottom:1px solid rgba(255,255,255,.7);
  padding-top:env(safe-area-inset-top);
}
.title-row{
  height:150px;
  display:grid;
  grid-template-columns:125px 1fr;
  align-items:center;
  gap:18px;
  padding:16px 34px 14px 38px;
  border-bottom:1px solid rgba(255,255,255,.7);
}
.header-logo{
  width:96px;
  height:116px;
  object-fit:contain;
}
.header-title{
  font-family:inherit;
  font-weight:800;
  letter-spacing:.08em;
  font-size:clamp(24px,4vw,34px);
  color:#fff;
  white-space:nowrap;
}
.main-nav{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:12px;
  padding:12px 30px 16px;
  background:var(--panel);
  border-radius:24px;
}
.main-nav button{
  min-height:56px;
  border:0;
  border-radius:20px;
  background:var(--panel);
  color:var(--cream);
  font-weight:700;
  font-size:16px;
  letter-spacing:.03em;
  box-shadow:0 18px 40px rgba(0,0,0,.14);
  transition:transform .18s ease, background .2s ease, box-shadow .2s ease;
}
.main-nav button:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.14);
}
.main-nav button.active{
  background:var(--copper);
  color:#111;
  box-shadow:0 18px 40px rgba(198,163,140,.22);
}
.view{
  padding:18px 30px 32px;
}
.countdown-card{
  background:var(--panel);
  border:1px solid rgba(205,169,145,.45);
  border-radius:24px;
  min-height:104px;
  padding:20px 22px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  box-shadow:0 18px 40px rgba(0,0,0,.16);
}
.countdown-card .label{
  color:var(--copper);
  font-size:12px;
  font-weight:900;
  letter-spacing:.22em;
  margin-bottom:8px;
}
.countdown-card h1{
  margin:0;
  color:#fff;
  font-size:25px;
  line-height:1.15;
}
.home-buttons{
  display:grid;
  gap:10px;
  margin-top:14px;
}
.home-buttons button{
  min-height:52px;
  padding:0 18px;
  border:0;
  border-radius:20px;
  background:var(--panel);
  color:var(--cream);
  font-weight:700;
  font-size:16px;
  transition:background .2s ease, transform .18s ease;
}
.home-buttons button:hover{
  background:rgba(255,255,255,.14);
  transform:translateY(-1px);
}
.page-title{
  font-size:30px;
  margin:0 0 12px;
}
.card,.route-card{
  background:var(--panel);
  border:1px solid rgba(205,169,145,.45);
  border-radius:22px;
  padding:18px;
  margin:14px 0;
}
.route-item{
  display:grid;
  grid-template-columns:42px 1fr;
  gap:10px;
  margin:12px 0;
}
.route-dot{
  width:34px;height:34px;border-radius:999px;
  display:grid;place-items:center;
  background:var(--copper);color:#111;font-weight:900;
}
.pill{
  display:inline-block;
  color:var(--copper);
  font-size:12px;
  letter-spacing:.08em;
  font-weight:900;
  margin-bottom:6px;
}
.muted,.idea-list{color:var(--muted)}
.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.button-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  background:var(--panel);
  border:0;
  color:var(--cream);
  padding:12px 16px;
  border-radius:18px;
  font-weight:700;
  font-size:15px;
  transition:background .2s ease, transform .18s ease;
}
.button-link:hover{
  background:rgba(255,255,255,.14);
  transform:translateY(-1px);
}
label{display:block;padding:12px 0;border-bottom:1px solid rgba(198,163,140,.25)}
@media(max-width:520px){
  .app{max-width:none}
  .title-row{
    height:132px;
    grid-template-columns:86px 1fr;
    gap:12px;
    padding:14px 18px;
  }
  .header-logo{width:74px;height:92px}
  .header-title{font-size:27px;white-space:normal}
  .main-nav{padding:9px 16px 12px;gap:9px}
  .main-nav button{min-height:48px;font-size:15px}
  .view{padding:16px}
  .countdown-card h1{font-size:22px}
}


/* VERSION 14 – neue Orts-Karten */
.route-item{
  display:block !important;
  grid-template-columns:none !important;
}
.route-dot{
  display:none !important;
}
.stop-card{
  margin:18px 0 22px !important;
  padding:20px !important;
}
.stop-meta{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  color:#CDA991;
  font-size:14px;
  font-weight:900;
  margin-bottom:22px;
}
.stop-city{
  margin:0 0 14px !important;
  color:#CDA991 !important;
  text-transform:uppercase;
  letter-spacing:.02em;
  font-size:34px !important;
  line-height:1.05;
}
.avg-weather{
  color:#CDA991;
  font-weight:800;
  margin:0 0 16px;
}
.stop-notes{
  color:#f4eadf;
  font-size:18px;
  line-height:1.45;
}
.ideas{
  color:#f4eadf;
  font-size:17px;
  line-height:1.45;
  margin-bottom:18px;
}
.foldout{
  border-top:1px solid rgba(205,169,145,.25);
  padding:14px 0;
}
.foldout summary{
  cursor:pointer;
  color:#fff;
  font-weight:900;
  list-style:none;
  font-size:17px;
}
.foldout summary::before{
  content:"▾ ";
  color:#CDA991;
}
.foldout-content{
  color:#d8c7ba;
  padding:14px 0 2px;
  line-height:1.45;
}
.foldout-content h3{
  color:#fff;
  margin:0 0 12px;
}
.day-detail{
  margin-bottom:14px;
}
.day-detail strong{
  color:#fff;
}
.day-detail ul{
  margin:8px 0 0 20px;
  padding:0;
}
.small-link{
  margin-top:8px;
}


/* VERSION 18 – echte Datumslinks + Tagesseiten + Flüge */
.date-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.date-link{
  width:100%;
  text-align:left;
  background:rgba(205,169,145,.12);
  border:1px solid rgba(205,169,145,.45);
  color:#fff;
  border-radius:12px;
  padding:12px 14px;
  font-weight:900;
  font-size:15px;
}
.day-page{
  padding:20px;
  color:#fff;
}
.day-date{
  color:#CDA991;
  font-size:14px;
  letter-spacing:.08em;
  margin-bottom:12px;
}
.day-city{
  color:#CDA991;
  font-size:38px;
  margin:0 0 18px;
}
.day-topinfo{
  line-height:1.7;
  font-size:18px;
  color:#f3e7dc;
}
.day-section{
  border-top:1px solid rgba(205,169,145,.25);
  padding:20px 0;
}
.day-section h3{
  color:#fff;
  margin:0 0 14px;
  font-size:19px;
}
.day-section ul{
  margin:0;
  padding-left:22px;
  color:#e7d9ce;
  line-height:1.8;
}
.activity-group{
  margin-bottom:18px;
}
.activity-group strong{
  color:#CDA991;
}
.flight-card h2{
  color:#CDA991;
}
.flight-block{
  border-top:1px solid rgba(205,169,145,.25);
  padding-top:16px;
  margin-top:16px;
}
.flight-block h3{
  margin:0 0 6px;
  color:#fff;
}
.flight-title{
  color:#CDA991;
  font-weight:900;
}
.flight-segment{
  display:grid;
  grid-template-columns:70px 1fr;
  gap:14px;
  padding:12px 0;
  border-top:1px solid rgba(255,255,255,.08);
}
.flight-time{
  color:#CDA991;
  font-weight:900;
}
.flight-segment p{
  margin:3px 0;
  color:#d8c7ba;
}


/* VERSION 19 – Home centered */
.home-screen,
#home{
  text-align:center;
}

#home .hero,
#home .hero-content,
#home .countdown-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.main-nav{
  justify-content:center !important;
}

.home-buttons,
.actions{
  justify-content:center !important;
}

.weather-home-card{
  margin:18px auto 24px;
  padding:20px;
  border-radius:22px;
  background:var(--panel);
  border:1px solid rgba(205,169,145,.45);
  text-align:center;
}

.weather-home-label{
  color:#CDA991;
  font-size:12px;
  letter-spacing:.18em;
  margin-bottom:10px;
}

.weather-home-city{
  color:#fff;
  font-size:28px;
  font-weight:900;
}

.weather-home-temp{
  color:#CDA991;
  font-size:34px;
  font-weight:900;
  margin-top:8px;
}

.weather-home-desc{
  color:#e6d7ca;
  margin-top:6px;
}


/* VERSION 20 cleaner home */
.weather-home-card{
  margin-top:40px !important;
}

.weather-home-temp{
  font-size:44px !important;
}


/* VERSION 21 remove old home buttons */
.home-buttons,
.quick-actions,
.campground-button,
.route-next-button{
  display:none !important;
}


/* VERSION 22 – einheitliche Kachel-Schrift */
.countdown-card,
.weather-home-card,
.card,
.route-card,
.stop-card{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif !important;
}

.countdown-card .label,
.weather-home-label,
.label,
.small-label,
.eyebrow{
  font-size:12px !important;
  line-height:1.2 !important;
  letter-spacing:.18em !important;
  font-weight:900 !important;
  text-transform:uppercase !important;
  color:#CDA991 !important;
}

.countdown-card h1,
#countdownText,
.weather-home-city,
.card h2,
.route-card h2{
  font-size:28px !important;
  line-height:1.15 !important;
  font-weight:900 !important;
  color:#fff !important;
  margin:8px 0 !important;
}

.weather-home-temp{
  font-size:44px !important;
  line-height:1 !important;
  font-weight:900 !important;
  color:#CDA991 !important;
  margin:12px 0 6px !important;
}

.countdown-card p,
.weather-home-desc,
.card p,
.route-card p{
  font-size:15px !important;
  line-height:1.45 !important;
  font-weight:500 !important;
}

.countdown-card,
.weather-home-card{
  min-height:140px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
