:root{--bg:#f8fafc;--card:#fff;--text:#172033;--muted:#64748b;--line:#e2e8f0;--blue:#2563eb;--blue2:#eff6ff;--red:#dc2626;--green:#16a34a}*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--text)}a{color:var(--blue);text-decoration:none}.top{height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px}.brand{font-weight:800;font-size:24px;color:var(--text)}.top nav{display:flex;gap:22px}.container{max-width:1240px;margin:34px auto;padding:0 18px}.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:0 10px 30px rgba(15,23,42,.04);margin-bottom:22px}.headline,.public-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.headline.small{margin-bottom:8px}.headline h1,.public-head h1{margin:0 0 6px;font-size:34px}.headline p,.public-head p{margin:0;color:var(--muted)}.auth{max-width:440px;margin:70px auto}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:22px}.public-grid{display:grid;grid-template-columns:2fr 1fr;gap:22px}label{display:block;font-weight:650;margin:14px 0 6px}input,textarea{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:12px;font:inherit;background:#fff}textarea{resize:vertical}.row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.check{display:flex;gap:10px;align-items:center}.check input{width:auto}button,.button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:12px;background:var(--blue);color:#fff;padding:11px 16px;font-weight:800;font-size:14px;cursor:pointer;margin-right:8px}.button.muted,.ghost{background:#f1f5f9;color:var(--text)}.danger{background:var(--red);margin-top:8px}.err{background:#fef2f2;color:#991b1b;padding:10px 12px;border-radius:10px}table{width:100%;border-collapse:collapse}th{text-align:left;color:var(--muted);font-size:13px}td,th{padding:14px 10px;border-bottom:1px solid var(--line)}.pill{padding:5px 10px;border-radius:999px;background:#f1f5f9;font-size:13px}.pill.ok{color:var(--green)}.pill.off{color:var(--red)}code{display:block;background:#f8fafc;border:1px solid var(--line);padding:12px;border-radius:12px;overflow:auto}.mapcard{padding:12px}#map{height:640px;border-radius:14px;overflow:hidden}.legend{display:grid;grid-template-columns:34px 1fr;gap:12px;margin:14px 0}.legend span{background:var(--blue);color:#fff;border-radius:999px;width:30px;height:30px;display:flex;align-items:center;justify-content:center;font-weight:800}.legend p{margin:3px 0;color:var(--muted);font-size:14px}.mutedtext{color:var(--muted)}h3{margin-top:22px;border-top:1px solid var(--line);padding-top:14px}@media(max-width:900px){.grid2,.public-grid{grid-template-columns:1fr}.headline,.public-head{align-items:flex-start;flex-direction:column}.row{grid-template-columns:1fr}#map{height:420px}}@media print{.top,.button,.ghost{display:none}.container{max-width:none;margin:0}.card{box-shadow:none}.public-grid{grid-template-columns:1.5fr 1fr}}
.numtip{background:#2563eb!important;color:#fff!important;border:2px solid #fff!important;border-radius:999px!important;font-weight:800;box-shadow:0 2px 8px rgba(0,0,0,.25)}.numtip:before{display:none!important}
.hidden{display:none!important}.hotelcheck{background:#fffbeb;border:1px solid #fde68a;border-radius:14px;padding:12px 14px}.legend.hotel span,.hotel-marker{background:#f59e0b!important;color:#fff!important;border:2px solid #fff!important;border-radius:999px!important;font-weight:900;display:flex!important;align-items:center!important;justify-content:center!important;box-shadow:0 2px 8px rgba(0,0,0,.25)}.hotel-title{color:#92400e}.hotel-marker{font-size:21px;width:34px!important;height:34px!important}

.map-picker-wrap{margin:16px 0 20px;border:1px solid var(--line);border-radius:16px;padding:14px;background:#f8fafc}.map-picker-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}.smallbtn{padding:8px 12px;font-size:13px;margin:0}#admin-map{height:420px;border-radius:14px;overflow:hidden;border:1px solid var(--line);margin-top:12px;background:#eef2f7}@media(max-width:900px){#admin-map{height:340px}.map-picker-head{align-items:flex-start;flex-direction:column}}

.map-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 4px 12px}.route-toggle{display:inline-flex;align-items:center;gap:10px;margin:0;font-weight:800;cursor:pointer}.route-toggle input{width:auto;accent-color:var(--blue)}.route-status{font-size:13px;color:var(--muted);background:#f1f5f9;border-radius:999px;padding:6px 10px}.route-status.loading{color:#1d4ed8;background:#eff6ff}.route-status.ok{color:#166534;background:#f0fdf4}.route-status.err{color:#991b1b;background:#fef2f2}@media(max-width:700px){.map-toolbar{align-items:flex-start;flex-direction:column}}
.route-selects{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.route-select-label{display:flex;flex-direction:column;gap:4px;margin:0;color:var(--muted);font-size:12px;font-weight:800}.route-point{width:auto;min-width:220px;padding:8px 10px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--text);font:inherit;font-size:13px;font-weight:700}.route-point:disabled{opacity:.55}.route-toolbar{align-items:end}@media(max-width:900px){.route-selects{width:100%;align-items:stretch}.route-select-label,.route-point,#route-calc{width:100%}}
.legend p b{color:var(--text)}

.route-mode{min-width:130px}
.lang-switch{display:flex;gap:8px;justify-content:flex-end;align-items:center;margin:-6px 0 14px 0}
.lang-switch .flag{display:inline-flex;align-items:center;justify-content:center;width:40px;height:32px;border-radius:10px;text-decoration:none;background:#fff;border:1px solid #e2e8f0;font-size:22px;box-shadow:0 2px 8px rgba(15,23,42,.04);transition:.15s ease}
.lang-switch .flag:hover{transform:translateY(-1px);box-shadow:0 5px 15px rgba(15,23,42,.08)}
.lang-switch .flag.active{border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 3px rgba(37,99,235,.12)}
@media print{.lang-switch{display:none}}


/* Sprachumschaltung: echte Flaggen als CSS, keine Buchstaben/Emoji-Abhängigkeit */
.lang-switch{display:flex;gap:8px;justify-content:flex-end;align-items:center;margin:12px 0 10px}
.flag{display:inline-flex;align-items:center;justify-content:center;width:42px;height:30px;border-radius:9px;border:1px solid #d7dee8;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.06);overflow:hidden;padding:3px;text-decoration:none}
.flag:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(15,23,42,.10)}
.flag.active{border:2px solid #2563eb;padding:2px;box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.flag-icon{display:block;width:100%;height:100%;border-radius:5px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
.flag-de{background:linear-gradient(to bottom,#ed2939 0 33.33%,#fff 33.33% 66.66%,#ed2939 66.66%)} /* Österreich */
.flag-en{background:linear-gradient(to bottom,#012169,#012169);position:relative}
.flag-en:before{content:"";display:block;width:100%;height:100%;background:linear-gradient(35deg,transparent 42%,#fff 42% 48%,#c8102e 48% 53%,#fff 53% 59%,transparent 59%),linear-gradient(-35deg,transparent 42%,#fff 42% 48%,#c8102e 48% 53%,#fff 53% 59%,transparent 59%),linear-gradient(to right,transparent 40%,#fff 40% 45%,#c8102e 45% 55%,#fff 55% 60%,transparent 60%),linear-gradient(to bottom,transparent 35%,#fff 35% 43%,#c8102e 43% 57%,#fff 57% 65%,transparent 65%)}
.flag-hu{background:linear-gradient(to bottom,#ce2939 0 33.33%,#fff 33.33% 66.66%,#477050 66.66%)}
.flag-it{background:linear-gradient(to right,#009246 0 33.33%,#fff 33.33% 66.66%,#ce2b37 66.66%)}
.flag-fr{background:linear-gradient(to right,#002395 0 33.33%,#fff 33.33% 66.66%,#ed2939 66.66%)}
.flag-es{background:linear-gradient(to bottom,#aa151b 0 25%,#f1bf00 25% 75%,#aa151b 75%)}
.lang-switch .flag{font-size:0;line-height:0;overflow:hidden;padding:3px;background:#fff}
.lang-switch .flag.active{border:2px solid #2563eb;background:#fff;padding:2px}

/* Legend refinement: only visual/content improvements, no routing or language changes. */
.public-legend-card h2{margin-top:0;font-size:24px;letter-spacing:-.02em}.legend-day{border:0;margin:22px 0 10px;padding:0;color:#334155;font-size:14px;text-transform:uppercase;letter-spacing:.08em}.legend-modern{grid-template-columns:38px 1fr;gap:14px;padding:14px;border:1px solid #e2e8f0;border-radius:16px;background:linear-gradient(180deg,#fff,#fbfdff);box-shadow:0 8px 22px rgba(15,23,42,.045);align-items:start}.legend-modern span{width:34px;height:34px;box-shadow:0 4px 12px rgba(37,99,235,.25)}.legend-modern.hotel span{box-shadow:0 4px 12px rgba(245,158,11,.28)}.legend-modern strong{display:block;margin-bottom:7px;font-size:16px;letter-spacing:-.01em}.legend-modern p{margin:5px 0;line-height:1.35;color:#475569}.legend-modern p b{color:#0f172a}.legend-meta{font-weight:700;color:#92400e!important}

/* Final compact desktop routing controls */
@media (min-width:901px){
  .route-toolbar{align-items:stretch;gap:12px;padding:6px 6px 14px;background:linear-gradient(180deg,#ffffff,#f8fafc);border:1px solid var(--line);border-radius:16px;margin-bottom:10px;box-shadow:0 8px 24px rgba(15,23,42,.04)}
  .route-toggle{min-width:185px;align-self:stretch;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 12px;box-shadow:0 3px 12px rgba(15,23,42,.035)}
  .route-selects{flex:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 138px auto;align-items:end;gap:10px}
  .route-select-label{min-width:0;font-size:11px;text-transform:uppercase;letter-spacing:.045em;color:#64748b}
  .route-point{width:100%;min-width:0;border-radius:12px;padding:10px 12px;background:#fff;box-shadow:0 1px 0 rgba(15,23,42,.02)}
  .route-mode{min-width:0}
  #route-calc{height:40px;border-radius:12px;white-space:nowrap}
  .route-status{align-self:center;max-width:280px;line-height:1.35;border-radius:14px;padding:9px 12px}
}

/* Final desktop route layout requested: row 1 = Von/Nach, row 2 = mode + route toggle + calculate + result. Mobile rules above remain unchanged. */
@media (min-width:901px){
  .route-toolbar{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:12px;
    padding:14px;
    background:linear-gradient(180deg,#ffffff,#f8fafc);
    border:1px solid var(--line);
    border-radius:18px;
    margin-bottom:12px;
    box-shadow:0 10px 28px rgba(15,23,42,.055);
  }
  .route-toolbar .route-selects{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:12px;
    width:100%;
    align-items:end;
  }
  .route-actions{
    display:grid;
    grid-template-columns:160px minmax(190px,auto) 150px minmax(220px,1fr);
    gap:10px;
    align-items:end;
    width:100%;
  }
  .route-select-label{
    min-width:0;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.045em;
    color:#64748b;
    margin:0;
  }
  .route-point{
    width:100%;
    min-width:0;
    border-radius:13px;
    padding:11px 12px;
    background:#fff;
    box-shadow:0 1px 0 rgba(15,23,42,.02);
  }
  .route-toggle{
    height:42px;
    min-width:0;
    align-self:end;
    justify-content:center;
    background:#fff;
    border:1px solid var(--line);
    border-radius:13px;
    padding:10px 12px;
    box-shadow:0 3px 12px rgba(15,23,42,.035);
  }
  #route-calc{height:42px;border-radius:13px;white-space:nowrap;margin:0;width:100%}
  .route-status{align-self:end;min-height:42px;display:flex;align-items:center;line-height:1.35;border-radius:13px;padding:9px 12px;max-width:none;width:100%}
}
@media (max-width:900px){
  .route-actions{display:flex;flex-direction:column;gap:10px;width:100%}
  .route-mode-label{width:100%}
}
