/* N1: one persistent global navigation, contextual travel controls. */
.n1-header,
body.travami-planner .n1-header {
  margin: 0;
  min-height: 86px;
  height: 86px;
  padding: 0 max(5vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.n1-header > .brand,
body.travami-planner .n1-header > .brand {
  display: flex !important;
  font-size: 28px;
}
.n1-header .brand svg {
  width: 34px;
}
.n1-header .n1-nav {
  display: flex !important;
  align-items: center;
  height: 100%;
  gap: 32px;
  margin: 0;
}
.n1-nav > a,
.n1-nav > button {
  display: flex;
  align-items: center;
  min-height: 48px;
  height: 100%;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 0;
  font:
    600 13px Inter,
    Arial,
    sans-serif;
  color: var(--ink);
  white-space: nowrap;
  text-decoration: none;
}
.n1-nav [aria-current='page'] {
  border-bottom-color: var(--ocean);
  color: var(--ocean);
}
body.travami-planner #main {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 30px 55px;
}
body.travami-planner .travami-footer {
  margin-left: 0;
  padding-bottom: 30px;
}
.travami-bottom-nav,
.travami-menu {
  display: none !important;
}
.n1-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.trip-banner {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0 0 24px;
  min-height: 110px;
}
.trip-banner .banner-picture,
.banner-quote,
.trip-banner .separator,
.intro-details,
.metrics {
  display: none !important;
}
.trip-banner-main {
  padding: 0 !important;
}
.trip-banner h2 {
  font-size: 34px;
}
.workspace {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.workspace-toolbar {
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  gap: 18px;
  align-items: center;
}
.workspace-toolbar .tabs {
  gap: 26px;
  background: transparent;
  border: 0;
  padding: 0;
}
.workspace-toolbar .tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 12px 0;
  min-height: 48px;
  font-size: 14px;
}
.workspace-toolbar .tabs button[aria-selected='true'] {
  color: var(--ocean);
  border-bottom-color: var(--ocean);
}
.planner-grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
  gap: 26px;
}
.route-column {
  border: 1px solid var(--line);
  background: white;
  border-radius: 18px;
  padding: 20px;
}
.map-column {
  position: static;
  gap: 18px;
}
#map {
  height: 285px;
  min-height: 240px;
}
.map-top {
  padding: 12px;
}
.map-column #travami-station-detail {
  order: 1;
  margin: 0;
}
.travami-place-card {
  display: block;
  padding: 20px;
}
.travami-place-card figure > img {
  height: 180px;
}
.travami-place-card h2 {
  font-size: 24px;
}
.travami-place-card .eyebrow {
  display: none;
}
.travami-place-card .actions {
  margin-top: 14px;
}
.travami-place-card .actions .button {
  font-size: 12px;
  padding: 10px 12px;
}
.map-column > .data-note {
  order: 4;
}
.mobile-view {
  background: #edf1ee;
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}
.mobile-view button {
  min-height: 40px;
  border: 0;
  background: transparent;
  border-radius: 7px;
}
.mobile-view button.selected {
  background: white;
  color: var(--ocean);
}
#yajomi-private-account .n1-header {
  height: 86px;
  min-height: 86px;
  padding: 0 max(5vw, 24px);
  gap: 22px;
}
#yajomi-private-account .n1-header .brand {
  font-size: 28px;
}
#yajomi-private-account .n1-header .brand img {
  width: 31px;
  height: 36px;
}
#yajomi-private-account .n1-nav {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}
#yajomi-private-account .n1-nav a {
  font-size: 13px;
  color: var(--ink);
  padding: 0;
  background: none;
}
#yajomi-private-account [data-account-tabs] {
  margin: 20px 0;
}
#yajomi-private-account [data-page='trips'] {
  display: none;
}
#yajomi-private-account .n1-language {
  max-width: 740px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0;
}
#yajomi-private-account .n1-language .travami-language-panel {
  position: static;
  display: block;
  width: auto;
  box-shadow: none;
  padding: 0;
  border: 0;
  background: transparent;
}
#yajomi-private-account .n1-language .travami-language-row {
  margin: 0;
  padding: 0;
  border: 0;
}
.n1-language h2 {
  font-size: 14px;
  margin: 0;
}
.n1-language p {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0 0;
}
@media (max-width: 800px) {
  .n1-header,
  body.travami-planner .n1-header,
  #yajomi-private-account .n1-header {
    min-height: 70px;
    height: 70px;
    padding: 0 19px;
    gap: 18px;
  }
  .n1-header > .brand,
  body.travami-planner .n1-header > .brand,
  #yajomi-private-account .n1-header .brand {
    font-size: 23px;
    gap: 5px;
  }
  .n1-header .brand svg {
    width: 27px;
  }
  .n1-header .n1-nav,
  #yajomi-private-account .n1-nav {
    gap: 18px;
  }
  .n1-nav > a,
  .n1-nav > button,
  #yajomi-private-account .n1-nav a {
    font-size: 12px;
  }
  .n1-header .brand img {
    width: 26px !important;
    height: 31px !important;
  }
  body.travami-planner #main {
    margin: 0 auto;
    width: 100%;
    padding: 26px 20px 45px;
  }
  .planner-grid {
    display: block;
  }
  .route-column {
    padding: 18px;
  }
  .map-column {
    display: none;
  }
  .map-mode .route-column {
    display: none;
  }
  .map-mode .map-column {
    display: flex;
  }
  .mobile-view {
    display: flex;
  }
  .trip-banner h2 {
    font-size: 28px;
  }
  .workspace-toolbar {
    display: flex;
    flex-wrap: wrap;
  }
  .workspace-toolbar .tabs {
    flex: 1;
    gap: 25px;
  }
  .toolbar-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .toolbar-actions .button {
    font-size: 11px;
    padding: 9px 11px;
  }
  .trip-banner .banner-edit {
    margin-left: auto;
  }
  #yajomi-private-account header .travami-language-menu {
    display: none !important;
  }
}
@media (max-width: 500px) {
  .n1-header,
  body.travami-planner .n1-header,
  #yajomi-private-account .n1-header {
    padding: 0 15px;
    gap: 10px;
  }
  .n1-header > .brand,
  body.travami-planner .n1-header > .brand,
  #yajomi-private-account .n1-header .brand {
    font-size: 21px;
  }
  .n1-header .n1-nav,
  #yajomi-private-account .n1-nav {
    gap: 12px;
  }
  .n1-nav > a,
  .n1-nav > button,
  #yajomi-private-account .n1-nav a {
    font-size: 10px;
  }
  .n1-header .brand svg {
    width: 23px;
  }
  .n1-header .brand img {
    width: 23px !important;
  }
  .travami-place-card .actions {
    display: flex;
  }
  .toolbar-actions #save-state {
    flex-basis: 100%;
  }
  .workspace-toolbar .tabs button {
    font-size: 13px;
  }
  .route-card {
    padding: 13px 10px;
  }
  #yajomi-private-account main {
    padding: 30px 19px;
  }
  #yajomi-private-account h1 {
    font-size: 28px;
  }
  #yajomi-private-account .n1-language {
    padding: 16px;
  }
  .n1-language .travami-language-row {
    gap: 4px;
  }
  .n1-language .travami-language-row button {
    min-width: 40px;
  }
}
@media print {
  .n1-header,
  .n1-back,
  .mobile-view {
    display: none !important;
  }
  .map-column {
    display: block !important;
  }
}
body {
  background: #fafbf9;
}
#yajomi-private-account {
  border-radius: 0;
  overflow: visible;
}
#yajomi-private-account .n1-header {
  flex-wrap: nowrap;
  justify-content: space-between;
}
#yajomi-private-account .n1-header .n1-nav {
  padding: 0;
  margin: 0;
  border: 0;
  flex-wrap: nowrap;
}
.n1-header .n1-nav .nav-item {
  font-size: 13px;
}
#yajomi-private-account [data-account-tabs][hidden],
#yajomi-private-account .n1-language[hidden] {
  display: none !important;
}
.travami-planner .n1-header .n1-nav {
  display: flex !important;
}
@media (max-width: 500px) {
  .n1-header .n1-nav .nav-item {
    font-size: 10px;
  }
}
@media (min-width: 801px) {
  .mobile-view {
    display: none;
  }
}
#yajomi-private-account .n1-language h2 {
  font-size: 14px;
  margin: 0;
}
#yajomi-private-account .n1-language > div {
  min-width: 0;
}
#yajomi-private-account .n1-language p {
  font-size: 11px;
  margin: 5px 0 0;
}
#yajomi-private-account .n1-language button {
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
}
#yajomi-private-account .n1-language .travami-language-row {
  gap: 4px;
}
#yajomi-private-account .n1-language button[aria-pressed='true'] {
  background: #eaf3f0;
  outline: 1px solid #0f5961;
}
@media (max-width: 350px) {
  #yajomi-private-account .n1-language {
    padding: 14px;
    gap: 10px;
  }
  .n1-header .n1-nav,
  #yajomi-private-account .n1-nav {
    gap: 9px;
  }
  .n1-header .brand,
  #yajomi-private-account .n1-header .brand {
    margin-right: 0 !important;
  }
}
@media (max-width: 800px) {
  #panel-route:not(.map-mode) .planner-grid > .map-column {
    display: none !important;
  }
  #panel-route.map-mode .planner-grid > .map-column {
    display: flex !important;
  }
  #panel-route.map-mode .map-column > .map-card,
  #panel-route.map-mode .map-column > .data-note {
    display: block;
  }
  .planner-grid {
    display: block;
  }
  .map-mode .route-column {
    display: none !important;
  }
}
.n1-header,
body.travami-planner .n1-header {
  position: relative;
  z-index: 10;
  isolation: isolate;
}
.trip-banner .trip-banner-main {
  max-width: calc(100% - 50px);
  min-width: 0;
}
.route-card {
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) auto !important;
  align-items: start !important;
  min-height: 0 !important;
  gap: 10px !important;
}
.route-card > .stop-thumb {
  display: none !important;
}
.route-card > div:not(.card-actions) {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
.route-card > .card-actions {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  min-height: 0;
  gap: 6px;
}
.route-card .stop-name {
  margin-top: 0;
}
.route-card .stop-date {
  margin-top: 5px;
}
.route-card .status {
  margin-top: 7px;
}
.trip-banner h2 {
  overflow-wrap: anywhere;
}

/* Final N1 alignment: contextual tools stay quiet until requested. */
.destination-banner-credit {
  display: none !important;
}
.trip-banner {
  display: flex;
  align-items: flex-start;
  min-height: 0;
  padding: 0;
  margin: 8px 0 24px;
  overflow: visible;
  gap: 18px;
}
.trip-banner .trip-banner-main {
  flex: 1 !important;
  max-width: none !important;
  width: auto !important;
  min-width: 0;
  padding: 0 !important;
}
.trip-banner .banner-edit {
  position: static;
  flex: none;
  align-self: flex-start;
  margin: 0;
  min-width: 44px;
  min-height: 44px;
}
.trip-banner h2 {
  margin: 8px 0 14px;
  line-height: 1.2;
}
.n1-back {
  margin-bottom: 9px;
}
.workspace-toolbar {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  margin: 0 0 24px;
  padding: 0 0 15px;
}
.workspace-toolbar .tabs {
  order: 0;
}
.toolbar-actions {
  order: 1;
}
.n1-route-tools {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 12px;
  margin-bottom: 16px;
}
.n1-route-tools > summary {
  color: var(--ocean);
  font-size: 12px;
  min-height: 40px;
  cursor: pointer;
  display: list-item;
  padding: 10px 0;
}
.n1-route-tools #route-optimizer-host {
  margin-top: 8px;
}
@media (max-width: 800px) {
  .workspace-toolbar .tabs {
    flex-basis: 100%;
  }
  .toolbar-actions {
    width: 100%;
    order: 1;
  }
  .trip-banner h2 {
    font-size: 27px;
  }
  .trip-banner .trip-banner-main {
    max-width: none !important;
  }
  .n1-route-tools {
    margin-bottom: 10px;
  }
  .route-column > .section-heading {
    margin-bottom: 8px;
  }
  .route-column > .section-heading p {
    font-size: 11px;
  }
}
.trip-banner .banner-edit {
  order: 2;
}

/* M1 · Reiseansicht, freigegeben am 10.11.2026: Foto je Station, Angebotskarten, hervorgehobene Kartenmarke. */
.route-card {
  grid-template-columns: 76px minmax(0, 1fr) auto !important;
}
.route-card > .stop-thumb {
  display: block !important;
  grid-column: 1;
  grid-row: 1;
  width: 76px !important;
  height: 60px !important;
  border-radius: 10px;
  object-fit: cover;
}
.route-card > .thumb-fallback {
  display: flex !important;
}
.journey-marker.selected {
  background: var(--coral);
  color: var(--ink);
}
.travami-offerblock {
  margin-top: 22px;
}
.travami-offerblock h3 {
  font-size: 16px;
  margin: 0 0 12px;
}
.travami-offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}
.travami-offer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 128px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.travami-offer:hover {
  border-color: var(--ocean);
}
.travami-offer svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--ocean);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.travami-offer strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.travami-offer-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1px 8px;
}
.travami-offer-go {
  margin-top: auto;
  color: var(--ocean);
  font-size: 13px;
  font-weight: 600;
}
@media (max-width: 860px) {
  .travami-offers {
    grid-template-columns: 1fr;
  }
  .travami-offer {
    min-height: 0;
  }
  .travami-offer-go {
    margin-top: 4px;
  }
}
